blob: ce5389e90035d93d8b4bddf0371128342fb6c9aa [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/model.proto
package automl // import "google.golang.org/genproto/googleapis/cloud/automl/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Deployment state of the model.
type Model_DeploymentState int32
const (
// Should not be used, an un-set enum has this value by default.
Model_DEPLOYMENT_STATE_UNSPECIFIED Model_DeploymentState = 0
// Model is deployed.
Model_DEPLOYED Model_DeploymentState = 1
// Model is not deployed.
Model_UNDEPLOYED Model_DeploymentState = 2
)
var Model_DeploymentState_name = map[int32]string{
0: "DEPLOYMENT_STATE_UNSPECIFIED",
1: "DEPLOYED",
2: "UNDEPLOYED",
}
var Model_DeploymentState_value = map[string]int32{
"DEPLOYMENT_STATE_UNSPECIFIED": 0,
"DEPLOYED": 1,
"UNDEPLOYED": 2,
}
func (x Model_DeploymentState) String() string {
return proto.EnumName(Model_DeploymentState_name, int32(x))
}
func (Model_DeploymentState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_model_2836c0ea5c1ddbd5, []int{0, 0}
}
// API proto representing a trained machine learning model.
type Model struct {
// Required.
// The model metadata that is specific to the problem type.
// Must match the metadata type of the dataset used to train the model.
//
// Types that are valid to be assigned to ModelMetadata:
// *Model_ImageClassificationModelMetadata
// *Model_TextClassificationModelMetadata
// *Model_TranslationModelMetadata
ModelMetadata isModel_ModelMetadata `protobuf_oneof:"model_metadata"`
// Output only.
// Resource name of the model.
// Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The name of the model to show in the interface. The name can be
// up to 32 characters
// long and can consist only of ASCII Latin letters A-Z and a-z, underscores
// (_), and ASCII digits 0-9.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Required.
// The resource ID of the dataset used to create the model. The dataset must
// come from the
// same ancestor project and location.
DatasetId string `protobuf:"bytes,3,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"`
// Output only.
// Timestamp when this model was created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only.
// Timestamp when this model was last updated.
UpdateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. Deployment state of the model.
DeploymentState Model_DeploymentState `protobuf:"varint,8,opt,name=deployment_state,json=deploymentState,proto3,enum=google.cloud.automl.v1beta1.Model_DeploymentState" json:"deployment_state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Model) Reset() { *m = Model{} }
func (m *Model) String() string { return proto.CompactTextString(m) }
func (*Model) ProtoMessage() {}
func (*Model) Descriptor() ([]byte, []int) {
return fileDescriptor_model_2836c0ea5c1ddbd5, []int{0}
}
func (m *Model) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Model.Unmarshal(m, b)
}
func (m *Model) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Model.Marshal(b, m, deterministic)
}
func (dst *Model) XXX_Merge(src proto.Message) {
xxx_messageInfo_Model.Merge(dst, src)
}
func (m *Model) XXX_Size() int {
return xxx_messageInfo_Model.Size(m)
}
func (m *Model) XXX_DiscardUnknown() {
xxx_messageInfo_Model.DiscardUnknown(m)
}
var xxx_messageInfo_Model proto.InternalMessageInfo
type isModel_ModelMetadata interface {
isModel_ModelMetadata()
}
type Model_ImageClassificationModelMetadata struct {
ImageClassificationModelMetadata *ImageClassificationModelMetadata `protobuf:"bytes,13,opt,name=image_classification_model_metadata,json=imageClassificationModelMetadata,proto3,oneof"`
}
type Model_TextClassificationModelMetadata struct {
TextClassificationModelMetadata *TextClassificationModelMetadata `protobuf:"bytes,14,opt,name=text_classification_model_metadata,json=textClassificationModelMetadata,proto3,oneof"`
}
type Model_TranslationModelMetadata struct {
TranslationModelMetadata *TranslationModelMetadata `protobuf:"bytes,15,opt,name=translation_model_metadata,json=translationModelMetadata,proto3,oneof"`
}
func (*Model_ImageClassificationModelMetadata) isModel_ModelMetadata() {}
func (*Model_TextClassificationModelMetadata) isModel_ModelMetadata() {}
func (*Model_TranslationModelMetadata) isModel_ModelMetadata() {}
func (m *Model) GetModelMetadata() isModel_ModelMetadata {
if m != nil {
return m.ModelMetadata
}
return nil
}
func (m *Model) GetImageClassificationModelMetadata() *ImageClassificationModelMetadata {
if x, ok := m.GetModelMetadata().(*Model_ImageClassificationModelMetadata); ok {
return x.ImageClassificationModelMetadata
}
return nil
}
func (m *Model) GetTextClassificationModelMetadata() *TextClassificationModelMetadata {
if x, ok := m.GetModelMetadata().(*Model_TextClassificationModelMetadata); ok {
return x.TextClassificationModelMetadata
}
return nil
}
func (m *Model) GetTranslationModelMetadata() *TranslationModelMetadata {
if x, ok := m.GetModelMetadata().(*Model_TranslationModelMetadata); ok {
return x.TranslationModelMetadata
}
return nil
}
func (m *Model) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Model) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
func (m *Model) GetDatasetId() string {
if m != nil {
return m.DatasetId
}
return ""
}
func (m *Model) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *Model) GetUpdateTime() *timestamp.Timestamp {
if m != nil {
return m.UpdateTime
}
return nil
}
func (m *Model) GetDeploymentState() Model_DeploymentState {
if m != nil {
return m.DeploymentState
}
return Model_DEPLOYMENT_STATE_UNSPECIFIED
}
// XXX_OneofFuncs is for the internal use of the proto package.
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{}) {
return _Model_OneofMarshaler, _Model_OneofUnmarshaler, _Model_OneofSizer, []interface{}{
(*Model_ImageClassificationModelMetadata)(nil),
(*Model_TextClassificationModelMetadata)(nil),
(*Model_TranslationModelMetadata)(nil),
}
}
func _Model_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Model)
// model_metadata
switch x := m.ModelMetadata.(type) {
case *Model_ImageClassificationModelMetadata:
b.EncodeVarint(13<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ImageClassificationModelMetadata); err != nil {
return err
}
case *Model_TextClassificationModelMetadata:
b.EncodeVarint(14<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.TextClassificationModelMetadata); err != nil {
return err
}
case *Model_TranslationModelMetadata:
b.EncodeVarint(15<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.TranslationModelMetadata); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Model.ModelMetadata has unexpected type %T", x)
}
return nil
}
func _Model_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Model)
switch tag {
case 13: // model_metadata.image_classification_model_metadata
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ImageClassificationModelMetadata)
err := b.DecodeMessage(msg)
m.ModelMetadata = &Model_ImageClassificationModelMetadata{msg}
return true, err
case 14: // model_metadata.text_classification_model_metadata
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TextClassificationModelMetadata)
err := b.DecodeMessage(msg)
m.ModelMetadata = &Model_TextClassificationModelMetadata{msg}
return true, err
case 15: // model_metadata.translation_model_metadata
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TranslationModelMetadata)
err := b.DecodeMessage(msg)
m.ModelMetadata = &Model_TranslationModelMetadata{msg}
return true, err
default:
return false, nil
}
}
func _Model_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Model)
// model_metadata
switch x := m.ModelMetadata.(type) {
case *Model_ImageClassificationModelMetadata:
s := proto.Size(x.ImageClassificationModelMetadata)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Model_TextClassificationModelMetadata:
s := proto.Size(x.TextClassificationModelMetadata)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Model_TranslationModelMetadata:
s := proto.Size(x.TranslationModelMetadata)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
func init() {
proto.RegisterType((*Model)(nil), "google.cloud.automl.v1beta1.Model")
proto.RegisterEnum("google.cloud.automl.v1beta1.Model_DeploymentState", Model_DeploymentState_name, Model_DeploymentState_value)
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/model.proto", fileDescriptor_model_2836c0ea5c1ddbd5)
}
var fileDescriptor_model_2836c0ea5c1ddbd5 = []byte{
// 501 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xd1, 0x6e, 0xd3, 0x30,
0x14, 0x86, 0x97, 0x01, 0x63, 0x3b, 0x1d, 0x6d, 0xe5, 0xab, 0xa8, 0x0c, 0x35, 0x14, 0x09, 0x7a,
0x43, 0xa2, 0x15, 0x71, 0x35, 0xb8, 0xd8, 0xd6, 0x20, 0x2a, 0xd1, 0x52, 0xda, 0xec, 0x02, 0x24,
0x14, 0xb9, 0x89, 0x1b, 0x59, 0x4a, 0xe2, 0xa8, 0x39, 0x41, 0xdb, 0x33, 0x20, 0xf1, 0x2e, 0xbc,
0x21, 0x8a, 0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