1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package common
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 _ "google.golang.org/genproto/googleapis/api/annotations"
28 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
29 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
30 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
31 )
32
33 const (
34
35 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
36
37 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
38 )
39
40
41 type OperationMetadata struct {
42 state protoimpl.MessageState
43 sizeCache protoimpl.SizeCache
44 unknownFields protoimpl.UnknownFields
45
46
47 CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
48
49 EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
50
51 Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
52
53 Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"`
54
55 StatusDetail string `protobuf:"bytes,5,opt,name=status_detail,json=statusDetail,proto3" json:"status_detail,omitempty"`
56
57
58
59
60 CancelRequested bool `protobuf:"varint,6,opt,name=cancel_requested,json=cancelRequested,proto3" json:"cancel_requested,omitempty"`
61
62 ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
63 }
64
65 func (x *OperationMetadata) Reset() {
66 *x = OperationMetadata{}
67 if protoimpl.UnsafeEnabled {
68 mi := &file_google_cloud_common_operation_metadata_proto_msgTypes[0]
69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
70 ms.StoreMessageInfo(mi)
71 }
72 }
73
74 func (x *OperationMetadata) String() string {
75 return protoimpl.X.MessageStringOf(x)
76 }
77
78 func (*OperationMetadata) ProtoMessage() {}
79
80 func (x *OperationMetadata) ProtoReflect() protoreflect.Message {
81 mi := &file_google_cloud_common_operation_metadata_proto_msgTypes[0]
82 if protoimpl.UnsafeEnabled && x != nil {
83 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
84 if ms.LoadMessageInfo() == nil {
85 ms.StoreMessageInfo(mi)
86 }
87 return ms
88 }
89 return mi.MessageOf(x)
90 }
91
92
93 func (*OperationMetadata) Descriptor() ([]byte, []int) {
94 return file_google_cloud_common_operation_metadata_proto_rawDescGZIP(), []int{0}
95 }
96
97 func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp {
98 if x != nil {
99 return x.CreateTime
100 }
101 return nil
102 }
103
104 func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp {
105 if x != nil {
106 return x.EndTime
107 }
108 return nil
109 }
110
111 func (x *OperationMetadata) GetTarget() string {
112 if x != nil {
113 return x.Target
114 }
115 return ""
116 }
117
118 func (x *OperationMetadata) GetVerb() string {
119 if x != nil {
120 return x.Verb
121 }
122 return ""
123 }
124
125 func (x *OperationMetadata) GetStatusDetail() string {
126 if x != nil {
127 return x.StatusDetail
128 }
129 return ""
130 }
131
132 func (x *OperationMetadata) GetCancelRequested() bool {
133 if x != nil {
134 return x.CancelRequested
135 }
136 return false
137 }
138
139 func (x *OperationMetadata) GetApiVersion() string {
140 if x != nil {
141 return x.ApiVersion
142 }
143 return ""
144 }
145
146 var File_google_cloud_common_operation_metadata_proto protoreflect.FileDescriptor
147
148 var file_google_cloud_common_operation_metadata_proto_rawDesc = []byte{
149 0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
150 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
151 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13,
152 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d,
153 0x6d, 0x6f, 0x6e, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,
154 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70,
155 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
156 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e,
157 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc7, 0x02, 0x0a, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74,
158 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x0b, 0x63,
159 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
160 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
161 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41,
162 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3a, 0x0a,
163 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
164 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
165 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03,
166 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x06, 0x74, 0x61, 0x72,
167 0x67, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x06,
168 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x76, 0x65, 0x72, 0x62, 0x18, 0x04,
169 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x76, 0x65, 0x72, 0x62, 0x12,
170 0x28, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c,
171 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0c, 0x73, 0x74, 0x61,
172 0x74, 0x75, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x2e, 0x0a, 0x10, 0x63, 0x61, 0x6e,
173 0x63, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20,
174 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c,
175 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x24, 0x0a, 0x0b, 0x61, 0x70, 0x69,
176 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,
177 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x61, 0x70, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42,
178 0x56, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
179 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x6f,
180 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
181 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
182 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
183 0x3b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
184 }
185
186 var (
187 file_google_cloud_common_operation_metadata_proto_rawDescOnce sync.Once
188 file_google_cloud_common_operation_metadata_proto_rawDescData = file_google_cloud_common_operation_metadata_proto_rawDesc
189 )
190
191 func file_google_cloud_common_operation_metadata_proto_rawDescGZIP() []byte {
192 file_google_cloud_common_operation_metadata_proto_rawDescOnce.Do(func() {
193 file_google_cloud_common_operation_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_common_operation_metadata_proto_rawDescData)
194 })
195 return file_google_cloud_common_operation_metadata_proto_rawDescData
196 }
197
198 var file_google_cloud_common_operation_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
199 var file_google_cloud_common_operation_metadata_proto_goTypes = []interface{}{
200 (*OperationMetadata)(nil),
201 (*timestamppb.Timestamp)(nil),
202 }
203 var file_google_cloud_common_operation_metadata_proto_depIdxs = []int32{
204 1,
205 1,
206 2,
207 2,
208 2,
209 2,
210 0,
211 }
212
213 func init() { file_google_cloud_common_operation_metadata_proto_init() }
214 func file_google_cloud_common_operation_metadata_proto_init() {
215 if File_google_cloud_common_operation_metadata_proto != nil {
216 return
217 }
218 if !protoimpl.UnsafeEnabled {
219 file_google_cloud_common_operation_metadata_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
220 switch v := v.(*OperationMetadata); i {
221 case 0:
222 return &v.state
223 case 1:
224 return &v.sizeCache
225 case 2:
226 return &v.unknownFields
227 default:
228 return nil
229 }
230 }
231 }
232 type x struct{}
233 out := protoimpl.TypeBuilder{
234 File: protoimpl.DescBuilder{
235 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
236 RawDescriptor: file_google_cloud_common_operation_metadata_proto_rawDesc,
237 NumEnums: 0,
238 NumMessages: 1,
239 NumExtensions: 0,
240 NumServices: 0,
241 },
242 GoTypes: file_google_cloud_common_operation_metadata_proto_goTypes,
243 DependencyIndexes: file_google_cloud_common_operation_metadata_proto_depIdxs,
244 MessageInfos: file_google_cloud_common_operation_metadata_proto_msgTypes,
245 }.Build()
246 File_google_cloud_common_operation_metadata_proto = out.File
247 file_google_cloud_common_operation_metadata_proto_rawDesc = nil
248 file_google_cloud_common_operation_metadata_proto_goTypes = nil
249 file_google_cloud_common_operation_metadata_proto_depIdxs = nil
250 }
251
View as plain text