1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/cloud/ml/v1/operation_metadata.proto
6 import proto "github.com/golang/protobuf/proto"
9 import _ "google.golang.org/genproto/googleapis/api/annotations"
10 import google_protobuf2 "github.com/golang/protobuf/ptypes/timestamp"
12 // Reference imports to suppress errors if they are not otherwise used.
17 // The operation type.
18 type OperationMetadata_OperationType int32
21 // Unspecified operation type.
22 OperationMetadata_OPERATION_TYPE_UNSPECIFIED OperationMetadata_OperationType = 0
23 // An operation to create a new version.
24 OperationMetadata_CREATE_VERSION OperationMetadata_OperationType = 1
25 // An operation to delete an existing version.
26 OperationMetadata_DELETE_VERSION OperationMetadata_OperationType = 2
27 // An operation to delete an existing model.
28 OperationMetadata_DELETE_MODEL OperationMetadata_OperationType = 3
31 var OperationMetadata_OperationType_name = map[int32]string{
32 0: "OPERATION_TYPE_UNSPECIFIED",
37 var OperationMetadata_OperationType_value = map[string]int32{
38 "OPERATION_TYPE_UNSPECIFIED": 0,
44 func (x OperationMetadata_OperationType) String() string {
45 return proto.EnumName(OperationMetadata_OperationType_name, int32(x))
47 func (OperationMetadata_OperationType) EnumDescriptor() ([]byte, []int) {
48 return fileDescriptor2, []int{0, 0}
51 // Represents the metadata of the long-running operation.
52 type OperationMetadata struct {
53 // The time the operation was submitted.
54 CreateTime *google_protobuf2.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
55 // The time operation processing started.
56 StartTime *google_protobuf2.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
57 // The time operation processing completed.
58 EndTime *google_protobuf2.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
59 // Indicates whether a request to cancel this operation has been made.
60 IsCancellationRequested bool `protobuf:"varint,4,opt,name=is_cancellation_requested,json=isCancellationRequested" json:"is_cancellation_requested,omitempty"`
61 // The operation type.
62 OperationType OperationMetadata_OperationType `protobuf:"varint,5,opt,name=operation_type,json=operationType,enum=google.cloud.ml.v1.OperationMetadata_OperationType" json:"operation_type,omitempty"`
63 // Contains the name of the model associated with the operation.
64 ModelName string `protobuf:"bytes,6,opt,name=model_name,json=modelName" json:"model_name,omitempty"`
65 // Contains the version associated with the operation.
66 Version *Version `protobuf:"bytes,7,opt,name=version" json:"version,omitempty"`
69 func (m *OperationMetadata) Reset() { *m = OperationMetadata{} }
70 func (m *OperationMetadata) String() string { return proto.CompactTextString(m) }
71 func (*OperationMetadata) ProtoMessage() {}
72 func (*OperationMetadata) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
74 func (m *OperationMetadata) GetCreateTime() *google_protobuf2.Timestamp {
81 func (m *OperationMetadata) GetStartTime() *google_protobuf2.Timestamp {
88 func (m *OperationMetadata) GetEndTime() *google_protobuf2.Timestamp {
95 func (m *OperationMetadata) GetIsCancellationRequested() bool {
97 return m.IsCancellationRequested
102 func (m *OperationMetadata) GetOperationType() OperationMetadata_OperationType {
104 return m.OperationType
106 return OperationMetadata_OPERATION_TYPE_UNSPECIFIED
109 func (m *OperationMetadata) GetModelName() string {
116 func (m *OperationMetadata) GetVersion() *Version {
124 proto.RegisterType((*OperationMetadata)(nil), "google.cloud.ml.v1.OperationMetadata")
125 proto.RegisterEnum("google.cloud.ml.v1.OperationMetadata_OperationType", OperationMetadata_OperationType_name, OperationMetadata_OperationType_value)
128 func init() { proto.RegisterFile("google/cloud/ml/v1/operation_metadata.proto", fileDescriptor2) }
130 var fileDescriptor2 = []byte{
131 // 454 bytes of a gzipped FileDescriptorProto
132 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x5f, 0x6b, 0xdb, 0x30,
133 0x14, 0xc5, 0xe7, 0xb6, 0x6b, 0x1a, 0x75, 0x0d, 0x99, 0x1e, 0xb6, 0xcc, 0xfb, 0x17, 0xfa, 0x30,
134 0x02, 0x03, 0x99, 0xb4, 0xdb, 0xc3, 0xd6, 0xa7, 0x36, 0xd1, 0x20, 0xd0, 0xc6, 0xc6, 0xf5, 0x0a,
135 0xeb, 0x8b, 0x51, 0xed, 0x3b, 0x23, 0x90, 0x25, 0xcf, 0x52, 0x0c, 0xfd, 0x2c, 0xfb, 0xb2, 0x23,
136 0x92, 0x4d, 0x33, 0x52, 0xe8, 0xa3, 0xce, 0xfd, 0x9d, 0xab, 0xab, 0x7b, 0x84, 0x3e, 0x17, 0x4a,
137 0x15, 0x02, 0x82, 0x4c, 0xa8, 0x55, 0x1e, 0x94, 0x22, 0x68, 0xa6, 0x81, 0xaa, 0xa0, 0x66, 0x86,
138 0x2b, 0x99, 0x96, 0x60, 0x58, 0xce, 0x0c, 0x23, 0x55, 0xad, 0x8c, 0xc2, 0xd8, 0xc1, 0xc4, 0xc2,
139 0xa4, 0x14, 0xa4, 0x99, 0xfa, 0xef, 0xda, 0x06, 0xac, 0xe2, 0x01, 0x93, 0x52, 0x19, 0xeb, 0xd4,
140 0xce, 0xe1, 0x7f, 0x7a, 0xa4, 0x7d, 0xa9, 0x72, 0x10, 0xa9, 0x86, 0xba, 0xe1, 0x19, 0xb4, 0xdc,
141 0xc7, 0x96, 0xb3, 0xa7, 0xbb, 0xd5, 0xef, 0xc0, 0xf0, 0x12, 0xb4, 0x61, 0x65, 0xe5, 0x80, 0xe3,
142 0xbf, 0x7b, 0xe8, 0x65, 0xd8, 0xcd, 0x75, 0xd5, 0x8e, 0x85, 0xcf, 0xd0, 0x61, 0x56, 0x03, 0x33,
143 0x90, 0xae, 0xf9, 0x91, 0x37, 0xf6, 0x26, 0x87, 0x27, 0x3e, 0x69, 0xc7, 0xec, 0x9a, 0x91, 0xa4,
144 0x6b, 0x16, 0x23, 0x87, 0xaf, 0x05, 0xfc, 0x0d, 0x21, 0x6d, 0x58, 0x6d, 0x9c, 0x77, 0xe7, 0x49,
145 0x6f, 0xdf, 0xd2, 0xd6, 0xfa, 0x15, 0x1d, 0x80, 0xcc, 0x9d, 0x71, 0xf7, 0x49, 0x63,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