operation_service.pb.go raw

   1  // Code generated by protoc-gen-go. DO NOT EDIT.
   2  // versions:
   3  // 	protoc-gen-go v1.36.6
   4  // 	protoc        v3.21.12
   5  // source: yandex/cloud/operation/operation_service.proto
   6  
   7  package operation
   8  
   9  import (
  10  	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
  11  	_ "google.golang.org/genproto/googleapis/api/annotations"
  12  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  13  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  14  	reflect "reflect"
  15  	sync "sync"
  16  	unsafe "unsafe"
  17  )
  18  
  19  const (
  20  	// Verify that this generated code is sufficiently up-to-date.
  21  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  22  	// Verify that runtime/protoimpl is sufficiently up-to-date.
  23  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  24  )
  25  
  26  type GetOperationRequest struct {
  27  	state protoimpl.MessageState `protogen:"open.v1"`
  28  	// ID of the Operation resource to return.
  29  	OperationId   string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
  30  	unknownFields protoimpl.UnknownFields
  31  	sizeCache     protoimpl.SizeCache
  32  }
  33  
  34  func (x *GetOperationRequest) Reset() {
  35  	*x = GetOperationRequest{}
  36  	mi := &file_yandex_cloud_operation_operation_service_proto_msgTypes[0]
  37  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  38  	ms.StoreMessageInfo(mi)
  39  }
  40  
  41  func (x *GetOperationRequest) String() string {
  42  	return protoimpl.X.MessageStringOf(x)
  43  }
  44  
  45  func (*GetOperationRequest) ProtoMessage() {}
  46  
  47  func (x *GetOperationRequest) ProtoReflect() protoreflect.Message {
  48  	mi := &file_yandex_cloud_operation_operation_service_proto_msgTypes[0]
  49  	if x != nil {
  50  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  51  		if ms.LoadMessageInfo() == nil {
  52  			ms.StoreMessageInfo(mi)
  53  		}
  54  		return ms
  55  	}
  56  	return mi.MessageOf(x)
  57  }
  58  
  59  // Deprecated: Use GetOperationRequest.ProtoReflect.Descriptor instead.
  60  func (*GetOperationRequest) Descriptor() ([]byte, []int) {
  61  	return file_yandex_cloud_operation_operation_service_proto_rawDescGZIP(), []int{0}
  62  }
  63  
  64  func (x *GetOperationRequest) GetOperationId() string {
  65  	if x != nil {
  66  		return x.OperationId
  67  	}
  68  	return ""
  69  }
  70  
  71  type CancelOperationRequest struct {
  72  	state protoimpl.MessageState `protogen:"open.v1"`
  73  	// ID of the operation to cancel.
  74  	OperationId   string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
  75  	unknownFields protoimpl.UnknownFields
  76  	sizeCache     protoimpl.SizeCache
  77  }
  78  
  79  func (x *CancelOperationRequest) Reset() {
  80  	*x = CancelOperationRequest{}
  81  	mi := &file_yandex_cloud_operation_operation_service_proto_msgTypes[1]
  82  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  83  	ms.StoreMessageInfo(mi)
  84  }
  85  
  86  func (x *CancelOperationRequest) String() string {
  87  	return protoimpl.X.MessageStringOf(x)
  88  }
  89  
  90  func (*CancelOperationRequest) ProtoMessage() {}
  91  
  92  func (x *CancelOperationRequest) ProtoReflect() protoreflect.Message {
  93  	mi := &file_yandex_cloud_operation_operation_service_proto_msgTypes[1]
  94  	if x != nil {
  95  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  96  		if ms.LoadMessageInfo() == nil {
  97  			ms.StoreMessageInfo(mi)
  98  		}
  99  		return ms
 100  	}
 101  	return mi.MessageOf(x)
 102  }
 103  
 104  // Deprecated: Use CancelOperationRequest.ProtoReflect.Descriptor instead.
 105  func (*CancelOperationRequest) Descriptor() ([]byte, []int) {
 106  	return file_yandex_cloud_operation_operation_service_proto_rawDescGZIP(), []int{1}
 107  }
 108  
 109  func (x *CancelOperationRequest) GetOperationId() string {
 110  	if x != nil {
 111  		return x.OperationId
 112  	}
 113  	return ""
 114  }
 115  
 116  var File_yandex_cloud_operation_operation_service_proto protoreflect.FileDescriptor
 117  
 118  const file_yandex_cloud_operation_operation_service_proto_rawDesc = "" +
 119  	"\n" +
 120  	".yandex/cloud/operation/operation_service.proto\x12\x16yandex.cloud.operation\x1a\x1cgoogle/api/annotations.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\">\n" +
 121  	"\x13GetOperationRequest\x12'\n" +
 122  	"\foperation_id\x18\x01 \x01(\tB\x04\xe8\xc71\x01R\voperationId\"A\n" +
 123  	"\x16CancelOperationRequest\x12'\n" +
 124  	"\foperation_id\x18\x01 \x01(\tB\x04\xe8\xc71\x01R\voperationId2\x96\x02\n" +
 125  	"\x10OperationService\x12y\n" +
 126  	"\x03Get\x12+.yandex.cloud.operation.GetOperationRequest\x1a!.yandex.cloud.operation.Operation\"\"\x82\xd3\xe4\x93\x02\x1c\x12\x1a/operations/{operation_id}\x12\x86\x01\n" +
 127  	"\x06Cancel\x12..yandex.cloud.operation.CancelOperationRequest\x1a!.yandex.cloud.operation.Operation\")\x82\xd3\xe4\x93\x02#\x12!/operations/{operation_id}:cancelBb\n" +
 128  	"\x1ayandex.cloud.api.operationZDgithub.com/yandex-cloud/go-genproto/yandex/cloud/operation;operationb\x06proto3"
 129  
 130  var (
 131  	file_yandex_cloud_operation_operation_service_proto_rawDescOnce sync.Once
 132  	file_yandex_cloud_operation_operation_service_proto_rawDescData []byte
 133  )
 134  
 135  func file_yandex_cloud_operation_operation_service_proto_rawDescGZIP() []byte {
 136  	file_yandex_cloud_operation_operation_service_proto_rawDescOnce.Do(func() {
 137  		file_yandex_cloud_operation_operation_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_operation_operation_service_proto_rawDesc), len(file_yandex_cloud_operation_operation_service_proto_rawDesc)))
 138  	})
 139  	return file_yandex_cloud_operation_operation_service_proto_rawDescData
 140  }
 141  
 142  var file_yandex_cloud_operation_operation_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
 143  var file_yandex_cloud_operation_operation_service_proto_goTypes = []any{
 144  	(*GetOperationRequest)(nil),    // 0: yandex.cloud.operation.GetOperationRequest
 145  	(*CancelOperationRequest)(nil), // 1: yandex.cloud.operation.CancelOperationRequest
 146  	(*Operation)(nil),              // 2: yandex.cloud.operation.Operation
 147  }
 148  var file_yandex_cloud_operation_operation_service_proto_depIdxs = []int32{
 149  	0, // 0: yandex.cloud.operation.OperationService.Get:input_type -> yandex.cloud.operation.GetOperationRequest
 150  	1, // 1: yandex.cloud.operation.OperationService.Cancel:input_type -> yandex.cloud.operation.CancelOperationRequest
 151  	2, // 2: yandex.cloud.operation.OperationService.Get:output_type -> yandex.cloud.operation.Operation
 152  	2, // 3: yandex.cloud.operation.OperationService.Cancel:output_type -> yandex.cloud.operation.Operation
 153  	2, // [2:4] is the sub-list for method output_type
 154  	0, // [0:2] is the sub-list for method input_type
 155  	0, // [0:0] is the sub-list for extension type_name
 156  	0, // [0:0] is the sub-list for extension extendee
 157  	0, // [0:0] is the sub-list for field type_name
 158  }
 159  
 160  func init() { file_yandex_cloud_operation_operation_service_proto_init() }
 161  func file_yandex_cloud_operation_operation_service_proto_init() {
 162  	if File_yandex_cloud_operation_operation_service_proto != nil {
 163  		return
 164  	}
 165  	file_yandex_cloud_operation_operation_proto_init()
 166  	type x struct{}
 167  	out := protoimpl.TypeBuilder{
 168  		File: protoimpl.DescBuilder{
 169  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 170  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_operation_operation_service_proto_rawDesc), len(file_yandex_cloud_operation_operation_service_proto_rawDesc)),
 171  			NumEnums:      0,
 172  			NumMessages:   2,
 173  			NumExtensions: 0,
 174  			NumServices:   1,
 175  		},
 176  		GoTypes:           file_yandex_cloud_operation_operation_service_proto_goTypes,
 177  		DependencyIndexes: file_yandex_cloud_operation_operation_service_proto_depIdxs,
 178  		MessageInfos:      file_yandex_cloud_operation_operation_service_proto_msgTypes,
 179  	}.Build()
 180  	File_yandex_cloud_operation_operation_service_proto = out.File
 181  	file_yandex_cloud_operation_operation_service_proto_goTypes = nil
 182  	file_yandex_cloud_operation_operation_service_proto_depIdxs = nil
 183  }
 184