You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

249 lines
10 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/cloud/automl/v1beta1/operations.proto
  3. package automl // import "google.golang.org/genproto/googleapis/cloud/automl/v1beta1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "github.com/golang/protobuf/ptypes/empty"
  8. import timestamp "github.com/golang/protobuf/ptypes/timestamp"
  9. import _ "google.golang.org/genproto/googleapis/api/annotations"
  10. import status "google.golang.org/genproto/googleapis/rpc/status"
  11. // Reference imports to suppress errors if they are not otherwise used.
  12. var _ = proto.Marshal
  13. var _ = fmt.Errorf
  14. var _ = math.Inf
  15. // This is a compile-time assertion to ensure that this generated file
  16. // is compatible with the proto package it is being compiled against.
  17. // A compilation error at this line likely means your copy of the
  18. // proto package needs to be updated.
  19. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  20. // Metadata used across all long running operations returned by AutoML API.
  21. type OperationMetadata struct {
  22. // Ouptut only. Details of specific operation. Even if this field is empty,
  23. // the presence allows to distinguish different types of operations.
  24. //
  25. // Types that are valid to be assigned to Details:
  26. // *OperationMetadata_CreateModelDetails
  27. Details isOperationMetadata_Details `protobuf_oneof:"details"`
  28. // Output only. Progress of operation. Range: [0, 100].
  29. ProgressPercent int32 `protobuf:"varint,13,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"`
  30. // Output only. Partial failures encountered.
  31. // E.g. single files that couldn't be read.
  32. // This field should never exceed 20 entries.
  33. // Status details field will contain standard GCP error details.
  34. PartialFailures []*status.Status `protobuf:"bytes,2,rep,name=partial_failures,json=partialFailures,proto3" json:"partial_failures,omitempty"`
  35. // Output only. Time when the operation was created.
  36. CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
  37. // Output only. Time when the operation was updated for the last time.
  38. UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
  39. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  40. XXX_unrecognized []byte `json:"-"`
  41. XXX_sizecache int32 `json:"-"`
  42. }
  43. func (m *OperationMetadata) Reset() { *m = OperationMetadata{} }
  44. func (m *OperationMetadata) String() string { return proto.CompactTextString(m) }
  45. func (*OperationMetadata) ProtoMessage() {}
  46. func (*OperationMetadata) Descriptor() ([]byte, []int) {
  47. return fileDescriptor_operations_18c3abc801957895, []int{0}
  48. }
  49. func (m *OperationMetadata) XXX_Unmarshal(b []byte) error {
  50. return xxx_messageInfo_OperationMetadata.Unmarshal(m, b)
  51. }
  52. func (m *OperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  53. return xxx_messageInfo_OperationMetadata.Marshal(b, m, deterministic)
  54. }
  55. func (dst *OperationMetadata) XXX_Merge(src proto.Message) {
  56. xxx_messageInfo_OperationMetadata.Merge(dst, src)
  57. }
  58. func (m *OperationMetadata) XXX_Size() int {
  59. return xxx_messageInfo_OperationMetadata.Size(m)
  60. }
  61. func (m *OperationMetadata) XXX_DiscardUnknown() {
  62. xxx_messageInfo_OperationMetadata.DiscardUnknown(m)
  63. }
  64. var xxx_messageInfo_OperationMetadata proto.InternalMessageInfo
  65. type isOperationMetadata_Details interface {
  66. isOperationMetadata_Details()
  67. }
  68. type OperationMetadata_CreateModelDetails struct {
  69. CreateModelDetails *CreateModelOperationMetadata `protobuf:"bytes,10,opt,name=create_model_details,json=createModelDetails,proto3,oneof"`
  70. }
  71. func (*OperationMetadata_CreateModelDetails) isOperationMetadata_Details() {}
  72. func (m *OperationMetadata) GetDetails() isOperationMetadata_Details {
  73. if m != nil {
  74. return m.Details
  75. }
  76. return nil
  77. }
  78. func (m *OperationMetadata) GetCreateModelDetails() *CreateModelOperationMetadata {
  79. if x, ok := m.GetDetails().(*OperationMetadata_CreateModelDetails); ok {
  80. return x.CreateModelDetails
  81. }
  82. return nil
  83. }
  84. func (m *OperationMetadata) GetProgressPercent() int32 {
  85. if m != nil {
  86. return m.ProgressPercent
  87. }
  88. return 0
  89. }
  90. func (m *OperationMetadata) GetPartialFailures() []*status.Status {
  91. if m != nil {
  92. return m.PartialFailures
  93. }
  94. return nil
  95. }
  96. func (m *OperationMetadata) GetCreateTime() *timestamp.Timestamp {
  97. if m != nil {
  98. return m.CreateTime
  99. }
  100. return nil
  101. }
  102. func (m *OperationMetadata) GetUpdateTime() *timestamp.Timestamp {
  103. if m != nil {
  104. return m.UpdateTime
  105. }
  106. return nil
  107. }
  108. // XXX_OneofFuncs is for the internal use of the proto package.
  109. func (*OperationMetadata) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  110. return _OperationMetadata_OneofMarshaler, _OperationMetadata_OneofUnmarshaler, _OperationMetadata_OneofSizer, []interface{}{
  111. (*OperationMetadata_CreateModelDetails)(nil),
  112. }
  113. }
  114. func _OperationMetadata_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  115. m := msg.(*OperationMetadata)
  116. // details
  117. switch x := m.Details.(type) {
  118. case *OperationMetadata_CreateModelDetails:
  119. b.EncodeVarint(10<<3 | proto.WireBytes)
  120. if err := b.EncodeMessage(x.CreateModelDetails); err != nil {
  121. return err
  122. }
  123. case nil:
  124. default:
  125. return fmt.Errorf("OperationMetadata.Details has unexpected type %T", x)
  126. }
  127. return nil
  128. }
  129. func _OperationMetadata_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  130. m := msg.(*OperationMetadata)
  131. switch tag {
  132. case 10: // details.create_model_details
  133. if wire != proto.WireBytes {
  134. return true, proto.ErrInternalBadWireType
  135. }
  136. msg := new(CreateModelOperationMetadata)
  137. err := b.DecodeMessage(msg)
  138. m.Details = &OperationMetadata_CreateModelDetails{msg}
  139. return true, err
  140. default:
  141. return false, nil
  142. }
  143. }
  144. func _OperationMetadata_OneofSizer(msg proto.Message) (n int) {
  145. m := msg.(*OperationMetadata)
  146. // details
  147. switch x := m.Details.(type) {
  148. case *OperationMetadata_CreateModelDetails:
  149. s := proto.Size(x.CreateModelDetails)
  150. n += 1 // tag and wire
  151. n += proto.SizeVarint(uint64(s))
  152. n += s
  153. case nil:
  154. default:
  155. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  156. }
  157. return n
  158. }
  159. // Details of CreateModel operation.
  160. type CreateModelOperationMetadata struct {
  161. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  162. XXX_unrecognized []byte `json:"-"`
  163. XXX_sizecache int32 `json:"-"`
  164. }
  165. func (m *CreateModelOperationMetadata) Reset() { *m = CreateModelOperationMetadata{} }
  166. func (m *CreateModelOperationMetadata) String() string { return proto.CompactTextString(m) }
  167. func (*CreateModelOperationMetadata) ProtoMessage() {}
  168. func (*CreateModelOperationMetadata) Descriptor() ([]byte, []int) {
  169. return fileDescriptor_operations_18c3abc801957895, []int{1}
  170. }
  171. func (m *CreateModelOperationMetadata) XXX_Unmarshal(b []byte) error {
  172. return xxx_messageInfo_CreateModelOperationMetadata.Unmarshal(m, b)
  173. }
  174. func (m *CreateModelOperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  175. return xxx_messageInfo_CreateModelOperationMetadata.Marshal(b, m, deterministic)
  176. }
  177. func (dst *CreateModelOperationMetadata) XXX_Merge(src proto.Message) {
  178. xxx_messageInfo_CreateModelOperationMetadata.Merge(dst, src)
  179. }
  180. func (m *CreateModelOperationMetadata) XXX_Size() int {
  181. return xxx_messageInfo_CreateModelOperationMetadata.Size(m)
  182. }
  183. func (m *CreateModelOperationMetadata) XXX_DiscardUnknown() {
  184. xxx_messageInfo_CreateModelOperationMetadata.DiscardUnknown(m)
  185. }
  186. var xxx_messageInfo_CreateModelOperationMetadata proto.InternalMessageInfo
  187. func init() {
  188. proto.RegisterType((*OperationMetadata)(nil), "google.cloud.automl.v1beta1.OperationMetadata")
  189. proto.RegisterType((*CreateModelOperationMetadata)(nil), "google.cloud.automl.v1beta1.CreateModelOperationMetadata")
  190. }
  191. func init() {
  192. proto.RegisterFile("google/cloud/automl/v1beta1/operations.proto", fileDescriptor_operations_18c3abc801957895)
  193. }
  194. var fileDescriptor_operations_18c3abc801957895 = []byte{
  195. // 409 bytes of a gzipped FileDescriptorProto
  196. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x5f, 0x6b, 0xd4, 0x40,
  197. 0x14, 0xc5, 0xcd, 0xd6, 0x3f, 0x38, 0x8b, 0xb4, 0x06, 0xc1, 0xb0, 0x2d, 0x76, 0xe9, 0x8b, 0x2b,
  198. 0xc8, 0x0c, 0x5d, 0x9f, 0xa4, 0xf8, 0xd0, 0x56, 0xd4, 0x97, 0xc5, 0x12, 0xc5, 0x07, 0x59, 0x08,
  199. 0x77, 0x93, 0xbb, 0x21, 0x30, 0xc9, 0x0c, 0x33, 0x77, 0x16, 0x7c, 0xf7, 0xd3, 0xf9, 0x6d, 0xfc,
  200. 0x06, 0x92, 0x99, 0x89, 0x8a, 0x96, 0xec, 0xe3, 0xdc, 0xfb, 0x3b, 0x27, 0xe7, 0x1e, 0xc2, 0x5e,
  201. 0xd6, 0x4a, 0xd5, 0x12, 0x45, 0x29, 0x95, 0xab, 0x04, 0x38, 0x52, 0xad, 0x14, 0xbb, 0xf3, 0x0d,
  202. 0x12, 0x9c, 0x0b, 0xa5, 0xd1, 0x00, 0x35, 0xaa, 0xb3, 0x5c, 0x1b, 0x45, 0x2a, 0x3d, 0x0e, 0x34,
  203. 0xf7, 0x34, 0x0f, 0x34, 0x8f, 0xf4, 0xec, 0x24, 0x5a, 0x81, 0x6e, 0x04, 0x74, 0x9d, 0xa2, 0xbf,
  204. 0xa5, 0xb3, 0xe7, 0x63, 0x1f, 0x6a, 0x55, 0x85, 0x32, 0x82, 0xcb, 0xbd, 0x60, 0x81, 0x3b, 0x90,
  205. 0xce, 0xbb, 0x47, 0x4d, 0xcc, 0x25, 0xfc, 0x6b, 0xe3, 0xb6, 0x02, 0x5b, 0x4d, 0xdf, 0xe2, 0xf2,
  206. 0xf4, 0xdf, 0x25, 0x35, 0x2d, 0x5a, 0x82, 0x56, 0x47, 0xe0, 0x69, 0x04, 0x8c, 0x2e, 0x85, 0x25,
  207. 0x20, 0x17, 0x33, 0x9f, 0xfd, 0x9c, 0xb0, 0xc7, 0x1f, 0x87, 0x0e, 0x56, 0x48, 0x50, 0x01, 0x41,
  208. 0xda, 0xb2, 0x27, 0xa5, 0x41, 0x20, 0x2c, 0x42, 0x9a, 0x0a, 0x09, 0x1a, 0x69, 0x33, 0x36, 0x4f,
  209. 0x16, 0xd3, 0xe5, 0x6b, 0x3e, 0xd2, 0x11, 0xbf, 0xf6, 0xc2, 0x55, 0xaf, 0xfb, 0xcf, 0xf8, 0xc3,
  210. 0x9d, 0x3c, 0x2d, 0xff, 0xec, 0xdf, 0x06, 0xdb, 0xf4, 0x05, 0x3b, 0xd2, 0x46, 0xd5, 0x06, 0xad,
  211. 0x2d, 0x34, 0x9a, 0x12, 0x3b, 0xca, 0x1e, 0xcd, 0x93, 0xc5, 0xbd, 0xfc, 0x70, 0x98, 0xdf, 0x84,
  212. 0x71, 0xfa, 0x86, 0x1d, 0x69, 0x30, 0xd4, 0x80, 0x2c, 0xb6, 0xd0, 0x48, 0x67, 0xd0, 0x66, 0x93,
  213. 0xf9, 0xc1, 0x62, 0xba, 0x4c, 0x87, 0x54, 0x46, 0x97, 0xfc, 0x93, 0xbf, 0x31, 0x3f, 0x8c, 0xec,
  214. 0xbb, 0x88, 0xa6, 0x17, 0x6c, 0x1a, 0x0f, 0xeb, 0x1b, 0xca, 0x0e, 0xfc, 0x3d, 0xb3, 0x41, 0x39,
  215. 0xd4, 0xc7, 0x3f, 0x0f, 0xf5, 0xe5, 0x2c, 0xe0, 0xfd, 0xa0, 0x17, 0x3b, 0x5d, 0xfd, 0x16, 0xdf,
  216. 0xdd, 0x2f, 0x0e, 0x78, 0x3f, 0xb8, 0x7a, 0xc8, 0x1e, 0xc4, 0x16, 0xcf, 0x9e, 0xb1, 0x93, 0xb1,
  217. 0x92, 0xae, 0xbe, 0x27, 0xec, 0xb4, 0x54, 0xed, 0x58, 0xcb, 0x37, 0xc9, 0xd7, 0xcb, 0xb8, 0xae,
  218. 0x95, 0x84, 0xae, 0xe6, 0xca, 0xd4, 0xa2, 0xc6, 0xce, 0xa7, 0x10, 0x61, 0x05, 0xba, 0xb1, 0xb7,
  219. 0xfe, 0x63, 0x17, 0xe1, 0xf9, 0x63, 0x72, 0xfc, 0xde, 0x83, 0xeb, 0xeb, 0x1e, 0x5a, 0x5f, 0x3a,
  220. 0x52, 0x2b, 0xb9, 0xfe, 0x12, 0xa0, 0xcd, 0x7d, 0xef, 0xf5, 0xea, 0x57, 0x00, 0x00, 0x00, 0xff,
  221. 0xff, 0xa9, 0x8b, 0x31, 0xeb, 0x40, 0x03, 0x00, 0x00,
  222. }