operation.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/api/operation.proto
6
7 package api
8
9 import (
10 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 descriptorpb "google.golang.org/protobuf/types/descriptorpb"
13 reflect "reflect"
14 sync "sync"
15 unsafe "unsafe"
16 )
17
18 const (
19 // Verify that this generated code is sufficiently up-to-date.
20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
21 // Verify that runtime/protoimpl is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
23 )
24
25 // Operation is annotation for rpc that returns longrunning operation, describes
26 // message types that will be returned in metadata [google.protobuf.Any], and
27 // in response [google.protobuf.Any] (for successful operation).
28 type Operation struct {
29 state protoimpl.MessageState `protogen:"open.v1"`
30 // Optional. If present, rpc returns operation which metadata field will
31 // contains message of specified type.
32 Metadata string `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // Optional.
33 // Required. rpc returns operation, in case of success response will contains message of
34 // specified field.
35 Response string `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"` // Required.
36 unknownFields protoimpl.UnknownFields
37 sizeCache protoimpl.SizeCache
38 }
39
40 func (x *Operation) Reset() {
41 *x = Operation{}
42 mi := &file_yandex_cloud_api_operation_proto_msgTypes[0]
43 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
44 ms.StoreMessageInfo(mi)
45 }
46
47 func (x *Operation) String() string {
48 return protoimpl.X.MessageStringOf(x)
49 }
50
51 func (*Operation) ProtoMessage() {}
52
53 func (x *Operation) ProtoReflect() protoreflect.Message {
54 mi := &file_yandex_cloud_api_operation_proto_msgTypes[0]
55 if x != nil {
56 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
57 if ms.LoadMessageInfo() == nil {
58 ms.StoreMessageInfo(mi)
59 }
60 return ms
61 }
62 return mi.MessageOf(x)
63 }
64
65 // Deprecated: Use Operation.ProtoReflect.Descriptor instead.
66 func (*Operation) Descriptor() ([]byte, []int) {
67 return file_yandex_cloud_api_operation_proto_rawDescGZIP(), []int{0}
68 }
69
70 func (x *Operation) GetMetadata() string {
71 if x != nil {
72 return x.Metadata
73 }
74 return ""
75 }
76
77 func (x *Operation) GetResponse() string {
78 if x != nil {
79 return x.Response
80 }
81 return ""
82 }
83
84 var file_yandex_cloud_api_operation_proto_extTypes = []protoimpl.ExtensionInfo{
85 {
86 ExtendedType: (*descriptorpb.MethodOptions)(nil),
87 ExtensionType: (*Operation)(nil),
88 Field: 87334,
89 Name: "yandex.cloud.api.operation",
90 Tag: "bytes,87334,opt,name=operation",
91 Filename: "yandex/cloud/api/operation.proto",
92 },
93 }
94
95 // Extension fields to descriptorpb.MethodOptions.
96 var (
97 // optional yandex.cloud.api.Operation operation = 87334;
98 E_Operation = &file_yandex_cloud_api_operation_proto_extTypes[0]
99 )
100
101 var File_yandex_cloud_api_operation_proto protoreflect.FileDescriptor
102
103 const file_yandex_cloud_api_operation_proto_rawDesc = "" +
104 "\n" +
105 " yandex/cloud/api/operation.proto\x12\x10yandex.cloud.api\x1a google/protobuf/descriptor.proto\"C\n" +
106 "\tOperation\x12\x1a\n" +
107 "\bmetadata\x18\x01 \x01(\tR\bmetadata\x12\x1a\n" +
108 "\bresponse\x18\x02 \x01(\tR\bresponse:[\n" +
109 "\toperation\x12\x1e.google.protobuf.MethodOptions\x18\xa6\xaa\x05 \x01(\v2\x1b.yandex.cloud.api.OperationR\toperationB:Z8github.com/yandex-cloud/go-genproto/yandex/cloud/api;apib\x06proto3"
110
111 var (
112 file_yandex_cloud_api_operation_proto_rawDescOnce sync.Once
113 file_yandex_cloud_api_operation_proto_rawDescData []byte
114 )
115
116 func file_yandex_cloud_api_operation_proto_rawDescGZIP() []byte {
117 file_yandex_cloud_api_operation_proto_rawDescOnce.Do(func() {
118 file_yandex_cloud_api_operation_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_api_operation_proto_rawDesc), len(file_yandex_cloud_api_operation_proto_rawDesc)))
119 })
120 return file_yandex_cloud_api_operation_proto_rawDescData
121 }
122
123 var file_yandex_cloud_api_operation_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
124 var file_yandex_cloud_api_operation_proto_goTypes = []any{
125 (*Operation)(nil), // 0: yandex.cloud.api.Operation
126 (*descriptorpb.MethodOptions)(nil), // 1: google.protobuf.MethodOptions
127 }
128 var file_yandex_cloud_api_operation_proto_depIdxs = []int32{
129 1, // 0: yandex.cloud.api.operation:extendee -> google.protobuf.MethodOptions
130 0, // 1: yandex.cloud.api.operation:type_name -> yandex.cloud.api.Operation
131 2, // [2:2] is the sub-list for method output_type
132 2, // [2:2] is the sub-list for method input_type
133 1, // [1:2] is the sub-list for extension type_name
134 0, // [0:1] is the sub-list for extension extendee
135 0, // [0:0] is the sub-list for field type_name
136 }
137
138 func init() { file_yandex_cloud_api_operation_proto_init() }
139 func file_yandex_cloud_api_operation_proto_init() {
140 if File_yandex_cloud_api_operation_proto != nil {
141 return
142 }
143 type x struct{}
144 out := protoimpl.TypeBuilder{
145 File: protoimpl.DescBuilder{
146 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
147 RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_api_operation_proto_rawDesc), len(file_yandex_cloud_api_operation_proto_rawDesc)),
148 NumEnums: 0,
149 NumMessages: 1,
150 NumExtensions: 1,
151 NumServices: 0,
152 },
153 GoTypes: file_yandex_cloud_api_operation_proto_goTypes,
154 DependencyIndexes: file_yandex_cloud_api_operation_proto_depIdxs,
155 MessageInfos: file_yandex_cloud_api_operation_proto_msgTypes,
156 ExtensionInfos: file_yandex_cloud_api_operation_proto_extTypes,
157 }.Build()
158 File_yandex_cloud_api_operation_proto = out.File
159 file_yandex_cloud_api_operation_proto_goTypes = nil
160 file_yandex_cloud_api_operation_proto_depIdxs = nil
161 }
162