Debian Codegraph @

automl/apiv1beta1/automlpb/text_segment.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/automl/v1beta1/text_segment.proto
20
21 package automlpb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 reflect "reflect"
27 sync "sync"
28 )
29
30 const (
31 // Verify that this generated code is sufficiently up-to-date.
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33 // Verify that runtime/protoimpl is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 // A contiguous part of a text (string), assuming it has an UTF-8 NFC encoding.
38 type TextSegment struct {
39 state protoimpl.MessageState
40 sizeCache protoimpl.SizeCache
41 unknownFields protoimpl.UnknownFields
42
43 // Output only. The content of the TextSegment.
44 Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
45 // Required. Zero-based character index of the first character of the text
46 // segment (counting characters from the beginning of the text).
47 StartOffset int64 `protobuf:"varint,1,opt,name=start_offset,json=startOffset,proto3" json:"start_offset,omitempty"`
48 // Required. Zero-based character index of the first character past the end of
49 // the text segment (counting character from the beginning of the text).
50 // The character at the end_offset is NOT included in the text segment.
51 EndOffset int64 `protobuf:"varint,2,opt,name=end_offset,json=endOffset,proto3" json:"end_offset,omitempty"`
52 }
53
54 func (x *TextSegment) Reset() {
55 *x = TextSegment{}
56 mi := &file_google_cloud_automl_v1beta1_text_segment_proto_msgTypes[0]
57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
58 ms.StoreMessageInfo(mi)
59 }
60
61 func (x *TextSegment) String() string {
62 return protoimpl.X.MessageStringOf(x)
63 }
64
65 func (*TextSegment) ProtoMessage() {}
66
67 func (x *TextSegment) ProtoReflect() protoreflect.Message {
68 mi := &file_google_cloud_automl_v1beta1_text_segment_proto_msgTypes[0]
69 if x != nil {
70 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
71 if ms.LoadMessageInfo() == nil {
72 ms.StoreMessageInfo(mi)
73 }
74 return ms
75 }
76 return mi.MessageOf(x)
77 }
78
79 // Deprecated: Use TextSegment.ProtoReflect.Descriptor instead.
80 func (*TextSegment) Descriptor() ([]byte, []int) {
81 return file_google_cloud_automl_v1beta1_text_segment_proto_rawDescGZIP(), []int{0}
82 }
83
84 func (x *TextSegment) GetContent() string {
85 if x != nil {
86 return x.Content
87 }
88 return ""
89 }
90
91 func (x *TextSegment) GetStartOffset() int64 {
92 if x != nil {
93 return x.StartOffset
94 }
95 return 0
96 }
97
98 func (x *TextSegment) GetEndOffset() int64 {
99 if x != nil {
100 return x.EndOffset
101 }
102 return 0
103 }
104
105 var File_google_cloud_automl_v1beta1_text_segment_proto protoreflect.FileDescriptor
106
107 var file_google_cloud_automl_v1beta1_text_segment_proto_rawDesc = []byte{
108 0x0a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
109 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x65,
110 0x78, 0x74, 0x5f, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
111 0x12, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61,
112 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x22, 0x69, 0x0a,
113 0x0b, 0x54, 0x65, 0x78, 0x74, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07,
114 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63,
115 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f,
116 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x73, 0x74,
117 0x61, 0x72, 0x74, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x6e, 0x64,
118 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65,
119 0x6e, 0x64, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x42, 0xad, 0x01, 0x0a, 0x1f, 0x63, 0x6f, 0x6d,
120 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75,
121 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x10, 0x54, 0x65,
122 0x78, 0x74, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
123 0x5a, 0x37, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
124 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x61, 0x70, 0x69,
125 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x70, 0x62,
126 0x3b, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x70, 0x62, 0xca, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67,
127 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x75, 0x74, 0x6f, 0x4d, 0x6c, 0x5c,
128 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
129 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x75, 0x74, 0x6f, 0x4d, 0x4c, 0x3a,
130 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
131 }
132
133 var (
134 file_google_cloud_automl_v1beta1_text_segment_proto_rawDescOnce sync.Once
135 file_google_cloud_automl_v1beta1_text_segment_proto_rawDescData = file_google_cloud_automl_v1beta1_text_segment_proto_rawDesc
136 )
137
138 func file_google_cloud_automl_v1beta1_text_segment_proto_rawDescGZIP() []byte {
139 file_google_cloud_automl_v1beta1_text_segment_proto_rawDescOnce.Do(func() {
140 file_google_cloud_automl_v1beta1_text_segment_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_automl_v1beta1_text_segment_proto_rawDescData)
141 })
142 return file_google_cloud_automl_v1beta1_text_segment_proto_rawDescData
143 }
144
145 var file_google_cloud_automl_v1beta1_text_segment_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
146 var file_google_cloud_automl_v1beta1_text_segment_proto_goTypes = []any{
147 (*TextSegment)(nil), // 0: google.cloud.automl.v1beta1.TextSegment
148 }
149 var file_google_cloud_automl_v1beta1_text_segment_proto_depIdxs = []int32{
150 0, // [0:0] is the sub-list for method output_type
151 0, // [0:0] is the sub-list for method input_type
152 0, // [0:0] is the sub-list for extension type_name
153 0, // [0:0] is the sub-list for extension extendee
154 0, // [0:0] is the sub-list for field type_name
155 }
156
157 func init() { file_google_cloud_automl_v1beta1_text_segment_proto_init() }
158 func file_google_cloud_automl_v1beta1_text_segment_proto_init() {
159 if File_google_cloud_automl_v1beta1_text_segment_proto != nil {
160 return
161 }
162 type x struct{}
163 out := protoimpl.TypeBuilder{
164 File: protoimpl.DescBuilder{
165 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
166 RawDescriptor: file_google_cloud_automl_v1beta1_text_segment_proto_rawDesc,
167 NumEnums: 0,
168 NumMessages: 1,
169 NumExtensions: 0,
170 NumServices: 0,
171 },
172 GoTypes: file_google_cloud_automl_v1beta1_text_segment_proto_goTypes,
173 DependencyIndexes: file_google_cloud_automl_v1beta1_text_segment_proto_depIdxs,
174 MessageInfos: file_google_cloud_automl_v1beta1_text_segment_proto_msgTypes,
175 }.Build()
176 File_google_cloud_automl_v1beta1_text_segment_proto = out.File
177 file_google_cloud_automl_v1beta1_text_segment_proto_rawDesc = nil
178 file_google_cloud_automl_v1beta1_text_segment_proto_goTypes = nil
179 file_google_cloud_automl_v1beta1_text_segment_proto_depIdxs = nil
180 }