...

Source file src/google.golang.org/genproto/googleapis/maps/regionlookup/v1alpha/region_lookup_service.pb.go

Documentation: google.golang.org/genproto/googleapis/maps/regionlookup/v1alpha

     1  // Copyright 2022 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.26.0
    18  // 	protoc        v3.12.2
    19  // source: google/maps/regionlookup/v1alpha/region_lookup_service.proto
    20  
    21  package regionlookup
    22  
    23  import (
    24  	context "context"
    25  	reflect "reflect"
    26  	sync "sync"
    27  
    28  	_ "google.golang.org/genproto/googleapis/api/annotations"
    29  	grpc "google.golang.org/grpc"
    30  	codes "google.golang.org/grpc/codes"
    31  	status "google.golang.org/grpc/status"
    32  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    33  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    34  )
    35  
    36  const (
    37  	// Verify that this generated code is sufficiently up-to-date.
    38  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    39  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    40  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    41  )
    42  
    43  // Lookup Region Request.
    44  //
    45  // Next available tag: 4
    46  type LookupRegionRequest struct {
    47  	state         protoimpl.MessageState
    48  	sizeCache     protoimpl.SizeCache
    49  	unknownFields protoimpl.UnknownFields
    50  
    51  	// Each `RegionIdentifier` represents the desired fields used to lookup a
    52  	// single region. See `RegionIdentifier` proto for more details and examples.
    53  	Identifiers []*RegionIdentifier `protobuf:"bytes,1,rep,name=identifiers,proto3" json:"identifiers,omitempty"`
    54  	// The maximum number of matches to return. The service may return fewer than
    55  	// this value.
    56  	//
    57  	// If unspecified, at most 50 matches will be returned. The maximum value is
    58  	// 1000; values above 1000 will be coerced to 1000.
    59  	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
    60  	// A page token, received from a previous `LookupRegion` call. Provide this to
    61  	// retrieve the subsequent page.
    62  	//
    63  	// When paginating, all other parameters provided to `LookupRegion` must match
    64  	// the call that provided the page token.
    65  	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
    66  }
    67  
    68  func (x *LookupRegionRequest) Reset() {
    69  	*x = LookupRegionRequest{}
    70  	if protoimpl.UnsafeEnabled {
    71  		mi := &file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[0]
    72  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    73  		ms.StoreMessageInfo(mi)
    74  	}
    75  }
    76  
    77  func (x *LookupRegionRequest) String() string {
    78  	return protoimpl.X.MessageStringOf(x)
    79  }
    80  
    81  func (*LookupRegionRequest) ProtoMessage() {}
    82  
    83  func (x *LookupRegionRequest) ProtoReflect() protoreflect.Message {
    84  	mi := &file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[0]
    85  	if protoimpl.UnsafeEnabled && x != nil {
    86  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    87  		if ms.LoadMessageInfo() == nil {
    88  			ms.StoreMessageInfo(mi)
    89  		}
    90  		return ms
    91  	}
    92  	return mi.MessageOf(x)
    93  }
    94  
    95  // Deprecated: Use LookupRegionRequest.ProtoReflect.Descriptor instead.
    96  func (*LookupRegionRequest) Descriptor() ([]byte, []int) {
    97  	return file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDescGZIP(), []int{0}
    98  }
    99  
   100  func (x *LookupRegionRequest) GetIdentifiers() []*RegionIdentifier {
   101  	if x != nil {
   102  		return x.Identifiers
   103  	}
   104  	return nil
   105  }
   106  
   107  func (x *LookupRegionRequest) GetPageSize() int32 {
   108  	if x != nil {
   109  		return x.PageSize
   110  	}
   111  	return 0
   112  }
   113  
   114  func (x *LookupRegionRequest) GetPageToken() string {
   115  	if x != nil {
   116  		return x.PageToken
   117  	}
   118  	return ""
   119  }
   120  
   121  // Lookup Region Response.
   122  //
   123  // Next available tag: 3
   124  type LookupRegionResponse struct {
   125  	state         protoimpl.MessageState
   126  	sizeCache     protoimpl.SizeCache
   127  	unknownFields protoimpl.UnknownFields
   128  
   129  	// Lookup region matches, one for each `RegionIdentifier` in
   130  	// `LookupRegionRequest.identifiers`.
   131  	Matches []*RegionMatch `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"`
   132  	// A token that can be sent as `page_token` to retrieve the next page.
   133  	// If this field is omitted, there are no subsequent pages.
   134  	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
   135  }
   136  
   137  func (x *LookupRegionResponse) Reset() {
   138  	*x = LookupRegionResponse{}
   139  	if protoimpl.UnsafeEnabled {
   140  		mi := &file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[1]
   141  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   142  		ms.StoreMessageInfo(mi)
   143  	}
   144  }
   145  
   146  func (x *LookupRegionResponse) String() string {
   147  	return protoimpl.X.MessageStringOf(x)
   148  }
   149  
   150  func (*LookupRegionResponse) ProtoMessage() {}
   151  
   152  func (x *LookupRegionResponse) ProtoReflect() protoreflect.Message {
   153  	mi := &file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[1]
   154  	if protoimpl.UnsafeEnabled && x != nil {
   155  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   156  		if ms.LoadMessageInfo() == nil {
   157  			ms.StoreMessageInfo(mi)
   158  		}
   159  		return ms
   160  	}
   161  	return mi.MessageOf(x)
   162  }
   163  
   164  // Deprecated: Use LookupRegionResponse.ProtoReflect.Descriptor instead.
   165  func (*LookupRegionResponse) Descriptor() ([]byte, []int) {
   166  	return file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDescGZIP(), []int{1}
   167  }
   168  
   169  func (x *LookupRegionResponse) GetMatches() []*RegionMatch {
   170  	if x != nil {
   171  		return x.Matches
   172  	}
   173  	return nil
   174  }
   175  
   176  func (x *LookupRegionResponse) GetNextPageToken() string {
   177  	if x != nil {
   178  		return x.NextPageToken
   179  	}
   180  	return ""
   181  }
   182  
   183  // Search Region Request.
   184  //
   185  // Next available tag: 4
   186  type SearchRegionRequest struct {
   187  	state         protoimpl.MessageState
   188  	sizeCache     protoimpl.SizeCache
   189  	unknownFields protoimpl.UnknownFields
   190  
   191  	// Each value represents desired search values of a single region to match.
   192  	// The API tries to match them to Place IDs. See `RegionSearchValue`
   193  	// proto for more info and examples.
   194  	SearchValues []*RegionSearchValue `protobuf:"bytes,1,rep,name=search_values,json=searchValues,proto3" json:"search_values,omitempty"`
   195  	// The maximum number of matches to return. The service may return fewer than
   196  	// this value.
   197  	//
   198  	// If unspecified, at most 50 matches will be returned. The maximum value is
   199  	// 1000; values above 1000 will be coerced to 1000.
   200  	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
   201  	// A page token, received from a previous `SearchRegion` call. Provide this to
   202  	// retrieve the subsequent page.
   203  	//
   204  	// When paginating, all other parameters provided to `LookupRegion` must match
   205  	// the call that provided the page token.
   206  	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
   207  }
   208  
   209  func (x *SearchRegionRequest) Reset() {
   210  	*x = SearchRegionRequest{}
   211  	if protoimpl.UnsafeEnabled {
   212  		mi := &file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[2]
   213  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   214  		ms.StoreMessageInfo(mi)
   215  	}
   216  }
   217  
   218  func (x *SearchRegionRequest) String() string {
   219  	return protoimpl.X.MessageStringOf(x)
   220  }
   221  
   222  func (*SearchRegionRequest) ProtoMessage() {}
   223  
   224  func (x *SearchRegionRequest) ProtoReflect() protoreflect.Message {
   225  	mi := &file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[2]
   226  	if protoimpl.UnsafeEnabled && x != nil {
   227  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   228  		if ms.LoadMessageInfo() == nil {
   229  			ms.StoreMessageInfo(mi)
   230  		}
   231  		return ms
   232  	}
   233  	return mi.MessageOf(x)
   234  }
   235  
   236  // Deprecated: Use SearchRegionRequest.ProtoReflect.Descriptor instead.
   237  func (*SearchRegionRequest) Descriptor() ([]byte, []int) {
   238  	return file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDescGZIP(), []int{2}
   239  }
   240  
   241  func (x *SearchRegionRequest) GetSearchValues() []*RegionSearchValue {
   242  	if x != nil {
   243  		return x.SearchValues
   244  	}
   245  	return nil
   246  }
   247  
   248  func (x *SearchRegionRequest) GetPageSize() int32 {
   249  	if x != nil {
   250  		return x.PageSize
   251  	}
   252  	return 0
   253  }
   254  
   255  func (x *SearchRegionRequest) GetPageToken() string {
   256  	if x != nil {
   257  		return x.PageToken
   258  	}
   259  	return ""
   260  }
   261  
   262  // Match Region Response.
   263  //
   264  // Next available tag: 3
   265  type SearchRegionResponse struct {
   266  	state         protoimpl.MessageState
   267  	sizeCache     protoimpl.SizeCache
   268  	unknownFields protoimpl.UnknownFields
   269  
   270  	// Search region matches, one for each `RegionSearchValue` in
   271  	// `SearchRegionRequest.search_values`.
   272  	Matches []*RegionMatch `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"`
   273  	// A token that can be sent as `page_token` to retrieve the next page.
   274  	// If this field is omitted, there are no subsequent pages.
   275  	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
   276  }
   277  
   278  func (x *SearchRegionResponse) Reset() {
   279  	*x = SearchRegionResponse{}
   280  	if protoimpl.UnsafeEnabled {
   281  		mi := &file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[3]
   282  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   283  		ms.StoreMessageInfo(mi)
   284  	}
   285  }
   286  
   287  func (x *SearchRegionResponse) String() string {
   288  	return protoimpl.X.MessageStringOf(x)
   289  }
   290  
   291  func (*SearchRegionResponse) ProtoMessage() {}
   292  
   293  func (x *SearchRegionResponse) ProtoReflect() protoreflect.Message {
   294  	mi := &file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[3]
   295  	if protoimpl.UnsafeEnabled && x != nil {
   296  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   297  		if ms.LoadMessageInfo() == nil {
   298  			ms.StoreMessageInfo(mi)
   299  		}
   300  		return ms
   301  	}
   302  	return mi.MessageOf(x)
   303  }
   304  
   305  // Deprecated: Use SearchRegionResponse.ProtoReflect.Descriptor instead.
   306  func (*SearchRegionResponse) Descriptor() ([]byte, []int) {
   307  	return file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDescGZIP(), []int{3}
   308  }
   309  
   310  func (x *SearchRegionResponse) GetMatches() []*RegionMatch {
   311  	if x != nil {
   312  		return x.Matches
   313  	}
   314  	return nil
   315  }
   316  
   317  func (x *SearchRegionResponse) GetNextPageToken() string {
   318  	if x != nil {
   319  		return x.NextPageToken
   320  	}
   321  	return ""
   322  }
   323  
   324  var File_google_maps_regionlookup_v1alpha_region_lookup_service_proto protoreflect.FileDescriptor
   325  
   326  var file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDesc = []byte{
   327  	0x0a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x65,
   328  	0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70,
   329  	0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70,
   330  	0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20,
   331  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69,
   332  	0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61,
   333  	0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e,
   334  	0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17,
   335  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e,
   336  	0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
   337  	0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75,
   338  	0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
   339  	0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   340  	0x6f, 0x1a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72,
   341  	0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c,
   342  	0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68,
   343  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d,
   344  	0x61, 0x70, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70,
   345  	0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f,
   346  	0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2e, 0x70, 0x72,
   347  	0x6f, 0x74, 0x6f, 0x22, 0xa7, 0x01, 0x0a, 0x13, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x52, 0x65,
   348  	0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x54, 0x0a, 0x0b, 0x69,
   349  	0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
   350  	0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72,
   351  	0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x61, 0x6c,
   352  	0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,
   353  	0x66, 0x69, 0x65, 0x72, 0x52, 0x0b, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72,
   354  	0x73, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02,
   355  	0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d,
   356  	0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01,
   357  	0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x87, 0x01,
   358  	0x0a, 0x14, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65,
   359  	0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65,
   360  	0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   361  	0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b,
   362  	0x75, 0x70, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f,
   363  	0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12,
   364  	0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b,
   365  	0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61,
   366  	0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xab, 0x01, 0x0a, 0x13, 0x53, 0x65, 0x61, 0x72,
   367  	0x63, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
   368  	0x58, 0x0a, 0x0d, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
   369  	0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   370  	0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75,
   371  	0x70, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
   372  	0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x73, 0x65, 0x61,
   373  	0x72, 0x63, 0x68, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67,
   374  	0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61,
   375  	0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74,
   376  	0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65,
   377  	0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x87, 0x01, 0x0a, 0x14, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68,
   378  	0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47,
   379  	0x0a, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
   380  	0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x65,
   381  	0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70,
   382  	0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x07,
   383  	0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f,
   384  	0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
   385  	0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32,
   386  	0xf2, 0x02, 0x0a, 0x0c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70,
   387  	0x12, 0x9f, 0x01, 0x0a, 0x0c, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x67, 0x69, 0x6f,
   388  	0x6e, 0x12, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e,
   389  	0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x61,
   390  	0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x67, 0x69, 0x6f,
   391  	0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   392  	0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f,
   393  	0x6b, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b,
   394  	0x75, 0x70, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
   395  	0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x22, 0x15, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70,
   396  	0x68, 0x61, 0x3a, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x3a,
   397  	0x01, 0x2a, 0x12, 0x9f, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x67,
   398  	0x69, 0x6f, 0x6e, 0x12, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70,
   399  	0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x76,
   400  	0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x67,
   401  	0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x67, 0x6f, 0x6f,
   402  	0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c,
   403  	0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x65,
   404  	0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
   405  	0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x22, 0x15, 0x2f, 0x76, 0x31, 0x61,
   406  	0x6c, 0x70, 0x68, 0x61, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f,
   407  	0x6e, 0x3a, 0x01, 0x2a, 0x1a, 0x1e, 0xca, 0x41, 0x1b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c,
   408  	0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
   409  	0x2e, 0x63, 0x6f, 0x6d, 0x42, 0xe2, 0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f,
   410  	0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c,
   411  	0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x18, 0x52,
   412  	0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x72, 0x76, 0x69,
   413  	0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   414  	0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e,
   415  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
   416  	0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b,
   417  	0x75, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x6f,
   418  	0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x06, 0x4d, 0x52, 0x4c,
   419  	0x56, 0x31, 0x41, 0xaa, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x70,
   420  	0x73, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x56,
   421  	0x31, 0x41, 0x6c, 0x70, 0x68, 0x61, 0xca, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c,
   422  	0x4d, 0x61, 0x70, 0x73, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75,
   423  	0x70, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   424  	0x33,
   425  }
   426  
   427  var (
   428  	file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDescOnce sync.Once
   429  	file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDescData = file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDesc
   430  )
   431  
   432  func file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDescGZIP() []byte {
   433  	file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDescOnce.Do(func() {
   434  		file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDescData)
   435  	})
   436  	return file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDescData
   437  }
   438  
   439  var file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   440  var file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_goTypes = []interface{}{
   441  	(*LookupRegionRequest)(nil),  // 0: google.maps.regionlookup.v1alpha.LookupRegionRequest
   442  	(*LookupRegionResponse)(nil), // 1: google.maps.regionlookup.v1alpha.LookupRegionResponse
   443  	(*SearchRegionRequest)(nil),  // 2: google.maps.regionlookup.v1alpha.SearchRegionRequest
   444  	(*SearchRegionResponse)(nil), // 3: google.maps.regionlookup.v1alpha.SearchRegionResponse
   445  	(*RegionIdentifier)(nil),     // 4: google.maps.regionlookup.v1alpha.RegionIdentifier
   446  	(*RegionMatch)(nil),          // 5: google.maps.regionlookup.v1alpha.RegionMatch
   447  	(*RegionSearchValue)(nil),    // 6: google.maps.regionlookup.v1alpha.RegionSearchValue
   448  }
   449  var file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_depIdxs = []int32{
   450  	4, // 0: google.maps.regionlookup.v1alpha.LookupRegionRequest.identifiers:type_name -> google.maps.regionlookup.v1alpha.RegionIdentifier
   451  	5, // 1: google.maps.regionlookup.v1alpha.LookupRegionResponse.matches:type_name -> google.maps.regionlookup.v1alpha.RegionMatch
   452  	6, // 2: google.maps.regionlookup.v1alpha.SearchRegionRequest.search_values:type_name -> google.maps.regionlookup.v1alpha.RegionSearchValue
   453  	5, // 3: google.maps.regionlookup.v1alpha.SearchRegionResponse.matches:type_name -> google.maps.regionlookup.v1alpha.RegionMatch
   454  	0, // 4: google.maps.regionlookup.v1alpha.RegionLookup.LookupRegion:input_type -> google.maps.regionlookup.v1alpha.LookupRegionRequest
   455  	2, // 5: google.maps.regionlookup.v1alpha.RegionLookup.SearchRegion:input_type -> google.maps.regionlookup.v1alpha.SearchRegionRequest
   456  	1, // 6: google.maps.regionlookup.v1alpha.RegionLookup.LookupRegion:output_type -> google.maps.regionlookup.v1alpha.LookupRegionResponse
   457  	3, // 7: google.maps.regionlookup.v1alpha.RegionLookup.SearchRegion:output_type -> google.maps.regionlookup.v1alpha.SearchRegionResponse
   458  	6, // [6:8] is the sub-list for method output_type
   459  	4, // [4:6] is the sub-list for method input_type
   460  	4, // [4:4] is the sub-list for extension type_name
   461  	4, // [4:4] is the sub-list for extension extendee
   462  	0, // [0:4] is the sub-list for field type_name
   463  }
   464  
   465  func init() { file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_init() }
   466  func file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_init() {
   467  	if File_google_maps_regionlookup_v1alpha_region_lookup_service_proto != nil {
   468  		return
   469  	}
   470  	file_google_maps_regionlookup_v1alpha_region_identifier_proto_init()
   471  	file_google_maps_regionlookup_v1alpha_region_match_proto_init()
   472  	file_google_maps_regionlookup_v1alpha_region_search_values_proto_init()
   473  	if !protoimpl.UnsafeEnabled {
   474  		file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   475  			switch v := v.(*LookupRegionRequest); i {
   476  			case 0:
   477  				return &v.state
   478  			case 1:
   479  				return &v.sizeCache
   480  			case 2:
   481  				return &v.unknownFields
   482  			default:
   483  				return nil
   484  			}
   485  		}
   486  		file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   487  			switch v := v.(*LookupRegionResponse); i {
   488  			case 0:
   489  				return &v.state
   490  			case 1:
   491  				return &v.sizeCache
   492  			case 2:
   493  				return &v.unknownFields
   494  			default:
   495  				return nil
   496  			}
   497  		}
   498  		file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   499  			switch v := v.(*SearchRegionRequest); i {
   500  			case 0:
   501  				return &v.state
   502  			case 1:
   503  				return &v.sizeCache
   504  			case 2:
   505  				return &v.unknownFields
   506  			default:
   507  				return nil
   508  			}
   509  		}
   510  		file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   511  			switch v := v.(*SearchRegionResponse); i {
   512  			case 0:
   513  				return &v.state
   514  			case 1:
   515  				return &v.sizeCache
   516  			case 2:
   517  				return &v.unknownFields
   518  			default:
   519  				return nil
   520  			}
   521  		}
   522  	}
   523  	type x struct{}
   524  	out := protoimpl.TypeBuilder{
   525  		File: protoimpl.DescBuilder{
   526  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   527  			RawDescriptor: file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDesc,
   528  			NumEnums:      0,
   529  			NumMessages:   4,
   530  			NumExtensions: 0,
   531  			NumServices:   1,
   532  		},
   533  		GoTypes:           file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_goTypes,
   534  		DependencyIndexes: file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_depIdxs,
   535  		MessageInfos:      file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes,
   536  	}.Build()
   537  	File_google_maps_regionlookup_v1alpha_region_lookup_service_proto = out.File
   538  	file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDesc = nil
   539  	file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_goTypes = nil
   540  	file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_depIdxs = nil
   541  }
   542  
   543  // Reference imports to suppress errors if they are not otherwise used.
   544  var _ context.Context
   545  var _ grpc.ClientConnInterface
   546  
   547  // This is a compile-time assertion to ensure that this generated file
   548  // is compatible with the grpc package it is being compiled against.
   549  const _ = grpc.SupportPackageIsVersion6
   550  
   551  // RegionLookupClient is the client API for RegionLookup service.
   552  //
   553  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   554  type RegionLookupClient interface {
   555  	// Lookup region RPC.
   556  	//
   557  	// Looks up a set of region Place IDs of types related to geographic
   558  	// boundaries.
   559  	//
   560  	// The API looks up a region Place ID using the `RegionIdentifier` proto. See
   561  	// `RegionIdentifier` for more details and examples.
   562  	//
   563  	// The following region place types are supported for look up: postal_code,
   564  	// administrative_area_level_1, administrative_area_level_2, locality,
   565  	// neighborhood, and country.
   566  	LookupRegion(ctx context.Context, in *LookupRegionRequest, opts ...grpc.CallOption) (*LookupRegionResponse, error)
   567  	// Search region RPC.
   568  	//
   569  	// Searches for a set of region Place IDs of types related to geographic
   570  	// boundaries.
   571  	//
   572  	// Similar to `LookupRegion` RPC but instead of looking up Place IDs for the
   573  	// given `RegionIdentifier`, the API searches for Region Place IDs by
   574  	// considering all regions that are contained within a specified location. The
   575  	// `RegionSearchValue` is used to specify the search values. See
   576  	// `RegionSearchValue` for more details and examples.
   577  	//
   578  	// The following region place types are supported for searching: postal_code,
   579  	// administrative_area_level_1, administrative_area_level_2, locality,
   580  	// neighborhood, and country.
   581  	SearchRegion(ctx context.Context, in *SearchRegionRequest, opts ...grpc.CallOption) (*SearchRegionResponse, error)
   582  }
   583  
   584  type regionLookupClient struct {
   585  	cc grpc.ClientConnInterface
   586  }
   587  
   588  func NewRegionLookupClient(cc grpc.ClientConnInterface) RegionLookupClient {
   589  	return &regionLookupClient{cc}
   590  }
   591  
   592  func (c *regionLookupClient) LookupRegion(ctx context.Context, in *LookupRegionRequest, opts ...grpc.CallOption) (*LookupRegionResponse, error) {
   593  	out := new(LookupRegionResponse)
   594  	err := c.cc.Invoke(ctx, "/google.maps.regionlookup.v1alpha.RegionLookup/LookupRegion", in, out, opts...)
   595  	if err != nil {
   596  		return nil, err
   597  	}
   598  	return out, nil
   599  }
   600  
   601  func (c *regionLookupClient) SearchRegion(ctx context.Context, in *SearchRegionRequest, opts ...grpc.CallOption) (*SearchRegionResponse, error) {
   602  	out := new(SearchRegionResponse)
   603  	err := c.cc.Invoke(ctx, "/google.maps.regionlookup.v1alpha.RegionLookup/SearchRegion", in, out, opts...)
   604  	if err != nil {
   605  		return nil, err
   606  	}
   607  	return out, nil
   608  }
   609  
   610  // RegionLookupServer is the server API for RegionLookup service.
   611  type RegionLookupServer interface {
   612  	// Lookup region RPC.
   613  	//
   614  	// Looks up a set of region Place IDs of types related to geographic
   615  	// boundaries.
   616  	//
   617  	// The API looks up a region Place ID using the `RegionIdentifier` proto. See
   618  	// `RegionIdentifier` for more details and examples.
   619  	//
   620  	// The following region place types are supported for look up: postal_code,
   621  	// administrative_area_level_1, administrative_area_level_2, locality,
   622  	// neighborhood, and country.
   623  	LookupRegion(context.Context, *LookupRegionRequest) (*LookupRegionResponse, error)
   624  	// Search region RPC.
   625  	//
   626  	// Searches for a set of region Place IDs of types related to geographic
   627  	// boundaries.
   628  	//
   629  	// Similar to `LookupRegion` RPC but instead of looking up Place IDs for the
   630  	// given `RegionIdentifier`, the API searches for Region Place IDs by
   631  	// considering all regions that are contained within a specified location. The
   632  	// `RegionSearchValue` is used to specify the search values. See
   633  	// `RegionSearchValue` for more details and examples.
   634  	//
   635  	// The following region place types are supported for searching: postal_code,
   636  	// administrative_area_level_1, administrative_area_level_2, locality,
   637  	// neighborhood, and country.
   638  	SearchRegion(context.Context, *SearchRegionRequest) (*SearchRegionResponse, error)
   639  }
   640  
   641  // UnimplementedRegionLookupServer can be embedded to have forward compatible implementations.
   642  type UnimplementedRegionLookupServer struct {
   643  }
   644  
   645  func (*UnimplementedRegionLookupServer) LookupRegion(context.Context, *LookupRegionRequest) (*LookupRegionResponse, error) {
   646  	return nil, status.Errorf(codes.Unimplemented, "method LookupRegion not implemented")
   647  }
   648  func (*UnimplementedRegionLookupServer) SearchRegion(context.Context, *SearchRegionRequest) (*SearchRegionResponse, error) {
   649  	return nil, status.Errorf(codes.Unimplemented, "method SearchRegion not implemented")
   650  }
   651  
   652  func RegisterRegionLookupServer(s *grpc.Server, srv RegionLookupServer) {
   653  	s.RegisterService(&_RegionLookup_serviceDesc, srv)
   654  }
   655  
   656  func _RegionLookup_LookupRegion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   657  	in := new(LookupRegionRequest)
   658  	if err := dec(in); err != nil {
   659  		return nil, err
   660  	}
   661  	if interceptor == nil {
   662  		return srv.(RegionLookupServer).LookupRegion(ctx, in)
   663  	}
   664  	info := &grpc.UnaryServerInfo{
   665  		Server:     srv,
   666  		FullMethod: "/google.maps.regionlookup.v1alpha.RegionLookup/LookupRegion",
   667  	}
   668  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   669  		return srv.(RegionLookupServer).LookupRegion(ctx, req.(*LookupRegionRequest))
   670  	}
   671  	return interceptor(ctx, in, info, handler)
   672  }
   673  
   674  func _RegionLookup_SearchRegion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   675  	in := new(SearchRegionRequest)
   676  	if err := dec(in); err != nil {
   677  		return nil, err
   678  	}
   679  	if interceptor == nil {
   680  		return srv.(RegionLookupServer).SearchRegion(ctx, in)
   681  	}
   682  	info := &grpc.UnaryServerInfo{
   683  		Server:     srv,
   684  		FullMethod: "/google.maps.regionlookup.v1alpha.RegionLookup/SearchRegion",
   685  	}
   686  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   687  		return srv.(RegionLookupServer).SearchRegion(ctx, req.(*SearchRegionRequest))
   688  	}
   689  	return interceptor(ctx, in, info, handler)
   690  }
   691  
   692  var _RegionLookup_serviceDesc = grpc.ServiceDesc{
   693  	ServiceName: "google.maps.regionlookup.v1alpha.RegionLookup",
   694  	HandlerType: (*RegionLookupServer)(nil),
   695  	Methods: []grpc.MethodDesc{
   696  		{
   697  			MethodName: "LookupRegion",
   698  			Handler:    _RegionLookup_LookupRegion_Handler,
   699  		},
   700  		{
   701  			MethodName: "SearchRegion",
   702  			Handler:    _RegionLookup_SearchRegion_Handler,
   703  		},
   704  	},
   705  	Streams:  []grpc.StreamDesc{},
   706  	Metadata: "google/maps/regionlookup/v1alpha/region_lookup_service.proto",
   707  }
   708  

View as plain text