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.
 
 
 

345 lines
13 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/cloud/automl/v1beta1/model.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 timestamp "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. // Deployment state of the model.
  19. type Model_DeploymentState int32
  20. const (
  21. // Should not be used, an un-set enum has this value by default.
  22. Model_DEPLOYMENT_STATE_UNSPECIFIED Model_DeploymentState = 0
  23. // Model is deployed.
  24. Model_DEPLOYED Model_DeploymentState = 1
  25. // Model is not deployed.
  26. Model_UNDEPLOYED Model_DeploymentState = 2
  27. )
  28. var Model_DeploymentState_name = map[int32]string{
  29. 0: "DEPLOYMENT_STATE_UNSPECIFIED",
  30. 1: "DEPLOYED",
  31. 2: "UNDEPLOYED",
  32. }
  33. var Model_DeploymentState_value = map[string]int32{
  34. "DEPLOYMENT_STATE_UNSPECIFIED": 0,
  35. "DEPLOYED": 1,
  36. "UNDEPLOYED": 2,
  37. }
  38. func (x Model_DeploymentState) String() string {
  39. return proto.EnumName(Model_DeploymentState_name, int32(x))
  40. }
  41. func (Model_DeploymentState) EnumDescriptor() ([]byte, []int) {
  42. return fileDescriptor_model_dfe5b816a702f30b, []int{0, 0}
  43. }
  44. // API proto representing a trained machine learning model.
  45. type Model struct {
  46. // Required.
  47. // The model metadata that is specific to the problem type.
  48. // Must match the metadata type of the dataset used to train the model.
  49. //
  50. // Types that are valid to be assigned to ModelMetadata:
  51. // *Model_ImageClassificationModelMetadata
  52. // *Model_TextClassificationModelMetadata
  53. // *Model_TranslationModelMetadata
  54. ModelMetadata isModel_ModelMetadata `protobuf_oneof:"model_metadata"`
  55. // Output only.
  56. // Resource name of the model.
  57. // Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
  58. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  59. // Required. The name of the model to show in the interface. The name can be
  60. // up to 32 characters
  61. // long and can consist only of ASCII Latin letters A-Z and a-z, underscores
  62. // (_), and ASCII digits 0-9.
  63. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
  64. // Required.
  65. // The resource ID of the dataset used to create the model. The dataset must
  66. // come from the
  67. // same ancestor project and location.
  68. DatasetId string `protobuf:"bytes,3,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"`
  69. // Output only.
  70. // Timestamp when this model was created.
  71. CreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
  72. // Output only.
  73. // Timestamp when this model was last updated.
  74. UpdateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
  75. // Output only. Deployment state of the model.
  76. DeploymentState Model_DeploymentState `protobuf:"varint,8,opt,name=deployment_state,json=deploymentState,proto3,enum=google.cloud.automl.v1beta1.Model_DeploymentState" json:"deployment_state,omitempty"`
  77. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  78. XXX_unrecognized []byte `json:"-"`
  79. XXX_sizecache int32 `json:"-"`
  80. }
  81. func (m *Model) Reset() { *m = Model{} }
  82. func (m *Model) String() string { return proto.CompactTextString(m) }
  83. func (*Model) ProtoMessage() {}
  84. func (*Model) Descriptor() ([]byte, []int) {
  85. return fileDescriptor_model_dfe5b816a702f30b, []int{0}
  86. }
  87. func (m *Model) XXX_Unmarshal(b []byte) error {
  88. return xxx_messageInfo_Model.Unmarshal(m, b)
  89. }
  90. func (m *Model) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  91. return xxx_messageInfo_Model.Marshal(b, m, deterministic)
  92. }
  93. func (dst *Model) XXX_Merge(src proto.Message) {
  94. xxx_messageInfo_Model.Merge(dst, src)
  95. }
  96. func (m *Model) XXX_Size() int {
  97. return xxx_messageInfo_Model.Size(m)
  98. }
  99. func (m *Model) XXX_DiscardUnknown() {
  100. xxx_messageInfo_Model.DiscardUnknown(m)
  101. }
  102. var xxx_messageInfo_Model proto.InternalMessageInfo
  103. type isModel_ModelMetadata interface {
  104. isModel_ModelMetadata()
  105. }
  106. type Model_ImageClassificationModelMetadata struct {
  107. ImageClassificationModelMetadata *ImageClassificationModelMetadata `protobuf:"bytes,13,opt,name=image_classification_model_metadata,json=imageClassificationModelMetadata,proto3,oneof"`
  108. }
  109. type Model_TextClassificationModelMetadata struct {
  110. TextClassificationModelMetadata *TextClassificationModelMetadata `protobuf:"bytes,14,opt,name=text_classification_model_metadata,json=textClassificationModelMetadata,proto3,oneof"`
  111. }
  112. type Model_TranslationModelMetadata struct {
  113. TranslationModelMetadata *TranslationModelMetadata `protobuf:"bytes,15,opt,name=translation_model_metadata,json=translationModelMetadata,proto3,oneof"`
  114. }
  115. func (*Model_ImageClassificationModelMetadata) isModel_ModelMetadata() {}
  116. func (*Model_TextClassificationModelMetadata) isModel_ModelMetadata() {}
  117. func (*Model_TranslationModelMetadata) isModel_ModelMetadata() {}
  118. func (m *Model) GetModelMetadata() isModel_ModelMetadata {
  119. if m != nil {
  120. return m.ModelMetadata
  121. }
  122. return nil
  123. }
  124. func (m *Model) GetImageClassificationModelMetadata() *ImageClassificationModelMetadata {
  125. if x, ok := m.GetModelMetadata().(*Model_ImageClassificationModelMetadata); ok {
  126. return x.ImageClassificationModelMetadata
  127. }
  128. return nil
  129. }
  130. func (m *Model) GetTextClassificationModelMetadata() *TextClassificationModelMetadata {
  131. if x, ok := m.GetModelMetadata().(*Model_TextClassificationModelMetadata); ok {
  132. return x.TextClassificationModelMetadata
  133. }
  134. return nil
  135. }
  136. func (m *Model) GetTranslationModelMetadata() *TranslationModelMetadata {
  137. if x, ok := m.GetModelMetadata().(*Model_TranslationModelMetadata); ok {
  138. return x.TranslationModelMetadata
  139. }
  140. return nil
  141. }
  142. func (m *Model) GetName() string {
  143. if m != nil {
  144. return m.Name
  145. }
  146. return ""
  147. }
  148. func (m *Model) GetDisplayName() string {
  149. if m != nil {
  150. return m.DisplayName
  151. }
  152. return ""
  153. }
  154. func (m *Model) GetDatasetId() string {
  155. if m != nil {
  156. return m.DatasetId
  157. }
  158. return ""
  159. }
  160. func (m *Model) GetCreateTime() *timestamp.Timestamp {
  161. if m != nil {
  162. return m.CreateTime
  163. }
  164. return nil
  165. }
  166. func (m *Model) GetUpdateTime() *timestamp.Timestamp {
  167. if m != nil {
  168. return m.UpdateTime
  169. }
  170. return nil
  171. }
  172. func (m *Model) GetDeploymentState() Model_DeploymentState {
  173. if m != nil {
  174. return m.DeploymentState
  175. }
  176. return Model_DEPLOYMENT_STATE_UNSPECIFIED
  177. }
  178. // XXX_OneofFuncs is for the internal use of the proto package.
  179. func (*Model) 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{}) {
  180. return _Model_OneofMarshaler, _Model_OneofUnmarshaler, _Model_OneofSizer, []interface{}{
  181. (*Model_ImageClassificationModelMetadata)(nil),
  182. (*Model_TextClassificationModelMetadata)(nil),
  183. (*Model_TranslationModelMetadata)(nil),
  184. }
  185. }
  186. func _Model_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  187. m := msg.(*Model)
  188. // model_metadata
  189. switch x := m.ModelMetadata.(type) {
  190. case *Model_ImageClassificationModelMetadata:
  191. b.EncodeVarint(13<<3 | proto.WireBytes)
  192. if err := b.EncodeMessage(x.ImageClassificationModelMetadata); err != nil {
  193. return err
  194. }
  195. case *Model_TextClassificationModelMetadata:
  196. b.EncodeVarint(14<<3 | proto.WireBytes)
  197. if err := b.EncodeMessage(x.TextClassificationModelMetadata); err != nil {
  198. return err
  199. }
  200. case *Model_TranslationModelMetadata:
  201. b.EncodeVarint(15<<3 | proto.WireBytes)
  202. if err := b.EncodeMessage(x.TranslationModelMetadata); err != nil {
  203. return err
  204. }
  205. case nil:
  206. default:
  207. return fmt.Errorf("Model.ModelMetadata has unexpected type %T", x)
  208. }
  209. return nil
  210. }
  211. func _Model_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  212. m := msg.(*Model)
  213. switch tag {
  214. case 13: // model_metadata.image_classification_model_metadata
  215. if wire != proto.WireBytes {
  216. return true, proto.ErrInternalBadWireType
  217. }
  218. msg := new(ImageClassificationModelMetadata)
  219. err := b.DecodeMessage(msg)
  220. m.ModelMetadata = &Model_ImageClassificationModelMetadata{msg}
  221. return true, err
  222. case 14: // model_metadata.text_classification_model_metadata
  223. if wire != proto.WireBytes {
  224. return true, proto.ErrInternalBadWireType
  225. }
  226. msg := new(TextClassificationModelMetadata)
  227. err := b.DecodeMessage(msg)
  228. m.ModelMetadata = &Model_TextClassificationModelMetadata{msg}
  229. return true, err
  230. case 15: // model_metadata.translation_model_metadata
  231. if wire != proto.WireBytes {
  232. return true, proto.ErrInternalBadWireType
  233. }
  234. msg := new(TranslationModelMetadata)
  235. err := b.DecodeMessage(msg)
  236. m.ModelMetadata = &Model_TranslationModelMetadata{msg}
  237. return true, err
  238. default:
  239. return false, nil
  240. }
  241. }
  242. func _Model_OneofSizer(msg proto.Message) (n int) {
  243. m := msg.(*Model)
  244. // model_metadata
  245. switch x := m.ModelMetadata.(type) {
  246. case *Model_ImageClassificationModelMetadata:
  247. s := proto.Size(x.ImageClassificationModelMetadata)
  248. n += 1 // tag and wire
  249. n += proto.SizeVarint(uint64(s))
  250. n += s
  251. case *Model_TextClassificationModelMetadata:
  252. s := proto.Size(x.TextClassificationModelMetadata)
  253. n += 1 // tag and wire
  254. n += proto.SizeVarint(uint64(s))
  255. n += s
  256. case *Model_TranslationModelMetadata:
  257. s := proto.Size(x.TranslationModelMetadata)
  258. n += 1 // tag and wire
  259. n += proto.SizeVarint(uint64(s))
  260. n += s
  261. case nil:
  262. default:
  263. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  264. }
  265. return n
  266. }
  267. func init() {
  268. proto.RegisterType((*Model)(nil), "google.cloud.automl.v1beta1.Model")
  269. proto.RegisterEnum("google.cloud.automl.v1beta1.Model_DeploymentState", Model_DeploymentState_name, Model_DeploymentState_value)
  270. }
  271. func init() {
  272. proto.RegisterFile("google/cloud/automl/v1beta1/model.proto", fileDescriptor_model_dfe5b816a702f30b)
  273. }
  274. var fileDescriptor_model_dfe5b816a702f30b = []byte{
  275. // 522 bytes of a gzipped FileDescriptorProto
  276. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xdf, 0x6e, 0x12, 0x41,
  277. 0x14, 0xc6, 0xbb, 0xa8, 0xb5, 0x1d, 0x2a, 0x90, 0xb9, 0xda, 0xd0, 0x1a, 0x10, 0x13, 0xe5, 0xc6,
  278. 0xdd, 0x14, 0xe3, 0x55, 0xf5, 0x82, 0xc2, 0xaa, 0x24, 0x82, 0x08, 0xd4, 0x44, 0x83, 0xd9, 0x0c,
  279. 0xec, 0x74, 0x33, 0xc9, 0xec, 0xce, 0x86, 0x3d, 0x6b, 0xda, 0x7b, 0xef, 0x4c, 0x7c, 0x17, 0x5f,
  280. 0xc3, 0xa7, 0x32, 0xf3, 0x07, 0x14, 0xa2, 0xc3, 0x1d, 0x73, 0xce, 0xef, 0x3b, 0xf3, 0xcd, 0xc7,
  281. 0x59, 0xf4, 0x34, 0x16, 0x22, 0xe6, 0xd4, 0x5f, 0x72, 0x51, 0x44, 0x3e, 0x29, 0x40, 0x24, 0xdc,
  282. 0xff, 0x7a, 0xbe, 0xa0, 0x40, 0xce, 0xfd, 0x44, 0x44, 0x94, 0x7b, 0xd9, 0x4a, 0x80, 0xc0, 0xa7,
  283. 0x1a, 0xf4, 0x14, 0xe8, 0x69, 0xd0, 0x33, 0x60, 0xfd, 0xcc, 0x4c, 0x21, 0x19, 0xf3, 0x49, 0x9a,
  284. 0x0a, 0x20, 0xc0, 0x44, 0x9a, 0x6b, 0x69, 0xdd, 0x7a, 0x07, 0x4b, 0x48, 0x4c, 0x0d, 0xf8, 0xc4,
  285. 0x06, 0x02, 0xbd, 0x01, 0xc3, 0x3d, 0xb3, 0x72, 0x2b, 0x92, 0xe6, 0x5c, 0x19, 0x30, 0x78, 0xc3,
  286. 0xe0, 0xea, 0xb4, 0x28, 0xae, 0x7d, 0x60, 0x09, 0xcd, 0x81, 0x24, 0x99, 0x06, 0x5a, 0x3f, 0x0f,
  287. 0xd1, 0xbd, 0xa1, 0x7c, 0x2b, 0xfe, 0xe1, 0xa0, 0xc7, 0xca, 0x51, 0xb8, 0xe4, 0x24, 0xcf, 0xd9,
  288. 0x35, 0x5b, 0xaa, 0x49, 0xa1, 0x8a, 0x22, 0x4c, 0x28, 0x90, 0x88, 0x00, 0x71, 0x1f, 0x34, 0x9d,
  289. 0x76, 0xb9, 0xf3, 0xca, 0xb3, 0x84, 0xe2, 0x0d, 0xe4, 0x9c, 0xde, 0xd6, 0x18, 0x75, 0xc9, 0xd0,
  290. 0x0c, 0x79, 0x7b, 0x30, 0x69, 0xb2, 0x3d, 0x0c, 0xfe, 0xee, 0xa0, 0x96, 0x7c, 0xf9, 0x1e, 0x3f,
  291. 0x15, 0xe5, 0xe7, 0xa5, 0xd5, 0xcf, 0x8c, 0xde, 0x80, 0xdd, 0x4e, 0x03, 0xec, 0x08, 0x2e, 0x50,
  292. 0xfd, 0xaf, 0x78, 0x77, 0x4d, 0x54, 0x95, 0x89, 0x17, 0x76, 0x13, 0x7f, 0xe4, 0xbb, 0xb7, 0xbb,
  293. 0xf0, 0x9f, 0x1e, 0xc6, 0xe8, 0x6e, 0x4a, 0x12, 0xea, 0x3a, 0x4d, 0xa7, 0x7d, 0x3c, 0x51, 0xbf,
  294. 0xf1, 0x23, 0x74, 0x12, 0xb1, 0x3c, 0xe3, 0xe4, 0x36, 0x54, 0xbd, 0x92, 0xea, 0x95, 0x4d, 0x6d,
  295. 0x24, 0x91, 0x87, 0x08, 0x49, 0x79, 0x4e, 0x21, 0x64, 0x91, 0x7b, 0x47, 0x01, 0xc7, 0xa6, 0x32,
  296. 0x88, 0xf0, 0x05, 0x2a, 0x2f, 0x57, 0x94, 0x00, 0x0d, 0xe5, 0x3e, 0xb8, 0xf7, 0x95, 0xfb, 0xfa,
  297. 0xda, 0xfd, 0x7a, 0x59, 0xbc, 0xd9, 0x7a, 0x59, 0x26, 0x48, 0xe3, 0xb2, 0x20, 0xc5, 0x45, 0x16,
  298. 0x6d, 0xc4, 0xe5, 0xfd, 0x62, 0x8d, 0x2b, 0xf1, 0x17, 0x54, 0x8b, 0x68, 0xc6, 0xc5, 0x6d, 0x42,
  299. 0x53, 0x08, 0x73, 0x20, 0x40, 0xdd, 0xa3, 0xa6, 0xd3, 0xae, 0x74, 0x3a, 0xd6, 0xf0, 0x54, 0x2a,
  300. 0x5e, 0x7f, 0x23, 0x9d, 0x4a, 0xe5, 0xa4, 0x1a, 0x6d, 0x17, 0x5a, 0x1f, 0x50, 0x75, 0x87, 0xc1,
  301. 0x4d, 0x74, 0xd6, 0x0f, 0xc6, 0xef, 0xde, 0x7f, 0x1a, 0x06, 0xa3, 0x59, 0x38, 0x9d, 0x75, 0x67,
  302. 0x41, 0x78, 0x35, 0x9a, 0x8e, 0x83, 0xde, 0xe0, 0xf5, 0x20, 0xe8, 0xd7, 0x0e, 0xf0, 0x09, 0x3a,
  303. 0xd2, 0x44, 0xd0, 0xaf, 0x39, 0xb8, 0x82, 0xd0, 0xd5, 0x68, 0x73, 0x2e, 0x5d, 0xd6, 0x50, 0x65,
  304. 0xfb, 0xcf, 0xbe, 0xfc, 0xe6, 0xa0, 0xc6, 0x52, 0x24, 0x36, 0xbf, 0x63, 0xe7, 0x73, 0xd7, 0xb4,
  305. 0x63, 0xc1, 0x49, 0x1a, 0x7b, 0x62, 0x15, 0xfb, 0x31, 0x4d, 0x55, 0x3c, 0xbe, 0x6e, 0x91, 0x8c,
  306. 0xe5, 0xff, 0xfc, 0x90, 0x2f, 0xf4, 0xf1, 0x57, 0xe9, 0xf4, 0x8d, 0x02, 0xe7, 0x3d, 0x09, 0xcd,
  307. 0xbb, 0x05, 0x88, 0x21, 0x9f, 0x7f, 0xd4, 0xd0, 0xe2, 0x50, 0xcd, 0x7a, 0xfe, 0x3b, 0x00, 0x00,
  308. 0xff, 0xff, 0x01, 0x63, 0x79, 0x4b, 0xc8, 0x04, 0x00, 0x00,
  309. }