1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package ml
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_OperationType int32
42
43 const (
44
45 OperationMetadata_OPERATION_TYPE_UNSPECIFIED OperationMetadata_OperationType = 0
46
47 OperationMetadata_CREATE_VERSION OperationMetadata_OperationType = 1
48
49 OperationMetadata_DELETE_VERSION OperationMetadata_OperationType = 2
50
51 OperationMetadata_DELETE_MODEL OperationMetadata_OperationType = 3
52 )
53
54
55 var (
56 OperationMetadata_OperationType_name = map[int32]string{
57 0: "OPERATION_TYPE_UNSPECIFIED",
58 1: "CREATE_VERSION",
59 2: "DELETE_VERSION",
60 3: "DELETE_MODEL",
61 }
62 OperationMetadata_OperationType_value = map[string]int32{
63 "OPERATION_TYPE_UNSPECIFIED": 0,
64 "CREATE_VERSION": 1,
65 "DELETE_VERSION": 2,
66 "DELETE_MODEL": 3,
67 }
68 )
69
70 func (x OperationMetadata_OperationType) Enum() *OperationMetadata_OperationType {
71 p := new(OperationMetadata_OperationType)
72 *p = x
73 return p
74 }
75
76 func (x OperationMetadata_OperationType) String() string {
77 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
78 }
79
80 func (OperationMetadata_OperationType) Descriptor() protoreflect.EnumDescriptor {
81 return file_google_cloud_ml_v1_operation_metadata_proto_enumTypes[0].Descriptor()
82 }
83
84 func (OperationMetadata_OperationType) Type() protoreflect.EnumType {
85 return &file_google_cloud_ml_v1_operation_metadata_proto_enumTypes[0]
86 }
87
88 func (x OperationMetadata_OperationType) Number() protoreflect.EnumNumber {
89 return protoreflect.EnumNumber(x)
90 }
91
92
93 func (OperationMetadata_OperationType) EnumDescriptor() ([]byte, []int) {
94 return file_google_cloud_ml_v1_operation_metadata_proto_rawDescGZIP(), []int{0, 0}
95 }
96
97
98 type OperationMetadata struct {
99 state protoimpl.MessageState
100 sizeCache protoimpl.SizeCache
101 unknownFields protoimpl.UnknownFields
102
103
104 CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
105
106 StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
107
108 EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
109
110 IsCancellationRequested bool `protobuf:"varint,4,opt,name=is_cancellation_requested,json=isCancellationRequested,proto3" json:"is_cancellation_requested,omitempty"`
111
112 OperationType OperationMetadata_OperationType `protobuf:"varint,5,opt,name=operation_type,json=operationType,proto3,enum=google.cloud.ml.v1.OperationMetadata_OperationType" json:"operation_type,omitempty"`
113
114 ModelName string `protobuf:"bytes,6,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"`
115
116 Version *Version `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"`
117 }
118
119 func (x *OperationMetadata) Reset() {
120 *x = OperationMetadata{}
121 if protoimpl.UnsafeEnabled {
122 mi := &file_google_cloud_ml_v1_operation_metadata_proto_msgTypes[0]
123 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
124 ms.StoreMessageInfo(mi)
125 }
126 }
127
128 func (x *OperationMetadata) String() string {
129 return protoimpl.X.MessageStringOf(x)
130 }
131
132 func (*OperationMetadata) ProtoMessage() {}
133
134 func (x *OperationMetadata) ProtoReflect() protoreflect.Message {
135 mi := &file_google_cloud_ml_v1_operation_metadata_proto_msgTypes[0]
136 if protoimpl.UnsafeEnabled && x != nil {
137 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
138 if ms.LoadMessageInfo() == nil {
139 ms.StoreMessageInfo(mi)
140 }
141 return ms
142 }
143 return mi.MessageOf(x)
144 }
145
146
147 func (*OperationMetadata) Descriptor() ([]byte, []int) {
148 return file_google_cloud_ml_v1_operation_metadata_proto_rawDescGZIP(), []int{0}
149 }
150
151 func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp {
152 if x != nil {
153 return x.CreateTime
154 }
155 return nil
156 }
157
158 func (x *OperationMetadata) GetStartTime() *timestamppb.Timestamp {
159 if x != nil {
160 return x.StartTime
161 }
162 return nil
163 }
164
165 func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp {
166 if x != nil {
167 return x.EndTime
168 }
169 return nil
170 }
171
172 func (x *OperationMetadata) GetIsCancellationRequested() bool {
173 if x != nil {
174 return x.IsCancellationRequested
175 }
176 return false
177 }
178
179 func (x *OperationMetadata) GetOperationType() OperationMetadata_OperationType {
180 if x != nil {
181 return x.OperationType
182 }
183 return OperationMetadata_OPERATION_TYPE_UNSPECIFIED
184 }
185
186 func (x *OperationMetadata) GetModelName() string {
187 if x != nil {
188 return x.ModelName
189 }
190 return ""
191 }
192
193 func (x *OperationMetadata) GetVersion() *Version {
194 if x != nil {
195 return x.Version
196 }
197 return nil
198 }
199
200 var File_google_cloud_ml_v1_operation_metadata_proto protoreflect.FileDescriptor
201
202 var file_google_cloud_ml_v1_operation_metadata_proto_rawDesc = []byte{
203 0x0a, 0x2b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6d,
204 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d,
205 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67,
206 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x6c, 0x2e, 0x76,
207 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e,
208 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
209 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6d, 0x6c,
210 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
211 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
212 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
213 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9b, 0x04, 0x0a, 0x11, 0x4f, 0x70, 0x65,
214 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3b,
215 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20,
216 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
217 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,
218 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x73,
219 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
220 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
221 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61,
222 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69,
223 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
224 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
225 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3a, 0x0a,
226 0x19, 0x69, 0x73, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e,
227 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08,
228 0x52, 0x17, 0x69, 0x73, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e,
229 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x5a, 0x0a, 0x0e, 0x6f, 0x70, 0x65,
230 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
231 0x0e, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
232 0x2e, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
233 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
234 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
235 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e,
236 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
237 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18,
238 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
239 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69,
240 0x6f, 0x6e, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x69, 0x0a, 0x0d, 0x4f,
241 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x1a,
242 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55,
243 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e,
244 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x01,
245 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49,
246 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x5f, 0x4d,
247 0x4f, 0x44, 0x45, 0x4c, 0x10, 0x03, 0x42, 0x6c, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f,
248 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x6c, 0x2e, 0x61, 0x70,
249 0x69, 0x2e, 0x76, 0x31, 0x42, 0x16, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d,
250 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x34,
251 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72,
252 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
253 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6d, 0x6c, 0x2f, 0x76,
254 0x31, 0x3b, 0x6d, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
255 }
256
257 var (
258 file_google_cloud_ml_v1_operation_metadata_proto_rawDescOnce sync.Once
259 file_google_cloud_ml_v1_operation_metadata_proto_rawDescData = file_google_cloud_ml_v1_operation_metadata_proto_rawDesc
260 )
261
262 func file_google_cloud_ml_v1_operation_metadata_proto_rawDescGZIP() []byte {
263 file_google_cloud_ml_v1_operation_metadata_proto_rawDescOnce.Do(func() {
264 file_google_cloud_ml_v1_operation_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_ml_v1_operation_metadata_proto_rawDescData)
265 })
266 return file_google_cloud_ml_v1_operation_metadata_proto_rawDescData
267 }
268
269 var file_google_cloud_ml_v1_operation_metadata_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
270 var file_google_cloud_ml_v1_operation_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
271 var file_google_cloud_ml_v1_operation_metadata_proto_goTypes = []interface{}{
272 (OperationMetadata_OperationType)(0),
273 (*OperationMetadata)(nil),
274 (*timestamppb.Timestamp)(nil),
275 (*Version)(nil),
276 }
277 var file_google_cloud_ml_v1_operation_metadata_proto_depIdxs = []int32{
278 2,
279 2,
280 2,
281 0,
282 3,
283 5,
284 5,
285 5,
286 5,
287 0,
288 }
289
290 func init() { file_google_cloud_ml_v1_operation_metadata_proto_init() }
291 func file_google_cloud_ml_v1_operation_metadata_proto_init() {
292 if File_google_cloud_ml_v1_operation_metadata_proto != nil {
293 return
294 }
295 file_google_cloud_ml_v1_model_service_proto_init()
296 if !protoimpl.UnsafeEnabled {
297 file_google_cloud_ml_v1_operation_metadata_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
298 switch v := v.(*OperationMetadata); i {
299 case 0:
300 return &v.state
301 case 1:
302 return &v.sizeCache
303 case 2:
304 return &v.unknownFields
305 default:
306 return nil
307 }
308 }
309 }
310 type x struct{}
311 out := protoimpl.TypeBuilder{
312 File: protoimpl.DescBuilder{
313 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
314 RawDescriptor: file_google_cloud_ml_v1_operation_metadata_proto_rawDesc,
315 NumEnums: 1,
316 NumMessages: 1,
317 NumExtensions: 0,
318 NumServices: 0,
319 },
320 GoTypes: file_google_cloud_ml_v1_operation_metadata_proto_goTypes,
321 DependencyIndexes: file_google_cloud_ml_v1_operation_metadata_proto_depIdxs,
322 EnumInfos: file_google_cloud_ml_v1_operation_metadata_proto_enumTypes,
323 MessageInfos: file_google_cloud_ml_v1_operation_metadata_proto_msgTypes,
324 }.Build()
325 File_google_cloud_ml_v1_operation_metadata_proto = out.File
326 file_google_cloud_ml_v1_operation_metadata_proto_rawDesc = nil
327 file_google_cloud_ml_v1_operation_metadata_proto_goTypes = nil
328 file_google_cloud_ml_v1_operation_metadata_proto_depIdxs = nil
329 }
330
View as plain text