No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

254 líneas
10 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/cloud/automl/v1beta1/model_evaluation.proto
  3. package automl // import "google.golang.org/genproto/googleapis/cloud/automl/v1beta1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import timestamp "github.com/golang/protobuf/ptypes/timestamp"
  8. import _ "google.golang.org/genproto/googleapis/api/annotations"
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  18. // Evaluation results of a model.
  19. type ModelEvaluation struct {
  20. // Output only. Problem type specific evaluation metrics.
  21. //
  22. // Types that are valid to be assigned to Metrics:
  23. // *ModelEvaluation_ClassificationEvaluationMetrics
  24. // *ModelEvaluation_TranslationEvaluationMetrics
  25. Metrics isModelEvaluation_Metrics `protobuf_oneof:"metrics"`
  26. // Output only.
  27. // Resource name of the model evaluation.
  28. // Format:
  29. //
  30. // `projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}`
  31. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  32. // Output only.
  33. // The ID of the annotation spec that the model evaluation applies to. The
  34. // ID is empty for overall model evaluation.
  35. // NOTE: Currently there is no way to obtain the display_name of the
  36. // annotation spec from its ID. To see the display_names, review the model
  37. // evaluations in the UI.
  38. AnnotationSpecId string `protobuf:"bytes,2,opt,name=annotation_spec_id,json=annotationSpecId,proto3" json:"annotation_spec_id,omitempty"`
  39. // Output only.
  40. // Timestamp when this model evaluation was created.
  41. CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
  42. // Output only. The number of examples used for model evaluation.
  43. EvaluatedExampleCount int32 `protobuf:"varint,6,opt,name=evaluated_example_count,json=evaluatedExampleCount,proto3" json:"evaluated_example_count,omitempty"`
  44. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  45. XXX_unrecognized []byte `json:"-"`
  46. XXX_sizecache int32 `json:"-"`
  47. }
  48. func (m *ModelEvaluation) Reset() { *m = ModelEvaluation{} }
  49. func (m *ModelEvaluation) String() string { return proto.CompactTextString(m) }
  50. func (*ModelEvaluation) ProtoMessage() {}
  51. func (*ModelEvaluation) Descriptor() ([]byte, []int) {
  52. return fileDescriptor_model_evaluation_1263308439036312, []int{0}
  53. }
  54. func (m *ModelEvaluation) XXX_Unmarshal(b []byte) error {
  55. return xxx_messageInfo_ModelEvaluation.Unmarshal(m, b)
  56. }
  57. func (m *ModelEvaluation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  58. return xxx_messageInfo_ModelEvaluation.Marshal(b, m, deterministic)
  59. }
  60. func (dst *ModelEvaluation) XXX_Merge(src proto.Message) {
  61. xxx_messageInfo_ModelEvaluation.Merge(dst, src)
  62. }
  63. func (m *ModelEvaluation) XXX_Size() int {
  64. return xxx_messageInfo_ModelEvaluation.Size(m)
  65. }
  66. func (m *ModelEvaluation) XXX_DiscardUnknown() {
  67. xxx_messageInfo_ModelEvaluation.DiscardUnknown(m)
  68. }
  69. var xxx_messageInfo_ModelEvaluation proto.InternalMessageInfo
  70. type isModelEvaluation_Metrics interface {
  71. isModelEvaluation_Metrics()
  72. }
  73. type ModelEvaluation_ClassificationEvaluationMetrics struct {
  74. ClassificationEvaluationMetrics *ClassificationEvaluationMetrics `protobuf:"bytes,8,opt,name=classification_evaluation_metrics,json=classificationEvaluationMetrics,proto3,oneof"`
  75. }
  76. type ModelEvaluation_TranslationEvaluationMetrics struct {
  77. TranslationEvaluationMetrics *TranslationEvaluationMetrics `protobuf:"bytes,9,opt,name=translation_evaluation_metrics,json=translationEvaluationMetrics,proto3,oneof"`
  78. }
  79. func (*ModelEvaluation_ClassificationEvaluationMetrics) isModelEvaluation_Metrics() {}
  80. func (*ModelEvaluation_TranslationEvaluationMetrics) isModelEvaluation_Metrics() {}
  81. func (m *ModelEvaluation) GetMetrics() isModelEvaluation_Metrics {
  82. if m != nil {
  83. return m.Metrics
  84. }
  85. return nil
  86. }
  87. func (m *ModelEvaluation) GetClassificationEvaluationMetrics() *ClassificationEvaluationMetrics {
  88. if x, ok := m.GetMetrics().(*ModelEvaluation_ClassificationEvaluationMetrics); ok {
  89. return x.ClassificationEvaluationMetrics
  90. }
  91. return nil
  92. }
  93. func (m *ModelEvaluation) GetTranslationEvaluationMetrics() *TranslationEvaluationMetrics {
  94. if x, ok := m.GetMetrics().(*ModelEvaluation_TranslationEvaluationMetrics); ok {
  95. return x.TranslationEvaluationMetrics
  96. }
  97. return nil
  98. }
  99. func (m *ModelEvaluation) GetName() string {
  100. if m != nil {
  101. return m.Name
  102. }
  103. return ""
  104. }
  105. func (m *ModelEvaluation) GetAnnotationSpecId() string {
  106. if m != nil {
  107. return m.AnnotationSpecId
  108. }
  109. return ""
  110. }
  111. func (m *ModelEvaluation) GetCreateTime() *timestamp.Timestamp {
  112. if m != nil {
  113. return m.CreateTime
  114. }
  115. return nil
  116. }
  117. func (m *ModelEvaluation) GetEvaluatedExampleCount() int32 {
  118. if m != nil {
  119. return m.EvaluatedExampleCount
  120. }
  121. return 0
  122. }
  123. // XXX_OneofFuncs is for the internal use of the proto package.
  124. 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{}) {
  125. return _ModelEvaluation_OneofMarshaler, _ModelEvaluation_OneofUnmarshaler, _ModelEvaluation_OneofSizer, []interface{}{
  126. (*ModelEvaluation_ClassificationEvaluationMetrics)(nil),
  127. (*ModelEvaluation_TranslationEvaluationMetrics)(nil),
  128. }
  129. }
  130. func _ModelEvaluation_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  131. m := msg.(*ModelEvaluation)
  132. // metrics
  133. switch x := m.Metrics.(type) {
  134. case *ModelEvaluation_ClassificationEvaluationMetrics:
  135. b.EncodeVarint(8<<3 | proto.WireBytes)
  136. if err := b.EncodeMessage(x.ClassificationEvaluationMetrics); err != nil {
  137. return err
  138. }
  139. case *ModelEvaluation_TranslationEvaluationMetrics:
  140. b.EncodeVarint(9<<3 | proto.WireBytes)
  141. if err := b.EncodeMessage(x.TranslationEvaluationMetrics); err != nil {
  142. return err
  143. }
  144. case nil:
  145. default:
  146. return fmt.Errorf("ModelEvaluation.Metrics has unexpected type %T", x)
  147. }
  148. return nil
  149. }
  150. func _ModelEvaluation_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  151. m := msg.(*ModelEvaluation)
  152. switch tag {
  153. case 8: // metrics.classification_evaluation_metrics
  154. if wire != proto.WireBytes {
  155. return true, proto.ErrInternalBadWireType
  156. }
  157. msg := new(ClassificationEvaluationMetrics)
  158. err := b.DecodeMessage(msg)
  159. m.Metrics = &ModelEvaluation_ClassificationEvaluationMetrics{msg}
  160. return true, err
  161. case 9: // metrics.translation_evaluation_metrics
  162. if wire != proto.WireBytes {
  163. return true, proto.ErrInternalBadWireType
  164. }
  165. msg := new(TranslationEvaluationMetrics)
  166. err := b.DecodeMessage(msg)
  167. m.Metrics = &ModelEvaluation_TranslationEvaluationMetrics{msg}
  168. return true, err
  169. default:
  170. return false, nil
  171. }
  172. }
  173. func _ModelEvaluation_OneofSizer(msg proto.Message) (n int) {
  174. m := msg.(*ModelEvaluation)
  175. // metrics
  176. switch x := m.Metrics.(type) {
  177. case *ModelEvaluation_ClassificationEvaluationMetrics:
  178. s := proto.Size(x.ClassificationEvaluationMetrics)
  179. n += 1 // tag and wire
  180. n += proto.SizeVarint(uint64(s))
  181. n += s
  182. case *ModelEvaluation_TranslationEvaluationMetrics:
  183. s := proto.Size(x.TranslationEvaluationMetrics)
  184. n += 1 // tag and wire
  185. n += proto.SizeVarint(uint64(s))
  186. n += s
  187. case nil:
  188. default:
  189. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  190. }
  191. return n
  192. }
  193. func init() {
  194. proto.RegisterType((*ModelEvaluation)(nil), "google.cloud.automl.v1beta1.ModelEvaluation")
  195. }
  196. func init() {
  197. proto.RegisterFile("google/cloud/automl/v1beta1/model_evaluation.proto", fileDescriptor_model_evaluation_1263308439036312)
  198. }
  199. var fileDescriptor_model_evaluation_1263308439036312 = []byte{
  200. // 410 bytes of a gzipped FileDescriptorProto
  201. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x52, 0x4d, 0x8b, 0x13, 0x31,
  202. 0x18, 0x36, 0xab, 0xbb, 0xda, 0xec, 0x41, 0x09, 0x88, 0xc3, 0xec, 0x62, 0xab, 0xa7, 0x1e, 0x34,
  203. 0x71, 0x2b, 0x08, 0x52, 0x2f, 0x6d, 0x29, 0xea, 0xa1, 0x20, 0x63, 0xf1, 0x20, 0x85, 0x21, 0xcd,
  204. 0xa4, 0x43, 0x20, 0x1f, 0xc3, 0x24, 0x53, 0xbc, 0x0a, 0x9e, 0xfc, 0x69, 0xfe, 0x0e, 0x7f, 0xc8,
  205. 0x32, 0xc9, 0xb4, 0x33, 0x85, 0x32, 0xb7, 0xc9, 0x3c, 0x1f, 0xef, 0xf3, 0xe4, 0x0d, 0x9c, 0xe4,
  206. 0xc6, 0xe4, 0x92, 0x13, 0x26, 0x4d, 0x95, 0x11, 0x5a, 0x39, 0xa3, 0x24, 0xd9, 0xdf, 0x6d, 0xb9,
  207. 0xa3, 0x77, 0x44, 0x99, 0x8c, 0xcb, 0x94, 0xef, 0xa9, 0xac, 0xa8, 0x13, 0x46, 0xe3, 0xa2, 0x34,
  208. 0xce, 0xa0, 0x9b, 0xa0, 0xc1, 0x5e, 0x83, 0x83, 0x06, 0x37, 0x9a, 0xf8, 0xb6, 0x31, 0xa4, 0x85,
  209. 0x20, 0x54, 0x6b, 0xe3, 0xbc, 0xd2, 0x06, 0x69, 0xfc, 0xae, 0x6f, 0x1c, 0x93, 0xd4, 0x5a, 0xb1,
  210. 0x13, 0xac, 0x33, 0x2c, 0x7e, 0xdb, 0xa7, 0x70, 0x25, 0xd5, 0x56, 0x76, 0xe9, 0xc3, 0x86, 0xee,
  211. 0x4f, 0xdb, 0x6a, 0x47, 0x9c, 0x50, 0xdc, 0x3a, 0xaa, 0x8a, 0x40, 0x78, 0xfd, 0xff, 0x21, 0x7c,
  212. 0xba, 0xaa, 0x7b, 0x2d, 0x8f, 0xb5, 0xd0, 0x5f, 0x00, 0x5f, 0x9d, 0x0e, 0xef, 0x94, 0x4e, 0x15,
  213. 0x77, 0xa5, 0x60, 0x36, 0x7a, 0x32, 0x02, 0xe3, 0xeb, 0xc9, 0x27, 0xdc, 0xd3, 0x1e, 0x2f, 0x4e,
  214. 0x5c, 0xda, 0x11, 0xab, 0xe0, 0xf1, 0xe5, 0x41, 0x32, 0x64, 0xfd, 0x14, 0xf4, 0x1b, 0xc0, 0x97,
  215. 0x9d, 0x5e, 0xe7, 0x92, 0x0c, 0x7c, 0x92, 0x8f, 0xbd, 0x49, 0xd6, 0xad, 0xc5, 0xb9, 0x18, 0xb7,
  216. 0xae, 0x07, 0x47, 0x08, 0x3e, 0xd2, 0x54, 0xf1, 0x08, 0x8c, 0xc0, 0x78, 0x90, 0xf8, 0x6f, 0xf4,
  217. 0x06, 0xa2, 0x76, 0x9f, 0xa9, 0x2d, 0x38, 0x4b, 0x45, 0x16, 0x5d, 0x78, 0xc6, 0xb3, 0x16, 0xf9,
  218. 0x5e, 0x70, 0xf6, 0x35, 0x43, 0x53, 0x78, 0xcd, 0x4a, 0x4e, 0x1d, 0x4f, 0xeb, 0x05, 0x44, 0x97,
  219. 0x3e, 0x71, 0x7c, 0x48, 0x7c, 0xd8, 0x0e, 0x5e, 0x1f, 0xb6, 0x93, 0xc0, 0x40, 0xaf, 0x7f, 0xa0,
  220. 0x0f, 0xf0, 0x45, 0xd3, 0x9a, 0x67, 0x29, 0xff, 0x45, 0x55, 0x21, 0x79, 0xca, 0x4c, 0xa5, 0x5d,
  221. 0x74, 0x35, 0x02, 0xe3, 0xcb, 0xe4, 0xf9, 0x11, 0x5e, 0x06, 0x74, 0x51, 0x83, 0xf3, 0x01, 0x7c,
  222. 0xdc, 0x5c, 0xd1, 0xfc, 0x0f, 0x80, 0x43, 0x66, 0x54, 0xdf, 0x15, 0x7d, 0x03, 0x3f, 0x67, 0x0d,
  223. 0x9c, 0x1b, 0x49, 0x75, 0x8e, 0x4d, 0x99, 0x93, 0x9c, 0x6b, 0x9f, 0x8e, 0x04, 0x88, 0x16, 0xc2,
  224. 0x9e, 0x7d, 0x7b, 0xd3, 0x70, 0xfc, 0x77, 0x71, 0xf3, 0xd9, 0x13, 0x37, 0x8b, 0x9a, 0xb4, 0x99,
  225. 0x55, 0xce, 0xac, 0xe4, 0xe6, 0x47, 0x20, 0x6d, 0xaf, 0xbc, 0xd7, 0xfb, 0xfb, 0x00, 0x00, 0x00,
  226. 0xff, 0xff, 0x5e, 0x71, 0x31, 0xe7, 0x67, 0x03, 0x00, 0x00,
  227. }