...

Source file src/google.golang.org/genproto/googleapis/apps/drive/activity/v2/drive_activity_service.pb.go

Documentation: google.golang.org/genproto/googleapis/apps/drive/activity/v2

     1  // Copyright 2024 Google LLC
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.26.0
    18  // 	protoc        v4.24.4
    19  // source: google/apps/drive/activity/v2/drive_activity_service.proto
    20  
    21  package activity
    22  
    23  import (
    24  	context "context"
    25  	reflect "reflect"
    26  
    27  	_ "google.golang.org/genproto/googleapis/api/annotations"
    28  	grpc "google.golang.org/grpc"
    29  	codes "google.golang.org/grpc/codes"
    30  	status "google.golang.org/grpc/status"
    31  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    32  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    33  )
    34  
    35  const (
    36  	// Verify that this generated code is sufficiently up-to-date.
    37  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    38  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    39  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    40  )
    41  
    42  var File_google_apps_drive_activity_v2_drive_activity_service_proto protoreflect.FileDescriptor
    43  
    44  var file_google_apps_drive_activity_v2_drive_activity_service_proto_rawDesc = []byte{
    45  	0x0a, 0x3a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x64, 0x72,
    46  	0x69, 0x76, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2f, 0x76, 0x32, 0x2f,
    47  	0x64, 0x72, 0x69, 0x76, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x73,
    48  	0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x67, 0x6f,
    49  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x2e, 0x64, 0x72, 0x69, 0x76, 0x65, 0x2e,
    50  	0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x32, 0x1a, 0x1c, 0x67, 0x6f, 0x6f,
    51  	0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
    52  	0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
    53  	0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f,
    54  	0x74, 0x6f, 0x1a, 0x40, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f,
    55  	0x64, 0x72, 0x69, 0x76, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2f, 0x76,
    56  	0x32, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x64, 0x72, 0x69, 0x76, 0x65, 0x5f, 0x61, 0x63,
    57  	0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x70,
    58  	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x70,
    59  	0x73, 0x2f, 0x64, 0x72, 0x69, 0x76, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79,
    60  	0x2f, 0x76, 0x32, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x64, 0x72, 0x69, 0x76, 0x65, 0x5f,
    61  	0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
    62  	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xcc, 0x02, 0x0a, 0x14, 0x44, 0x72, 0x69, 0x76,
    63  	0x65, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
    64  	0x12, 0xa8, 0x01, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x72, 0x69, 0x76, 0x65, 0x41,
    65  	0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x12, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
    66  	0x2e, 0x61, 0x70, 0x70, 0x73, 0x2e, 0x64, 0x72, 0x69, 0x76, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69,
    67  	0x76, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x72, 0x69,
    68  	0x76, 0x65, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
    69  	0x74, 0x1a, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x2e,
    70  	0x64, 0x72, 0x69, 0x76, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x76,
    71  	0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x72, 0x69, 0x76, 0x65, 0x41, 0x63, 0x74, 0x69,
    72  	0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3,
    73  	0xe4, 0x93, 0x02, 0x17, 0x22, 0x12, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69,
    74  	0x74, 0x79, 0x3a, 0x71, 0x75, 0x65, 0x72, 0x79, 0x3a, 0x01, 0x2a, 0x1a, 0x88, 0x01, 0xca, 0x41,
    75  	0x1c, 0x64, 0x72, 0x69, 0x76, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x67,
    76  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x66,
    77  	0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
    78  	0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f,
    79  	0x64, 0x72, 0x69, 0x76, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2c, 0x68,
    80  	0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
    81  	0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x64,
    82  	0x72, 0x69, 0x76, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x72, 0x65,
    83  	0x61, 0x64, 0x6f, 0x6e, 0x6c, 0x79, 0x42, 0xce, 0x01, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
    84  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x2e, 0x64, 0x72, 0x69, 0x76, 0x65,
    85  	0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x32, 0x42, 0x19, 0x44, 0x72,
    86  	0x69, 0x76, 0x65, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69,
    87  	0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x45, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
    88  	0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e,
    89  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
    90  	0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x64, 0x72, 0x69, 0x76, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69,
    91  	0x76, 0x69, 0x74, 0x79, 0x2f, 0x76, 0x32, 0x3b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79,
    92  	0xa2, 0x02, 0x04, 0x47, 0x41, 0x44, 0x41, 0xaa, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
    93  	0x2e, 0x41, 0x70, 0x70, 0x73, 0x2e, 0x44, 0x72, 0x69, 0x76, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69,
    94  	0x76, 0x69, 0x74, 0x79, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
    95  	0x5c, 0x41, 0x70, 0x70, 0x73, 0x5c, 0x44, 0x72, 0x69, 0x76, 0x65, 0x5c, 0x41, 0x63, 0x74, 0x69,
    96  	0x76, 0x69, 0x74, 0x79, 0x5c, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
    97  }
    98  
    99  var file_google_apps_drive_activity_v2_drive_activity_service_proto_goTypes = []interface{}{
   100  	(*QueryDriveActivityRequest)(nil),  // 0: google.apps.drive.activity.v2.QueryDriveActivityRequest
   101  	(*QueryDriveActivityResponse)(nil), // 1: google.apps.drive.activity.v2.QueryDriveActivityResponse
   102  }
   103  var file_google_apps_drive_activity_v2_drive_activity_service_proto_depIdxs = []int32{
   104  	0, // 0: google.apps.drive.activity.v2.DriveActivityService.QueryDriveActivity:input_type -> google.apps.drive.activity.v2.QueryDriveActivityRequest
   105  	1, // 1: google.apps.drive.activity.v2.DriveActivityService.QueryDriveActivity:output_type -> google.apps.drive.activity.v2.QueryDriveActivityResponse
   106  	1, // [1:2] is the sub-list for method output_type
   107  	0, // [0:1] is the sub-list for method input_type
   108  	0, // [0:0] is the sub-list for extension type_name
   109  	0, // [0:0] is the sub-list for extension extendee
   110  	0, // [0:0] is the sub-list for field type_name
   111  }
   112  
   113  func init() { file_google_apps_drive_activity_v2_drive_activity_service_proto_init() }
   114  func file_google_apps_drive_activity_v2_drive_activity_service_proto_init() {
   115  	if File_google_apps_drive_activity_v2_drive_activity_service_proto != nil {
   116  		return
   117  	}
   118  	file_google_apps_drive_activity_v2_query_drive_activity_request_proto_init()
   119  	file_google_apps_drive_activity_v2_query_drive_activity_response_proto_init()
   120  	type x struct{}
   121  	out := protoimpl.TypeBuilder{
   122  		File: protoimpl.DescBuilder{
   123  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   124  			RawDescriptor: file_google_apps_drive_activity_v2_drive_activity_service_proto_rawDesc,
   125  			NumEnums:      0,
   126  			NumMessages:   0,
   127  			NumExtensions: 0,
   128  			NumServices:   1,
   129  		},
   130  		GoTypes:           file_google_apps_drive_activity_v2_drive_activity_service_proto_goTypes,
   131  		DependencyIndexes: file_google_apps_drive_activity_v2_drive_activity_service_proto_depIdxs,
   132  	}.Build()
   133  	File_google_apps_drive_activity_v2_drive_activity_service_proto = out.File
   134  	file_google_apps_drive_activity_v2_drive_activity_service_proto_rawDesc = nil
   135  	file_google_apps_drive_activity_v2_drive_activity_service_proto_goTypes = nil
   136  	file_google_apps_drive_activity_v2_drive_activity_service_proto_depIdxs = nil
   137  }
   138  
   139  // Reference imports to suppress errors if they are not otherwise used.
   140  var _ context.Context
   141  var _ grpc.ClientConnInterface
   142  
   143  // This is a compile-time assertion to ensure that this generated file
   144  // is compatible with the grpc package it is being compiled against.
   145  const _ = grpc.SupportPackageIsVersion6
   146  
   147  // DriveActivityServiceClient is the client API for DriveActivityService service.
   148  //
   149  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   150  type DriveActivityServiceClient interface {
   151  	// Query past activity in Google Drive.
   152  	QueryDriveActivity(ctx context.Context, in *QueryDriveActivityRequest, opts ...grpc.CallOption) (*QueryDriveActivityResponse, error)
   153  }
   154  
   155  type driveActivityServiceClient struct {
   156  	cc grpc.ClientConnInterface
   157  }
   158  
   159  func NewDriveActivityServiceClient(cc grpc.ClientConnInterface) DriveActivityServiceClient {
   160  	return &driveActivityServiceClient{cc}
   161  }
   162  
   163  func (c *driveActivityServiceClient) QueryDriveActivity(ctx context.Context, in *QueryDriveActivityRequest, opts ...grpc.CallOption) (*QueryDriveActivityResponse, error) {
   164  	out := new(QueryDriveActivityResponse)
   165  	err := c.cc.Invoke(ctx, "/google.apps.drive.activity.v2.DriveActivityService/QueryDriveActivity", in, out, opts...)
   166  	if err != nil {
   167  		return nil, err
   168  	}
   169  	return out, nil
   170  }
   171  
   172  // DriveActivityServiceServer is the server API for DriveActivityService service.
   173  type DriveActivityServiceServer interface {
   174  	// Query past activity in Google Drive.
   175  	QueryDriveActivity(context.Context, *QueryDriveActivityRequest) (*QueryDriveActivityResponse, error)
   176  }
   177  
   178  // UnimplementedDriveActivityServiceServer can be embedded to have forward compatible implementations.
   179  type UnimplementedDriveActivityServiceServer struct {
   180  }
   181  
   182  func (*UnimplementedDriveActivityServiceServer) QueryDriveActivity(context.Context, *QueryDriveActivityRequest) (*QueryDriveActivityResponse, error) {
   183  	return nil, status.Errorf(codes.Unimplemented, "method QueryDriveActivity not implemented")
   184  }
   185  
   186  func RegisterDriveActivityServiceServer(s *grpc.Server, srv DriveActivityServiceServer) {
   187  	s.RegisterService(&_DriveActivityService_serviceDesc, srv)
   188  }
   189  
   190  func _DriveActivityService_QueryDriveActivity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   191  	in := new(QueryDriveActivityRequest)
   192  	if err := dec(in); err != nil {
   193  		return nil, err
   194  	}
   195  	if interceptor == nil {
   196  		return srv.(DriveActivityServiceServer).QueryDriveActivity(ctx, in)
   197  	}
   198  	info := &grpc.UnaryServerInfo{
   199  		Server:     srv,
   200  		FullMethod: "/google.apps.drive.activity.v2.DriveActivityService/QueryDriveActivity",
   201  	}
   202  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   203  		return srv.(DriveActivityServiceServer).QueryDriveActivity(ctx, req.(*QueryDriveActivityRequest))
   204  	}
   205  	return interceptor(ctx, in, info, handler)
   206  }
   207  
   208  var _DriveActivityService_serviceDesc = grpc.ServiceDesc{
   209  	ServiceName: "google.apps.drive.activity.v2.DriveActivityService",
   210  	HandlerType: (*DriveActivityServiceServer)(nil),
   211  	Methods: []grpc.MethodDesc{
   212  		{
   213  			MethodName: "QueryDriveActivity",
   214  			Handler:    _DriveActivityService_QueryDriveActivity_Handler,
   215  		},
   216  	},
   217  	Streams:  []grpc.StreamDesc{},
   218  	Metadata: "google/apps/drive/activity/v2/drive_activity_service.proto",
   219  }
   220  

View as plain text