...

Source file src/google.golang.org/genproto/googleapis/cloud/documentai/v1beta1/geometry.pb.go

Documentation: google.golang.org/genproto/googleapis/cloud/documentai/v1beta1

     1  // Copyright 2019 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  
    16  // Code generated by protoc-gen-go. DO NOT EDIT.
    17  // versions:
    18  // 	protoc-gen-go v1.26.0
    19  // 	protoc        v3.12.2
    20  // source: google/cloud/documentai/v1beta1/geometry.proto
    21  
    22  package documentai
    23  
    24  import (
    25  	reflect "reflect"
    26  	sync "sync"
    27  
    28  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    29  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    30  )
    31  
    32  const (
    33  	// Verify that this generated code is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    35  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    36  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    37  )
    38  
    39  // A vertex represents a 2D point in the image.
    40  // NOTE: the vertex coordinates are in the same scale as the original image.
    41  type Vertex struct {
    42  	state         protoimpl.MessageState
    43  	sizeCache     protoimpl.SizeCache
    44  	unknownFields protoimpl.UnknownFields
    45  
    46  	// X coordinate.
    47  	X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
    48  	// Y coordinate.
    49  	Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
    50  }
    51  
    52  func (x *Vertex) Reset() {
    53  	*x = Vertex{}
    54  	if protoimpl.UnsafeEnabled {
    55  		mi := &file_google_cloud_documentai_v1beta1_geometry_proto_msgTypes[0]
    56  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    57  		ms.StoreMessageInfo(mi)
    58  	}
    59  }
    60  
    61  func (x *Vertex) String() string {
    62  	return protoimpl.X.MessageStringOf(x)
    63  }
    64  
    65  func (*Vertex) ProtoMessage() {}
    66  
    67  func (x *Vertex) ProtoReflect() protoreflect.Message {
    68  	mi := &file_google_cloud_documentai_v1beta1_geometry_proto_msgTypes[0]
    69  	if protoimpl.UnsafeEnabled && 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 Vertex.ProtoReflect.Descriptor instead.
    80  func (*Vertex) Descriptor() ([]byte, []int) {
    81  	return file_google_cloud_documentai_v1beta1_geometry_proto_rawDescGZIP(), []int{0}
    82  }
    83  
    84  func (x *Vertex) GetX() int32 {
    85  	if x != nil {
    86  		return x.X
    87  	}
    88  	return 0
    89  }
    90  
    91  func (x *Vertex) GetY() int32 {
    92  	if x != nil {
    93  		return x.Y
    94  	}
    95  	return 0
    96  }
    97  
    98  // A vertex represents a 2D point in the image.
    99  // NOTE: the normalized vertex coordinates are relative to the original image
   100  // and range from 0 to 1.
   101  type NormalizedVertex struct {
   102  	state         protoimpl.MessageState
   103  	sizeCache     protoimpl.SizeCache
   104  	unknownFields protoimpl.UnknownFields
   105  
   106  	// X coordinate.
   107  	X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
   108  	// Y coordinate.
   109  	Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
   110  }
   111  
   112  func (x *NormalizedVertex) Reset() {
   113  	*x = NormalizedVertex{}
   114  	if protoimpl.UnsafeEnabled {
   115  		mi := &file_google_cloud_documentai_v1beta1_geometry_proto_msgTypes[1]
   116  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   117  		ms.StoreMessageInfo(mi)
   118  	}
   119  }
   120  
   121  func (x *NormalizedVertex) String() string {
   122  	return protoimpl.X.MessageStringOf(x)
   123  }
   124  
   125  func (*NormalizedVertex) ProtoMessage() {}
   126  
   127  func (x *NormalizedVertex) ProtoReflect() protoreflect.Message {
   128  	mi := &file_google_cloud_documentai_v1beta1_geometry_proto_msgTypes[1]
   129  	if protoimpl.UnsafeEnabled && x != nil {
   130  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   131  		if ms.LoadMessageInfo() == nil {
   132  			ms.StoreMessageInfo(mi)
   133  		}
   134  		return ms
   135  	}
   136  	return mi.MessageOf(x)
   137  }
   138  
   139  // Deprecated: Use NormalizedVertex.ProtoReflect.Descriptor instead.
   140  func (*NormalizedVertex) Descriptor() ([]byte, []int) {
   141  	return file_google_cloud_documentai_v1beta1_geometry_proto_rawDescGZIP(), []int{1}
   142  }
   143  
   144  func (x *NormalizedVertex) GetX() float32 {
   145  	if x != nil {
   146  		return x.X
   147  	}
   148  	return 0
   149  }
   150  
   151  func (x *NormalizedVertex) GetY() float32 {
   152  	if x != nil {
   153  		return x.Y
   154  	}
   155  	return 0
   156  }
   157  
   158  // A bounding polygon for the detected image annotation.
   159  type BoundingPoly struct {
   160  	state         protoimpl.MessageState
   161  	sizeCache     protoimpl.SizeCache
   162  	unknownFields protoimpl.UnknownFields
   163  
   164  	// The bounding polygon vertices.
   165  	Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
   166  	// The bounding polygon normalized vertices.
   167  	NormalizedVertices []*NormalizedVertex `protobuf:"bytes,2,rep,name=normalized_vertices,json=normalizedVertices,proto3" json:"normalized_vertices,omitempty"`
   168  }
   169  
   170  func (x *BoundingPoly) Reset() {
   171  	*x = BoundingPoly{}
   172  	if protoimpl.UnsafeEnabled {
   173  		mi := &file_google_cloud_documentai_v1beta1_geometry_proto_msgTypes[2]
   174  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   175  		ms.StoreMessageInfo(mi)
   176  	}
   177  }
   178  
   179  func (x *BoundingPoly) String() string {
   180  	return protoimpl.X.MessageStringOf(x)
   181  }
   182  
   183  func (*BoundingPoly) ProtoMessage() {}
   184  
   185  func (x *BoundingPoly) ProtoReflect() protoreflect.Message {
   186  	mi := &file_google_cloud_documentai_v1beta1_geometry_proto_msgTypes[2]
   187  	if protoimpl.UnsafeEnabled && x != nil {
   188  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   189  		if ms.LoadMessageInfo() == nil {
   190  			ms.StoreMessageInfo(mi)
   191  		}
   192  		return ms
   193  	}
   194  	return mi.MessageOf(x)
   195  }
   196  
   197  // Deprecated: Use BoundingPoly.ProtoReflect.Descriptor instead.
   198  func (*BoundingPoly) Descriptor() ([]byte, []int) {
   199  	return file_google_cloud_documentai_v1beta1_geometry_proto_rawDescGZIP(), []int{2}
   200  }
   201  
   202  func (x *BoundingPoly) GetVertices() []*Vertex {
   203  	if x != nil {
   204  		return x.Vertices
   205  	}
   206  	return nil
   207  }
   208  
   209  func (x *BoundingPoly) GetNormalizedVertices() []*NormalizedVertex {
   210  	if x != nil {
   211  		return x.NormalizedVertices
   212  	}
   213  	return nil
   214  }
   215  
   216  var File_google_cloud_documentai_v1beta1_geometry_proto protoreflect.FileDescriptor
   217  
   218  var file_google_cloud_documentai_v1beta1_geometry_proto_rawDesc = []byte{
   219  	0x0a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64,
   220  	0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
   221  	0x31, 0x2f, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   222  	0x12, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64,
   223  	0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
   224  	0x31, 0x22, 0x24, 0x0a, 0x06, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x78,
   225  	0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02,
   226  	0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x79, 0x22, 0x2e, 0x0a, 0x10, 0x4e, 0x6f, 0x72, 0x6d, 0x61,
   227  	0x6c, 0x69, 0x7a, 0x65, 0x64, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x78,
   228  	0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02,
   229  	0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x79, 0x22, 0xb7, 0x01, 0x0a, 0x0c, 0x42, 0x6f, 0x75, 0x6e,
   230  	0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x79, 0x12, 0x43, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x74,
   231  	0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f,
   232  	0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65,
   233  	0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x56, 0x65, 0x72,
   234  	0x74, 0x65, 0x78, 0x52, 0x08, 0x76, 0x65, 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0x12, 0x62, 0x0a,
   235  	0x13, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x76, 0x65, 0x72, 0x74,
   236  	0x69, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f,
   237  	0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65,
   238  	0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4e, 0x6f, 0x72,
   239  	0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x52, 0x12, 0x6e,
   240  	0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x56, 0x65, 0x72, 0x74, 0x69, 0x63, 0x65,
   241  	0x73, 0x42, 0xea, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   242  	0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61,
   243  	0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0d, 0x47, 0x65, 0x6f, 0x6d, 0x65,
   244  	0x74, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 0x67, 0x6f, 0x6f, 0x67,
   245  	0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65,
   246  	0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
   247  	0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74,
   248  	0x61, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x64, 0x6f, 0x63, 0x75, 0x6d,
   249  	0x65, 0x6e, 0x74, 0x61, 0x69, 0xaa, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43,
   250  	0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x49, 0x2e,
   251  	0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   252  	0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41,
   253  	0x49, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x22, 0x47, 0x6f, 0x6f, 0x67,
   254  	0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x44, 0x6f, 0x63, 0x75, 0x6d,
   255  	0x65, 0x6e, 0x74, 0x41, 0x49, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06,
   256  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   257  }
   258  
   259  var (
   260  	file_google_cloud_documentai_v1beta1_geometry_proto_rawDescOnce sync.Once
   261  	file_google_cloud_documentai_v1beta1_geometry_proto_rawDescData = file_google_cloud_documentai_v1beta1_geometry_proto_rawDesc
   262  )
   263  
   264  func file_google_cloud_documentai_v1beta1_geometry_proto_rawDescGZIP() []byte {
   265  	file_google_cloud_documentai_v1beta1_geometry_proto_rawDescOnce.Do(func() {
   266  		file_google_cloud_documentai_v1beta1_geometry_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_documentai_v1beta1_geometry_proto_rawDescData)
   267  	})
   268  	return file_google_cloud_documentai_v1beta1_geometry_proto_rawDescData
   269  }
   270  
   271  var file_google_cloud_documentai_v1beta1_geometry_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   272  var file_google_cloud_documentai_v1beta1_geometry_proto_goTypes = []interface{}{
   273  	(*Vertex)(nil),           // 0: google.cloud.documentai.v1beta1.Vertex
   274  	(*NormalizedVertex)(nil), // 1: google.cloud.documentai.v1beta1.NormalizedVertex
   275  	(*BoundingPoly)(nil),     // 2: google.cloud.documentai.v1beta1.BoundingPoly
   276  }
   277  var file_google_cloud_documentai_v1beta1_geometry_proto_depIdxs = []int32{
   278  	0, // 0: google.cloud.documentai.v1beta1.BoundingPoly.vertices:type_name -> google.cloud.documentai.v1beta1.Vertex
   279  	1, // 1: google.cloud.documentai.v1beta1.BoundingPoly.normalized_vertices:type_name -> google.cloud.documentai.v1beta1.NormalizedVertex
   280  	2, // [2:2] is the sub-list for method output_type
   281  	2, // [2:2] is the sub-list for method input_type
   282  	2, // [2:2] is the sub-list for extension type_name
   283  	2, // [2:2] is the sub-list for extension extendee
   284  	0, // [0:2] is the sub-list for field type_name
   285  }
   286  
   287  func init() { file_google_cloud_documentai_v1beta1_geometry_proto_init() }
   288  func file_google_cloud_documentai_v1beta1_geometry_proto_init() {
   289  	if File_google_cloud_documentai_v1beta1_geometry_proto != nil {
   290  		return
   291  	}
   292  	if !protoimpl.UnsafeEnabled {
   293  		file_google_cloud_documentai_v1beta1_geometry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   294  			switch v := v.(*Vertex); i {
   295  			case 0:
   296  				return &v.state
   297  			case 1:
   298  				return &v.sizeCache
   299  			case 2:
   300  				return &v.unknownFields
   301  			default:
   302  				return nil
   303  			}
   304  		}
   305  		file_google_cloud_documentai_v1beta1_geometry_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   306  			switch v := v.(*NormalizedVertex); i {
   307  			case 0:
   308  				return &v.state
   309  			case 1:
   310  				return &v.sizeCache
   311  			case 2:
   312  				return &v.unknownFields
   313  			default:
   314  				return nil
   315  			}
   316  		}
   317  		file_google_cloud_documentai_v1beta1_geometry_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   318  			switch v := v.(*BoundingPoly); i {
   319  			case 0:
   320  				return &v.state
   321  			case 1:
   322  				return &v.sizeCache
   323  			case 2:
   324  				return &v.unknownFields
   325  			default:
   326  				return nil
   327  			}
   328  		}
   329  	}
   330  	type x struct{}
   331  	out := protoimpl.TypeBuilder{
   332  		File: protoimpl.DescBuilder{
   333  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   334  			RawDescriptor: file_google_cloud_documentai_v1beta1_geometry_proto_rawDesc,
   335  			NumEnums:      0,
   336  			NumMessages:   3,
   337  			NumExtensions: 0,
   338  			NumServices:   0,
   339  		},
   340  		GoTypes:           file_google_cloud_documentai_v1beta1_geometry_proto_goTypes,
   341  		DependencyIndexes: file_google_cloud_documentai_v1beta1_geometry_proto_depIdxs,
   342  		MessageInfos:      file_google_cloud_documentai_v1beta1_geometry_proto_msgTypes,
   343  	}.Build()
   344  	File_google_cloud_documentai_v1beta1_geometry_proto = out.File
   345  	file_google_cloud_documentai_v1beta1_geometry_proto_rawDesc = nil
   346  	file_google_cloud_documentai_v1beta1_geometry_proto_goTypes = nil
   347  	file_google_cloud_documentai_v1beta1_geometry_proto_depIdxs = nil
   348  }
   349  

View as plain text