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.
 
 
 

173 lines
8.4 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/cloud/automl/v1beta1/image.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/timestamp"
  8. import _ "google.golang.org/genproto/googleapis/api/annotations"
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  18. // Dataset metadata that is specific to image classification.
  19. type ImageClassificationDatasetMetadata struct {
  20. // Required.
  21. // Type of the classification problem.
  22. ClassificationType ClassificationType `protobuf:"varint,1,opt,name=classification_type,json=classificationType,proto3,enum=google.cloud.automl.v1beta1.ClassificationType" json:"classification_type,omitempty"`
  23. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  24. XXX_unrecognized []byte `json:"-"`
  25. XXX_sizecache int32 `json:"-"`
  26. }
  27. func (m *ImageClassificationDatasetMetadata) Reset() { *m = ImageClassificationDatasetMetadata{} }
  28. func (m *ImageClassificationDatasetMetadata) String() string { return proto.CompactTextString(m) }
  29. func (*ImageClassificationDatasetMetadata) ProtoMessage() {}
  30. func (*ImageClassificationDatasetMetadata) Descriptor() ([]byte, []int) {
  31. return fileDescriptor_image_1a3570ecfb03fa9e, []int{0}
  32. }
  33. func (m *ImageClassificationDatasetMetadata) XXX_Unmarshal(b []byte) error {
  34. return xxx_messageInfo_ImageClassificationDatasetMetadata.Unmarshal(m, b)
  35. }
  36. func (m *ImageClassificationDatasetMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  37. return xxx_messageInfo_ImageClassificationDatasetMetadata.Marshal(b, m, deterministic)
  38. }
  39. func (dst *ImageClassificationDatasetMetadata) XXX_Merge(src proto.Message) {
  40. xxx_messageInfo_ImageClassificationDatasetMetadata.Merge(dst, src)
  41. }
  42. func (m *ImageClassificationDatasetMetadata) XXX_Size() int {
  43. return xxx_messageInfo_ImageClassificationDatasetMetadata.Size(m)
  44. }
  45. func (m *ImageClassificationDatasetMetadata) XXX_DiscardUnknown() {
  46. xxx_messageInfo_ImageClassificationDatasetMetadata.DiscardUnknown(m)
  47. }
  48. var xxx_messageInfo_ImageClassificationDatasetMetadata proto.InternalMessageInfo
  49. func (m *ImageClassificationDatasetMetadata) GetClassificationType() ClassificationType {
  50. if m != nil {
  51. return m.ClassificationType
  52. }
  53. return ClassificationType_CLASSIFICATION_TYPE_UNSPECIFIED
  54. }
  55. // Model metadata for image classification.
  56. type ImageClassificationModelMetadata struct {
  57. // Optional. The ID of the `base` model. If it is specified, the new model
  58. // will be created based on the `base` model. Otherwise, the new model will be
  59. // created from scratch. The `base` model is expected to be in the same
  60. // `project` and `location` as the new model to create.
  61. BaseModelId string `protobuf:"bytes,1,opt,name=base_model_id,json=baseModelId,proto3" json:"base_model_id,omitempty"`
  62. // Required. The train budget of creating this model. The actual
  63. // `train_cost` will be equal or less than this value.
  64. TrainBudget int64 `protobuf:"varint,2,opt,name=train_budget,json=trainBudget,proto3" json:"train_budget,omitempty"`
  65. // Output only. The actual train cost of creating this model. If this
  66. // model is created from a `base` model, the train cost used to create the
  67. // `base` model are not included.
  68. TrainCost int64 `protobuf:"varint,3,opt,name=train_cost,json=trainCost,proto3" json:"train_cost,omitempty"`
  69. // Output only. The reason that this create model operation stopped,
  70. // e.g. BUDGET_REACHED, CONVERGED.
  71. StopReason string `protobuf:"bytes,5,opt,name=stop_reason,json=stopReason,proto3" json:"stop_reason,omitempty"`
  72. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  73. XXX_unrecognized []byte `json:"-"`
  74. XXX_sizecache int32 `json:"-"`
  75. }
  76. func (m *ImageClassificationModelMetadata) Reset() { *m = ImageClassificationModelMetadata{} }
  77. func (m *ImageClassificationModelMetadata) String() string { return proto.CompactTextString(m) }
  78. func (*ImageClassificationModelMetadata) ProtoMessage() {}
  79. func (*ImageClassificationModelMetadata) Descriptor() ([]byte, []int) {
  80. return fileDescriptor_image_1a3570ecfb03fa9e, []int{1}
  81. }
  82. func (m *ImageClassificationModelMetadata) XXX_Unmarshal(b []byte) error {
  83. return xxx_messageInfo_ImageClassificationModelMetadata.Unmarshal(m, b)
  84. }
  85. func (m *ImageClassificationModelMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  86. return xxx_messageInfo_ImageClassificationModelMetadata.Marshal(b, m, deterministic)
  87. }
  88. func (dst *ImageClassificationModelMetadata) XXX_Merge(src proto.Message) {
  89. xxx_messageInfo_ImageClassificationModelMetadata.Merge(dst, src)
  90. }
  91. func (m *ImageClassificationModelMetadata) XXX_Size() int {
  92. return xxx_messageInfo_ImageClassificationModelMetadata.Size(m)
  93. }
  94. func (m *ImageClassificationModelMetadata) XXX_DiscardUnknown() {
  95. xxx_messageInfo_ImageClassificationModelMetadata.DiscardUnknown(m)
  96. }
  97. var xxx_messageInfo_ImageClassificationModelMetadata proto.InternalMessageInfo
  98. func (m *ImageClassificationModelMetadata) GetBaseModelId() string {
  99. if m != nil {
  100. return m.BaseModelId
  101. }
  102. return ""
  103. }
  104. func (m *ImageClassificationModelMetadata) GetTrainBudget() int64 {
  105. if m != nil {
  106. return m.TrainBudget
  107. }
  108. return 0
  109. }
  110. func (m *ImageClassificationModelMetadata) GetTrainCost() int64 {
  111. if m != nil {
  112. return m.TrainCost
  113. }
  114. return 0
  115. }
  116. func (m *ImageClassificationModelMetadata) GetStopReason() string {
  117. if m != nil {
  118. return m.StopReason
  119. }
  120. return ""
  121. }
  122. func init() {
  123. proto.RegisterType((*ImageClassificationDatasetMetadata)(nil), "google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata")
  124. proto.RegisterType((*ImageClassificationModelMetadata)(nil), "google.cloud.automl.v1beta1.ImageClassificationModelMetadata")
  125. }
  126. func init() {
  127. proto.RegisterFile("google/cloud/automl/v1beta1/image.proto", fileDescriptor_image_1a3570ecfb03fa9e)
  128. }
  129. var fileDescriptor_image_1a3570ecfb03fa9e = []byte{
  130. // 359 bytes of a gzipped FileDescriptorProto
  131. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xc1, 0x4a, 0xc3, 0x40,
  132. 0x10, 0x86, 0x49, 0x8b, 0x42, 0xb7, 0xea, 0x21, 0x5e, 0x42, 0xab, 0xb4, 0xe6, 0x62, 0x4f, 0x59,
  133. 0xab, 0x47, 0x4f, 0x6d, 0x05, 0xe9, 0xa1, 0x50, 0x82, 0x78, 0x90, 0x42, 0x9c, 0x24, 0xdb, 0x65,
  134. 0x21, 0xc9, 0x84, 0xec, 0x44, 0xe8, 0x0b, 0x78, 0xf6, 0x35, 0x7c, 0x15, 0x9f, 0x4a, 0xb2, 0x1b,
  135. 0x84, 0x62, 0xe9, 0x71, 0xbf, 0x7c, 0xff, 0xec, 0x3f, 0x59, 0x76, 0x2b, 0x11, 0x65, 0x26, 0x78,
  136. 0x92, 0x61, 0x9d, 0x72, 0xa8, 0x09, 0xf3, 0x8c, 0x7f, 0x4c, 0x63, 0x41, 0x30, 0xe5, 0x2a, 0x07,
  137. 0x29, 0x82, 0xb2, 0x42, 0x42, 0x77, 0x68, 0xc5, 0xc0, 0x88, 0x81, 0x15, 0x83, 0x56, 0x1c, 0x5c,
  138. 0xb5, 0x53, 0xa0, 0x54, 0x1c, 0x8a, 0x02, 0x09, 0x48, 0x61, 0xa1, 0x6d, 0x74, 0x70, 0x77, 0xec,
  139. 0x8e, 0x24, 0x03, 0xad, 0xd5, 0x56, 0x25, 0x26, 0xd2, 0x26, 0x46, 0x6d, 0xc2, 0x9c, 0xe2, 0x7a,
  140. 0xcb, 0x49, 0xe5, 0x42, 0x13, 0xe4, 0xa5, 0x15, 0xfc, 0x4f, 0x87, 0xf9, 0xcb, 0xa6, 0xdd, 0x62,
  141. 0x2f, 0xfe, 0x04, 0x04, 0x5a, 0xd0, 0x4a, 0x10, 0xa4, 0x40, 0xe0, 0xbe, 0xb3, 0xcb, 0xfd, 0xf9,
  142. 0x11, 0xed, 0x4a, 0xe1, 0x39, 0x63, 0x67, 0x72, 0x71, 0xcf, 0x83, 0x23, 0x2b, 0x05, 0xfb, 0x83,
  143. 0x5f, 0x76, 0xa5, 0x08, 0xdd, 0xe4, 0x1f, 0xf3, 0xbf, 0x1d, 0x36, 0x3e, 0x50, 0x64, 0x85, 0xa9,
  144. 0xc8, 0xfe, 0x6a, 0xf8, 0xec, 0x3c, 0x06, 0x2d, 0xa2, 0xbc, 0xa1, 0x91, 0x4a, 0x4d, 0x81, 0x5e,
  145. 0xd8, 0x6f, 0xa0, 0x31, 0x97, 0xa9, 0x7b, 0xc3, 0xce, 0xa8, 0x02, 0x55, 0x44, 0x71, 0x9d, 0x4a,
  146. 0x41, 0x5e, 0x67, 0xec, 0x4c, 0xba, 0x61, 0xdf, 0xb0, 0xb9, 0x41, 0xee, 0x35, 0x63, 0x56, 0x49,
  147. 0x50, 0x93, 0xd7, 0x35, 0x42, 0xcf, 0x90, 0x05, 0x6a, 0x72, 0x47, 0xac, 0xaf, 0x09, 0xcb, 0xa8,
  148. 0x12, 0xa0, 0xb1, 0xf0, 0x4e, 0xcc, 0x1d, 0xac, 0x41, 0xa1, 0x21, 0xf3, 0x2f, 0x87, 0x8d, 0x12,
  149. 0xcc, 0x8f, 0xad, 0x3d, 0x67, 0x66, 0x99, 0x75, 0xf3, 0x93, 0xd7, 0xce, 0xdb, 0xac, 0x55, 0x25,
  150. 0x66, 0x50, 0xc8, 0x00, 0x2b, 0xc9, 0xa5, 0x28, 0xcc, 0x13, 0x70, 0xfb, 0x09, 0x4a, 0xa5, 0x0f,
  151. 0x3e, 0xec, 0xa3, 0x3d, 0xfe, 0x74, 0x86, 0xcf, 0x46, 0xdc, 0x2c, 0x1a, 0x69, 0x33, 0xab, 0x09,
  152. 0x57, 0xd9, 0xe6, 0xd5, 0x4a, 0xf1, 0xa9, 0x99, 0xf5, 0xf0, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x0c,
  153. 0x97, 0x73, 0xa0, 0x87, 0x02, 0x00, 0x00,
  154. }