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.
 
 
 

227 lines
8.8 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/cloud/automl/v1beta1/annotation_payload.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 _ "google.golang.org/genproto/googleapis/api/annotations"
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  17. // Contains annotation information that is relevant to AutoML.
  18. type AnnotationPayload struct {
  19. // Output only . Additional information about the annotation
  20. // specific to the AutoML solution.
  21. //
  22. // Types that are valid to be assigned to Detail:
  23. // *AnnotationPayload_Translation
  24. // *AnnotationPayload_Classification
  25. Detail isAnnotationPayload_Detail `protobuf_oneof:"detail"`
  26. // Output only . The resource ID of the annotation spec that
  27. // this annotation pertains to. The annotation spec comes from either an
  28. // ancestor dataset, or the dataset that was used to train the model in use.
  29. AnnotationSpecId string `protobuf:"bytes,1,opt,name=annotation_spec_id,json=annotationSpecId,proto3" json:"annotation_spec_id,omitempty"`
  30. // Output only. The value of
  31. // [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
  32. // when the model was trained. Because this field returns a value at model
  33. // training time, for different models trained using the same dataset, the
  34. // returned value could be different as model owner could update the
  35. // display_name between any two model training.
  36. DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
  37. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  38. XXX_unrecognized []byte `json:"-"`
  39. XXX_sizecache int32 `json:"-"`
  40. }
  41. func (m *AnnotationPayload) Reset() { *m = AnnotationPayload{} }
  42. func (m *AnnotationPayload) String() string { return proto.CompactTextString(m) }
  43. func (*AnnotationPayload) ProtoMessage() {}
  44. func (*AnnotationPayload) Descriptor() ([]byte, []int) {
  45. return fileDescriptor_annotation_payload_8605e6a29f89bedf, []int{0}
  46. }
  47. func (m *AnnotationPayload) XXX_Unmarshal(b []byte) error {
  48. return xxx_messageInfo_AnnotationPayload.Unmarshal(m, b)
  49. }
  50. func (m *AnnotationPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  51. return xxx_messageInfo_AnnotationPayload.Marshal(b, m, deterministic)
  52. }
  53. func (dst *AnnotationPayload) XXX_Merge(src proto.Message) {
  54. xxx_messageInfo_AnnotationPayload.Merge(dst, src)
  55. }
  56. func (m *AnnotationPayload) XXX_Size() int {
  57. return xxx_messageInfo_AnnotationPayload.Size(m)
  58. }
  59. func (m *AnnotationPayload) XXX_DiscardUnknown() {
  60. xxx_messageInfo_AnnotationPayload.DiscardUnknown(m)
  61. }
  62. var xxx_messageInfo_AnnotationPayload proto.InternalMessageInfo
  63. type isAnnotationPayload_Detail interface {
  64. isAnnotationPayload_Detail()
  65. }
  66. type AnnotationPayload_Translation struct {
  67. Translation *TranslationAnnotation `protobuf:"bytes,2,opt,name=translation,proto3,oneof"`
  68. }
  69. type AnnotationPayload_Classification struct {
  70. Classification *ClassificationAnnotation `protobuf:"bytes,3,opt,name=classification,proto3,oneof"`
  71. }
  72. func (*AnnotationPayload_Translation) isAnnotationPayload_Detail() {}
  73. func (*AnnotationPayload_Classification) isAnnotationPayload_Detail() {}
  74. func (m *AnnotationPayload) GetDetail() isAnnotationPayload_Detail {
  75. if m != nil {
  76. return m.Detail
  77. }
  78. return nil
  79. }
  80. func (m *AnnotationPayload) GetTranslation() *TranslationAnnotation {
  81. if x, ok := m.GetDetail().(*AnnotationPayload_Translation); ok {
  82. return x.Translation
  83. }
  84. return nil
  85. }
  86. func (m *AnnotationPayload) GetClassification() *ClassificationAnnotation {
  87. if x, ok := m.GetDetail().(*AnnotationPayload_Classification); ok {
  88. return x.Classification
  89. }
  90. return nil
  91. }
  92. func (m *AnnotationPayload) GetAnnotationSpecId() string {
  93. if m != nil {
  94. return m.AnnotationSpecId
  95. }
  96. return ""
  97. }
  98. func (m *AnnotationPayload) GetDisplayName() string {
  99. if m != nil {
  100. return m.DisplayName
  101. }
  102. return ""
  103. }
  104. // XXX_OneofFuncs is for the internal use of the proto package.
  105. func (*AnnotationPayload) 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{}) {
  106. return _AnnotationPayload_OneofMarshaler, _AnnotationPayload_OneofUnmarshaler, _AnnotationPayload_OneofSizer, []interface{}{
  107. (*AnnotationPayload_Translation)(nil),
  108. (*AnnotationPayload_Classification)(nil),
  109. }
  110. }
  111. func _AnnotationPayload_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  112. m := msg.(*AnnotationPayload)
  113. // detail
  114. switch x := m.Detail.(type) {
  115. case *AnnotationPayload_Translation:
  116. b.EncodeVarint(2<<3 | proto.WireBytes)
  117. if err := b.EncodeMessage(x.Translation); err != nil {
  118. return err
  119. }
  120. case *AnnotationPayload_Classification:
  121. b.EncodeVarint(3<<3 | proto.WireBytes)
  122. if err := b.EncodeMessage(x.Classification); err != nil {
  123. return err
  124. }
  125. case nil:
  126. default:
  127. return fmt.Errorf("AnnotationPayload.Detail has unexpected type %T", x)
  128. }
  129. return nil
  130. }
  131. func _AnnotationPayload_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  132. m := msg.(*AnnotationPayload)
  133. switch tag {
  134. case 2: // detail.translation
  135. if wire != proto.WireBytes {
  136. return true, proto.ErrInternalBadWireType
  137. }
  138. msg := new(TranslationAnnotation)
  139. err := b.DecodeMessage(msg)
  140. m.Detail = &AnnotationPayload_Translation{msg}
  141. return true, err
  142. case 3: // detail.classification
  143. if wire != proto.WireBytes {
  144. return true, proto.ErrInternalBadWireType
  145. }
  146. msg := new(ClassificationAnnotation)
  147. err := b.DecodeMessage(msg)
  148. m.Detail = &AnnotationPayload_Classification{msg}
  149. return true, err
  150. default:
  151. return false, nil
  152. }
  153. }
  154. func _AnnotationPayload_OneofSizer(msg proto.Message) (n int) {
  155. m := msg.(*AnnotationPayload)
  156. // detail
  157. switch x := m.Detail.(type) {
  158. case *AnnotationPayload_Translation:
  159. s := proto.Size(x.Translation)
  160. n += 1 // tag and wire
  161. n += proto.SizeVarint(uint64(s))
  162. n += s
  163. case *AnnotationPayload_Classification:
  164. s := proto.Size(x.Classification)
  165. n += 1 // tag and wire
  166. n += proto.SizeVarint(uint64(s))
  167. n += s
  168. case nil:
  169. default:
  170. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  171. }
  172. return n
  173. }
  174. func init() {
  175. proto.RegisterType((*AnnotationPayload)(nil), "google.cloud.automl.v1beta1.AnnotationPayload")
  176. }
  177. func init() {
  178. proto.RegisterFile("google/cloud/automl/v1beta1/annotation_payload.proto", fileDescriptor_annotation_payload_8605e6a29f89bedf)
  179. }
  180. var fileDescriptor_annotation_payload_8605e6a29f89bedf = []byte{
  181. // 320 bytes of a gzipped FileDescriptorProto
  182. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x41, 0x4b, 0xc3, 0x30,
  183. 0x14, 0xc7, 0xed, 0xc4, 0xa1, 0x99, 0x88, 0xf6, 0x54, 0x36, 0xc1, 0xe9, 0x69, 0x07, 0x4d, 0xdd,
  184. 0xd4, 0x93, 0xa7, 0x6d, 0x07, 0xf5, 0xa0, 0x8c, 0x29, 0x3b, 0xc8, 0xa0, 0xbc, 0xb5, 0x31, 0x04,
  185. 0xd2, 0xbc, 0xb0, 0x64, 0xc2, 0xee, 0x7e, 0x17, 0xbf, 0x8b, 0x9f, 0x4a, 0x4c, 0x8a, 0x6b, 0x45,
  186. 0x7a, 0x4c, 0xde, 0xff, 0xf7, 0x7b, 0x2f, 0x79, 0xe4, 0x9a, 0x23, 0x72, 0xc9, 0xe2, 0x54, 0xe2,
  187. 0x2a, 0x8b, 0x61, 0x65, 0x31, 0x97, 0xf1, 0x7b, 0x7f, 0xc1, 0x2c, 0xf4, 0x63, 0x50, 0x0a, 0x2d,
  188. 0x58, 0x81, 0x2a, 0xd1, 0xb0, 0x96, 0x08, 0x19, 0xd5, 0x4b, 0xb4, 0x18, 0x76, 0x3c, 0x45, 0x1d,
  189. 0x45, 0x3d, 0x45, 0x0b, 0xaa, 0x7d, 0x5c, 0x28, 0x41, 0x8b, 0x92, 0xc1, 0x78, 0xb4, 0x7d, 0x59,
  190. 0xd7, 0x30, 0x95, 0x60, 0x8c, 0x78, 0x13, 0xa9, 0x43, 0x0a, 0xe2, 0xa2, 0x8e, 0xb0, 0x4b, 0x50,
  191. 0x46, 0x96, 0xe2, 0x67, 0x9f, 0x0d, 0x72, 0x34, 0xfc, 0x6d, 0x3b, 0xf1, 0x73, 0x87, 0x33, 0xd2,
  192. 0x2a, 0x45, 0xa3, 0x46, 0x37, 0xe8, 0xb5, 0x06, 0x03, 0x5a, 0xf3, 0x0e, 0xfa, 0xb2, 0xc9, 0x6f,
  193. 0x7c, 0xf7, 0x5b, 0xd3, 0xb2, 0x28, 0x4c, 0xc8, 0x41, 0x75, 0xe8, 0x68, 0xdb, 0xa9, 0x6f, 0x6a,
  194. 0xd5, 0xe3, 0x0a, 0x52, 0xb1, 0xff, 0xd1, 0x85, 0xe7, 0x24, 0x2c, 0xad, 0xc1, 0x68, 0x96, 0x26,
  195. 0x22, 0x8b, 0x82, 0x6e, 0xd0, 0xdb, 0x9b, 0x1e, 0x6e, 0x2a, 0xcf, 0x9a, 0xa5, 0x0f, 0x59, 0x78,
  196. 0x4a, 0xf6, 0x33, 0x61, 0xb4, 0x84, 0x75, 0xa2, 0x20, 0x67, 0xd1, 0x8e, 0xcb, 0xb5, 0x8a, 0xbb,
  197. 0x27, 0xc8, 0xd9, 0x68, 0x97, 0x34, 0x33, 0x66, 0x41, 0xc8, 0xd1, 0x47, 0x40, 0x4e, 0x52, 0xcc,
  198. 0xeb, 0x26, 0x9d, 0x04, 0xaf, 0xc3, 0xa2, 0xcc, 0x51, 0x82, 0xe2, 0x14, 0x97, 0x3c, 0xe6, 0x4c,
  199. 0xb9, 0xbf, 0x8e, 0x7d, 0x09, 0xb4, 0x30, 0xff, 0x6e, 0xe7, 0xd6, 0x1f, 0xbf, 0x1a, 0x9d, 0x3b,
  200. 0x17, 0x9c, 0x8f, 0x7f, 0x42, 0xf3, 0xe1, 0xca, 0xe2, 0xa3, 0x9c, 0xcf, 0x7c, 0x68, 0xd1, 0x74,
  201. 0xae, 0xab, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd5, 0x18, 0x90, 0x9a, 0x8b, 0x02, 0x00, 0x00,
  202. }