1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/cloud/automl/v1beta1/text_sentiment.proto
3
4package automl
5
6import (
7	fmt "fmt"
8	math "math"
9
10	proto "github.com/golang/protobuf/proto"
11	_ "google.golang.org/genproto/googleapis/api/annotations"
12)
13
14// Reference imports to suppress errors if they are not otherwise used.
15var _ = proto.Marshal
16var _ = fmt.Errorf
17var _ = math.Inf
18
19// This is a compile-time assertion to ensure that this generated file
20// is compatible with the proto package it is being compiled against.
21// A compilation error at this line likely means your copy of the
22// proto package needs to be updated.
23const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
24
25// Contains annotation details specific to text sentiment.
26type TextSentimentAnnotation struct {
27	// Output only. The sentiment with the semantic, as given to the
28	// [AutoMl.ImportData][google.cloud.automl.v1beta1.AutoMl.ImportData] when populating the dataset from which the model used
29	// for the prediction had been trained.
30	// The sentiment values are between 0 and
31	// Dataset.text_sentiment_dataset_metadata.sentiment_max (inclusive),
32	// with higher value meaning more positive sentiment. They are completely
33	// relative, i.e. 0 means least positive sentiment and sentiment_max means
34	// the most positive from the sentiments present in the train data. Therefore
35	//  e.g. if train data had only negative sentiment, then sentiment_max, would
36	// be still negative (although least negative).
37	// The sentiment shouldn't be confused with "score" or "magnitude"
38	// from the previous Natural Language Sentiment Analysis API.
39	Sentiment            int32    `protobuf:"varint,1,opt,name=sentiment,proto3" json:"sentiment,omitempty"`
40	XXX_NoUnkeyedLiteral struct{} `json:"-"`
41	XXX_unrecognized     []byte   `json:"-"`
42	XXX_sizecache        int32    `json:"-"`
43}
44
45func (m *TextSentimentAnnotation) Reset()         { *m = TextSentimentAnnotation{} }
46func (m *TextSentimentAnnotation) String() string { return proto.CompactTextString(m) }
47func (*TextSentimentAnnotation) ProtoMessage()    {}
48func (*TextSentimentAnnotation) Descriptor() ([]byte, []int) {
49	return fileDescriptor_2c3765cde9ff2509, []int{0}
50}
51
52func (m *TextSentimentAnnotation) XXX_Unmarshal(b []byte) error {
53	return xxx_messageInfo_TextSentimentAnnotation.Unmarshal(m, b)
54}
55func (m *TextSentimentAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
56	return xxx_messageInfo_TextSentimentAnnotation.Marshal(b, m, deterministic)
57}
58func (m *TextSentimentAnnotation) XXX_Merge(src proto.Message) {
59	xxx_messageInfo_TextSentimentAnnotation.Merge(m, src)
60}
61func (m *TextSentimentAnnotation) XXX_Size() int {
62	return xxx_messageInfo_TextSentimentAnnotation.Size(m)
63}
64func (m *TextSentimentAnnotation) XXX_DiscardUnknown() {
65	xxx_messageInfo_TextSentimentAnnotation.DiscardUnknown(m)
66}
67
68var xxx_messageInfo_TextSentimentAnnotation proto.InternalMessageInfo
69
70func (m *TextSentimentAnnotation) GetSentiment() int32 {
71	if m != nil {
72		return m.Sentiment
73	}
74	return 0
75}
76
77// Model evaluation metrics for text sentiment problems.
78type TextSentimentEvaluationMetrics struct {
79	// Output only. Precision.
80	Precision float32 `protobuf:"fixed32,1,opt,name=precision,proto3" json:"precision,omitempty"`
81	// Output only. Recall.
82	Recall float32 `protobuf:"fixed32,2,opt,name=recall,proto3" json:"recall,omitempty"`
83	// Output only. The harmonic mean of recall and precision.
84	F1Score float32 `protobuf:"fixed32,3,opt,name=f1_score,json=f1Score,proto3" json:"f1_score,omitempty"`
85	// Output only. Mean absolute error. Only set for the overall model
86	// evaluation, not for evaluation of a single annotation spec.
87	MeanAbsoluteError float32 `protobuf:"fixed32,4,opt,name=mean_absolute_error,json=meanAbsoluteError,proto3" json:"mean_absolute_error,omitempty"`
88	// Output only. Mean squared error. Only set for the overall model
89	// evaluation, not for evaluation of a single annotation spec.
90	MeanSquaredError float32 `protobuf:"fixed32,5,opt,name=mean_squared_error,json=meanSquaredError,proto3" json:"mean_squared_error,omitempty"`
91	// Output only. Linear weighted kappa. Only set for the overall model
92	// evaluation, not for evaluation of a single annotation spec.
93	LinearKappa float32 `protobuf:"fixed32,6,opt,name=linear_kappa,json=linearKappa,proto3" json:"linear_kappa,omitempty"`
94	// Output only. Quadratic weighted kappa. Only set for the overall model
95	// evaluation, not for evaluation of a single annotation spec.
96	QuadraticKappa float32 `protobuf:"fixed32,7,opt,name=quadratic_kappa,json=quadraticKappa,proto3" json:"quadratic_kappa,omitempty"`
97	// Output only. Confusion matrix of the evaluation.
98	// Only set for the overall model evaluation, not for evaluation of a single
99	// annotation spec.
100	ConfusionMatrix *ClassificationEvaluationMetrics_ConfusionMatrix `protobuf:"bytes,8,opt,name=confusion_matrix,json=confusionMatrix,proto3" json:"confusion_matrix,omitempty"`
101	// Output only. The annotation spec ids used for this evaluation.
102	// Deprecated .
103	AnnotationSpecId     []string `protobuf:"bytes,9,rep,name=annotation_spec_id,json=annotationSpecId,proto3" json:"annotation_spec_id,omitempty"` // Deprecated: Do not use.
104	XXX_NoUnkeyedLiteral struct{} `json:"-"`
105	XXX_unrecognized     []byte   `json:"-"`
106	XXX_sizecache        int32    `json:"-"`
107}
108
109func (m *TextSentimentEvaluationMetrics) Reset()         { *m = TextSentimentEvaluationMetrics{} }
110func (m *TextSentimentEvaluationMetrics) String() string { return proto.CompactTextString(m) }
111func (*TextSentimentEvaluationMetrics) ProtoMessage()    {}
112func (*TextSentimentEvaluationMetrics) Descriptor() ([]byte, []int) {
113	return fileDescriptor_2c3765cde9ff2509, []int{1}
114}
115
116func (m *TextSentimentEvaluationMetrics) XXX_Unmarshal(b []byte) error {
117	return xxx_messageInfo_TextSentimentEvaluationMetrics.Unmarshal(m, b)
118}
119func (m *TextSentimentEvaluationMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
120	return xxx_messageInfo_TextSentimentEvaluationMetrics.Marshal(b, m, deterministic)
121}
122func (m *TextSentimentEvaluationMetrics) XXX_Merge(src proto.Message) {
123	xxx_messageInfo_TextSentimentEvaluationMetrics.Merge(m, src)
124}
125func (m *TextSentimentEvaluationMetrics) XXX_Size() int {
126	return xxx_messageInfo_TextSentimentEvaluationMetrics.Size(m)
127}
128func (m *TextSentimentEvaluationMetrics) XXX_DiscardUnknown() {
129	xxx_messageInfo_TextSentimentEvaluationMetrics.DiscardUnknown(m)
130}
131
132var xxx_messageInfo_TextSentimentEvaluationMetrics proto.InternalMessageInfo
133
134func (m *TextSentimentEvaluationMetrics) GetPrecision() float32 {
135	if m != nil {
136		return m.Precision
137	}
138	return 0
139}
140
141func (m *TextSentimentEvaluationMetrics) GetRecall() float32 {
142	if m != nil {
143		return m.Recall
144	}
145	return 0
146}
147
148func (m *TextSentimentEvaluationMetrics) GetF1Score() float32 {
149	if m != nil {
150		return m.F1Score
151	}
152	return 0
153}
154
155func (m *TextSentimentEvaluationMetrics) GetMeanAbsoluteError() float32 {
156	if m != nil {
157		return m.MeanAbsoluteError
158	}
159	return 0
160}
161
162func (m *TextSentimentEvaluationMetrics) GetMeanSquaredError() float32 {
163	if m != nil {
164		return m.MeanSquaredError
165	}
166	return 0
167}
168
169func (m *TextSentimentEvaluationMetrics) GetLinearKappa() float32 {
170	if m != nil {
171		return m.LinearKappa
172	}
173	return 0
174}
175
176func (m *TextSentimentEvaluationMetrics) GetQuadraticKappa() float32 {
177	if m != nil {
178		return m.QuadraticKappa
179	}
180	return 0
181}
182
183func (m *TextSentimentEvaluationMetrics) GetConfusionMatrix() *ClassificationEvaluationMetrics_ConfusionMatrix {
184	if m != nil {
185		return m.ConfusionMatrix
186	}
187	return nil
188}
189
190// Deprecated: Do not use.
191func (m *TextSentimentEvaluationMetrics) GetAnnotationSpecId() []string {
192	if m != nil {
193		return m.AnnotationSpecId
194	}
195	return nil
196}
197
198func init() {
199	proto.RegisterType((*TextSentimentAnnotation)(nil), "google.cloud.automl.v1beta1.TextSentimentAnnotation")
200	proto.RegisterType((*TextSentimentEvaluationMetrics)(nil), "google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics")
201}
202
203func init() {
204	proto.RegisterFile("google/cloud/automl/v1beta1/text_sentiment.proto", fileDescriptor_2c3765cde9ff2509)
205}
206
207var fileDescriptor_2c3765cde9ff2509 = []byte{
208	// 473 bytes of a gzipped FileDescriptorProto
209	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xd1, 0x6e, 0xd3, 0x30,
210	0x14, 0x86, 0xd5, 0x94, 0x75, 0xab, 0x87, 0x58, 0x31, 0x12, 0x84, 0x6d, 0x1a, 0x65, 0x37, 0xf4,
211	0x02, 0x25, 0x2b, 0x5c, 0x20, 0x85, 0xab, 0xb6, 0x9a, 0x10, 0x62, 0x95, 0x50, 0x8b, 0xb8, 0x40,
212	0x95, 0xa2, 0x53, 0xe7, 0x34, 0xb2, 0x70, 0xec, 0xcc, 0x76, 0x46, 0xdf, 0x8c, 0x37, 0xe0, 0x82,
213	0x47, 0xe1, 0x29, 0x50, 0xec, 0xac, 0x55, 0x05, 0xea, 0xa5, 0xcf, 0xf7, 0xfd, 0x7f, 0xdd, 0x1c,
214	0x93, 0xab, 0x5c, 0xa9, 0x5c, 0x60, 0xcc, 0x84, 0xaa, 0xb2, 0x18, 0x2a, 0xab, 0x0a, 0x11, 0xdf,
215	0x0d, 0x97, 0x68, 0x61, 0x18, 0x5b, 0x5c, 0xdb, 0xd4, 0xa0, 0xb4, 0xbc, 0x40, 0x69, 0xa3, 0x52,
216	0x2b, 0xab, 0xe8, 0x99, 0x4f, 0x44, 0x2e, 0x11, 0xf9, 0x44, 0xd4, 0x24, 0x4e, 0xf7, 0xd6, 0x31,
217	0x01, 0xc6, 0xf0, 0x15, 0x67, 0x60, 0xb9, 0x92, 0xbe, 0xee, 0xf4, 0xbc, 0x49, 0x40, 0xc9, 0x63,
218	0x90, 0x52, 0x59, 0x07, 0x8d, 0xa7, 0x97, 0xef, 0xc8, 0xb3, 0x2f, 0xb8, 0xb6, 0xf3, 0xfb, 0x3b,
219	0x8c, 0x36, 0x06, 0x3d, 0x27, 0xdd, 0xcd, 0xd5, 0xc2, 0x56, 0xbf, 0x35, 0x38, 0x98, 0x6d, 0x07,
220	0x97, 0xbf, 0xda, 0xe4, 0x62, 0x27, 0x79, 0x7d, 0x07, 0xa2, 0x72, 0xc9, 0x29, 0x5a, 0xcd, 0x99,
221	0xa9, 0x0b, 0x4a, 0x8d, 0x8c, 0x1b, 0xae, 0xa4, 0x2b, 0x08, 0x66, 0xdb, 0x01, 0x7d, 0x4a, 0x3a,
222	0x1a, 0x19, 0x08, 0x11, 0x06, 0x0e, 0x35, 0x27, 0xfa, 0x9c, 0x1c, 0xad, 0x86, 0xa9, 0x61, 0x4a,
223	0x63, 0xd8, 0x76, 0xe4, 0x70, 0x35, 0x9c, 0xd7, 0x47, 0x1a, 0x91, 0x27, 0x05, 0x82, 0x4c, 0x61,
224	0x69, 0x94, 0xa8, 0x2c, 0xa6, 0xa8, 0xb5, 0xd2, 0xe1, 0x03, 0x67, 0x3d, 0xae, 0xd1, 0xa8, 0x21,
225	0xd7, 0x35, 0xa0, 0xaf, 0x09, 0x75, 0xbe, 0xb9, 0xad, 0x40, 0x63, 0xd6, 0xe8, 0x07, 0x4e, 0xef,
226	0xd5, 0x64, 0xee, 0x81, 0xb7, 0x5f, 0x92, 0x87, 0x82, 0x4b, 0x04, 0x9d, 0x7e, 0x87, 0xb2, 0x84,
227	0xb0, 0xe3, 0xbc, 0x63, 0x3f, 0xfb, 0x54, 0x8f, 0xe8, 0x2b, 0x72, 0x72, 0x5b, 0x41, 0xa6, 0xc1,
228	0x72, 0xd6, 0x58, 0x87, 0xce, 0x7a, 0xb4, 0x19, 0x7b, 0xf1, 0x07, 0xe9, 0x31, 0x25, 0x57, 0x55,
229	0xfd, 0x4f, 0xd3, 0x02, 0xac, 0xe6, 0xeb, 0xf0, 0xa8, 0xdf, 0x1a, 0x1c, 0xbf, 0xb9, 0x89, 0xf6,
230	0xac, 0x37, 0x9a, 0xec, 0x6c, 0xf0, 0x9f, 0x4f, 0x1a, 0x4d, 0xee, 0x4b, 0xa7, 0xae, 0x73, 0x76,
231	0xc2, 0x76, 0x07, 0xf4, 0x8a, 0xd0, 0xed, 0x92, 0x53, 0x53, 0x22, 0x4b, 0x79, 0x16, 0x76, 0xfb,
232	0xed, 0x41, 0x77, 0x1c, 0x84, 0xad, 0x59, 0x6f, 0x4b, 0xe7, 0x25, 0xb2, 0x8f, 0xd9, 0xf8, 0x67,
233	0x8b, 0xbc, 0x60, 0xaa, 0xd8, 0x77, 0xad, 0x31, 0xdd, 0xd9, 0xf4, 0xe7, 0xfa, 0xe5, 0x7c, 0x1b,
234	0x35, 0x81, 0x5c, 0x09, 0x90, 0x79, 0xa4, 0x74, 0x1e, 0xe7, 0x28, 0xdd, 0xab, 0x8a, 0x3d, 0x82,
235	0x92, 0x9b, 0xff, 0x3e, 0xd4, 0xf7, 0xfe, 0xf8, 0x3b, 0x38, 0xfb, 0xe0, 0xc4, 0xc5, 0xa4, 0x96,
236	0x16, 0xa3, 0xca, 0xaa, 0xa9, 0x58, 0x7c, 0xf5, 0xd2, 0x9f, 0xe0, 0xc2, 0xd3, 0x24, 0x71, 0x38,
237	0x49, 0x1c, 0xbf, 0x49, 0x92, 0x46, 0x58, 0x76, 0xdc, 0x8f, 0xbd, 0xfd, 0x1b, 0x00, 0x00, 0xff,
238	0xff, 0xae, 0xf0, 0x52, 0x23, 0x63, 0x03, 0x00, 0x00,
239}
240