...

Source file src/cloud.google.com/go/longrunning/autogen/longrunningpb/operations.pb.go

Documentation: cloud.google.com/go/longrunning/autogen/longrunningpb

     1  // Copyright 2020 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.33.0
    18  // 	protoc        v4.25.3
    19  // source: google/longrunning/operations.proto
    20  
    21  package longrunningpb
    22  
    23  import (
    24  	context "context"
    25  	reflect "reflect"
    26  	sync "sync"
    27  
    28  	_ "google.golang.org/genproto/googleapis/api/annotations"
    29  	status "google.golang.org/genproto/googleapis/rpc/status"
    30  	grpc "google.golang.org/grpc"
    31  	codes "google.golang.org/grpc/codes"
    32  	status1 "google.golang.org/grpc/status"
    33  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    34  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    35  	descriptorpb "google.golang.org/protobuf/types/descriptorpb"
    36  	anypb "google.golang.org/protobuf/types/known/anypb"
    37  	durationpb "google.golang.org/protobuf/types/known/durationpb"
    38  	emptypb "google.golang.org/protobuf/types/known/emptypb"
    39  )
    40  
    41  const (
    42  	// Verify that this generated code is sufficiently up-to-date.
    43  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    44  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    45  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    46  )
    47  
    48  // This resource represents a long-running operation that is the result of a
    49  // network API call.
    50  type Operation struct {
    51  	state         protoimpl.MessageState
    52  	sizeCache     protoimpl.SizeCache
    53  	unknownFields protoimpl.UnknownFields
    54  
    55  	// The server-assigned name, which is only unique within the same service that
    56  	// originally returns it. If you use the default HTTP mapping, the
    57  	// `name` should be a resource name ending with `operations/{unique_id}`.
    58  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    59  	// Service-specific metadata associated with the operation.  It typically
    60  	// contains progress information and common metadata such as create time.
    61  	// Some services might not provide such metadata.  Any method that returns a
    62  	// long-running operation should document the metadata type, if any.
    63  	Metadata *anypb.Any `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
    64  	// If the value is `false`, it means the operation is still in progress.
    65  	// If `true`, the operation is completed, and either `error` or `response` is
    66  	// available.
    67  	Done bool `protobuf:"varint,3,opt,name=done,proto3" json:"done,omitempty"`
    68  	// The operation result, which can be either an `error` or a valid `response`.
    69  	// If `done` == `false`, neither `error` nor `response` is set.
    70  	// If `done` == `true`, exactly one of `error` or `response` is set.
    71  	//
    72  	// Types that are assignable to Result:
    73  	//
    74  	//	*Operation_Error
    75  	//	*Operation_Response
    76  	Result isOperation_Result `protobuf_oneof:"result"`
    77  }
    78  
    79  func (x *Operation) Reset() {
    80  	*x = Operation{}
    81  	if protoimpl.UnsafeEnabled {
    82  		mi := &file_google_longrunning_operations_proto_msgTypes[0]
    83  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    84  		ms.StoreMessageInfo(mi)
    85  	}
    86  }
    87  
    88  func (x *Operation) String() string {
    89  	return protoimpl.X.MessageStringOf(x)
    90  }
    91  
    92  func (*Operation) ProtoMessage() {}
    93  
    94  func (x *Operation) ProtoReflect() protoreflect.Message {
    95  	mi := &file_google_longrunning_operations_proto_msgTypes[0]
    96  	if protoimpl.UnsafeEnabled && x != nil {
    97  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    98  		if ms.LoadMessageInfo() == nil {
    99  			ms.StoreMessageInfo(mi)
   100  		}
   101  		return ms
   102  	}
   103  	return mi.MessageOf(x)
   104  }
   105  
   106  // Deprecated: Use Operation.ProtoReflect.Descriptor instead.
   107  func (*Operation) Descriptor() ([]byte, []int) {
   108  	return file_google_longrunning_operations_proto_rawDescGZIP(), []int{0}
   109  }
   110  
   111  func (x *Operation) GetName() string {
   112  	if x != nil {
   113  		return x.Name
   114  	}
   115  	return ""
   116  }
   117  
   118  func (x *Operation) GetMetadata() *anypb.Any {
   119  	if x != nil {
   120  		return x.Metadata
   121  	}
   122  	return nil
   123  }
   124  
   125  func (x *Operation) GetDone() bool {
   126  	if x != nil {
   127  		return x.Done
   128  	}
   129  	return false
   130  }
   131  
   132  func (m *Operation) GetResult() isOperation_Result {
   133  	if m != nil {
   134  		return m.Result
   135  	}
   136  	return nil
   137  }
   138  
   139  func (x *Operation) GetError() *status.Status {
   140  	if x, ok := x.GetResult().(*Operation_Error); ok {
   141  		return x.Error
   142  	}
   143  	return nil
   144  }
   145  
   146  func (x *Operation) GetResponse() *anypb.Any {
   147  	if x, ok := x.GetResult().(*Operation_Response); ok {
   148  		return x.Response
   149  	}
   150  	return nil
   151  }
   152  
   153  type isOperation_Result interface {
   154  	isOperation_Result()
   155  }
   156  
   157  type Operation_Error struct {
   158  	// The error result of the operation in case of failure or cancellation.
   159  	Error *status.Status `protobuf:"bytes,4,opt,name=error,proto3,oneof"`
   160  }
   161  
   162  type Operation_Response struct {
   163  	// The normal response of the operation in case of success.  If the original
   164  	// method returns no data on success, such as `Delete`, the response is
   165  	// `google.protobuf.Empty`.  If the original method is standard
   166  	// `Get`/`Create`/`Update`, the response should be the resource.  For other
   167  	// methods, the response should have the type `XxxResponse`, where `Xxx`
   168  	// is the original method name.  For example, if the original method name
   169  	// is `TakeSnapshot()`, the inferred response type is
   170  	// `TakeSnapshotResponse`.
   171  	Response *anypb.Any `protobuf:"bytes,5,opt,name=response,proto3,oneof"`
   172  }
   173  
   174  func (*Operation_Error) isOperation_Result() {}
   175  
   176  func (*Operation_Response) isOperation_Result() {}
   177  
   178  // The request message for [Operations.GetOperation][google.longrunning.Operations.GetOperation].
   179  type GetOperationRequest struct {
   180  	state         protoimpl.MessageState
   181  	sizeCache     protoimpl.SizeCache
   182  	unknownFields protoimpl.UnknownFields
   183  
   184  	// The name of the operation resource.
   185  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   186  }
   187  
   188  func (x *GetOperationRequest) Reset() {
   189  	*x = GetOperationRequest{}
   190  	if protoimpl.UnsafeEnabled {
   191  		mi := &file_google_longrunning_operations_proto_msgTypes[1]
   192  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   193  		ms.StoreMessageInfo(mi)
   194  	}
   195  }
   196  
   197  func (x *GetOperationRequest) String() string {
   198  	return protoimpl.X.MessageStringOf(x)
   199  }
   200  
   201  func (*GetOperationRequest) ProtoMessage() {}
   202  
   203  func (x *GetOperationRequest) ProtoReflect() protoreflect.Message {
   204  	mi := &file_google_longrunning_operations_proto_msgTypes[1]
   205  	if protoimpl.UnsafeEnabled && x != nil {
   206  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   207  		if ms.LoadMessageInfo() == nil {
   208  			ms.StoreMessageInfo(mi)
   209  		}
   210  		return ms
   211  	}
   212  	return mi.MessageOf(x)
   213  }
   214  
   215  // Deprecated: Use GetOperationRequest.ProtoReflect.Descriptor instead.
   216  func (*GetOperationRequest) Descriptor() ([]byte, []int) {
   217  	return file_google_longrunning_operations_proto_rawDescGZIP(), []int{1}
   218  }
   219  
   220  func (x *GetOperationRequest) GetName() string {
   221  	if x != nil {
   222  		return x.Name
   223  	}
   224  	return ""
   225  }
   226  
   227  // The request message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
   228  type ListOperationsRequest struct {
   229  	state         protoimpl.MessageState
   230  	sizeCache     protoimpl.SizeCache
   231  	unknownFields protoimpl.UnknownFields
   232  
   233  	// The name of the operation's parent resource.
   234  	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
   235  	// The standard list filter.
   236  	Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
   237  	// The standard list page size.
   238  	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
   239  	// The standard list page token.
   240  	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
   241  }
   242  
   243  func (x *ListOperationsRequest) Reset() {
   244  	*x = ListOperationsRequest{}
   245  	if protoimpl.UnsafeEnabled {
   246  		mi := &file_google_longrunning_operations_proto_msgTypes[2]
   247  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   248  		ms.StoreMessageInfo(mi)
   249  	}
   250  }
   251  
   252  func (x *ListOperationsRequest) String() string {
   253  	return protoimpl.X.MessageStringOf(x)
   254  }
   255  
   256  func (*ListOperationsRequest) ProtoMessage() {}
   257  
   258  func (x *ListOperationsRequest) ProtoReflect() protoreflect.Message {
   259  	mi := &file_google_longrunning_operations_proto_msgTypes[2]
   260  	if protoimpl.UnsafeEnabled && x != nil {
   261  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   262  		if ms.LoadMessageInfo() == nil {
   263  			ms.StoreMessageInfo(mi)
   264  		}
   265  		return ms
   266  	}
   267  	return mi.MessageOf(x)
   268  }
   269  
   270  // Deprecated: Use ListOperationsRequest.ProtoReflect.Descriptor instead.
   271  func (*ListOperationsRequest) Descriptor() ([]byte, []int) {
   272  	return file_google_longrunning_operations_proto_rawDescGZIP(), []int{2}
   273  }
   274  
   275  func (x *ListOperationsRequest) GetName() string {
   276  	if x != nil {
   277  		return x.Name
   278  	}
   279  	return ""
   280  }
   281  
   282  func (x *ListOperationsRequest) GetFilter() string {
   283  	if x != nil {
   284  		return x.Filter
   285  	}
   286  	return ""
   287  }
   288  
   289  func (x *ListOperationsRequest) GetPageSize() int32 {
   290  	if x != nil {
   291  		return x.PageSize
   292  	}
   293  	return 0
   294  }
   295  
   296  func (x *ListOperationsRequest) GetPageToken() string {
   297  	if x != nil {
   298  		return x.PageToken
   299  	}
   300  	return ""
   301  }
   302  
   303  // The response message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
   304  type ListOperationsResponse struct {
   305  	state         protoimpl.MessageState
   306  	sizeCache     protoimpl.SizeCache
   307  	unknownFields protoimpl.UnknownFields
   308  
   309  	// A list of operations that matches the specified filter in the request.
   310  	Operations []*Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"`
   311  	// The standard List next-page token.
   312  	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
   313  }
   314  
   315  func (x *ListOperationsResponse) Reset() {
   316  	*x = ListOperationsResponse{}
   317  	if protoimpl.UnsafeEnabled {
   318  		mi := &file_google_longrunning_operations_proto_msgTypes[3]
   319  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   320  		ms.StoreMessageInfo(mi)
   321  	}
   322  }
   323  
   324  func (x *ListOperationsResponse) String() string {
   325  	return protoimpl.X.MessageStringOf(x)
   326  }
   327  
   328  func (*ListOperationsResponse) ProtoMessage() {}
   329  
   330  func (x *ListOperationsResponse) ProtoReflect() protoreflect.Message {
   331  	mi := &file_google_longrunning_operations_proto_msgTypes[3]
   332  	if protoimpl.UnsafeEnabled && x != nil {
   333  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   334  		if ms.LoadMessageInfo() == nil {
   335  			ms.StoreMessageInfo(mi)
   336  		}
   337  		return ms
   338  	}
   339  	return mi.MessageOf(x)
   340  }
   341  
   342  // Deprecated: Use ListOperationsResponse.ProtoReflect.Descriptor instead.
   343  func (*ListOperationsResponse) Descriptor() ([]byte, []int) {
   344  	return file_google_longrunning_operations_proto_rawDescGZIP(), []int{3}
   345  }
   346  
   347  func (x *ListOperationsResponse) GetOperations() []*Operation {
   348  	if x != nil {
   349  		return x.Operations
   350  	}
   351  	return nil
   352  }
   353  
   354  func (x *ListOperationsResponse) GetNextPageToken() string {
   355  	if x != nil {
   356  		return x.NextPageToken
   357  	}
   358  	return ""
   359  }
   360  
   361  // The request message for [Operations.CancelOperation][google.longrunning.Operations.CancelOperation].
   362  type CancelOperationRequest struct {
   363  	state         protoimpl.MessageState
   364  	sizeCache     protoimpl.SizeCache
   365  	unknownFields protoimpl.UnknownFields
   366  
   367  	// The name of the operation resource to be cancelled.
   368  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   369  }
   370  
   371  func (x *CancelOperationRequest) Reset() {
   372  	*x = CancelOperationRequest{}
   373  	if protoimpl.UnsafeEnabled {
   374  		mi := &file_google_longrunning_operations_proto_msgTypes[4]
   375  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   376  		ms.StoreMessageInfo(mi)
   377  	}
   378  }
   379  
   380  func (x *CancelOperationRequest) String() string {
   381  	return protoimpl.X.MessageStringOf(x)
   382  }
   383  
   384  func (*CancelOperationRequest) ProtoMessage() {}
   385  
   386  func (x *CancelOperationRequest) ProtoReflect() protoreflect.Message {
   387  	mi := &file_google_longrunning_operations_proto_msgTypes[4]
   388  	if protoimpl.UnsafeEnabled && x != nil {
   389  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   390  		if ms.LoadMessageInfo() == nil {
   391  			ms.StoreMessageInfo(mi)
   392  		}
   393  		return ms
   394  	}
   395  	return mi.MessageOf(x)
   396  }
   397  
   398  // Deprecated: Use CancelOperationRequest.ProtoReflect.Descriptor instead.
   399  func (*CancelOperationRequest) Descriptor() ([]byte, []int) {
   400  	return file_google_longrunning_operations_proto_rawDescGZIP(), []int{4}
   401  }
   402  
   403  func (x *CancelOperationRequest) GetName() string {
   404  	if x != nil {
   405  		return x.Name
   406  	}
   407  	return ""
   408  }
   409  
   410  // The request message for [Operations.DeleteOperation][google.longrunning.Operations.DeleteOperation].
   411  type DeleteOperationRequest struct {
   412  	state         protoimpl.MessageState
   413  	sizeCache     protoimpl.SizeCache
   414  	unknownFields protoimpl.UnknownFields
   415  
   416  	// The name of the operation resource to be deleted.
   417  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   418  }
   419  
   420  func (x *DeleteOperationRequest) Reset() {
   421  	*x = DeleteOperationRequest{}
   422  	if protoimpl.UnsafeEnabled {
   423  		mi := &file_google_longrunning_operations_proto_msgTypes[5]
   424  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   425  		ms.StoreMessageInfo(mi)
   426  	}
   427  }
   428  
   429  func (x *DeleteOperationRequest) String() string {
   430  	return protoimpl.X.MessageStringOf(x)
   431  }
   432  
   433  func (*DeleteOperationRequest) ProtoMessage() {}
   434  
   435  func (x *DeleteOperationRequest) ProtoReflect() protoreflect.Message {
   436  	mi := &file_google_longrunning_operations_proto_msgTypes[5]
   437  	if protoimpl.UnsafeEnabled && x != nil {
   438  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   439  		if ms.LoadMessageInfo() == nil {
   440  			ms.StoreMessageInfo(mi)
   441  		}
   442  		return ms
   443  	}
   444  	return mi.MessageOf(x)
   445  }
   446  
   447  // Deprecated: Use DeleteOperationRequest.ProtoReflect.Descriptor instead.
   448  func (*DeleteOperationRequest) Descriptor() ([]byte, []int) {
   449  	return file_google_longrunning_operations_proto_rawDescGZIP(), []int{5}
   450  }
   451  
   452  func (x *DeleteOperationRequest) GetName() string {
   453  	if x != nil {
   454  		return x.Name
   455  	}
   456  	return ""
   457  }
   458  
   459  // The request message for [Operations.WaitOperation][google.longrunning.Operations.WaitOperation].
   460  type WaitOperationRequest struct {
   461  	state         protoimpl.MessageState
   462  	sizeCache     protoimpl.SizeCache
   463  	unknownFields protoimpl.UnknownFields
   464  
   465  	// The name of the operation resource to wait on.
   466  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   467  	// The maximum duration to wait before timing out. If left blank, the wait
   468  	// will be at most the time permitted by the underlying HTTP/RPC protocol.
   469  	// If RPC context deadline is also specified, the shorter one will be used.
   470  	Timeout *durationpb.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
   471  }
   472  
   473  func (x *WaitOperationRequest) Reset() {
   474  	*x = WaitOperationRequest{}
   475  	if protoimpl.UnsafeEnabled {
   476  		mi := &file_google_longrunning_operations_proto_msgTypes[6]
   477  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   478  		ms.StoreMessageInfo(mi)
   479  	}
   480  }
   481  
   482  func (x *WaitOperationRequest) String() string {
   483  	return protoimpl.X.MessageStringOf(x)
   484  }
   485  
   486  func (*WaitOperationRequest) ProtoMessage() {}
   487  
   488  func (x *WaitOperationRequest) ProtoReflect() protoreflect.Message {
   489  	mi := &file_google_longrunning_operations_proto_msgTypes[6]
   490  	if protoimpl.UnsafeEnabled && x != nil {
   491  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   492  		if ms.LoadMessageInfo() == nil {
   493  			ms.StoreMessageInfo(mi)
   494  		}
   495  		return ms
   496  	}
   497  	return mi.MessageOf(x)
   498  }
   499  
   500  // Deprecated: Use WaitOperationRequest.ProtoReflect.Descriptor instead.
   501  func (*WaitOperationRequest) Descriptor() ([]byte, []int) {
   502  	return file_google_longrunning_operations_proto_rawDescGZIP(), []int{6}
   503  }
   504  
   505  func (x *WaitOperationRequest) GetName() string {
   506  	if x != nil {
   507  		return x.Name
   508  	}
   509  	return ""
   510  }
   511  
   512  func (x *WaitOperationRequest) GetTimeout() *durationpb.Duration {
   513  	if x != nil {
   514  		return x.Timeout
   515  	}
   516  	return nil
   517  }
   518  
   519  // A message representing the message types used by a long-running operation.
   520  //
   521  // Example:
   522  //
   523  //	rpc LongRunningRecognize(LongRunningRecognizeRequest)
   524  //	    returns (google.longrunning.Operation) {
   525  //	  option (google.longrunning.operation_info) = {
   526  //	    response_type: "LongRunningRecognizeResponse"
   527  //	    metadata_type: "LongRunningRecognizeMetadata"
   528  //	  };
   529  //	}
   530  type OperationInfo struct {
   531  	state         protoimpl.MessageState
   532  	sizeCache     protoimpl.SizeCache
   533  	unknownFields protoimpl.UnknownFields
   534  
   535  	// Required. The message name of the primary return type for this
   536  	// long-running operation.
   537  	// This type will be used to deserialize the LRO's response.
   538  	//
   539  	// If the response is in a different package from the rpc, a fully-qualified
   540  	// message name must be used (e.g. `google.protobuf.Struct`).
   541  	//
   542  	// Note: Altering this value constitutes a breaking change.
   543  	ResponseType string `protobuf:"bytes,1,opt,name=response_type,json=responseType,proto3" json:"response_type,omitempty"`
   544  	// Required. The message name of the metadata type for this long-running
   545  	// operation.
   546  	//
   547  	// If the response is in a different package from the rpc, a fully-qualified
   548  	// message name must be used (e.g. `google.protobuf.Struct`).
   549  	//
   550  	// Note: Altering this value constitutes a breaking change.
   551  	MetadataType string `protobuf:"bytes,2,opt,name=metadata_type,json=metadataType,proto3" json:"metadata_type,omitempty"`
   552  }
   553  
   554  func (x *OperationInfo) Reset() {
   555  	*x = OperationInfo{}
   556  	if protoimpl.UnsafeEnabled {
   557  		mi := &file_google_longrunning_operations_proto_msgTypes[7]
   558  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   559  		ms.StoreMessageInfo(mi)
   560  	}
   561  }
   562  
   563  func (x *OperationInfo) String() string {
   564  	return protoimpl.X.MessageStringOf(x)
   565  }
   566  
   567  func (*OperationInfo) ProtoMessage() {}
   568  
   569  func (x *OperationInfo) ProtoReflect() protoreflect.Message {
   570  	mi := &file_google_longrunning_operations_proto_msgTypes[7]
   571  	if protoimpl.UnsafeEnabled && x != nil {
   572  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   573  		if ms.LoadMessageInfo() == nil {
   574  			ms.StoreMessageInfo(mi)
   575  		}
   576  		return ms
   577  	}
   578  	return mi.MessageOf(x)
   579  }
   580  
   581  // Deprecated: Use OperationInfo.ProtoReflect.Descriptor instead.
   582  func (*OperationInfo) Descriptor() ([]byte, []int) {
   583  	return file_google_longrunning_operations_proto_rawDescGZIP(), []int{7}
   584  }
   585  
   586  func (x *OperationInfo) GetResponseType() string {
   587  	if x != nil {
   588  		return x.ResponseType
   589  	}
   590  	return ""
   591  }
   592  
   593  func (x *OperationInfo) GetMetadataType() string {
   594  	if x != nil {
   595  		return x.MetadataType
   596  	}
   597  	return ""
   598  }
   599  
   600  var file_google_longrunning_operations_proto_extTypes = []protoimpl.ExtensionInfo{
   601  	{
   602  		ExtendedType:  (*descriptorpb.MethodOptions)(nil),
   603  		ExtensionType: (*OperationInfo)(nil),
   604  		Field:         1049,
   605  		Name:          "google.longrunning.operation_info",
   606  		Tag:           "bytes,1049,opt,name=operation_info",
   607  		Filename:      "google/longrunning/operations.proto",
   608  	},
   609  }
   610  
   611  // Extension fields to descriptorpb.MethodOptions.
   612  var (
   613  	// Additional information regarding long-running operations.
   614  	// In particular, this specifies the types that are returned from
   615  	// long-running operations.
   616  	//
   617  	// Required for methods that return `google.longrunning.Operation`; invalid
   618  	// otherwise.
   619  	//
   620  	// optional google.longrunning.OperationInfo operation_info = 1049;
   621  	E_OperationInfo = &file_google_longrunning_operations_proto_extTypes[0]
   622  )
   623  
   624  var File_google_longrunning_operations_proto protoreflect.FileDescriptor
   625  
   626  var file_google_longrunning_operations_proto_rawDesc = []byte{
   627  	0x0a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e,
   628  	0x6e, 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e,
   629  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f,
   630  	0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   631  	0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   632  	0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
   633  	0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   634  	0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
   635  	0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f,
   636  	0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72,
   637  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f,
   638  	0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70,
   639  	0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   640  	0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   641  	0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
   642  	0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72,
   643  	0x6f, 0x74, 0x6f, 0x22, 0xcf, 0x01, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
   644  	0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
   645  	0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
   646  	0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   647  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x08, 0x6d,
   648  	0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18,
   649  	0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x12, 0x2a, 0x0a, 0x05, 0x65,
   650  	0x72, 0x72, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f,
   651  	0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x00,
   652  	0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x32, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f,
   653  	0x6e, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
   654  	0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x48,
   655  	0x00, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x72,
   656  	0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x29, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x4f, 0x70, 0x65, 0x72,
   657  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04,
   658  	0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
   659  	0x22, 0x7f, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
   660  	0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
   661  	0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a,
   662  	0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66,
   663  	0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69,
   664  	0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69,
   665  	0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
   666  	0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65,
   667  	0x6e, 0x22, 0x7f, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
   668  	0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0a, 0x6f,
   669  	0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
   670  	0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e,
   671  	0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a,
   672  	0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65,
   673  	0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20,
   674  	0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b,
   675  	0x65, 0x6e, 0x22, 0x2c, 0x0a, 0x16, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x70, 0x65, 0x72,
   676  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04,
   677  	0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
   678  	0x22, 0x2c, 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74,
   679  	0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
   680  	0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x5f,
   681  	0x0a, 0x14, 0x57, 0x61, 0x69, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
   682  	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
   683  	0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69,
   684  	0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f,
   685  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75,
   686  	0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x22,
   687  	0x59, 0x0a, 0x0d, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f,
   688  	0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x74, 0x79, 0x70,
   689  	0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
   690  	0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
   691  	0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x65,
   692  	0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x32, 0xaa, 0x05, 0x0a, 0x0a, 0x4f,
   693  	0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x94, 0x01, 0x0a, 0x0e, 0x4c, 0x69,
   694  	0x73, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x29, 0x2e, 0x67,
   695  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e,
   696  	0x67, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
   697  	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   698  	0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4c, 0x69, 0x73,
   699  	0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
   700  	0x6e, 0x73, 0x65, 0x22, 0x2b, 0xda, 0x41, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x66, 0x69, 0x6c,
   701  	0x74, 0x65, 0x72, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
   702  	0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x7d,
   703  	0x12, 0x7f, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   704  	0x12, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75,
   705  	0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
   706  	0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
   707  	0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f,
   708  	0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x27, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d,
   709  	0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,
   710  	0x6d, 0x65, 0x3d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2a,
   711  	0x7d, 0x12, 0x7e, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61,
   712  	0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f,
   713  	0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
   714  	0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
   715  	0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
   716  	0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x27, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d,
   717  	0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x2a, 0x18, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,
   718  	0x6d, 0x65, 0x3d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2a,
   719  	0x7d, 0x12, 0x88, 0x01, 0x0a, 0x0f, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x70, 0x65, 0x72,
   720  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c,
   721  	0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65,
   722  	0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
   723  	0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   724  	0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x31, 0xda, 0x41, 0x04, 0x6e, 0x61,
   725  	0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x3a, 0x01, 0x2a, 0x22, 0x1f, 0x2f, 0x76, 0x31,
   726  	0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   727  	0x73, 0x2f, 0x2a, 0x2a, 0x7d, 0x3a, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x12, 0x5a, 0x0a, 0x0d,
   728  	0x57, 0x61, 0x69, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x2e,
   729  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69,
   730  	0x6e, 0x67, 0x2e, 0x57, 0x61, 0x69, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   731  	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   732  	0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65,
   733  	0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x00, 0x1a, 0x1d, 0xca, 0x41, 0x1a, 0x6c, 0x6f, 0x6e,
   734  	0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
   735  	0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x3a, 0x69, 0x0a, 0x0e, 0x6f, 0x70, 0x65, 0x72, 0x61,
   736  	0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
   737  	0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x74, 0x68,
   738  	0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x99, 0x08, 0x20, 0x01, 0x28, 0x0b,
   739  	0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75,
   740  	0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49,
   741  	0x6e, 0x66, 0x6f, 0x52, 0x0d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e,
   742  	0x66, 0x6f, 0x42, 0x9d, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   743  	0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x42, 0x0f, 0x4f,
   744  	0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
   745  	0x5a, 0x43, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
   746  	0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e,
   747  	0x67, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x67, 0x65, 0x6e, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75,
   748  	0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x3b, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e,
   749  	0x69, 0x6e, 0x67, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xaa, 0x02, 0x12, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
   750  	0x65, 0x2e, 0x4c, 0x6f, 0x6e, 0x67, 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0xca, 0x02, 0x12,
   751  	0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x4c, 0x6f, 0x6e, 0x67, 0x52, 0x75, 0x6e, 0x6e, 0x69,
   752  	0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   753  }
   754  
   755  var (
   756  	file_google_longrunning_operations_proto_rawDescOnce sync.Once
   757  	file_google_longrunning_operations_proto_rawDescData = file_google_longrunning_operations_proto_rawDesc
   758  )
   759  
   760  func file_google_longrunning_operations_proto_rawDescGZIP() []byte {
   761  	file_google_longrunning_operations_proto_rawDescOnce.Do(func() {
   762  		file_google_longrunning_operations_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_longrunning_operations_proto_rawDescData)
   763  	})
   764  	return file_google_longrunning_operations_proto_rawDescData
   765  }
   766  
   767  var file_google_longrunning_operations_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
   768  var file_google_longrunning_operations_proto_goTypes = []interface{}{
   769  	(*Operation)(nil),                  // 0: google.longrunning.Operation
   770  	(*GetOperationRequest)(nil),        // 1: google.longrunning.GetOperationRequest
   771  	(*ListOperationsRequest)(nil),      // 2: google.longrunning.ListOperationsRequest
   772  	(*ListOperationsResponse)(nil),     // 3: google.longrunning.ListOperationsResponse
   773  	(*CancelOperationRequest)(nil),     // 4: google.longrunning.CancelOperationRequest
   774  	(*DeleteOperationRequest)(nil),     // 5: google.longrunning.DeleteOperationRequest
   775  	(*WaitOperationRequest)(nil),       // 6: google.longrunning.WaitOperationRequest
   776  	(*OperationInfo)(nil),              // 7: google.longrunning.OperationInfo
   777  	(*anypb.Any)(nil),                  // 8: google.protobuf.Any
   778  	(*status.Status)(nil),              // 9: google.rpc.Status
   779  	(*durationpb.Duration)(nil),        // 10: google.protobuf.Duration
   780  	(*descriptorpb.MethodOptions)(nil), // 11: google.protobuf.MethodOptions
   781  	(*emptypb.Empty)(nil),              // 12: google.protobuf.Empty
   782  }
   783  var file_google_longrunning_operations_proto_depIdxs = []int32{
   784  	8,  // 0: google.longrunning.Operation.metadata:type_name -> google.protobuf.Any
   785  	9,  // 1: google.longrunning.Operation.error:type_name -> google.rpc.Status
   786  	8,  // 2: google.longrunning.Operation.response:type_name -> google.protobuf.Any
   787  	0,  // 3: google.longrunning.ListOperationsResponse.operations:type_name -> google.longrunning.Operation
   788  	10, // 4: google.longrunning.WaitOperationRequest.timeout:type_name -> google.protobuf.Duration
   789  	11, // 5: google.longrunning.operation_info:extendee -> google.protobuf.MethodOptions
   790  	7,  // 6: google.longrunning.operation_info:type_name -> google.longrunning.OperationInfo
   791  	2,  // 7: google.longrunning.Operations.ListOperations:input_type -> google.longrunning.ListOperationsRequest
   792  	1,  // 8: google.longrunning.Operations.GetOperation:input_type -> google.longrunning.GetOperationRequest
   793  	5,  // 9: google.longrunning.Operations.DeleteOperation:input_type -> google.longrunning.DeleteOperationRequest
   794  	4,  // 10: google.longrunning.Operations.CancelOperation:input_type -> google.longrunning.CancelOperationRequest
   795  	6,  // 11: google.longrunning.Operations.WaitOperation:input_type -> google.longrunning.WaitOperationRequest
   796  	3,  // 12: google.longrunning.Operations.ListOperations:output_type -> google.longrunning.ListOperationsResponse
   797  	0,  // 13: google.longrunning.Operations.GetOperation:output_type -> google.longrunning.Operation
   798  	12, // 14: google.longrunning.Operations.DeleteOperation:output_type -> google.protobuf.Empty
   799  	12, // 15: google.longrunning.Operations.CancelOperation:output_type -> google.protobuf.Empty
   800  	0,  // 16: google.longrunning.Operations.WaitOperation:output_type -> google.longrunning.Operation
   801  	12, // [12:17] is the sub-list for method output_type
   802  	7,  // [7:12] is the sub-list for method input_type
   803  	6,  // [6:7] is the sub-list for extension type_name
   804  	5,  // [5:6] is the sub-list for extension extendee
   805  	0,  // [0:5] is the sub-list for field type_name
   806  }
   807  
   808  func init() { file_google_longrunning_operations_proto_init() }
   809  func file_google_longrunning_operations_proto_init() {
   810  	if File_google_longrunning_operations_proto != nil {
   811  		return
   812  	}
   813  	if !protoimpl.UnsafeEnabled {
   814  		file_google_longrunning_operations_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   815  			switch v := v.(*Operation); i {
   816  			case 0:
   817  				return &v.state
   818  			case 1:
   819  				return &v.sizeCache
   820  			case 2:
   821  				return &v.unknownFields
   822  			default:
   823  				return nil
   824  			}
   825  		}
   826  		file_google_longrunning_operations_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   827  			switch v := v.(*GetOperationRequest); i {
   828  			case 0:
   829  				return &v.state
   830  			case 1:
   831  				return &v.sizeCache
   832  			case 2:
   833  				return &v.unknownFields
   834  			default:
   835  				return nil
   836  			}
   837  		}
   838  		file_google_longrunning_operations_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   839  			switch v := v.(*ListOperationsRequest); i {
   840  			case 0:
   841  				return &v.state
   842  			case 1:
   843  				return &v.sizeCache
   844  			case 2:
   845  				return &v.unknownFields
   846  			default:
   847  				return nil
   848  			}
   849  		}
   850  		file_google_longrunning_operations_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   851  			switch v := v.(*ListOperationsResponse); i {
   852  			case 0:
   853  				return &v.state
   854  			case 1:
   855  				return &v.sizeCache
   856  			case 2:
   857  				return &v.unknownFields
   858  			default:
   859  				return nil
   860  			}
   861  		}
   862  		file_google_longrunning_operations_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
   863  			switch v := v.(*CancelOperationRequest); i {
   864  			case 0:
   865  				return &v.state
   866  			case 1:
   867  				return &v.sizeCache
   868  			case 2:
   869  				return &v.unknownFields
   870  			default:
   871  				return nil
   872  			}
   873  		}
   874  		file_google_longrunning_operations_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
   875  			switch v := v.(*DeleteOperationRequest); i {
   876  			case 0:
   877  				return &v.state
   878  			case 1:
   879  				return &v.sizeCache
   880  			case 2:
   881  				return &v.unknownFields
   882  			default:
   883  				return nil
   884  			}
   885  		}
   886  		file_google_longrunning_operations_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
   887  			switch v := v.(*WaitOperationRequest); i {
   888  			case 0:
   889  				return &v.state
   890  			case 1:
   891  				return &v.sizeCache
   892  			case 2:
   893  				return &v.unknownFields
   894  			default:
   895  				return nil
   896  			}
   897  		}
   898  		file_google_longrunning_operations_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
   899  			switch v := v.(*OperationInfo); i {
   900  			case 0:
   901  				return &v.state
   902  			case 1:
   903  				return &v.sizeCache
   904  			case 2:
   905  				return &v.unknownFields
   906  			default:
   907  				return nil
   908  			}
   909  		}
   910  	}
   911  	file_google_longrunning_operations_proto_msgTypes[0].OneofWrappers = []interface{}{
   912  		(*Operation_Error)(nil),
   913  		(*Operation_Response)(nil),
   914  	}
   915  	type x struct{}
   916  	out := protoimpl.TypeBuilder{
   917  		File: protoimpl.DescBuilder{
   918  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   919  			RawDescriptor: file_google_longrunning_operations_proto_rawDesc,
   920  			NumEnums:      0,
   921  			NumMessages:   8,
   922  			NumExtensions: 1,
   923  			NumServices:   1,
   924  		},
   925  		GoTypes:           file_google_longrunning_operations_proto_goTypes,
   926  		DependencyIndexes: file_google_longrunning_operations_proto_depIdxs,
   927  		MessageInfos:      file_google_longrunning_operations_proto_msgTypes,
   928  		ExtensionInfos:    file_google_longrunning_operations_proto_extTypes,
   929  	}.Build()
   930  	File_google_longrunning_operations_proto = out.File
   931  	file_google_longrunning_operations_proto_rawDesc = nil
   932  	file_google_longrunning_operations_proto_goTypes = nil
   933  	file_google_longrunning_operations_proto_depIdxs = nil
   934  }
   935  
   936  // Reference imports to suppress errors if they are not otherwise used.
   937  var _ context.Context
   938  var _ grpc.ClientConnInterface
   939  
   940  // This is a compile-time assertion to ensure that this generated file
   941  // is compatible with the grpc package it is being compiled against.
   942  const _ = grpc.SupportPackageIsVersion6
   943  
   944  // OperationsClient is the client API for Operations service.
   945  //
   946  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   947  type OperationsClient interface {
   948  	// Lists operations that match the specified filter in the request. If the
   949  	// server doesn't support this method, it returns `UNIMPLEMENTED`.
   950  	//
   951  	// NOTE: the `name` binding allows API services to override the binding
   952  	// to use different resource name schemes, such as `users/*/operations`. To
   953  	// override the binding, API services can add a binding such as
   954  	// `"/v1/{name=users/*}/operations"` to their service configuration.
   955  	// For backwards compatibility, the default name includes the operations
   956  	// collection id, however overriding users must ensure the name binding
   957  	// is the parent resource, without the operations collection id.
   958  	ListOperations(ctx context.Context, in *ListOperationsRequest, opts ...grpc.CallOption) (*ListOperationsResponse, error)
   959  	// Gets the latest state of a long-running operation.  Clients can use this
   960  	// method to poll the operation result at intervals as recommended by the API
   961  	// service.
   962  	GetOperation(ctx context.Context, in *GetOperationRequest, opts ...grpc.CallOption) (*Operation, error)
   963  	// Deletes a long-running operation. This method indicates that the client is
   964  	// no longer interested in the operation result. It does not cancel the
   965  	// operation. If the server doesn't support this method, it returns
   966  	// `google.rpc.Code.UNIMPLEMENTED`.
   967  	DeleteOperation(ctx context.Context, in *DeleteOperationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
   968  	// Starts asynchronous cancellation on a long-running operation.  The server
   969  	// makes a best effort to cancel the operation, but success is not
   970  	// guaranteed.  If the server doesn't support this method, it returns
   971  	// `google.rpc.Code.UNIMPLEMENTED`.  Clients can use
   972  	// [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
   973  	// other methods to check whether the cancellation succeeded or whether the
   974  	// operation completed despite cancellation. On successful cancellation,
   975  	// the operation is not deleted; instead, it becomes an operation with
   976  	// an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
   977  	// corresponding to `Code.CANCELLED`.
   978  	CancelOperation(ctx context.Context, in *CancelOperationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
   979  	// Waits until the specified long-running operation is done or reaches at most
   980  	// a specified timeout, returning the latest state.  If the operation is
   981  	// already done, the latest state is immediately returned.  If the timeout
   982  	// specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
   983  	// timeout is used.  If the server does not support this method, it returns
   984  	// `google.rpc.Code.UNIMPLEMENTED`.
   985  	// Note that this method is on a best-effort basis.  It may return the latest
   986  	// state before the specified timeout (including immediately), meaning even an
   987  	// immediate response is no guarantee that the operation is done.
   988  	WaitOperation(ctx context.Context, in *WaitOperationRequest, opts ...grpc.CallOption) (*Operation, error)
   989  }
   990  
   991  type operationsClient struct {
   992  	cc grpc.ClientConnInterface
   993  }
   994  
   995  func NewOperationsClient(cc grpc.ClientConnInterface) OperationsClient {
   996  	return &operationsClient{cc}
   997  }
   998  
   999  func (c *operationsClient) ListOperations(ctx context.Context, in *ListOperationsRequest, opts ...grpc.CallOption) (*ListOperationsResponse, error) {
  1000  	out := new(ListOperationsResponse)
  1001  	err := c.cc.Invoke(ctx, "/google.longrunning.Operations/ListOperations", in, out, opts...)
  1002  	if err != nil {
  1003  		return nil, err
  1004  	}
  1005  	return out, nil
  1006  }
  1007  
  1008  func (c *operationsClient) GetOperation(ctx context.Context, in *GetOperationRequest, opts ...grpc.CallOption) (*Operation, error) {
  1009  	out := new(Operation)
  1010  	err := c.cc.Invoke(ctx, "/google.longrunning.Operations/GetOperation", in, out, opts...)
  1011  	if err != nil {
  1012  		return nil, err
  1013  	}
  1014  	return out, nil
  1015  }
  1016  
  1017  func (c *operationsClient) DeleteOperation(ctx context.Context, in *DeleteOperationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  1018  	out := new(emptypb.Empty)
  1019  	err := c.cc.Invoke(ctx, "/google.longrunning.Operations/DeleteOperation", in, out, opts...)
  1020  	if err != nil {
  1021  		return nil, err
  1022  	}
  1023  	return out, nil
  1024  }
  1025  
  1026  func (c *operationsClient) CancelOperation(ctx context.Context, in *CancelOperationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  1027  	out := new(emptypb.Empty)
  1028  	err := c.cc.Invoke(ctx, "/google.longrunning.Operations/CancelOperation", in, out, opts...)
  1029  	if err != nil {
  1030  		return nil, err
  1031  	}
  1032  	return out, nil
  1033  }
  1034  
  1035  func (c *operationsClient) WaitOperation(ctx context.Context, in *WaitOperationRequest, opts ...grpc.CallOption) (*Operation, error) {
  1036  	out := new(Operation)
  1037  	err := c.cc.Invoke(ctx, "/google.longrunning.Operations/WaitOperation", in, out, opts...)
  1038  	if err != nil {
  1039  		return nil, err
  1040  	}
  1041  	return out, nil
  1042  }
  1043  
  1044  // OperationsServer is the server API for Operations service.
  1045  type OperationsServer interface {
  1046  	// Lists operations that match the specified filter in the request. If the
  1047  	// server doesn't support this method, it returns `UNIMPLEMENTED`.
  1048  	//
  1049  	// NOTE: the `name` binding allows API services to override the binding
  1050  	// to use different resource name schemes, such as `users/*/operations`. To
  1051  	// override the binding, API services can add a binding such as
  1052  	// `"/v1/{name=users/*}/operations"` to their service configuration.
  1053  	// For backwards compatibility, the default name includes the operations
  1054  	// collection id, however overriding users must ensure the name binding
  1055  	// is the parent resource, without the operations collection id.
  1056  	ListOperations(context.Context, *ListOperationsRequest) (*ListOperationsResponse, error)
  1057  	// Gets the latest state of a long-running operation.  Clients can use this
  1058  	// method to poll the operation result at intervals as recommended by the API
  1059  	// service.
  1060  	GetOperation(context.Context, *GetOperationRequest) (*Operation, error)
  1061  	// Deletes a long-running operation. This method indicates that the client is
  1062  	// no longer interested in the operation result. It does not cancel the
  1063  	// operation. If the server doesn't support this method, it returns
  1064  	// `google.rpc.Code.UNIMPLEMENTED`.
  1065  	DeleteOperation(context.Context, *DeleteOperationRequest) (*emptypb.Empty, error)
  1066  	// Starts asynchronous cancellation on a long-running operation.  The server
  1067  	// makes a best effort to cancel the operation, but success is not
  1068  	// guaranteed.  If the server doesn't support this method, it returns
  1069  	// `google.rpc.Code.UNIMPLEMENTED`.  Clients can use
  1070  	// [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
  1071  	// other methods to check whether the cancellation succeeded or whether the
  1072  	// operation completed despite cancellation. On successful cancellation,
  1073  	// the operation is not deleted; instead, it becomes an operation with
  1074  	// an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
  1075  	// corresponding to `Code.CANCELLED`.
  1076  	CancelOperation(context.Context, *CancelOperationRequest) (*emptypb.Empty, error)
  1077  	// Waits until the specified long-running operation is done or reaches at most
  1078  	// a specified timeout, returning the latest state.  If the operation is
  1079  	// already done, the latest state is immediately returned.  If the timeout
  1080  	// specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
  1081  	// timeout is used.  If the server does not support this method, it returns
  1082  	// `google.rpc.Code.UNIMPLEMENTED`.
  1083  	// Note that this method is on a best-effort basis.  It may return the latest
  1084  	// state before the specified timeout (including immediately), meaning even an
  1085  	// immediate response is no guarantee that the operation is done.
  1086  	WaitOperation(context.Context, *WaitOperationRequest) (*Operation, error)
  1087  }
  1088  
  1089  // UnimplementedOperationsServer can be embedded to have forward compatible implementations.
  1090  type UnimplementedOperationsServer struct {
  1091  }
  1092  
  1093  func (*UnimplementedOperationsServer) ListOperations(context.Context, *ListOperationsRequest) (*ListOperationsResponse, error) {
  1094  	return nil, status1.Errorf(codes.Unimplemented, "method ListOperations not implemented")
  1095  }
  1096  func (*UnimplementedOperationsServer) GetOperation(context.Context, *GetOperationRequest) (*Operation, error) {
  1097  	return nil, status1.Errorf(codes.Unimplemented, "method GetOperation not implemented")
  1098  }
  1099  func (*UnimplementedOperationsServer) DeleteOperation(context.Context, *DeleteOperationRequest) (*emptypb.Empty, error) {
  1100  	return nil, status1.Errorf(codes.Unimplemented, "method DeleteOperation not implemented")
  1101  }
  1102  func (*UnimplementedOperationsServer) CancelOperation(context.Context, *CancelOperationRequest) (*emptypb.Empty, error) {
  1103  	return nil, status1.Errorf(codes.Unimplemented, "method CancelOperation not implemented")
  1104  }
  1105  func (*UnimplementedOperationsServer) WaitOperation(context.Context, *WaitOperationRequest) (*Operation, error) {
  1106  	return nil, status1.Errorf(codes.Unimplemented, "method WaitOperation not implemented")
  1107  }
  1108  
  1109  func RegisterOperationsServer(s *grpc.Server, srv OperationsServer) {
  1110  	s.RegisterService(&_Operations_serviceDesc, srv)
  1111  }
  1112  
  1113  func _Operations_ListOperations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1114  	in := new(ListOperationsRequest)
  1115  	if err := dec(in); err != nil {
  1116  		return nil, err
  1117  	}
  1118  	if interceptor == nil {
  1119  		return srv.(OperationsServer).ListOperations(ctx, in)
  1120  	}
  1121  	info := &grpc.UnaryServerInfo{
  1122  		Server:     srv,
  1123  		FullMethod: "/google.longrunning.Operations/ListOperations",
  1124  	}
  1125  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1126  		return srv.(OperationsServer).ListOperations(ctx, req.(*ListOperationsRequest))
  1127  	}
  1128  	return interceptor(ctx, in, info, handler)
  1129  }
  1130  
  1131  func _Operations_GetOperation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1132  	in := new(GetOperationRequest)
  1133  	if err := dec(in); err != nil {
  1134  		return nil, err
  1135  	}
  1136  	if interceptor == nil {
  1137  		return srv.(OperationsServer).GetOperation(ctx, in)
  1138  	}
  1139  	info := &grpc.UnaryServerInfo{
  1140  		Server:     srv,
  1141  		FullMethod: "/google.longrunning.Operations/GetOperation",
  1142  	}
  1143  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1144  		return srv.(OperationsServer).GetOperation(ctx, req.(*GetOperationRequest))
  1145  	}
  1146  	return interceptor(ctx, in, info, handler)
  1147  }
  1148  
  1149  func _Operations_DeleteOperation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1150  	in := new(DeleteOperationRequest)
  1151  	if err := dec(in); err != nil {
  1152  		return nil, err
  1153  	}
  1154  	if interceptor == nil {
  1155  		return srv.(OperationsServer).DeleteOperation(ctx, in)
  1156  	}
  1157  	info := &grpc.UnaryServerInfo{
  1158  		Server:     srv,
  1159  		FullMethod: "/google.longrunning.Operations/DeleteOperation",
  1160  	}
  1161  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1162  		return srv.(OperationsServer).DeleteOperation(ctx, req.(*DeleteOperationRequest))
  1163  	}
  1164  	return interceptor(ctx, in, info, handler)
  1165  }
  1166  
  1167  func _Operations_CancelOperation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1168  	in := new(CancelOperationRequest)
  1169  	if err := dec(in); err != nil {
  1170  		return nil, err
  1171  	}
  1172  	if interceptor == nil {
  1173  		return srv.(OperationsServer).CancelOperation(ctx, in)
  1174  	}
  1175  	info := &grpc.UnaryServerInfo{
  1176  		Server:     srv,
  1177  		FullMethod: "/google.longrunning.Operations/CancelOperation",
  1178  	}
  1179  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1180  		return srv.(OperationsServer).CancelOperation(ctx, req.(*CancelOperationRequest))
  1181  	}
  1182  	return interceptor(ctx, in, info, handler)
  1183  }
  1184  
  1185  func _Operations_WaitOperation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1186  	in := new(WaitOperationRequest)
  1187  	if err := dec(in); err != nil {
  1188  		return nil, err
  1189  	}
  1190  	if interceptor == nil {
  1191  		return srv.(OperationsServer).WaitOperation(ctx, in)
  1192  	}
  1193  	info := &grpc.UnaryServerInfo{
  1194  		Server:     srv,
  1195  		FullMethod: "/google.longrunning.Operations/WaitOperation",
  1196  	}
  1197  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1198  		return srv.(OperationsServer).WaitOperation(ctx, req.(*WaitOperationRequest))
  1199  	}
  1200  	return interceptor(ctx, in, info, handler)
  1201  }
  1202  
  1203  var _Operations_serviceDesc = grpc.ServiceDesc{
  1204  	ServiceName: "google.longrunning.Operations",
  1205  	HandlerType: (*OperationsServer)(nil),
  1206  	Methods: []grpc.MethodDesc{
  1207  		{
  1208  			MethodName: "ListOperations",
  1209  			Handler:    _Operations_ListOperations_Handler,
  1210  		},
  1211  		{
  1212  			MethodName: "GetOperation",
  1213  			Handler:    _Operations_GetOperation_Handler,
  1214  		},
  1215  		{
  1216  			MethodName: "DeleteOperation",
  1217  			Handler:    _Operations_DeleteOperation_Handler,
  1218  		},
  1219  		{
  1220  			MethodName: "CancelOperation",
  1221  			Handler:    _Operations_CancelOperation_Handler,
  1222  		},
  1223  		{
  1224  			MethodName: "WaitOperation",
  1225  			Handler:    _Operations_WaitOperation_Handler,
  1226  		},
  1227  	},
  1228  	Streams:  []grpc.StreamDesc{},
  1229  	Metadata: "google/longrunning/operations.proto",
  1230  }
  1231  

View as plain text