Debian Codegraph @

automl/apiv1/automlpb/geometry.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/v1/geometry.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 vertex represents a 2D point in the image.
38 // The normalized vertex coordinates are between 0 to 1 fractions relative to
39 // the original plane (image, video). E.g. if the plane (e.g. whole image) would
40 // have size 10 x 20 then a point with normalized coordinates (0.1, 0.3) would
41 // be at the position (1, 6) on that plane.
42 type NormalizedVertex struct {
43 state protoimpl.MessageState
44 sizeCache protoimpl.SizeCache
45 unknownFields protoimpl.UnknownFields
46
47 // Required. Horizontal coordinate.
48 X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
49 // Required. Vertical coordinate.
50 Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
51 }
52
53 func (x *NormalizedVertex) Reset() {
54 *x = NormalizedVertex{}
55 mi := &file_google_cloud_automl_v1_geometry_proto_msgTypes[0]
56 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
57 ms.StoreMessageInfo(mi)
58 }
59
60 func (x *NormalizedVertex) String() string {
61 return protoimpl.X.MessageStringOf(x)
62 }
63
64 func (*NormalizedVertex) ProtoMessage() {}
65
66 func (x *NormalizedVertex) ProtoReflect() protoreflect.Message {
67 mi := &file_google_cloud_automl_v1_geometry_proto_msgTypes[0]
68 if x != nil {
69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
70 if ms.LoadMessageInfo() == nil {
71 ms.StoreMessageInfo(mi)
72 }
73 return ms
74 }
75 return mi.MessageOf(x)
76 }
77
78 // Deprecated: Use NormalizedVertex.ProtoReflect.Descriptor instead.
79 func (*NormalizedVertex) Descriptor() ([]byte, []int) {
80 return file_google_cloud_automl_v1_geometry_proto_rawDescGZIP(), []int{0}
81 }
82
83 func (x *NormalizedVertex) GetX() float32 {
84 if x != nil {
85 return x.X
86 }
87 return 0
88 }
89
90 func (x *NormalizedVertex) GetY() float32 {
91 if x != nil {
92 return x.Y
93 }
94 return 0
95 }
96
97 // A bounding polygon of a detected object on a plane.
98 // On output both vertices and normalized_vertices are provided.
99 // The polygon is formed by connecting vertices in the order they are listed.
100 type BoundingPoly struct {
101 state protoimpl.MessageState
102 sizeCache protoimpl.SizeCache
103 unknownFields protoimpl.UnknownFields
104
105 // Output only . The bounding polygon normalized vertices.
106 NormalizedVertices []*NormalizedVertex `protobuf:"bytes,2,rep,name=normalized_vertices,json=normalizedVertices,proto3" json:"normalized_vertices,omitempty"`
107 }
108
109 func (x *BoundingPoly) Reset() {
110 *x = BoundingPoly{}
111 mi := &file_google_cloud_automl_v1_geometry_proto_msgTypes[1]
112 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
113 ms.StoreMessageInfo(mi)
114 }
115
116 func (x *BoundingPoly) String() string {
117 return protoimpl.X.MessageStringOf(x)
118 }
119
120 func (*BoundingPoly) ProtoMessage() {}
121
122 func (x *BoundingPoly) ProtoReflect() protoreflect.Message {
123 mi := &file_google_cloud_automl_v1_geometry_proto_msgTypes[1]
124 if x != nil {
125 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
126 if ms.LoadMessageInfo() == nil {
127 ms.StoreMessageInfo(mi)
128 }
129 return ms
130 }
131 return mi.MessageOf(x)
132 }
133
134 // Deprecated: Use BoundingPoly.ProtoReflect.Descriptor instead.
135 func (*BoundingPoly) Descriptor() ([]byte, []int) {
136 return file_google_cloud_automl_v1_geometry_proto_rawDescGZIP(), []int{1}
137 }
138
139 func (x *BoundingPoly) GetNormalizedVertices() []*NormalizedVertex {
140 if x != nil {
141 return x.NormalizedVertices
142 }
143 return nil
144 }
145
146 var File_google_cloud_automl_v1_geometry_proto protoreflect.FileDescriptor
147
148 var file_google_cloud_automl_v1_geometry_proto_rawDesc = []byte{
149 0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
150 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72,
151 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
152 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x22,
153 0x2e, 0x0a, 0x10, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x56, 0x65, 0x72,
154 0x74, 0x65, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01,
155 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x79, 0x22,
156 0x69, 0x0a, 0x0c, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x79, 0x12,
157 0x59, 0x0a, 0x13, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x76, 0x65,
158 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67,
159 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f,
160 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64,
161 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x52, 0x12, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a,
162 0x65, 0x64, 0x56, 0x65, 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0x42, 0xa0, 0x01, 0x0a, 0x1a, 0x63,
163 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
164 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x32, 0x63, 0x6c, 0x6f,
165 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f,
166 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x61, 0x75,
167 0x74, 0x6f, 0x6d, 0x6c, 0x70, 0x62, 0x3b, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x70, 0x62, 0xaa,
168 0x02, 0x16, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41,
169 0x75, 0x74, 0x6f, 0x4d, 0x4c, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x16, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
170 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x75, 0x74, 0x6f, 0x4d, 0x6c, 0x5c, 0x56,
171 0x31, 0xea, 0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75,
172 0x64, 0x3a, 0x3a, 0x41, 0x75, 0x74, 0x6f, 0x4d, 0x4c, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70,
173 0x72, 0x6f, 0x74, 0x6f, 0x33,
174 }
175
176 var (
177 file_google_cloud_automl_v1_geometry_proto_rawDescOnce sync.Once
178 file_google_cloud_automl_v1_geometry_proto_rawDescData = file_google_cloud_automl_v1_geometry_proto_rawDesc
179 )
180
181 func file_google_cloud_automl_v1_geometry_proto_rawDescGZIP() []byte {
182 file_google_cloud_automl_v1_geometry_proto_rawDescOnce.Do(func() {
183 file_google_cloud_automl_v1_geometry_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_automl_v1_geometry_proto_rawDescData)
184 })
185 return file_google_cloud_automl_v1_geometry_proto_rawDescData
186 }
187
188 var file_google_cloud_automl_v1_geometry_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
189 var file_google_cloud_automl_v1_geometry_proto_goTypes = []any{
190 (*NormalizedVertex)(nil), // 0: google.cloud.automl.v1.NormalizedVertex
191 (*BoundingPoly)(nil), // 1: google.cloud.automl.v1.BoundingPoly
192 }
193 var file_google_cloud_automl_v1_geometry_proto_depIdxs = []int32{
194 0, // 0: google.cloud.automl.v1.BoundingPoly.normalized_vertices:type_name -> google.cloud.automl.v1.NormalizedVertex
195 1, // [1:1] is the sub-list for method output_type
196 1, // [1:1] is the sub-list for method input_type
197 1, // [1:1] is the sub-list for extension type_name
198 1, // [1:1] is the sub-list for extension extendee
199 0, // [0:1] is the sub-list for field type_name
200 }
201
202 func init() { file_google_cloud_automl_v1_geometry_proto_init() }
203 func file_google_cloud_automl_v1_geometry_proto_init() {
204 if File_google_cloud_automl_v1_geometry_proto != nil {
205 return
206 }
207 type x struct{}
208 out := protoimpl.TypeBuilder{
209 File: protoimpl.DescBuilder{
210 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
211 RawDescriptor: file_google_cloud_automl_v1_geometry_proto_rawDesc,
212 NumEnums: 0,
213 NumMessages: 2,
214 NumExtensions: 0,
215 NumServices: 0,
216 },
217 GoTypes: file_google_cloud_automl_v1_geometry_proto_goTypes,
218 DependencyIndexes: file_google_cloud_automl_v1_geometry_proto_depIdxs,
219 MessageInfos: file_google_cloud_automl_v1_geometry_proto_msgTypes,
220 }.Build()
221 File_google_cloud_automl_v1_geometry_proto = out.File
222 file_google_cloud_automl_v1_geometry_proto_rawDesc = nil
223 file_google_cloud_automl_v1_geometry_proto_goTypes = nil
224 file_google_cloud_automl_v1_geometry_proto_depIdxs = nil
225 }