forked from googleapis/java-spanner
/
data_items.pb.go
191 lines (166 loc) · 7.45 KB
/
data_items.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1/data_items.proto
package automl
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_ "github.com/golang/protobuf/ptypes/any"
_ "github.com/golang/protobuf/ptypes/duration"
_ "github.com/golang/protobuf/ptypes/struct"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// 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"`
// Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed
// values are "text/html" and "text/plain". If left blank, the format is
// automatically determined from the type of the uploaded [content][google.cloud.automl.v1.TextSnippet.content].
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_9aa6620a22bddfe1, []int{0}
}
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_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_9aa6620a22bddfe1, []int{1}
}
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_TextSnippet struct {
TextSnippet *TextSnippet `protobuf:"bytes,2,opt,name=text_snippet,json=textSnippet,proto3,oneof"`
}
func (*ExamplePayload_TextSnippet) isExamplePayload_Payload() {}
func (m *ExamplePayload) GetPayload() isExamplePayload_Payload {
if m != nil {
return m.Payload
}
return nil
}
func (m *ExamplePayload) GetTextSnippet() *TextSnippet {
if x, ok := m.GetPayload().(*ExamplePayload_TextSnippet); ok {
return x.TextSnippet
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*ExamplePayload) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*ExamplePayload_TextSnippet)(nil),
}
}
func init() {
proto.RegisterType((*TextSnippet)(nil), "google.cloud.automl.v1.TextSnippet")
proto.RegisterType((*ExamplePayload)(nil), "google.cloud.automl.v1.ExamplePayload")
}
func init() {
proto.RegisterFile("google/cloud/automl/v1/data_items.proto", fileDescriptor_9aa6620a22bddfe1)
}
var fileDescriptor_9aa6620a22bddfe1 = []byte{
// 350 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xc1, 0x4e, 0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