Bumping k8s dependencies to 1.13

This commit is contained in:
Cheng Xing
2018-11-16 14:08:25 -08:00
parent 305407125c
commit b4c0b68ec7
8002 changed files with 884099 additions and 276228 deletions

View File

@@ -0,0 +1,227 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/annotation_payload.proto
package automl
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
// 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
// Contains annotation information that is relevant to AutoML.
type AnnotationPayload struct {
// Output only . Additional information about the annotation
// specific to the AutoML solution.
//
// Types that are valid to be assigned to Detail:
// *AnnotationPayload_Translation
// *AnnotationPayload_Classification
Detail isAnnotationPayload_Detail `protobuf_oneof:"detail"`
// Output only . The resource ID of the annotation spec that
// this annotation pertains to. The annotation spec comes from either an
// ancestor dataset, or the dataset that was used to train the model in use.
AnnotationSpecId string `protobuf:"bytes,1,opt,name=annotation_spec_id,json=annotationSpecId,proto3" json:"annotation_spec_id,omitempty"`
// Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model
// was trained. Because this field returns a value at model training time,
// for different models trained using the same dataset, the returned value
// could be different as model owner could update the display_name between
// any two model training.
DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AnnotationPayload) Reset() { *m = AnnotationPayload{} }
func (m *AnnotationPayload) String() string { return proto.CompactTextString(m) }
func (*AnnotationPayload) ProtoMessage() {}
func (*AnnotationPayload) Descriptor() ([]byte, []int) {
return fileDescriptor_cb8fb684261d0460, []int{0}
}
func (m *AnnotationPayload) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AnnotationPayload.Unmarshal(m, b)
}
func (m *AnnotationPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AnnotationPayload.Marshal(b, m, deterministic)
}
func (m *AnnotationPayload) XXX_Merge(src proto.Message) {
xxx_messageInfo_AnnotationPayload.Merge(m, src)
}
func (m *AnnotationPayload) XXX_Size() int {
return xxx_messageInfo_AnnotationPayload.Size(m)
}
func (m *AnnotationPayload) XXX_DiscardUnknown() {
xxx_messageInfo_AnnotationPayload.DiscardUnknown(m)
}
var xxx_messageInfo_AnnotationPayload proto.InternalMessageInfo
type isAnnotationPayload_Detail interface {
isAnnotationPayload_Detail()
}
type AnnotationPayload_Translation struct {
Translation *TranslationAnnotation `protobuf:"bytes,2,opt,name=translation,proto3,oneof"`
}
type AnnotationPayload_Classification struct {
Classification *ClassificationAnnotation `protobuf:"bytes,3,opt,name=classification,proto3,oneof"`
}
func (*AnnotationPayload_Translation) isAnnotationPayload_Detail() {}
func (*AnnotationPayload_Classification) isAnnotationPayload_Detail() {}
func (m *AnnotationPayload) GetDetail() isAnnotationPayload_Detail {
if m != nil {
return m.Detail
}
return nil
}
func (m *AnnotationPayload) GetTranslation() *TranslationAnnotation {
if x, ok := m.GetDetail().(*AnnotationPayload_Translation); ok {
return x.Translation
}
return nil
}
func (m *AnnotationPayload) GetClassification() *ClassificationAnnotation {
if x, ok := m.GetDetail().(*AnnotationPayload_Classification); ok {
return x.Classification
}
return nil
}
func (m *AnnotationPayload) GetAnnotationSpecId() string {
if m != nil {
return m.AnnotationSpecId
}
return ""
}
func (m *AnnotationPayload) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
// XXX_OneofFuncs is for the internal use of the proto package.
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{}) {
return _AnnotationPayload_OneofMarshaler, _AnnotationPayload_OneofUnmarshaler, _AnnotationPayload_OneofSizer, []interface{}{
(*AnnotationPayload_Translation)(nil),
(*AnnotationPayload_Classification)(nil),
}
}
func _AnnotationPayload_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*AnnotationPayload)
// detail
switch x := m.Detail.(type) {
case *AnnotationPayload_Translation:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Translation); err != nil {
return err
}
case *AnnotationPayload_Classification:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Classification); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("AnnotationPayload.Detail has unexpected type %T", x)
}
return nil
}
func _AnnotationPayload_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*AnnotationPayload)
switch tag {
case 2: // detail.translation
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TranslationAnnotation)
err := b.DecodeMessage(msg)
m.Detail = &AnnotationPayload_Translation{msg}
return true, err
case 3: // detail.classification
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ClassificationAnnotation)
err := b.DecodeMessage(msg)
m.Detail = &AnnotationPayload_Classification{msg}
return true, err
default:
return false, nil
}
}
func _AnnotationPayload_OneofSizer(msg proto.Message) (n int) {
m := msg.(*AnnotationPayload)
// detail
switch x := m.Detail.(type) {
case *AnnotationPayload_Translation:
s := proto.Size(x.Translation)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *AnnotationPayload_Classification:
s := proto.Size(x.Classification)
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((*AnnotationPayload)(nil), "google.cloud.automl.v1beta1.AnnotationPayload")
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/annotation_payload.proto", fileDescriptor_cb8fb684261d0460)
}
var fileDescriptor_cb8fb684261d0460 = []byte{
// 297 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x41, 0x4b, 0x33, 0x31,
0x10, 0x86, 0xbf, 0xed, 0x87, 0x45, 0x53, 0x11, 0xdd, 0xd3, 0x52, 0x05, 0xab, 0xa7, 0x1e, 0x34,
0xb1, 0x55, 0x4f, 0x9e, 0x5a, 0x2f, 0x7a, 0x91, 0x52, 0xc5, 0x83, 0x97, 0x65, 0x9a, 0xa4, 0x21,
0x90, 0xcd, 0x84, 0x26, 0x15, 0xfa, 0x8b, 0xfc, 0x9b, 0x42, 0xb2, 0xd8, 0xad, 0xc8, 0x1e, 0x93,
0x79, 0x9f, 0x67, 0x26, 0x19, 0x72, 0xa7, 0x10, 0x95, 0x91, 0x8c, 0x1b, 0x5c, 0x0b, 0x06, 0xeb,
0x80, 0x95, 0x61, 0x9f, 0xa3, 0x85, 0x0c, 0x30, 0x62, 0x60, 0x2d, 0x06, 0x08, 0x1a, 0x6d, 0xe9,
0x60, 0x63, 0x10, 0x04, 0x75, 0x2b, 0x0c, 0x98, 0x9f, 0x26, 0x8a, 0x46, 0x8a, 0x26, 0x8a, 0xd6,
0x54, 0xff, 0xac, 0x56, 0x82, 0xd3, 0x0d, 0x83, 0x4f, 0x68, 0xff, 0xa6, 0xad, 0x21, 0x37, 0xe0,
0xbd, 0x5e, 0x6a, 0x1e, 0x91, 0x9a, 0xb8, 0x6e, 0x23, 0xc2, 0x0a, 0xac, 0x37, 0x8d, 0xf8, 0xe5,
0x57, 0x87, 0x9c, 0x4c, 0x7e, 0xda, 0xce, 0xd2, 0xdc, 0xf9, 0x3b, 0xe9, 0x35, 0xa2, 0x45, 0x67,
0x90, 0x0d, 0x7b, 0xe3, 0x31, 0x6d, 0x79, 0x07, 0x7d, 0xdb, 0xe6, 0xb7, 0xbe, 0xa7, 0x7f, 0xf3,
0xa6, 0x28, 0x2f, 0xc9, 0xd1, 0xee, 0xd0, 0xc5, 0xff, 0xa8, 0xbe, 0x6f, 0x55, 0x3f, 0xee, 0x20,
0x3b, 0xf6, 0x5f, 0xba, 0xfc, 0x8a, 0xe4, 0x8d, 0x35, 0x78, 0x27, 0x79, 0xa9, 0x45, 0x91, 0x0d,
0xb2, 0xe1, 0xc1, 0xfc, 0x78, 0x5b, 0x79, 0x75, 0x92, 0x3f, 0x8b, 0xfc, 0x82, 0x1c, 0x0a, 0xed,
0x9d, 0x81, 0x4d, 0x69, 0xa1, 0x92, 0xc5, 0x5e, 0xcc, 0xf5, 0xea, 0xbb, 0x17, 0xa8, 0xe4, 0x74,
0x9f, 0x74, 0x85, 0x0c, 0xa0, 0xcd, 0x74, 0x49, 0xce, 0x39, 0x56, 0x6d, 0x83, 0xce, 0xb2, 0x8f,
0x49, 0x5d, 0x56, 0x68, 0xc0, 0x2a, 0x8a, 0x2b, 0xc5, 0x94, 0xb4, 0xf1, 0xab, 0x59, 0x2a, 0x81,
0xd3, 0xfe, 0xcf, 0xe5, 0x3c, 0xa4, 0xe3, 0xa2, 0x1b, 0xd3, 0xb7, 0xdf, 0x01, 0x00, 0x00, 0xff,
0xff, 0x44, 0x63, 0x2f, 0x26, 0x6c, 0x02, 0x00, 0x00,
}

View File

@@ -0,0 +1,443 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/classification.proto
package automl
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
// 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
// Type of the classification problem.
type ClassificationType int32
const (
// Should not be used, an un-set enum has this value by default.
ClassificationType_CLASSIFICATION_TYPE_UNSPECIFIED ClassificationType = 0
// At most one label is allowed per example.
ClassificationType_MULTICLASS ClassificationType = 1
// Multiple labels are allowed for one example.
ClassificationType_MULTILABEL ClassificationType = 2
)
var ClassificationType_name = map[int32]string{
0: "CLASSIFICATION_TYPE_UNSPECIFIED",
1: "MULTICLASS",
2: "MULTILABEL",
}
var ClassificationType_value = map[string]int32{
"CLASSIFICATION_TYPE_UNSPECIFIED": 0,
"MULTICLASS": 1,
"MULTILABEL": 2,
}
func (x ClassificationType) String() string {
return proto.EnumName(ClassificationType_name, int32(x))
}
func (ClassificationType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_7b436fefe6ae5367, []int{0}
}
// Contains annotation details specific to classification.
type ClassificationAnnotation struct {
// Output only. A confidence estimate between 0.0 and 1.0. A higher value
// means greater confidence that the annotation is positive. If a user
// approves an annotation as negative or positive, the score value remains
// unchanged. If a user creates an annotation, the score is 0 for negative or
// 1 for positive.
Score float32 `protobuf:"fixed32,1,opt,name=score,proto3" json:"score,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClassificationAnnotation) Reset() { *m = ClassificationAnnotation{} }
func (m *ClassificationAnnotation) String() string { return proto.CompactTextString(m) }
func (*ClassificationAnnotation) ProtoMessage() {}
func (*ClassificationAnnotation) Descriptor() ([]byte, []int) {
return fileDescriptor_7b436fefe6ae5367, []int{0}
}
func (m *ClassificationAnnotation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClassificationAnnotation.Unmarshal(m, b)
}
func (m *ClassificationAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClassificationAnnotation.Marshal(b, m, deterministic)
}
func (m *ClassificationAnnotation) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClassificationAnnotation.Merge(m, src)
}
func (m *ClassificationAnnotation) XXX_Size() int {
return xxx_messageInfo_ClassificationAnnotation.Size(m)
}
func (m *ClassificationAnnotation) XXX_DiscardUnknown() {
xxx_messageInfo_ClassificationAnnotation.DiscardUnknown(m)
}
var xxx_messageInfo_ClassificationAnnotation proto.InternalMessageInfo
func (m *ClassificationAnnotation) GetScore() float32 {
if m != nil {
return m.Score
}
return 0
}
// Model evaluation metrics for classification problems.
// Visible only to v1beta1
type ClassificationEvaluationMetrics struct {
// Output only. The Area under precision recall curve metric.
AuPrc float32 `protobuf:"fixed32,1,opt,name=au_prc,json=auPrc,proto3" json:"au_prc,omitempty"`
// Output only. The Area under precision recall curve metric based on priors.
BaseAuPrc float32 `protobuf:"fixed32,2,opt,name=base_au_prc,json=baseAuPrc,proto3" json:"base_au_prc,omitempty"`
// Output only. Metrics that have confidence thresholds.
// Precision-recall curve can be derived from it.
ConfidenceMetricsEntry []*ClassificationEvaluationMetrics_ConfidenceMetricsEntry `protobuf:"bytes,3,rep,name=confidence_metrics_entry,json=confidenceMetricsEntry,proto3" json:"confidence_metrics_entry,omitempty"`
// Output only. Confusion matrix of the evaluation.
// Only set for MULTICLASS classification problems where number
// of labels is no more than 10.
// Only set for model level evaluation, not for evaluation per label.
ConfusionMatrix *ClassificationEvaluationMetrics_ConfusionMatrix `protobuf:"bytes,4,opt,name=confusion_matrix,json=confusionMatrix,proto3" json:"confusion_matrix,omitempty"`
// Output only. The annotation spec ids used for this evaluation.
AnnotationSpecId []string `protobuf:"bytes,5,rep,name=annotation_spec_id,json=annotationSpecId,proto3" json:"annotation_spec_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClassificationEvaluationMetrics) Reset() { *m = ClassificationEvaluationMetrics{} }
func (m *ClassificationEvaluationMetrics) String() string { return proto.CompactTextString(m) }
func (*ClassificationEvaluationMetrics) ProtoMessage() {}
func (*ClassificationEvaluationMetrics) Descriptor() ([]byte, []int) {
return fileDescriptor_7b436fefe6ae5367, []int{1}
}
func (m *ClassificationEvaluationMetrics) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClassificationEvaluationMetrics.Unmarshal(m, b)
}
func (m *ClassificationEvaluationMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClassificationEvaluationMetrics.Marshal(b, m, deterministic)
}
func (m *ClassificationEvaluationMetrics) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClassificationEvaluationMetrics.Merge(m, src)
}
func (m *ClassificationEvaluationMetrics) XXX_Size() int {
return xxx_messageInfo_ClassificationEvaluationMetrics.Size(m)
}
func (m *ClassificationEvaluationMetrics) XXX_DiscardUnknown() {
xxx_messageInfo_ClassificationEvaluationMetrics.DiscardUnknown(m)
}
var xxx_messageInfo_ClassificationEvaluationMetrics proto.InternalMessageInfo
func (m *ClassificationEvaluationMetrics) GetAuPrc() float32 {
if m != nil {
return m.AuPrc
}
return 0
}
func (m *ClassificationEvaluationMetrics) GetBaseAuPrc() float32 {
if m != nil {
return m.BaseAuPrc
}
return 0
}
func (m *ClassificationEvaluationMetrics) GetConfidenceMetricsEntry() []*ClassificationEvaluationMetrics_ConfidenceMetricsEntry {
if m != nil {
return m.ConfidenceMetricsEntry
}
return nil
}
func (m *ClassificationEvaluationMetrics) GetConfusionMatrix() *ClassificationEvaluationMetrics_ConfusionMatrix {
if m != nil {
return m.ConfusionMatrix
}
return nil
}
func (m *ClassificationEvaluationMetrics) GetAnnotationSpecId() []string {
if m != nil {
return m.AnnotationSpecId
}
return nil
}
// Metrics for a single confidence threshold.
type ClassificationEvaluationMetrics_ConfidenceMetricsEntry struct {
// Output only. The confidence threshold value used to compute the metrics.
ConfidenceThreshold float32 `protobuf:"fixed32,1,opt,name=confidence_threshold,json=confidenceThreshold,proto3" json:"confidence_threshold,omitempty"`
// Output only. Recall under the given confidence threshold.
Recall float32 `protobuf:"fixed32,2,opt,name=recall,proto3" json:"recall,omitempty"`
// Output only. Precision under the given confidence threshold.
Precision float32 `protobuf:"fixed32,3,opt,name=precision,proto3" json:"precision,omitempty"`
// Output only. The harmonic mean of recall and precision.
F1Score float32 `protobuf:"fixed32,4,opt,name=f1_score,json=f1Score,proto3" json:"f1_score,omitempty"`
// Output only. The recall when only considering the label that has the
// highest prediction score and not below the confidence threshold for each
// example.
RecallAt1 float32 `protobuf:"fixed32,5,opt,name=recall_at1,json=recallAt1,proto3" json:"recall_at1,omitempty"`
// Output only. The precision when only considering the label that has the
// highest predictionscore and not below the confidence threshold for each
// example.
PrecisionAt1 float32 `protobuf:"fixed32,6,opt,name=precision_at1,json=precisionAt1,proto3" json:"precision_at1,omitempty"`
// Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
F1ScoreAt1 float32 `protobuf:"fixed32,7,opt,name=f1_score_at1,json=f1ScoreAt1,proto3" json:"f1_score_at1,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) Reset() {
*m = ClassificationEvaluationMetrics_ConfidenceMetricsEntry{}
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) String() string {
return proto.CompactTextString(m)
}
func (*ClassificationEvaluationMetrics_ConfidenceMetricsEntry) ProtoMessage() {}
func (*ClassificationEvaluationMetrics_ConfidenceMetricsEntry) Descriptor() ([]byte, []int) {
return fileDescriptor_7b436fefe6ae5367, []int{1, 0}
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClassificationEvaluationMetrics_ConfidenceMetricsEntry.Unmarshal(m, b)
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClassificationEvaluationMetrics_ConfidenceMetricsEntry.Marshal(b, m, deterministic)
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClassificationEvaluationMetrics_ConfidenceMetricsEntry.Merge(m, src)
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) XXX_Size() int {
return xxx_messageInfo_ClassificationEvaluationMetrics_ConfidenceMetricsEntry.Size(m)
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) XXX_DiscardUnknown() {
xxx_messageInfo_ClassificationEvaluationMetrics_ConfidenceMetricsEntry.DiscardUnknown(m)
}
var xxx_messageInfo_ClassificationEvaluationMetrics_ConfidenceMetricsEntry proto.InternalMessageInfo
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetConfidenceThreshold() float32 {
if m != nil {
return m.ConfidenceThreshold
}
return 0
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetRecall() float32 {
if m != nil {
return m.Recall
}
return 0
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetPrecision() float32 {
if m != nil {
return m.Precision
}
return 0
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetF1Score() float32 {
if m != nil {
return m.F1Score
}
return 0
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetRecallAt1() float32 {
if m != nil {
return m.RecallAt1
}
return 0
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetPrecisionAt1() float32 {
if m != nil {
return m.PrecisionAt1
}
return 0
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetF1ScoreAt1() float32 {
if m != nil {
return m.F1ScoreAt1
}
return 0
}
// Confusion matrix of the model running the classification.
type ClassificationEvaluationMetrics_ConfusionMatrix struct {
// Output only. IDs of the annotation specs used in the confusion matrix.
AnnotationSpecId []string `protobuf:"bytes,1,rep,name=annotation_spec_id,json=annotationSpecId,proto3" json:"annotation_spec_id,omitempty"`
// Output only. Rows in the confusion matrix. The number of rows is equal to
// the size of `annotation_spec_id`.
// `row[i].value[j]` is the number of examples that have ground truth of the
// `annotation_spec_id[i]` and are predicted as `annotation_spec_id[j]` by
// the model being evaluated.
Row []*ClassificationEvaluationMetrics_ConfusionMatrix_Row `protobuf:"bytes,2,rep,name=row,proto3" json:"row,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix) Reset() {
*m = ClassificationEvaluationMetrics_ConfusionMatrix{}
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix) String() string {
return proto.CompactTextString(m)
}
func (*ClassificationEvaluationMetrics_ConfusionMatrix) ProtoMessage() {}
func (*ClassificationEvaluationMetrics_ConfusionMatrix) Descriptor() ([]byte, []int) {
return fileDescriptor_7b436fefe6ae5367, []int{1, 1}
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix.Unmarshal(m, b)
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix.Marshal(b, m, deterministic)
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix.Merge(m, src)
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix) XXX_Size() int {
return xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix.Size(m)
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix) XXX_DiscardUnknown() {
xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix.DiscardUnknown(m)
}
var xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix proto.InternalMessageInfo
func (m *ClassificationEvaluationMetrics_ConfusionMatrix) GetAnnotationSpecId() []string {
if m != nil {
return m.AnnotationSpecId
}
return nil
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix) GetRow() []*ClassificationEvaluationMetrics_ConfusionMatrix_Row {
if m != nil {
return m.Row
}
return nil
}
// Output only. A row in the confusion matrix.
type ClassificationEvaluationMetrics_ConfusionMatrix_Row struct {
// Output only. Value of the specific cell in the confusion matrix.
// The number of values each row is equal to the size of
// annotatin_spec_id.
ExampleCount []int32 `protobuf:"varint,1,rep,packed,name=example_count,json=exampleCount,proto3" json:"example_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix_Row) Reset() {
*m = ClassificationEvaluationMetrics_ConfusionMatrix_Row{}
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix_Row) String() string {
return proto.CompactTextString(m)
}
func (*ClassificationEvaluationMetrics_ConfusionMatrix_Row) ProtoMessage() {}
func (*ClassificationEvaluationMetrics_ConfusionMatrix_Row) Descriptor() ([]byte, []int) {
return fileDescriptor_7b436fefe6ae5367, []int{1, 1, 0}
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix_Row) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix_Row.Unmarshal(m, b)
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix_Row) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix_Row.Marshal(b, m, deterministic)
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix_Row) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix_Row.Merge(m, src)
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix_Row) XXX_Size() int {
return xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix_Row.Size(m)
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix_Row) XXX_DiscardUnknown() {
xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix_Row.DiscardUnknown(m)
}
var xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix_Row proto.InternalMessageInfo
func (m *ClassificationEvaluationMetrics_ConfusionMatrix_Row) GetExampleCount() []int32 {
if m != nil {
return m.ExampleCount
}
return nil
}
func init() {
proto.RegisterEnum("google.cloud.automl.v1beta1.ClassificationType", ClassificationType_name, ClassificationType_value)
proto.RegisterType((*ClassificationAnnotation)(nil), "google.cloud.automl.v1beta1.ClassificationAnnotation")
proto.RegisterType((*ClassificationEvaluationMetrics)(nil), "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics")
proto.RegisterType((*ClassificationEvaluationMetrics_ConfidenceMetricsEntry)(nil), "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry")
proto.RegisterType((*ClassificationEvaluationMetrics_ConfusionMatrix)(nil), "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix")
proto.RegisterType((*ClassificationEvaluationMetrics_ConfusionMatrix_Row)(nil), "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row")
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/classification.proto", fileDescriptor_7b436fefe6ae5367)
}
var fileDescriptor_7b436fefe6ae5367 = []byte{
// 583 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xcf, 0x4f, 0xdb, 0x3e,
0x14, 0xff, 0xa6, 0xa5, 0xe5, 0xcb, 0x83, 0x8d, 0xca, 0x30, 0x94, 0x75, 0x6c, 0x54, 0x70, 0xa9,
0xd0, 0x94, 0x10,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 0x0d, 0x54, 0x47, 0xb8, 0xd2, 0xe9, 0x7e, 0x37, 0x60, 0xd7, 0xfb,
0xa3, 0x6b, 0x34, 0xd6, 0x5f, 0x23, 0x9a, 0x40, 0x53, 0xf0, 0x85, 0xd9, 0x50, 0xff, 0xd9, 0xe8,
0x5f, 0x2e, 0xd8, 0x0a, 0xf8, 0x22, 0x28, 0xc3, 0xbb, 0xa7, 0xd0, 0x0c, 0xf8, 0xa2, 0x9c, 0x99,
0x3d, 0x90, 0x79, 0x96, 0x30, 0x4c, 0x79, 0x91, 0x4a, 0xd5, 0x53, 0x2b, 0xd8, 0xa9, 0x40, 0xaf,
0xc4, 0x4e, 0x6f, 0x01, 0xad, 0x9e, 0x33, 0x7e, 0xcc, 0x18, 0x3a, 0x81, 0x23, 0x6f, 0xe8, 0x86,
0xa1, 0x7f, 0xe9, 0x7b, 0xee, 0xd8, 0xff, 0x7c, 0x8d, 0xc7, 0xb7, 0xa3, 0x01, 0xbe, 0xb9, 0x0e,
0x47, 0x03, 0xcf, 0xbf, 0xf4, 0x07, 0x9f, 0x3a, 0xff, 0xa1, 0x97, 0x00, 0x57, 0x37, 0xc3, 0xb1,
0xaf, 0x94, 0x1d, 0xa3, 0xae, 0x87, 0xee, 0xc5, 0x60, 0xd8, 0x69, 0x5c, 0x3c, 0xc2, 0x11, 0xe5,
0xf3, 0xe7, 0x46, 0xbc, 0xd8, 0x5b, 0x3d, 0x7b, 0x54, 0xbe, 0x16, 0x5f, 0xdc, 0xca, 0x11, 0xf1,
0x84, 0xa4, 0x91, 0xc5, 0x45, 0x64, 0x47, 0x2c, 0x55, 0x2f, 0x89, 0xad, 0x29, 0x92, 0xc5, 0xf9,
0xda, 0x97, 0xeb, 0xa3, 0x2e, 0x27, 0x6d, 0xa5, 0xfe, 0xf0, 0x33, 0x00, 0x00, 0xff, 0xff, 0x22,
0xd4, 0x8f, 0x68, 0xe6, 0x04, 0x00, 0x00,
}

View File

@@ -0,0 +1,429 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/data_items.proto
package automl
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
// 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
// A representation of an image.
type Image struct {
// Input only. The data representing the image.
// For Predict calls [image_bytes][] must be set, as other options are not
// currently supported by prediction API. You can read the contents of an
// uploaded image by using the [content_uri][] field.
//
// Types that are valid to be assigned to Data:
// *Image_ImageBytes
// *Image_InputConfig
Data isImage_Data `protobuf_oneof:"data"`
// Output only. HTTP URI to the thumbnail image.
ThumbnailUri string `protobuf:"bytes,4,opt,name=thumbnail_uri,json=thumbnailUri,proto3" json:"thumbnail_uri,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Image) Reset() { *m = Image{} }
func (m *Image) String() string { return proto.CompactTextString(m) }
func (*Image) ProtoMessage() {}
func (*Image) Descriptor() ([]byte, []int) {
return fileDescriptor_bd1fd4e23d5f1ca3, []int{0}
}
func (m *Image) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Image.Unmarshal(m, b)
}
func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Image.Marshal(b, m, deterministic)
}
func (m *Image) XXX_Merge(src proto.Message) {
xxx_messageInfo_Image.Merge(m, src)
}
func (m *Image) XXX_Size() int {
return xxx_messageInfo_Image.Size(m)
}
func (m *Image) XXX_DiscardUnknown() {
xxx_messageInfo_Image.DiscardUnknown(m)
}
var xxx_messageInfo_Image proto.InternalMessageInfo
type isImage_Data interface {
isImage_Data()
}
type Image_ImageBytes struct {
ImageBytes []byte `protobuf:"bytes,1,opt,name=image_bytes,json=imageBytes,proto3,oneof"`
}
type Image_InputConfig struct {
InputConfig *InputConfig `protobuf:"bytes,6,opt,name=input_config,json=inputConfig,proto3,oneof"`
}
func (*Image_ImageBytes) isImage_Data() {}
func (*Image_InputConfig) isImage_Data() {}
func (m *Image) GetData() isImage_Data {
if m != nil {
return m.Data
}
return nil
}
func (m *Image) GetImageBytes() []byte {
if x, ok := m.GetData().(*Image_ImageBytes); ok {
return x.ImageBytes
}
return nil
}
func (m *Image) GetInputConfig() *InputConfig {
if x, ok := m.GetData().(*Image_InputConfig); ok {
return x.InputConfig
}
return nil
}
func (m *Image) GetThumbnailUri() string {
if m != nil {
return m.ThumbnailUri
}
return ""
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Image) 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 _Image_OneofMarshaler, _Image_OneofUnmarshaler, _Image_OneofSizer, []interface{}{
(*Image_ImageBytes)(nil),
(*Image_InputConfig)(nil),
}
}
func _Image_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Image)
// data
switch x := m.Data.(type) {
case *Image_ImageBytes:
b.EncodeVarint(1<<3 | proto.WireBytes)
b.EncodeRawBytes(x.ImageBytes)
case *Image_InputConfig:
b.EncodeVarint(6<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.InputConfig); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Image.Data has unexpected type %T", x)
}
return nil
}
func _Image_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Image)
switch tag {
case 1: // data.image_bytes
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.Data = &Image_ImageBytes{x}
return true, err
case 6: // data.input_config
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(InputConfig)
err := b.DecodeMessage(msg)
m.Data = &Image_InputConfig{msg}
return true, err
default:
return false, nil
}
}
func _Image_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Image)
// data
switch x := m.Data.(type) {
case *Image_ImageBytes:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.ImageBytes)))
n += len(x.ImageBytes)
case *Image_InputConfig:
s := proto.Size(x.InputConfig)
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
}
// A representation of a text snippet.
type TextSnippet struct {
// Required. The content of the text snippet as a string. Up to 250000
// characters long.
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
// The format of the source text. For example, "text/html" or
// "text/plain". If left blank the format is automatically determined from
// the type of the uploaded content. The default is "text/html". Up to 25000
// characters long.
MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
// Output only. HTTP URI where you can download the content.
ContentUri string `protobuf:"bytes,4,opt,name=content_uri,json=contentUri,proto3" json:"content_uri,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextSnippet) Reset() { *m = TextSnippet{} }
func (m *TextSnippet) String() string { return proto.CompactTextString(m) }
func (*TextSnippet) ProtoMessage() {}
func (*TextSnippet) Descriptor() ([]byte, []int) {
return fileDescriptor_bd1fd4e23d5f1ca3, []int{1}
}
func (m *TextSnippet) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextSnippet.Unmarshal(m, b)
}
func (m *TextSnippet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextSnippet.Marshal(b, m, deterministic)
}
func (m *TextSnippet) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextSnippet.Merge(m, src)
}
func (m *TextSnippet) XXX_Size() int {
return xxx_messageInfo_TextSnippet.Size(m)
}
func (m *TextSnippet) XXX_DiscardUnknown() {
xxx_messageInfo_TextSnippet.DiscardUnknown(m)
}
var xxx_messageInfo_TextSnippet proto.InternalMessageInfo
func (m *TextSnippet) GetContent() string {
if m != nil {
return m.Content
}
return ""
}
func (m *TextSnippet) GetMimeType() string {
if m != nil {
return m.MimeType
}
return ""
}
func (m *TextSnippet) GetContentUri() string {
if m != nil {
return m.ContentUri
}
return ""
}
// Example data used for training or prediction.
type ExamplePayload struct {
// Required. Input only. The example data.
//
// Types that are valid to be assigned to Payload:
// *ExamplePayload_Image
// *ExamplePayload_TextSnippet
Payload isExamplePayload_Payload `protobuf_oneof:"payload"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExamplePayload) Reset() { *m = ExamplePayload{} }
func (m *ExamplePayload) String() string { return proto.CompactTextString(m) }
func (*ExamplePayload) ProtoMessage() {}
func (*ExamplePayload) Descriptor() ([]byte, []int) {
return fileDescriptor_bd1fd4e23d5f1ca3, []int{2}
}
func (m *ExamplePayload) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExamplePayload.Unmarshal(m, b)
}
func (m *ExamplePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExamplePayload.Marshal(b, m, deterministic)
}
func (m *ExamplePayload) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExamplePayload.Merge(m, src)
}
func (m *ExamplePayload) XXX_Size() int {
return xxx_messageInfo_ExamplePayload.Size(m)
}
func (m *ExamplePayload) XXX_DiscardUnknown() {
xxx_messageInfo_ExamplePayload.DiscardUnknown(m)
}
var xxx_messageInfo_ExamplePayload proto.InternalMessageInfo
type isExamplePayload_Payload interface {
isExamplePayload_Payload()
}
type ExamplePayload_Image struct {
Image *Image `protobuf:"bytes,1,opt,name=image,proto3,oneof"`
}
type ExamplePayload_TextSnippet struct {
TextSnippet *TextSnippet `protobuf:"bytes,2,opt,name=text_snippet,json=textSnippet,proto3,oneof"`
}
func (*ExamplePayload_Image) isExamplePayload_Payload() {}
func (*ExamplePayload_TextSnippet) isExamplePayload_Payload() {}
func (m *ExamplePayload) GetPayload() isExamplePayload_Payload {
if m != nil {
return m.Payload
}
return nil
}
func (m *ExamplePayload) GetImage() *Image {
if x, ok := m.GetPayload().(*ExamplePayload_Image); ok {
return x.Image
}
return nil
}
func (m *ExamplePayload) GetTextSnippet() *TextSnippet {
if x, ok := m.GetPayload().(*ExamplePayload_TextSnippet); ok {
return x.TextSnippet
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*ExamplePayload) 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 _ExamplePayload_OneofMarshaler, _ExamplePayload_OneofUnmarshaler, _ExamplePayload_OneofSizer, []interface{}{
(*ExamplePayload_Image)(nil),
(*ExamplePayload_TextSnippet)(nil),
}
}
func _ExamplePayload_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*ExamplePayload)
// payload
switch x := m.Payload.(type) {
case *ExamplePayload_Image:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Image); err != nil {
return err
}
case *ExamplePayload_TextSnippet:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.TextSnippet); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("ExamplePayload.Payload has unexpected type %T", x)
}
return nil
}
func _ExamplePayload_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*ExamplePayload)
switch tag {
case 1: // payload.image
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Image)
err := b.DecodeMessage(msg)
m.Payload = &ExamplePayload_Image{msg}
return true, err
case 2: // payload.text_snippet
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TextSnippet)
err := b.DecodeMessage(msg)
m.Payload = &ExamplePayload_TextSnippet{msg}
return true, err
default:
return false, nil
}
}
func _ExamplePayload_OneofSizer(msg proto.Message) (n int) {
m := msg.(*ExamplePayload)
// payload
switch x := m.Payload.(type) {
case *ExamplePayload_Image:
s := proto.Size(x.Image)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *ExamplePayload_TextSnippet:
s := proto.Size(x.TextSnippet)
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((*Image)(nil), "google.cloud.automl.v1beta1.Image")
proto.RegisterType((*TextSnippet)(nil), "google.cloud.automl.v1beta1.TextSnippet")
proto.RegisterType((*ExamplePayload)(nil), "google.cloud.automl.v1beta1.ExamplePayload")
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/data_items.proto", fileDescriptor_bd1fd4e23d5f1ca3)
}
var fileDescriptor_bd1fd4e23d5f1ca3 = []byte{
// 381 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x3d, 0xcf, 0xd3, 0x30,
0x14, 0x85, 0x1b, 0xd4, 0x0f, 0xe2, 0x14, 0x06, 0x4f, 0x51, 0x8b, 0xd4, 0x52, 0x18, 0x32, 0xa0,
0x44, 0x2d, 0x1b, 0x4c, 0x04, 0x21, 0xb5, 0x03, 0x52, 0x15, 0xda, 0x85, 0x25, 0x72, 0x52, 0xd7,
0x58, 0x8a, 0x3f, 0x94, 0xdc, 0xa0, 0xe6, 0x0f, 0xf1, 0x3b, 0x91, 0xed, 0x40, 0x3b, 0xbc, 0xca,
0xbb, 0xe5, 0x9e, 0xfb, 0x5c, 0xdf, 0xe3, 0x13, 0xa3, 0x0f, 0x4c, 0x29, 0x56, 0xd1, 0xa4, 0xac,
0x54, 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0x14, 0xf4, 0xdc, 0xc3, 0x42, 0xd4, 0x4b,
0xe7, 0x9a, 0x9b, 0x3c, 0x5e, 0x7f, 0xbb, 0x11, 0xa1, 0x2b, 0x7a, 0x24, 0x5d, 0xa5, 0xc8, 0x05,
0x7f, 0x42, 0x13, 0x9b, 0x81, 0x5d, 0x14, 0xec, 0x36, 0xc3, 0xd7, 0x35, 0xe4, 0x7e, 0x94, 0xb9,
0x11, 0x93, 0x18, 0xd0, 0x1b, 0xe4, 0x8d, 0xb3, 0x6d, 0xfd, 0x3c, 0x97, 0xd8, 0xc3, 0x35, 0x4d,
0x62, 0x70, 0x2f, 0x53, 0x1f, 0xcd, 0xb4, 0x73, 0x95, 0x5e, 0xd1, 0xaa, 0x54, 0x62, 0xe8, 0xa0,
0xa3, 0xf7, 0xf3, 0x4b, 0xdf, 0x66, 0xaa, 0x22, 0x92, 0xc5, 0xaa, 0x66, 0x09, 0xa3, 0xd2, 0xfe,
0xf9, 0xc4, 0xb5, 0x88, 0xe6, 0xcd, 0x93, 0x4f, 0xe4, 0xb3, 0x2b, 0x8b, 0xa9, 0xa5, 0x3f, 0xfe,
0x0d, 0x00, 0x00, 0xff, 0xff, 0xbe, 0xa5, 0xac, 0xba, 0xb8, 0x02, 0x00, 0x00,
}

View File

@@ -0,0 +1,286 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/dataset.proto
package automl
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
// 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
// A workspace for solving a single, particular machine learning (ML) problem.
// A workspace contains examples that may be annotated.
type Dataset struct {
// Required.
// The dataset metadata that is specific to the problem type.
//
// Types that are valid to be assigned to DatasetMetadata:
// *Dataset_TranslationDatasetMetadata
// *Dataset_ImageClassificationDatasetMetadata
// *Dataset_TextClassificationDatasetMetadata
DatasetMetadata isDataset_DatasetMetadata `protobuf_oneof:"dataset_metadata"`
// Output only. The resource name of the dataset.
// Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The name of the dataset 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"`
// Output only. The number of examples in the dataset.
ExampleCount int32 `protobuf:"varint,21,opt,name=example_count,json=exampleCount,proto3" json:"example_count,omitempty"`
// Output only. Timestamp when this dataset was created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,14,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Dataset) Reset() { *m = Dataset{} }
func (m *Dataset) String() string { return proto.CompactTextString(m) }
func (*Dataset) ProtoMessage() {}
func (*Dataset) Descriptor() ([]byte, []int) {
return fileDescriptor_1f2b1dc66a1e92da, []int{0}
}
func (m *Dataset) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Dataset.Unmarshal(m, b)
}
func (m *Dataset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Dataset.Marshal(b, m, deterministic)
}
func (m *Dataset) XXX_Merge(src proto.Message) {
xxx_messageInfo_Dataset.Merge(m, src)
}
func (m *Dataset) XXX_Size() int {
return xxx_messageInfo_Dataset.Size(m)
}
func (m *Dataset) XXX_DiscardUnknown() {
xxx_messageInfo_Dataset.DiscardUnknown(m)
}
var xxx_messageInfo_Dataset proto.InternalMessageInfo
type isDataset_DatasetMetadata interface {
isDataset_DatasetMetadata()
}
type Dataset_TranslationDatasetMetadata struct {
TranslationDatasetMetadata *TranslationDatasetMetadata `protobuf:"bytes,23,opt,name=translation_dataset_metadata,json=translationDatasetMetadata,proto3,oneof"`
}
type Dataset_ImageClassificationDatasetMetadata struct {
ImageClassificationDatasetMetadata *ImageClassificationDatasetMetadata `protobuf:"bytes,24,opt,name=image_classification_dataset_metadata,json=imageClassificationDatasetMetadata,proto3,oneof"`
}
type Dataset_TextClassificationDatasetMetadata struct {
TextClassificationDatasetMetadata *TextClassificationDatasetMetadata `protobuf:"bytes,25,opt,name=text_classification_dataset_metadata,json=textClassificationDatasetMetadata,proto3,oneof"`
}
func (*Dataset_TranslationDatasetMetadata) isDataset_DatasetMetadata() {}
func (*Dataset_ImageClassificationDatasetMetadata) isDataset_DatasetMetadata() {}
func (*Dataset_TextClassificationDatasetMetadata) isDataset_DatasetMetadata() {}
func (m *Dataset) GetDatasetMetadata() isDataset_DatasetMetadata {
if m != nil {
return m.DatasetMetadata
}
return nil
}
func (m *Dataset) GetTranslationDatasetMetadata() *TranslationDatasetMetadata {
if x, ok := m.GetDatasetMetadata().(*Dataset_TranslationDatasetMetadata); ok {
return x.TranslationDatasetMetadata
}
return nil
}
func (m *Dataset) GetImageClassificationDatasetMetadata() *ImageClassificationDatasetMetadata {
if x, ok := m.GetDatasetMetadata().(*Dataset_ImageClassificationDatasetMetadata); ok {
return x.ImageClassificationDatasetMetadata
}
return nil
}
func (m *Dataset) GetTextClassificationDatasetMetadata() *TextClassificationDatasetMetadata {
if x, ok := m.GetDatasetMetadata().(*Dataset_TextClassificationDatasetMetadata); ok {
return x.TextClassificationDatasetMetadata
}
return nil
}
func (m *Dataset) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Dataset) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
func (m *Dataset) GetExampleCount() int32 {
if m != nil {
return m.ExampleCount
}
return 0
}
func (m *Dataset) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Dataset) 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 _Dataset_OneofMarshaler, _Dataset_OneofUnmarshaler, _Dataset_OneofSizer, []interface{}{
(*Dataset_TranslationDatasetMetadata)(nil),
(*Dataset_ImageClassificationDatasetMetadata)(nil),
(*Dataset_TextClassificationDatasetMetadata)(nil),
}
}
func _Dataset_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Dataset)
// dataset_metadata
switch x := m.DatasetMetadata.(type) {
case *Dataset_TranslationDatasetMetadata:
b.EncodeVarint(23<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.TranslationDatasetMetadata); err != nil {
return err
}
case *Dataset_ImageClassificationDatasetMetadata:
b.EncodeVarint(24<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ImageClassificationDatasetMetadata); err != nil {
return err
}
case *Dataset_TextClassificationDatasetMetadata:
b.EncodeVarint(25<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.TextClassificationDatasetMetadata); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Dataset.DatasetMetadata has unexpected type %T", x)
}
return nil
}
func _Dataset_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Dataset)
switch tag {
case 23: // dataset_metadata.translation_dataset_metadata
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TranslationDatasetMetadata)
err := b.DecodeMessage(msg)
m.DatasetMetadata = &Dataset_TranslationDatasetMetadata{msg}
return true, err
case 24: // dataset_metadata.image_classification_dataset_metadata
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ImageClassificationDatasetMetadata)
err := b.DecodeMessage(msg)
m.DatasetMetadata = &Dataset_ImageClassificationDatasetMetadata{msg}
return true, err
case 25: // dataset_metadata.text_classification_dataset_metadata
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TextClassificationDatasetMetadata)
err := b.DecodeMessage(msg)
m.DatasetMetadata = &Dataset_TextClassificationDatasetMetadata{msg}
return true, err
default:
return false, nil
}
}
func _Dataset_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Dataset)
// dataset_metadata
switch x := m.DatasetMetadata.(type) {
case *Dataset_TranslationDatasetMetadata:
s := proto.Size(x.TranslationDatasetMetadata)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Dataset_ImageClassificationDatasetMetadata:
s := proto.Size(x.ImageClassificationDatasetMetadata)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Dataset_TextClassificationDatasetMetadata:
s := proto.Size(x.TextClassificationDatasetMetadata)
n += 2 // 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((*Dataset)(nil), "google.cloud.automl.v1beta1.Dataset")
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/dataset.proto", fileDescriptor_1f2b1dc66a1e92da)
}
var fileDescriptor_1f2b1dc66a1e92da = []byte{
// 428 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x5d, 0x6b, 0x14, 0x31,
0x14, 0x86, 0x1d, 0xa9, 0x8a, 0xd9, 0x2a, 0x12, 0x10, 0xc7, 0xb1, 0xd0, 0x6d, 0xfd, 0x5a, 0x41,
0x13, 0xaa, 0x82, 0x17, 0x05, 0xc5, 0xd6, 0x0b, 0xbd, 0x50, 0x64, 0xe9, 0x95, 0x37, 0xe1, 0xec,
0x6c, 0x76, 0x08, 0xe4, 0x63, 0xd8, 0x9c, 0x91, 0x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0xa3, 0x3c, 0x04, 0x00, 0x00,
}

View File

@@ -0,0 +1,175 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/image.proto
package automl
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
// 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
// Dataset metadata that is specific to image classification.
type ImageClassificationDatasetMetadata struct {
// Required.
// Type of the classification problem.
ClassificationType ClassificationType `protobuf:"varint,1,opt,name=classification_type,json=classificationType,proto3,enum=google.cloud.automl.v1beta1.ClassificationType" json:"classification_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImageClassificationDatasetMetadata) Reset() { *m = ImageClassificationDatasetMetadata{} }
func (m *ImageClassificationDatasetMetadata) String() string { return proto.CompactTextString(m) }
func (*ImageClassificationDatasetMetadata) ProtoMessage() {}
func (*ImageClassificationDatasetMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_29b9f2bc900da869, []int{0}
}
func (m *ImageClassificationDatasetMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImageClassificationDatasetMetadata.Unmarshal(m, b)
}
func (m *ImageClassificationDatasetMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImageClassificationDatasetMetadata.Marshal(b, m, deterministic)
}
func (m *ImageClassificationDatasetMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImageClassificationDatasetMetadata.Merge(m, src)
}
func (m *ImageClassificationDatasetMetadata) XXX_Size() int {
return xxx_messageInfo_ImageClassificationDatasetMetadata.Size(m)
}
func (m *ImageClassificationDatasetMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_ImageClassificationDatasetMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_ImageClassificationDatasetMetadata proto.InternalMessageInfo
func (m *ImageClassificationDatasetMetadata) GetClassificationType() ClassificationType {
if m != nil {
return m.ClassificationType
}
return ClassificationType_CLASSIFICATION_TYPE_UNSPECIFIED
}
// Model metadata for image classification.
type ImageClassificationModelMetadata struct {
// Optional. The ID of the `base` model. If it is specified, the new model
// will be created based on the `base` model. Otherwise, the new model will be
// created from scratch. The `base` model is expected to be in the same
// `project` and `location` as the new model to create.
BaseModelId string `protobuf:"bytes,1,opt,name=base_model_id,json=baseModelId,proto3" json:"base_model_id,omitempty"`
// Required. The train budget of creating this model. The actual
// `train_cost` will be equal or less than this value.
TrainBudget int64 `protobuf:"varint,2,opt,name=train_budget,json=trainBudget,proto3" json:"train_budget,omitempty"`
// Output only. The actual train cost of creating this model. If this
// model is created from a `base` model, the train cost used to create the
// `base` model are not included.
TrainCost int64 `protobuf:"varint,3,opt,name=train_cost,json=trainCost,proto3" json:"train_cost,omitempty"`
// Output only. The reason that this create model operation stopped,
// e.g. BUDGET_REACHED, CONVERGED.
StopReason string `protobuf:"bytes,5,opt,name=stop_reason,json=stopReason,proto3" json:"stop_reason,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImageClassificationModelMetadata) Reset() { *m = ImageClassificationModelMetadata{} }
func (m *ImageClassificationModelMetadata) String() string { return proto.CompactTextString(m) }
func (*ImageClassificationModelMetadata) ProtoMessage() {}
func (*ImageClassificationModelMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_29b9f2bc900da869, []int{1}
}
func (m *ImageClassificationModelMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImageClassificationModelMetadata.Unmarshal(m, b)
}
func (m *ImageClassificationModelMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImageClassificationModelMetadata.Marshal(b, m, deterministic)
}
func (m *ImageClassificationModelMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImageClassificationModelMetadata.Merge(m, src)
}
func (m *ImageClassificationModelMetadata) XXX_Size() int {
return xxx_messageInfo_ImageClassificationModelMetadata.Size(m)
}
func (m *ImageClassificationModelMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_ImageClassificationModelMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_ImageClassificationModelMetadata proto.InternalMessageInfo
func (m *ImageClassificationModelMetadata) GetBaseModelId() string {
if m != nil {
return m.BaseModelId
}
return ""
}
func (m *ImageClassificationModelMetadata) GetTrainBudget() int64 {
if m != nil {
return m.TrainBudget
}
return 0
}
func (m *ImageClassificationModelMetadata) GetTrainCost() int64 {
if m != nil {
return m.TrainCost
}
return 0
}
func (m *ImageClassificationModelMetadata) GetStopReason() string {
if m != nil {
return m.StopReason
}
return ""
}
func init() {
proto.RegisterType((*ImageClassificationDatasetMetadata)(nil), "google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata")
proto.RegisterType((*ImageClassificationModelMetadata)(nil), "google.cloud.automl.v1beta1.ImageClassificationModelMetadata")
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/image.proto", fileDescriptor_29b9f2bc900da869)
}
var fileDescriptor_29b9f2bc900da869 = []byte{
// 338 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xb1, 0x6a, 0xe3, 0x40,
0x10, 0x86, 0xd1, 0x99, 0x3b, 0xf0, 0xfa, 0xee, 0x0a, 0xa5, 0x11, 0x4e, 0x82, 0x1d, 0x35, 0x71,
0xa5, 0x8d, 0x93, 0x32, 0x55, 0xec, 0x34, 0x2e, 0x0c, 0x46, 0xa4, 0x4a, 0xa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 0xa9, 0x05, 0xd3, 0x64, 0x79, 0x57, 0x6a, 0x45, 0xd1,
0xaf, 0x79, 0xb0, 0x18, 0xa5, 0x13, 0x66, 0x2b, 0x46, 0xe1, 0xb5, 0x10, 0x5e, 0x29, 0xd0, 0x51,
0x34, 0x62, 0x61, 0xcc, 0x64, 0x8d, 0x8e, 0xc2, 0x99, 0x98, 0x38, 0x42, 0x9b, 0xb5, 0x0a, 0x1c,
0x36, 0xd1, 0x6f, 0xbe, 0x43, 0xf4, 0x28, 0x65, 0xb2, 0x6a, 0xc5, 0xac, 0xc0, 0xfa, 0xdc, 0xd6,
0x2b, 0xc1, 0xbb, 0xec, 0xfa, 0x7f, 0xbc, 0x0b, 0x5e, 0x9f, 0x06, 0x55, 0x63, 0x05, 0x8d, 0x4e,
0xb0, 0xd5, 0x52, 0xab, 0x86, 0x5f, 0x40, 0xfa, 0x4f, 0x60, 0x8d, 0x3b, 0xf9, 0xae, 0x8f, 0xfe,
0x98, 0xff, 0x61, 0xfb, 0xe1, 0x2b, 0x00, 0x00, 0xff, 0xff, 0xde, 0x9b, 0x5b, 0x1e, 0x68, 0x02,
0x00, 0x00,
}

View File

@@ -0,0 +1,377 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/io.proto
package automl
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
// 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
// Input configuration.
type InputConfig struct {
// Required. The source of the input.
//
// Types that are valid to be assigned to Source:
// *InputConfig_GcsSource
Source isInputConfig_Source `protobuf_oneof:"source"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InputConfig) Reset() { *m = InputConfig{} }
func (m *InputConfig) String() string { return proto.CompactTextString(m) }
func (*InputConfig) ProtoMessage() {}
func (*InputConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_6e2d768504aa30d7, []int{0}
}
func (m *InputConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InputConfig.Unmarshal(m, b)
}
func (m *InputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InputConfig.Marshal(b, m, deterministic)
}
func (m *InputConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_InputConfig.Merge(m, src)
}
func (m *InputConfig) XXX_Size() int {
return xxx_messageInfo_InputConfig.Size(m)
}
func (m *InputConfig) XXX_DiscardUnknown() {
xxx_messageInfo_InputConfig.DiscardUnknown(m)
}
var xxx_messageInfo_InputConfig proto.InternalMessageInfo
type isInputConfig_Source interface {
isInputConfig_Source()
}
type InputConfig_GcsSource struct {
GcsSource *GcsSource `protobuf:"bytes,1,opt,name=gcs_source,json=gcsSource,proto3,oneof"`
}
func (*InputConfig_GcsSource) isInputConfig_Source() {}
func (m *InputConfig) GetSource() isInputConfig_Source {
if m != nil {
return m.Source
}
return nil
}
func (m *InputConfig) GetGcsSource() *GcsSource {
if x, ok := m.GetSource().(*InputConfig_GcsSource); ok {
return x.GcsSource
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*InputConfig) 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 _InputConfig_OneofMarshaler, _InputConfig_OneofUnmarshaler, _InputConfig_OneofSizer, []interface{}{
(*InputConfig_GcsSource)(nil),
}
}
func _InputConfig_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*InputConfig)
// source
switch x := m.Source.(type) {
case *InputConfig_GcsSource:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.GcsSource); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("InputConfig.Source has unexpected type %T", x)
}
return nil
}
func _InputConfig_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*InputConfig)
switch tag {
case 1: // source.gcs_source
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(GcsSource)
err := b.DecodeMessage(msg)
m.Source = &InputConfig_GcsSource{msg}
return true, err
default:
return false, nil
}
}
func _InputConfig_OneofSizer(msg proto.Message) (n int) {
m := msg.(*InputConfig)
// source
switch x := m.Source.(type) {
case *InputConfig_GcsSource:
s := proto.Size(x.GcsSource)
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
}
// Output configuration.
type OutputConfig struct {
// Required. The destination of the output.
//
// Types that are valid to be assigned to Destination:
// *OutputConfig_GcsDestination
Destination isOutputConfig_Destination `protobuf_oneof:"destination"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OutputConfig) Reset() { *m = OutputConfig{} }
func (m *OutputConfig) String() string { return proto.CompactTextString(m) }
func (*OutputConfig) ProtoMessage() {}
func (*OutputConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_6e2d768504aa30d7, []int{1}
}
func (m *OutputConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OutputConfig.Unmarshal(m, b)
}
func (m *OutputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OutputConfig.Marshal(b, m, deterministic)
}
func (m *OutputConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_OutputConfig.Merge(m, src)
}
func (m *OutputConfig) XXX_Size() int {
return xxx_messageInfo_OutputConfig.Size(m)
}
func (m *OutputConfig) XXX_DiscardUnknown() {
xxx_messageInfo_OutputConfig.DiscardUnknown(m)
}
var xxx_messageInfo_OutputConfig proto.InternalMessageInfo
type isOutputConfig_Destination interface {
isOutputConfig_Destination()
}
type OutputConfig_GcsDestination struct {
GcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"`
}
func (*OutputConfig_GcsDestination) isOutputConfig_Destination() {}
func (m *OutputConfig) GetDestination() isOutputConfig_Destination {
if m != nil {
return m.Destination
}
return nil
}
func (m *OutputConfig) GetGcsDestination() *GcsDestination {
if x, ok := m.GetDestination().(*OutputConfig_GcsDestination); ok {
return x.GcsDestination
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*OutputConfig) 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 _OutputConfig_OneofMarshaler, _OutputConfig_OneofUnmarshaler, _OutputConfig_OneofSizer, []interface{}{
(*OutputConfig_GcsDestination)(nil),
}
}
func _OutputConfig_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*OutputConfig)
// destination
switch x := m.Destination.(type) {
case *OutputConfig_GcsDestination:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.GcsDestination); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("OutputConfig.Destination has unexpected type %T", x)
}
return nil
}
func _OutputConfig_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*OutputConfig)
switch tag {
case 1: // destination.gcs_destination
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(GcsDestination)
err := b.DecodeMessage(msg)
m.Destination = &OutputConfig_GcsDestination{msg}
return true, err
default:
return false, nil
}
}
func _OutputConfig_OneofSizer(msg proto.Message) (n int) {
m := msg.(*OutputConfig)
// destination
switch x := m.Destination.(type) {
case *OutputConfig_GcsDestination:
s := proto.Size(x.GcsDestination)
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
}
// The GCS location for the input content.
type GcsSource struct {
// Required. Google Cloud Storage URIs to input files, up to 2000 characters
// long. Accepted forms:
// * Full object path: gs://bucket/directory/object.csv
InputUris []string `protobuf:"bytes,1,rep,name=input_uris,json=inputUris,proto3" json:"input_uris,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GcsSource) Reset() { *m = GcsSource{} }
func (m *GcsSource) String() string { return proto.CompactTextString(m) }
func (*GcsSource) ProtoMessage() {}
func (*GcsSource) Descriptor() ([]byte, []int) {
return fileDescriptor_6e2d768504aa30d7, []int{2}
}
func (m *GcsSource) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GcsSource.Unmarshal(m, b)
}
func (m *GcsSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GcsSource.Marshal(b, m, deterministic)
}
func (m *GcsSource) XXX_Merge(src proto.Message) {
xxx_messageInfo_GcsSource.Merge(m, src)
}
func (m *GcsSource) XXX_Size() int {
return xxx_messageInfo_GcsSource.Size(m)
}
func (m *GcsSource) XXX_DiscardUnknown() {
xxx_messageInfo_GcsSource.DiscardUnknown(m)
}
var xxx_messageInfo_GcsSource proto.InternalMessageInfo
func (m *GcsSource) GetInputUris() []string {
if m != nil {
return m.InputUris
}
return nil
}
// The GCS location where the output must be written to
type GcsDestination struct {
// Required. Google Cloud Storage URI to output directory, up to 2000
// characters long.
// Accepted forms:
// * Prefix path: gs://bucket/directory
// The requesting user must have write permission to the bucket.
// The directory is created if it doesn't exist.
OutputUriPrefix string `protobuf:"bytes,1,opt,name=output_uri_prefix,json=outputUriPrefix,proto3" json:"output_uri_prefix,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GcsDestination) Reset() { *m = GcsDestination{} }
func (m *GcsDestination) String() string { return proto.CompactTextString(m) }
func (*GcsDestination) ProtoMessage() {}
func (*GcsDestination) Descriptor() ([]byte, []int) {
return fileDescriptor_6e2d768504aa30d7, []int{3}
}
func (m *GcsDestination) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GcsDestination.Unmarshal(m, b)
}
func (m *GcsDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GcsDestination.Marshal(b, m, deterministic)
}
func (m *GcsDestination) XXX_Merge(src proto.Message) {
xxx_messageInfo_GcsDestination.Merge(m, src)
}
func (m *GcsDestination) XXX_Size() int {
return xxx_messageInfo_GcsDestination.Size(m)
}
func (m *GcsDestination) XXX_DiscardUnknown() {
xxx_messageInfo_GcsDestination.DiscardUnknown(m)
}
var xxx_messageInfo_GcsDestination proto.InternalMessageInfo
func (m *GcsDestination) GetOutputUriPrefix() string {
if m != nil {
return m.OutputUriPrefix
}
return ""
}
func init() {
proto.RegisterType((*InputConfig)(nil), "google.cloud.automl.v1beta1.InputConfig")
proto.RegisterType((*OutputConfig)(nil), "google.cloud.automl.v1beta1.OutputConfig")
proto.RegisterType((*GcsSource)(nil), "google.cloud.automl.v1beta1.GcsSource")
proto.RegisterType((*GcsDestination)(nil), "google.cloud.automl.v1beta1.GcsDestination")
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/io.proto", fileDescriptor_6e2d768504aa30d7)
}
var fileDescriptor_6e2d768504aa30d7 = []byte{
// 300 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0x4b, 0x4b, 0x03, 0x31,
0x10, 0xc7, 0xbb, 0x08, 0xc5, 0x9d, 0x6a, 0x8b, 0x7b, 0x2a, 0x3e, 0xb0, 0x2c, 0x22, 0xa5, 0x42,
0x42, 0xf5, 0xa8, 0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 0x4b, 0x93, 0xde, 0x41,
0x7b, 0xdb, 0x3e, 0x19, 0xc0, 0x11, 0xfa, 0xd2, 0x95, 0x62, 0x5e, 0x6a, 0xbe, 0x92, 0x9f, 0xbe,
0x66, 0x9c, 0x75, 0xc2, 0x62, 0xa6, 0xe5, 0xd4, 0x8f, 0x47, 0x2b, 0x38, 0xcf, 0x71, 0xbd, 0xab,
0xfc, 0x34, 0x7a, 0xbb, 0xaf, 0xd7, 0x02, 0x0b, 0xa6, 0x04, 0x41, 0x2d, 0xa8, 0xe0, 0xca, 0xdf,
0x80, 0x86, 0x15, 0x2b, 0xa5, 0xf9, 0xf3, 0xce, 0xb7, 0xe1, 0xb9, 0x68, 0x7a, 0xfa, 0xe6, 0x2b,
0x00, 0x00, 0xff, 0xff, 0xe3, 0x87, 0x4d, 0x64, 0x14, 0x02, 0x00, 0x00,
}

View File

@@ -0,0 +1,348 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/model.proto
package automl
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
// 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_27c9ed3a1b40360b, []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_27c9ed3a1b40360b, []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 (m *Model) XXX_Merge(src proto.Message) {
xxx_messageInfo_Model.Merge(m, 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.RegisterEnum("google.cloud.automl.v1beta1.Model_DeploymentState", Model_DeploymentState_name, Model_DeploymentState_value)
proto.RegisterType((*Model)(nil), "google.cloud.automl.v1beta1.Model")
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/model.proto", fileDescriptor_27c9ed3a1b40360b)
}
var fileDescriptor_27c9ed3a1b40360b = []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, 0xed, 0x16, 0x5a, 0x31, 0xf7, 0xae, 0x3e, 0xe7, 0xfb, 0x8f, 0x7f, 0xff, 0x3d, 0x81,
0x57, 0x89, 0x10, 0x49, 0xca, 0xbc, 0x28, 0x15, 0x55, 0xec, 0xd1, 0x0a, 0x45, 0x96, 0x7a, 0x3f,
0xce, 0x17, 0x0c, 0xe9, 0xb9, 0x97, 0x89, 0x98, 0xa5, 0x6e, 0xb1, 0x12, 0x28, 0xc8, 0x53, 0x05,
0xba, 0x12, 0x74, 0x15, 0xe8, 0x6a, 0xb0, 0x73, 0xa6, 0xa7, 0xd0, 0x82, 0x7b, 0x34, 0xcf, 0x05,
0x52, 0xe4, 0x22, 0x2f, 0x95, 0xb4, 0x63, 0xbc, 0x83, 0x67, 0x34, 0x61, 0x1a, 0x7c, 0x69, 0x02,
0x91, 0xdd, 0xa2, 0xe6, 0x5e, 0x1b, 0xb9, 0x15, 0xcd, 0xcb, 0x54, 0x1a, 0xd0, 0x78, 0x57, 0xe3,
0xf2, 0xb4, 0xa8, 0x96, 0x1e, 0xf2, 0x8c, 0x95, 0x48, 0xb3, 0x42, 0x01, 0xbd, 0xdf, 0x47, 0xf0,
0x68, 0x5c, 0xbf, 0x95, 0xfc, 0xb2, 0xe0, 0x85, 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52, 0x64, 0xf6, 0xb1, 0x63, 0xf5, 0x9b, 0x83, 0x81, 0x31, 0x3c, 0x99, 0x8a, 0x3b, 0xdc,
0x48, 0xe7, 0xb5, 0x72, 0xd6, 0x8a, 0xb7, 0x0b, 0xbd, 0x2f, 0xd0, 0xda, 0x61, 0x88, 0x03, 0x67,
0x43, 0x7f, 0xfa, 0xe9, 0xf3, 0xd7, 0xb1, 0x3f, 0x09, 0xc2, 0x79, 0x70, 0x19, 0xf8, 0xe1, 0xcd,
0x64, 0x3e, 0xf5, 0xaf, 0x47, 0x1f, 0x46, 0xfe, 0xb0, 0x7d, 0x40, 0x4e, 0xe1, 0x58, 0x11, 0xfe,
0xb0, 0x6d, 0x91, 0x26, 0xc0, 0xcd, 0x64, 0x73, 0x3e, 0xbc, 0x6a, 0x43, 0x73, 0xfb, 0xcf, 0xbe,
0x5a, 0x42, 0x37, 0x12, 0x99, 0xc9, 0xee, 0xd4, 0xfa, 0x76, 0xa9, 0xdb, 0x89, 0x48, 0x69, 0x9e,
0xb8, 0x62, 0x95, 0x78, 0x09, 0xcb, 0x65, 0x3a, 0x9e, 0x6a, 0xd1, 0x82, 0x97, 0xff, 0xfd, 0x8e,
0x2f, 0xd4, 0x71, 0x71, 0x24, 0xe9, 0x37, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xf0, 0x10, 0xe2,
0xaa, 0xa9, 0x04, 0x00, 0x00,
}

View File

@@ -0,0 +1,255 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/model_evaluation.proto
package automl
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
// 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
// Evaluation results of a model.
type ModelEvaluation struct {
// Output only. Problem type specific evaluation metrics.
//
// Types that are valid to be assigned to Metrics:
// *ModelEvaluation_ClassificationEvaluationMetrics
// *ModelEvaluation_TranslationEvaluationMetrics
Metrics isModelEvaluation_Metrics `protobuf_oneof:"metrics"`
// Output only.
// Resource name of the model evaluation.
// Format:
//
// `projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only.
// The ID of the annotation spec that the model evaluation applies to. The
// ID is empty for overall model evaluation.
// NOTE: Currently there is no way to obtain the display_name of the
// annotation spec from its ID. To see the display_names, review the model
// evaluations in the UI.
AnnotationSpecId string `protobuf:"bytes,2,opt,name=annotation_spec_id,json=annotationSpecId,proto3" json:"annotation_spec_id,omitempty"`
// Output only.
// Timestamp when this model evaluation was created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The number of examples used for model evaluation.
EvaluatedExampleCount int32 `protobuf:"varint,6,opt,name=evaluated_example_count,json=evaluatedExampleCount,proto3" json:"evaluated_example_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ModelEvaluation) Reset() { *m = ModelEvaluation{} }
func (m *ModelEvaluation) String() string { return proto.CompactTextString(m) }
func (*ModelEvaluation) ProtoMessage() {}
func (*ModelEvaluation) Descriptor() ([]byte, []int) {
return fileDescriptor_2d3cea51cfd5443a, []int{0}
}
func (m *ModelEvaluation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ModelEvaluation.Unmarshal(m, b)
}
func (m *ModelEvaluation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ModelEvaluation.Marshal(b, m, deterministic)
}
func (m *ModelEvaluation) XXX_Merge(src proto.Message) {
xxx_messageInfo_ModelEvaluation.Merge(m, src)
}
func (m *ModelEvaluation) XXX_Size() int {
return xxx_messageInfo_ModelEvaluation.Size(m)
}
func (m *ModelEvaluation) XXX_DiscardUnknown() {
xxx_messageInfo_ModelEvaluation.DiscardUnknown(m)
}
var xxx_messageInfo_ModelEvaluation proto.InternalMessageInfo
type isModelEvaluation_Metrics interface {
isModelEvaluation_Metrics()
}
type ModelEvaluation_ClassificationEvaluationMetrics struct {
ClassificationEvaluationMetrics *ClassificationEvaluationMetrics `protobuf:"bytes,8,opt,name=classification_evaluation_metrics,json=classificationEvaluationMetrics,proto3,oneof"`
}
type ModelEvaluation_TranslationEvaluationMetrics struct {
TranslationEvaluationMetrics *TranslationEvaluationMetrics `protobuf:"bytes,9,opt,name=translation_evaluation_metrics,json=translationEvaluationMetrics,proto3,oneof"`
}
func (*ModelEvaluation_ClassificationEvaluationMetrics) isModelEvaluation_Metrics() {}
func (*ModelEvaluation_TranslationEvaluationMetrics) isModelEvaluation_Metrics() {}
func (m *ModelEvaluation) GetMetrics() isModelEvaluation_Metrics {
if m != nil {
return m.Metrics
}
return nil
}
func (m *ModelEvaluation) GetClassificationEvaluationMetrics() *ClassificationEvaluationMetrics {
if x, ok := m.GetMetrics().(*ModelEvaluation_ClassificationEvaluationMetrics); ok {
return x.ClassificationEvaluationMetrics
}
return nil
}
func (m *ModelEvaluation) GetTranslationEvaluationMetrics() *TranslationEvaluationMetrics {
if x, ok := m.GetMetrics().(*ModelEvaluation_TranslationEvaluationMetrics); ok {
return x.TranslationEvaluationMetrics
}
return nil
}
func (m *ModelEvaluation) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ModelEvaluation) GetAnnotationSpecId() string {
if m != nil {
return m.AnnotationSpecId
}
return ""
}
func (m *ModelEvaluation) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *ModelEvaluation) GetEvaluatedExampleCount() int32 {
if m != nil {
return m.EvaluatedExampleCount
}
return 0
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*ModelEvaluation) 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 _ModelEvaluation_OneofMarshaler, _ModelEvaluation_OneofUnmarshaler, _ModelEvaluation_OneofSizer, []interface{}{
(*ModelEvaluation_ClassificationEvaluationMetrics)(nil),
(*ModelEvaluation_TranslationEvaluationMetrics)(nil),
}
}
func _ModelEvaluation_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*ModelEvaluation)
// metrics
switch x := m.Metrics.(type) {
case *ModelEvaluation_ClassificationEvaluationMetrics:
b.EncodeVarint(8<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ClassificationEvaluationMetrics); err != nil {
return err
}
case *ModelEvaluation_TranslationEvaluationMetrics:
b.EncodeVarint(9<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.TranslationEvaluationMetrics); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("ModelEvaluation.Metrics has unexpected type %T", x)
}
return nil
}
func _ModelEvaluation_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*ModelEvaluation)
switch tag {
case 8: // metrics.classification_evaluation_metrics
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ClassificationEvaluationMetrics)
err := b.DecodeMessage(msg)
m.Metrics = &ModelEvaluation_ClassificationEvaluationMetrics{msg}
return true, err
case 9: // metrics.translation_evaluation_metrics
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TranslationEvaluationMetrics)
err := b.DecodeMessage(msg)
m.Metrics = &ModelEvaluation_TranslationEvaluationMetrics{msg}
return true, err
default:
return false, nil
}
}
func _ModelEvaluation_OneofSizer(msg proto.Message) (n int) {
m := msg.(*ModelEvaluation)
// metrics
switch x := m.Metrics.(type) {
case *ModelEvaluation_ClassificationEvaluationMetrics:
s := proto.Size(x.ClassificationEvaluationMetrics)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *ModelEvaluation_TranslationEvaluationMetrics:
s := proto.Size(x.TranslationEvaluationMetrics)
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((*ModelEvaluation)(nil), "google.cloud.automl.v1beta1.ModelEvaluation")
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/model_evaluation.proto", fileDescriptor_2d3cea51cfd5443a)
}
var fileDescriptor_2d3cea51cfd5443a = []byte{
// 388 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x52, 0x4f, 0x6b, 0xdb, 0x30,
0x1c, 0x9d, 0xb7, 0x25, 0x5b, 0x94, 0xc3, 0x86, 0x60, 0xcc, 0x78, 0x61, 0xc9, 0x76, 0xca, 0x61,
0x93, 0x96, 0x0c, 0x06, 0x23, 0xbd, 0x34, 0x21, 0xd0, 0x1e, 0x02, 0xc5, 0xcd, 0xa9, 0x17, 0xa3,
0xc8, 0x8a, 0x11, 0xe8, 0x8f, 0xb1, 0xe4, 0xd0, 0x6b, 0xaf, 0xfd, 0x9c, 0xfd, 0x20, 0xc5, 0x92,
0x13, 0x3b, 0x10, 0x7c, 0xb3, 0xfc, 0xde, 0xfb, 0xfd, 0xde, 0xd3, 0x13, 0x98, 0x67, 0x5a, 0x67,
0x82, 0x61, 0x2a, 0x74, 0x99, 0x62, 0x52, 0x5a, 0x2d, 0x05, 0x3e, 0xcc, 0x76, 0xcc, 0x92, 0x19,
0x96, 0x3a, 0x65, 0x22, 0x61, 0x07, 0x22, 0x4a, 0x62, 0xb9, 0x56, 0x28, 0x2f, 0xb4, 0xd5, 0xf0,
0x9b, 0xd7, 0x20, 0xa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5e, 0xfd, 0x80, 0xff, 0xc0, 0xd7,
0x3a, 0x35, 0x4b, 0x13, 0xf6, 0x48, 0x64, 0x2e, 0x58, 0x42, 0x75, 0xa9, 0x6c, 0xd8, 0x9f, 0x04,
0xd3, 0x5e, 0xfc, 0xe5, 0x04, 0xaf, 0x3d, 0xba, 0xaa, 0xc0, 0xe5, 0x00, 0x7c, 0xa8, 0xaf, 0x68,
0xb9, 0x07, 0x63, 0xaa, 0x65, 0xd7, 0x0d, 0xdd, 0x05, 0x0f, 0xd7, 0x35, 0x9c, 0x69, 0x41, 0x54,
0x86, 0x74, 0x91, 0xe1, 0x8c, 0x29, 0x67, 0x0e, 0x7b, 0x88, 0xe4, 0xdc, 0x5c, 0x7c, 0x7a, 0x0b,
0x7f, 0xdc, 0xf5, 0x1d, 0xfb, 0xef, 0x6b, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd0, 0x78, 0x76, 0xc2,
0x48, 0x03, 0x00, 0x00,
}

View File

@@ -0,0 +1,250 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/operations.proto
package automl
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/golang/protobuf/ptypes/empty"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
status "google.golang.org/genproto/googleapis/rpc/status"
math "math"
)
// 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
// Metadata used across all long running operations returned by AutoML API.
type OperationMetadata struct {
// Ouptut only. Details of specific operation. Even if this field is empty,
// the presence allows to distinguish different types of operations.
//
// Types that are valid to be assigned to Details:
// *OperationMetadata_CreateModelDetails
Details isOperationMetadata_Details `protobuf_oneof:"details"`
// Output only. Progress of operation. Range: [0, 100].
ProgressPercent int32 `protobuf:"varint,13,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"`
// Output only. Partial failures encountered.
// E.g. single files that couldn't be read.
// This field should never exceed 20 entries.
// Status details field will contain standard GCP error details.
PartialFailures []*status.Status `protobuf:"bytes,2,rep,name=partial_failures,json=partialFailures,proto3" json:"partial_failures,omitempty"`
// Output only. Time when the operation was created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Time when the operation was updated for the last time.
UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OperationMetadata) Reset() { *m = OperationMetadata{} }
func (m *OperationMetadata) String() string { return proto.CompactTextString(m) }
func (*OperationMetadata) ProtoMessage() {}
func (*OperationMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_07afd87baa9bfac3, []int{0}
}
func (m *OperationMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OperationMetadata.Unmarshal(m, b)
}
func (m *OperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OperationMetadata.Marshal(b, m, deterministic)
}
func (m *OperationMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_OperationMetadata.Merge(m, src)
}
func (m *OperationMetadata) XXX_Size() int {
return xxx_messageInfo_OperationMetadata.Size(m)
}
func (m *OperationMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_OperationMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_OperationMetadata proto.InternalMessageInfo
type isOperationMetadata_Details interface {
isOperationMetadata_Details()
}
type OperationMetadata_CreateModelDetails struct {
CreateModelDetails *CreateModelOperationMetadata `protobuf:"bytes,10,opt,name=create_model_details,json=createModelDetails,proto3,oneof"`
}
func (*OperationMetadata_CreateModelDetails) isOperationMetadata_Details() {}
func (m *OperationMetadata) GetDetails() isOperationMetadata_Details {
if m != nil {
return m.Details
}
return nil
}
func (m *OperationMetadata) GetCreateModelDetails() *CreateModelOperationMetadata {
if x, ok := m.GetDetails().(*OperationMetadata_CreateModelDetails); ok {
return x.CreateModelDetails
}
return nil
}
func (m *OperationMetadata) GetProgressPercent() int32 {
if m != nil {
return m.ProgressPercent
}
return 0
}
func (m *OperationMetadata) GetPartialFailures() []*status.Status {
if m != nil {
return m.PartialFailures
}
return nil
}
func (m *OperationMetadata) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *OperationMetadata) GetUpdateTime() *timestamp.Timestamp {
if m != nil {
return m.UpdateTime
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
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{}) {
return _OperationMetadata_OneofMarshaler, _OperationMetadata_OneofUnmarshaler, _OperationMetadata_OneofSizer, []interface{}{
(*OperationMetadata_CreateModelDetails)(nil),
}
}
func _OperationMetadata_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*OperationMetadata)
// details
switch x := m.Details.(type) {
case *OperationMetadata_CreateModelDetails:
b.EncodeVarint(10<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.CreateModelDetails); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("OperationMetadata.Details has unexpected type %T", x)
}
return nil
}
func _OperationMetadata_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*OperationMetadata)
switch tag {
case 10: // details.create_model_details
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CreateModelOperationMetadata)
err := b.DecodeMessage(msg)
m.Details = &OperationMetadata_CreateModelDetails{msg}
return true, err
default:
return false, nil
}
}
func _OperationMetadata_OneofSizer(msg proto.Message) (n int) {
m := msg.(*OperationMetadata)
// details
switch x := m.Details.(type) {
case *OperationMetadata_CreateModelDetails:
s := proto.Size(x.CreateModelDetails)
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
}
// Details of CreateModel operation.
type CreateModelOperationMetadata struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateModelOperationMetadata) Reset() { *m = CreateModelOperationMetadata{} }
func (m *CreateModelOperationMetadata) String() string { return proto.CompactTextString(m) }
func (*CreateModelOperationMetadata) ProtoMessage() {}
func (*CreateModelOperationMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_07afd87baa9bfac3, []int{1}
}
func (m *CreateModelOperationMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateModelOperationMetadata.Unmarshal(m, b)
}
func (m *CreateModelOperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateModelOperationMetadata.Marshal(b, m, deterministic)
}
func (m *CreateModelOperationMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateModelOperationMetadata.Merge(m, src)
}
func (m *CreateModelOperationMetadata) XXX_Size() int {
return xxx_messageInfo_CreateModelOperationMetadata.Size(m)
}
func (m *CreateModelOperationMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_CreateModelOperationMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_CreateModelOperationMetadata proto.InternalMessageInfo
func init() {
proto.RegisterType((*OperationMetadata)(nil), "google.cloud.automl.v1beta1.OperationMetadata")
proto.RegisterType((*CreateModelOperationMetadata)(nil), "google.cloud.automl.v1beta1.CreateModelOperationMetadata")
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/operations.proto", fileDescriptor_07afd87baa9bfac3)
}
var fileDescriptor_07afd87baa9bfac3 = []byte{
// 383 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x4f, 0xab, 0xd3, 0x40,
0x14, 0xc5, 0x6d, 0xeb, 0x1f, 0x9c, 0x22, 0xad, 0x41, 0x30, 0xd4, 0x62, 0x4b, 0x37, 0x56, 0x90,
0x19, 0x5a, 0x57, 0x52, 0x5c, 0x58, 0x45, 0xdc, 0x14, 0x4b, 0x74, 0xe5, 0x26, 0xdc, 0x26, 0xb7,
0x21, 0x30, 0xc9, 0x0c, 0x33, 0x37, 0x05, 0x3f, 0xb6, 0xdf, 0x40, 0x32, 0x33, 0xd1, 0xc7, 0x7b,
0x8f, 0x74, 0x39, 0xf7, 0xfc, 0xce, 0xcd, 0xb9, 0x87, 0xb0, 0x77, 0x85, 0x52, 0x85, 0x44, 0x91,
0x49, 0xd5, 0xe4, 0x02, 0x1a, 0x52, 0x95, 0x14, 0x97, 0xcd, 0x09, 0x09, 0x36, 0x42, 0x69, 0x34,
0x40, 0xa5, 0xaa, 0x2d, 0xd7, 0x46, 0x91, 0x8a, 0x5e, 0x79, 0x9a, 0x3b, 0x9a, 0x7b, 0x9a, 0x07,
0x7a, 0x36, 0x0f, 0xab, 0x40, 0x97, 0x02, 0xea, 0x5a, 0xd1, 0x4d, 0xeb, 0xec, 0x4d, 0xdf, 0x87,
0x2a, 0x95, 0xa3, 0x0c, 0xe0, 0xf6, 0x2a, 0x98, 0xe2, 0x05, 0x64, 0xe3, 0xb6, 0x07, 0x4f, 0xc8,
0x25, 0xdc, 0xeb, 0xd4, 0x9c, 0x05, 0x56, 0x9a, 0x7e, 0x07, 0x71, 0x71, 0x5b, 0xa4, 0xb2, 0x42,
0x4b, 0x50, 0xe9, 0x00, 0xbc, 0x0c, 0x80, 0xd1, 0x99, 0xb0, 0x04, 0xd4, 0x84, 0xcc, 0xab, 0x3f,
0x43, 0xf6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b6, 0xf3, 0xcf, 0xd3, 0x63, 0x47,
0xbf, 0xff, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xa3, 0x7b, 0xa7, 0x51, 0x21, 0x03, 0x00, 0x00,
}

View File

@@ -0,0 +1,265 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/prediction_service.proto
package automl
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
math "math"
)
// 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
// Request message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
type PredictRequest struct {
// Name of the model requested to serve the prediction.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required.
// Payload to perform a prediction on. The payload must match the
// problem type that the model was trained to solve.
Payload *ExamplePayload `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
// Additional domain-specific parameters, any string must be up to 25000
// characters long.
//
// * For Image Classification:
//
// `score_threshold` - (float) A value from 0.0 to 1.0. When the model
// makes predictions for an
// image, it will only produce results that have at least this confidence
// score threshold. The default is 0.5.
Params map[string]string `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PredictRequest) Reset() { *m = PredictRequest{} }
func (m *PredictRequest) String() string { return proto.CompactTextString(m) }
func (*PredictRequest) ProtoMessage() {}
func (*PredictRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_59a9dba5da3c687d, []int{0}
}
func (m *PredictRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PredictRequest.Unmarshal(m, b)
}
func (m *PredictRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PredictRequest.Marshal(b, m, deterministic)
}
func (m *PredictRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PredictRequest.Merge(m, src)
}
func (m *PredictRequest) XXX_Size() int {
return xxx_messageInfo_PredictRequest.Size(m)
}
func (m *PredictRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PredictRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PredictRequest proto.InternalMessageInfo
func (m *PredictRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *PredictRequest) GetPayload() *ExamplePayload {
if m != nil {
return m.Payload
}
return nil
}
func (m *PredictRequest) GetParams() map[string]string {
if m != nil {
return m.Params
}
return nil
}
// Response message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
//
// Currently, this is only
// used to return an image recognition prediction result. More prediction
// output metadata might be introduced in the future.
type PredictResponse struct {
// Prediction result.
Payload []*AnnotationPayload `protobuf:"bytes,1,rep,name=payload,proto3" json:"payload,omitempty"`
// Additional domain-specific prediction response metadata.
Metadata map[string]string `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PredictResponse) Reset() { *m = PredictResponse{} }
func (m *PredictResponse) String() string { return proto.CompactTextString(m) }
func (*PredictResponse) ProtoMessage() {}
func (*PredictResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_59a9dba5da3c687d, []int{1}
}
func (m *PredictResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PredictResponse.Unmarshal(m, b)
}
func (m *PredictResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PredictResponse.Marshal(b, m, deterministic)
}
func (m *PredictResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PredictResponse.Merge(m, src)
}
func (m *PredictResponse) XXX_Size() int {
return xxx_messageInfo_PredictResponse.Size(m)
}
func (m *PredictResponse) XXX_DiscardUnknown() {
xxx_messageInfo_PredictResponse.DiscardUnknown(m)
}
var xxx_messageInfo_PredictResponse proto.InternalMessageInfo
func (m *PredictResponse) GetPayload() []*AnnotationPayload {
if m != nil {
return m.Payload
}
return nil
}
func (m *PredictResponse) GetMetadata() map[string]string {
if m != nil {
return m.Metadata
}
return nil
}
func init() {
proto.RegisterType((*PredictRequest)(nil), "google.cloud.automl.v1beta1.PredictRequest")
proto.RegisterMapType((map[string]string)(nil), "google.cloud.automl.v1beta1.PredictRequest.ParamsEntry")
proto.RegisterType((*PredictResponse)(nil), "google.cloud.automl.v1beta1.PredictResponse")
proto.RegisterMapType((map[string]string)(nil), "google.cloud.automl.v1beta1.PredictResponse.MetadataEntry")
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/prediction_service.proto", fileDescriptor_59a9dba5da3c687d)
}
var fileDescriptor_59a9dba5da3c687d = []byte{
// 462 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xdf, 0x8a, 0xd3, 0x40,
0x14, 0xc6, 0x99, 0x56, 0x77, 0xdd, 0x29, 0xfe, 0x1b, 0x44, 0x4a, 0x14, 0x2c, 0xbd, 0x2a, 0xdd,
0x65, 0x86, 0xad, 0xc2, 0x6a, 0x57, 0x2f, 0xb6, 0x50, 0xf0, 0x46, 0x0c, 0x11, 0xbc, 0xf0, 0xa6,
0x9c, 0x4d, 0x0e, 0x21, 0x3a, 0xc9, 0x8c, 0x99, 0x49, 0xb1, 0x88, 0x5e, 0xf8, 0x0a, 0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2c, 0x9a,
0x31, 0x10, 0xee, 0x08, 0x74, 0x66, 0xfe, 0x3b, 0x37, 0xc7, 0x6e, 0x79, 0xba, 0xd3, 0xdc, 0x7e,
0xf8, 0x27, 0x00, 0x00, 0xff, 0xff, 0xb5, 0xb3, 0x24, 0x52, 0x0b, 0x04, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// PredictionServiceClient is the client API for PredictionService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type PredictionServiceClient interface {
// Perform a prediction.
Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*PredictResponse, error)
}
type predictionServiceClient struct {
cc *grpc.ClientConn
}
func NewPredictionServiceClient(cc *grpc.ClientConn) PredictionServiceClient {
return &predictionServiceClient{cc}
}
func (c *predictionServiceClient) Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*PredictResponse, error) {
out := new(PredictResponse)
err := c.cc.Invoke(ctx, "/google.cloud.automl.v1beta1.PredictionService/Predict", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// PredictionServiceServer is the server API for PredictionService service.
type PredictionServiceServer interface {
// Perform a prediction.
Predict(context.Context, *PredictRequest) (*PredictResponse, error)
}
func RegisterPredictionServiceServer(s *grpc.Server, srv PredictionServiceServer) {
s.RegisterService(&_PredictionService_serviceDesc, srv)
}
func _PredictionService_Predict_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PredictRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PredictionServiceServer).Predict(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.automl.v1beta1.PredictionService/Predict",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PredictionServiceServer).Predict(ctx, req.(*PredictRequest))
}
return interceptor(ctx, in, info, handler)
}
var _PredictionService_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.automl.v1beta1.PredictionService",
HandlerType: (*PredictionServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Predict",
Handler: _PredictionService_Predict_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/automl/v1beta1/prediction_service.proto",
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,124 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/text.proto
package automl
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
// 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
// Dataset metadata for classification.
type TextClassificationDatasetMetadata struct {
// Required.
// Type of the classification problem.
ClassificationType ClassificationType `protobuf:"varint,1,opt,name=classification_type,json=classificationType,proto3,enum=google.cloud.automl.v1beta1.ClassificationType" json:"classification_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextClassificationDatasetMetadata) Reset() { *m = TextClassificationDatasetMetadata{} }
func (m *TextClassificationDatasetMetadata) String() string { return proto.CompactTextString(m) }
func (*TextClassificationDatasetMetadata) ProtoMessage() {}
func (*TextClassificationDatasetMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_c1121cf231f416fd, []int{0}
}
func (m *TextClassificationDatasetMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextClassificationDatasetMetadata.Unmarshal(m, b)
}
func (m *TextClassificationDatasetMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextClassificationDatasetMetadata.Marshal(b, m, deterministic)
}
func (m *TextClassificationDatasetMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextClassificationDatasetMetadata.Merge(m, src)
}
func (m *TextClassificationDatasetMetadata) XXX_Size() int {
return xxx_messageInfo_TextClassificationDatasetMetadata.Size(m)
}
func (m *TextClassificationDatasetMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_TextClassificationDatasetMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_TextClassificationDatasetMetadata proto.InternalMessageInfo
func (m *TextClassificationDatasetMetadata) GetClassificationType() ClassificationType {
if m != nil {
return m.ClassificationType
}
return ClassificationType_CLASSIFICATION_TYPE_UNSPECIFIED
}
// Model metadata that is specific to text classification.
type TextClassificationModelMetadata struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextClassificationModelMetadata) Reset() { *m = TextClassificationModelMetadata{} }
func (m *TextClassificationModelMetadata) String() string { return proto.CompactTextString(m) }
func (*TextClassificationModelMetadata) ProtoMessage() {}
func (*TextClassificationModelMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_c1121cf231f416fd, []int{1}
}
func (m *TextClassificationModelMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextClassificationModelMetadata.Unmarshal(m, b)
}
func (m *TextClassificationModelMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextClassificationModelMetadata.Marshal(b, m, deterministic)
}
func (m *TextClassificationModelMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextClassificationModelMetadata.Merge(m, src)
}
func (m *TextClassificationModelMetadata) XXX_Size() int {
return xxx_messageInfo_TextClassificationModelMetadata.Size(m)
}
func (m *TextClassificationModelMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_TextClassificationModelMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_TextClassificationModelMetadata proto.InternalMessageInfo
func init() {
proto.RegisterType((*TextClassificationDatasetMetadata)(nil), "google.cloud.automl.v1beta1.TextClassificationDatasetMetadata")
proto.RegisterType((*TextClassificationModelMetadata)(nil), "google.cloud.automl.v1beta1.TextClassificationModelMetadata")
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/text.proto", fileDescriptor_c1121cf231f416fd)
}
var fileDescriptor_c1121cf231f416fd = []byte{
// 240 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0x31, 0x4f, 0x03, 0x31,
0x0c, 0x85, 0x75, 0x0b, 0x12, 0x19, 0x18, 0x8e, 0x05, 0x15, 0xa4, 0xd2, 0x0e, 0x88, 0x29, 0xa6,
0x30, 0x32, 0x51, 0x58, 0x2b, 0x55, 0xa8, 0x13, 0x0b, 0xb8, 0x39, 0x13, 0x45, 0x4a, 0xe3, 0xd0,
0xb8, 0xa8, 0xfd, 0x01, 0xfc, 0x6f, 0xd4, 0xe4, 0x18, 0x4e, 0x87, 0x6e, 0x4c, 0xfc, 0xbd, 0xe7,
0xf7, 0xac, 0x6e, 0x2c, 0xb3, 0xf5, 0x04, 0xc6, 0xf3, 0xae, 0x01, 0xdc, 0x09, 0x6f, 0x3c, 0x7c,
0xcf, 0xd6, 0x24, 0x38, 0x03, 0xa1, 0xbd, 0xe8, 0xb8, 0x65, 0xe1, 0xfa, 0xb2, 0x70, 0x3a, 0x73,
0xba, 0x70, 0xba, 0xe5, 0x46, 0x57, 0xad, 0x09, 0x46, 0x07, 0x18, 0x02, 0x0b, 0x8a, 0xe3, 0x90,
0x8a, 0x74, 0x74, 0x37, 0xb4, 0xc2, 0x78, 0x4c, 0xc9, 0x7d, 0x3a, 0x93, 0x25, 0x45, 0x31, 0xfd,
0xa9, 0xd4, 0x64, 0x45, 0x7b, 0x79, 0xee, 0x0c, 0x5f, 0x50, 0x30, 0x91, 0x2c, 0x48, 0xb0, 0x41,
0xc1, 0xfa, 0x43, 0x9d, 0x77, 0xd5, 0xef, 0x72, 0x88, 0x74, 0x51, 0x5d, 0x57, 0xb7, 0x67, 0xf7,
0xa0, 0x07, 0x02, 0xeb, 0xae, 0xf1, 0xea, 0x10, 0xe9, 0xb5, 0x36, 0xbd, 0xbf, 0xe9, 0x44, 0x8d,
0xfb, 0x31, 0x16, 0xdc, 0x90, 0xff, 0x0b, 0x31, 0xff, 0x52, 0x63, 0xc3, 0x9b, 0xa1, 0x65, 0xf3,
0xd3, 0xa3, 0xc7, 0xf2, 0x58, 0x6c, 0x59, 0xbd, 0x3d, 0xb5, 0xa4, 0x65, 0x8f, 0xc1, 0x6a, 0xde,
0x5a, 0xb0, 0x14, 0x72, 0x6d, 0x28, 0x23, 0x8c, 0x2e, 0xfd, 0x7b, 0xab, 0xc7, 0xf2, 0x5c, 0x9f,
0x64, 0xfa, 0xe1, 0x37, 0x00, 0x00, 0xff, 0xff, 0xc9, 0x8d, 0x0f, 0x20, 0xbb, 0x01, 0x00, 0x00,
}

View File

@@ -0,0 +1,266 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/translation.proto
package automl
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
// 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
// Dataset metadata that is specific to translation.
type TranslationDatasetMetadata struct {
// Required. The BCP-47 language code of the source language.
SourceLanguageCode string `protobuf:"bytes,1,opt,name=source_language_code,json=sourceLanguageCode,proto3" json:"source_language_code,omitempty"`
// Required. The BCP-47 language code of the target language.
TargetLanguageCode string `protobuf:"bytes,2,opt,name=target_language_code,json=targetLanguageCode,proto3" json:"target_language_code,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TranslationDatasetMetadata) Reset() { *m = TranslationDatasetMetadata{} }
func (m *TranslationDatasetMetadata) String() string { return proto.CompactTextString(m) }
func (*TranslationDatasetMetadata) ProtoMessage() {}
func (*TranslationDatasetMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_74f6484316c15700, []int{0}
}
func (m *TranslationDatasetMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TranslationDatasetMetadata.Unmarshal(m, b)
}
func (m *TranslationDatasetMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TranslationDatasetMetadata.Marshal(b, m, deterministic)
}
func (m *TranslationDatasetMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_TranslationDatasetMetadata.Merge(m, src)
}
func (m *TranslationDatasetMetadata) XXX_Size() int {
return xxx_messageInfo_TranslationDatasetMetadata.Size(m)
}
func (m *TranslationDatasetMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_TranslationDatasetMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_TranslationDatasetMetadata proto.InternalMessageInfo
func (m *TranslationDatasetMetadata) GetSourceLanguageCode() string {
if m != nil {
return m.SourceLanguageCode
}
return ""
}
func (m *TranslationDatasetMetadata) GetTargetLanguageCode() string {
if m != nil {
return m.TargetLanguageCode
}
return ""
}
// Evaluation metrics for the dataset.
type TranslationEvaluationMetrics struct {
// Output only. BLEU score.
BleuScore float64 `protobuf:"fixed64,1,opt,name=bleu_score,json=bleuScore,proto3" json:"bleu_score,omitempty"`
// Output only. BLEU score for base model.
BaseBleuScore float64 `protobuf:"fixed64,2,opt,name=base_bleu_score,json=baseBleuScore,proto3" json:"base_bleu_score,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TranslationEvaluationMetrics) Reset() { *m = TranslationEvaluationMetrics{} }
func (m *TranslationEvaluationMetrics) String() string { return proto.CompactTextString(m) }
func (*TranslationEvaluationMetrics) ProtoMessage() {}
func (*TranslationEvaluationMetrics) Descriptor() ([]byte, []int) {
return fileDescriptor_74f6484316c15700, []int{1}
}
func (m *TranslationEvaluationMetrics) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TranslationEvaluationMetrics.Unmarshal(m, b)
}
func (m *TranslationEvaluationMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TranslationEvaluationMetrics.Marshal(b, m, deterministic)
}
func (m *TranslationEvaluationMetrics) XXX_Merge(src proto.Message) {
xxx_messageInfo_TranslationEvaluationMetrics.Merge(m, src)
}
func (m *TranslationEvaluationMetrics) XXX_Size() int {
return xxx_messageInfo_TranslationEvaluationMetrics.Size(m)
}
func (m *TranslationEvaluationMetrics) XXX_DiscardUnknown() {
xxx_messageInfo_TranslationEvaluationMetrics.DiscardUnknown(m)
}
var xxx_messageInfo_TranslationEvaluationMetrics proto.InternalMessageInfo
func (m *TranslationEvaluationMetrics) GetBleuScore() float64 {
if m != nil {
return m.BleuScore
}
return 0
}
func (m *TranslationEvaluationMetrics) GetBaseBleuScore() float64 {
if m != nil {
return m.BaseBleuScore
}
return 0
}
// Model metadata that is specific to translation.
type TranslationModelMetadata struct {
// The resource name of the model to use as a baseline to train the custom
// model. If unset, we use the default base model provided by Google
// Translate. Format:
// `projects/{project_id}/locations/{location_id}/models/{model_id}`
BaseModel string `protobuf:"bytes,1,opt,name=base_model,json=baseModel,proto3" json:"base_model,omitempty"`
// Output only. Inferred from the dataset.
// The source languge (The BCP-47 language code) that is used for training.
SourceLanguageCode string `protobuf:"bytes,2,opt,name=source_language_code,json=sourceLanguageCode,proto3" json:"source_language_code,omitempty"`
// Output only. The target languge (The BCP-47 language code) that is used for
// training.
TargetLanguageCode string `protobuf:"bytes,3,opt,name=target_language_code,json=targetLanguageCode,proto3" json:"target_language_code,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TranslationModelMetadata) Reset() { *m = TranslationModelMetadata{} }
func (m *TranslationModelMetadata) String() string { return proto.CompactTextString(m) }
func (*TranslationModelMetadata) ProtoMessage() {}
func (*TranslationModelMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_74f6484316c15700, []int{2}
}
func (m *TranslationModelMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TranslationModelMetadata.Unmarshal(m, b)
}
func (m *TranslationModelMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TranslationModelMetadata.Marshal(b, m, deterministic)
}
func (m *TranslationModelMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_TranslationModelMetadata.Merge(m, src)
}
func (m *TranslationModelMetadata) XXX_Size() int {
return xxx_messageInfo_TranslationModelMetadata.Size(m)
}
func (m *TranslationModelMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_TranslationModelMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_TranslationModelMetadata proto.InternalMessageInfo
func (m *TranslationModelMetadata) GetBaseModel() string {
if m != nil {
return m.BaseModel
}
return ""
}
func (m *TranslationModelMetadata) GetSourceLanguageCode() string {
if m != nil {
return m.SourceLanguageCode
}
return ""
}
func (m *TranslationModelMetadata) GetTargetLanguageCode() string {
if m != nil {
return m.TargetLanguageCode
}
return ""
}
// Annotation details specific to translation.
type TranslationAnnotation struct {
// Output only . The translated content.
TranslatedContent *TextSnippet `protobuf:"bytes,1,opt,name=translated_content,json=translatedContent,proto3" json:"translated_content,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TranslationAnnotation) Reset() { *m = TranslationAnnotation{} }
func (m *TranslationAnnotation) String() string { return proto.CompactTextString(m) }
func (*TranslationAnnotation) ProtoMessage() {}
func (*TranslationAnnotation) Descriptor() ([]byte, []int) {
return fileDescriptor_74f6484316c15700, []int{3}
}
func (m *TranslationAnnotation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TranslationAnnotation.Unmarshal(m, b)
}
func (m *TranslationAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TranslationAnnotation.Marshal(b, m, deterministic)
}
func (m *TranslationAnnotation) XXX_Merge(src proto.Message) {
xxx_messageInfo_TranslationAnnotation.Merge(m, src)
}
func (m *TranslationAnnotation) XXX_Size() int {
return xxx_messageInfo_TranslationAnnotation.Size(m)
}
func (m *TranslationAnnotation) XXX_DiscardUnknown() {
xxx_messageInfo_TranslationAnnotation.DiscardUnknown(m)
}
var xxx_messageInfo_TranslationAnnotation proto.InternalMessageInfo
func (m *TranslationAnnotation) GetTranslatedContent() *TextSnippet {
if m != nil {
return m.TranslatedContent
}
return nil
}
func init() {
proto.RegisterType((*TranslationDatasetMetadata)(nil), "google.cloud.automl.v1beta1.TranslationDatasetMetadata")
proto.RegisterType((*TranslationEvaluationMetrics)(nil), "google.cloud.automl.v1beta1.TranslationEvaluationMetrics")
proto.RegisterType((*TranslationModelMetadata)(nil), "google.cloud.automl.v1beta1.TranslationModelMetadata")
proto.RegisterType((*TranslationAnnotation)(nil), "google.cloud.automl.v1beta1.TranslationAnnotation")
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/translation.proto", fileDescriptor_74f6484316c15700)
}
var fileDescriptor_74f6484316c15700 = []byte{
// 377 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xcf, 0x6a, 0xdb, 0x40,
0x10, 0xc6, 0x91, 0x0b, 0x05, 0x6f, 0x29, 0x6d,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