...

Source file src/google.golang.org/genproto/googleapis/maps/routes/v1/compute_custom_routes_response.pb.go

Documentation: google.golang.org/genproto/googleapis/maps/routes/v1

     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/routes/v1/compute_custom_routes_response.proto
    20  
    21  package routes
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    29  )
    30  
    31  const (
    32  	// Verify that this generated code is sufficiently up-to-date.
    33  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    34  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    36  )
    37  
    38  // RouteObjective used for the response.
    39  type ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective int32
    40  
    41  const (
    42  	// Fallback route objective unspecified.
    43  	ComputeCustomRoutesResponse_FallbackInfo_FALLBACK_ROUTE_OBJECTIVE_UNSPECIFIED ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective = 0
    44  	// If customer requests RateCard and sets include_tolls to true, and
    45  	// Google does not have toll price data for the route, the API falls back
    46  	// to RateCard without considering toll price.
    47  	ComputeCustomRoutesResponse_FallbackInfo_FALLBACK_RATECARD_WITHOUT_TOLL_PRICE_DATA ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective = 1
    48  )
    49  
    50  // Enum value maps for ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective.
    51  var (
    52  	ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective_name = map[int32]string{
    53  		0: "FALLBACK_ROUTE_OBJECTIVE_UNSPECIFIED",
    54  		1: "FALLBACK_RATECARD_WITHOUT_TOLL_PRICE_DATA",
    55  	}
    56  	ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective_value = map[string]int32{
    57  		"FALLBACK_ROUTE_OBJECTIVE_UNSPECIFIED":      0,
    58  		"FALLBACK_RATECARD_WITHOUT_TOLL_PRICE_DATA": 1,
    59  	}
    60  )
    61  
    62  func (x ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective) Enum() *ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective {
    63  	p := new(ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective)
    64  	*p = x
    65  	return p
    66  }
    67  
    68  func (x ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective) String() string {
    69  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    70  }
    71  
    72  func (ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective) Descriptor() protoreflect.EnumDescriptor {
    73  	return file_google_maps_routes_v1_compute_custom_routes_response_proto_enumTypes[0].Descriptor()
    74  }
    75  
    76  func (ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective) Type() protoreflect.EnumType {
    77  	return &file_google_maps_routes_v1_compute_custom_routes_response_proto_enumTypes[0]
    78  }
    79  
    80  func (x ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective) Number() protoreflect.EnumNumber {
    81  	return protoreflect.EnumNumber(x)
    82  }
    83  
    84  // Deprecated: Use ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective.Descriptor instead.
    85  func (ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective) EnumDescriptor() ([]byte, []int) {
    86  	return file_google_maps_routes_v1_compute_custom_routes_response_proto_rawDescGZIP(), []int{0, 0, 0}
    87  }
    88  
    89  // ComputeCustomRoutes response message.
    90  type ComputeCustomRoutesResponse struct {
    91  	state         protoimpl.MessageState
    92  	sizeCache     protoimpl.SizeCache
    93  	unknownFields protoimpl.UnknownFields
    94  
    95  	// The ‘best’ routes for the input route objective.
    96  	Routes []*CustomRoute `protobuf:"bytes,7,rep,name=routes,proto3" json:"routes,omitempty"`
    97  	// The fastest reference route.
    98  	FastestRoute *CustomRoute `protobuf:"bytes,5,opt,name=fastest_route,json=fastestRoute,proto3" json:"fastest_route,omitempty"`
    99  	// The shortest reference route.
   100  	ShortestRoute *CustomRoute `protobuf:"bytes,6,opt,name=shortest_route,json=shortestRoute,proto3" json:"shortest_route,omitempty"`
   101  	// Fallback info for custom routes.
   102  	FallbackInfo *ComputeCustomRoutesResponse_FallbackInfo `protobuf:"bytes,8,opt,name=fallback_info,json=fallbackInfo,proto3" json:"fallback_info,omitempty"`
   103  }
   104  
   105  func (x *ComputeCustomRoutesResponse) Reset() {
   106  	*x = ComputeCustomRoutesResponse{}
   107  	if protoimpl.UnsafeEnabled {
   108  		mi := &file_google_maps_routes_v1_compute_custom_routes_response_proto_msgTypes[0]
   109  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   110  		ms.StoreMessageInfo(mi)
   111  	}
   112  }
   113  
   114  func (x *ComputeCustomRoutesResponse) String() string {
   115  	return protoimpl.X.MessageStringOf(x)
   116  }
   117  
   118  func (*ComputeCustomRoutesResponse) ProtoMessage() {}
   119  
   120  func (x *ComputeCustomRoutesResponse) ProtoReflect() protoreflect.Message {
   121  	mi := &file_google_maps_routes_v1_compute_custom_routes_response_proto_msgTypes[0]
   122  	if protoimpl.UnsafeEnabled && x != nil {
   123  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   124  		if ms.LoadMessageInfo() == nil {
   125  			ms.StoreMessageInfo(mi)
   126  		}
   127  		return ms
   128  	}
   129  	return mi.MessageOf(x)
   130  }
   131  
   132  // Deprecated: Use ComputeCustomRoutesResponse.ProtoReflect.Descriptor instead.
   133  func (*ComputeCustomRoutesResponse) Descriptor() ([]byte, []int) {
   134  	return file_google_maps_routes_v1_compute_custom_routes_response_proto_rawDescGZIP(), []int{0}
   135  }
   136  
   137  func (x *ComputeCustomRoutesResponse) GetRoutes() []*CustomRoute {
   138  	if x != nil {
   139  		return x.Routes
   140  	}
   141  	return nil
   142  }
   143  
   144  func (x *ComputeCustomRoutesResponse) GetFastestRoute() *CustomRoute {
   145  	if x != nil {
   146  		return x.FastestRoute
   147  	}
   148  	return nil
   149  }
   150  
   151  func (x *ComputeCustomRoutesResponse) GetShortestRoute() *CustomRoute {
   152  	if x != nil {
   153  		return x.ShortestRoute
   154  	}
   155  	return nil
   156  }
   157  
   158  func (x *ComputeCustomRoutesResponse) GetFallbackInfo() *ComputeCustomRoutesResponse_FallbackInfo {
   159  	if x != nil {
   160  		return x.FallbackInfo
   161  	}
   162  	return nil
   163  }
   164  
   165  // Encapsulates fallback info for ComputeCustomRoutes. ComputeCustomRoutes
   166  // performs two types of fallbacks:
   167  //
   168  // 1. If it cannot compute the route using the routing_preference requested by
   169  // the customer, it will fallback to another routing mode. In this case
   170  // fallback_routing_mode and routing_mode_fallback_reason are used to
   171  // communicate the fallback routing mode used, as well as the reason for
   172  // fallback.
   173  //
   174  // 2. If it cannot compute a 'best' route for the route objective specified by
   175  // the customer, it might fallback to another objective.
   176  // fallback_route_objective is used to communicate the fallback route
   177  // objective.
   178  type ComputeCustomRoutesResponse_FallbackInfo struct {
   179  	state         protoimpl.MessageState
   180  	sizeCache     protoimpl.SizeCache
   181  	unknownFields protoimpl.UnknownFields
   182  
   183  	// Routing mode used for the response. If fallback was triggered, the mode
   184  	// may be different from routing preference set in the original client
   185  	// request.
   186  	RoutingMode FallbackRoutingMode `protobuf:"varint,1,opt,name=routing_mode,json=routingMode,proto3,enum=google.maps.routes.v1.FallbackRoutingMode" json:"routing_mode,omitempty"`
   187  	// The reason why fallback response was used instead of the original
   188  	// response.
   189  	// This field is only populated when the fallback mode is triggered and
   190  	// the fallback response is returned.
   191  	RoutingModeReason FallbackReason `protobuf:"varint,2,opt,name=routing_mode_reason,json=routingModeReason,proto3,enum=google.maps.routes.v1.FallbackReason" json:"routing_mode_reason,omitempty"`
   192  	// The route objective used for the response. If fallback was triggered, the
   193  	// objective may be different from the route objective provided in the
   194  	// original client request.
   195  	RouteObjective ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective `protobuf:"varint,3,opt,name=route_objective,json=routeObjective,proto3,enum=google.maps.routes.v1.ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective" json:"route_objective,omitempty"`
   196  }
   197  
   198  func (x *ComputeCustomRoutesResponse_FallbackInfo) Reset() {
   199  	*x = ComputeCustomRoutesResponse_FallbackInfo{}
   200  	if protoimpl.UnsafeEnabled {
   201  		mi := &file_google_maps_routes_v1_compute_custom_routes_response_proto_msgTypes[1]
   202  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   203  		ms.StoreMessageInfo(mi)
   204  	}
   205  }
   206  
   207  func (x *ComputeCustomRoutesResponse_FallbackInfo) String() string {
   208  	return protoimpl.X.MessageStringOf(x)
   209  }
   210  
   211  func (*ComputeCustomRoutesResponse_FallbackInfo) ProtoMessage() {}
   212  
   213  func (x *ComputeCustomRoutesResponse_FallbackInfo) ProtoReflect() protoreflect.Message {
   214  	mi := &file_google_maps_routes_v1_compute_custom_routes_response_proto_msgTypes[1]
   215  	if protoimpl.UnsafeEnabled && x != nil {
   216  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   217  		if ms.LoadMessageInfo() == nil {
   218  			ms.StoreMessageInfo(mi)
   219  		}
   220  		return ms
   221  	}
   222  	return mi.MessageOf(x)
   223  }
   224  
   225  // Deprecated: Use ComputeCustomRoutesResponse_FallbackInfo.ProtoReflect.Descriptor instead.
   226  func (*ComputeCustomRoutesResponse_FallbackInfo) Descriptor() ([]byte, []int) {
   227  	return file_google_maps_routes_v1_compute_custom_routes_response_proto_rawDescGZIP(), []int{0, 0}
   228  }
   229  
   230  func (x *ComputeCustomRoutesResponse_FallbackInfo) GetRoutingMode() FallbackRoutingMode {
   231  	if x != nil {
   232  		return x.RoutingMode
   233  	}
   234  	return FallbackRoutingMode_FALLBACK_ROUTING_MODE_UNSPECIFIED
   235  }
   236  
   237  func (x *ComputeCustomRoutesResponse_FallbackInfo) GetRoutingModeReason() FallbackReason {
   238  	if x != nil {
   239  		return x.RoutingModeReason
   240  	}
   241  	return FallbackReason_FALLBACK_REASON_UNSPECIFIED
   242  }
   243  
   244  func (x *ComputeCustomRoutesResponse_FallbackInfo) GetRouteObjective() ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective {
   245  	if x != nil {
   246  		return x.RouteObjective
   247  	}
   248  	return ComputeCustomRoutesResponse_FallbackInfo_FALLBACK_ROUTE_OBJECTIVE_UNSPECIFIED
   249  }
   250  
   251  var File_google_maps_routes_v1_compute_custom_routes_response_proto protoreflect.FileDescriptor
   252  
   253  var file_google_maps_routes_v1_compute_custom_routes_response_proto_rawDesc = []byte{
   254  	0x0a, 0x3a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x6f,
   255  	0x75, 0x74, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f,
   256  	0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x5f, 0x72, 0x65,
   257  	0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f,
   258  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73,
   259  	0x2e, 0x76, 0x31, 0x1a, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73,
   260  	0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f,
   261  	0x6d, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x67,
   262  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65,
   263  	0x73, 0x2f, 0x76, 0x31, 0x2f, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x6e,
   264  	0x66, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfe, 0x05, 0x0a, 0x1b, 0x43, 0x6f, 0x6d,
   265  	0x70, 0x75, 0x74, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73,
   266  	0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x72, 0x6f, 0x75, 0x74,
   267  	0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   268  	0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31,
   269  	0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x06, 0x72, 0x6f,
   270  	0x75, 0x74, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0d, 0x66, 0x61, 0x73, 0x74, 0x65, 0x73, 0x74, 0x5f,
   271  	0x72, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f,
   272  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73,
   273  	0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52,
   274  	0x0c, 0x66, 0x61, 0x73, 0x74, 0x65, 0x73, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x49, 0x0a,
   275  	0x0e, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x18,
   276  	0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d,
   277  	0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75,
   278  	0x73, 0x74, 0x6f, 0x6d, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x0d, 0x73, 0x68, 0x6f, 0x72, 0x74,
   279  	0x65, 0x73, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x64, 0x0a, 0x0d, 0x66, 0x61, 0x6c, 0x6c,
   280  	0x62, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32,
   281  	0x3f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f,
   282  	0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x43,
   283  	0x75, 0x73, 0x74, 0x6f, 0x6d, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
   284  	0x6e, 0x73, 0x65, 0x2e, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x66, 0x6f,
   285  	0x52, 0x0c, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0xa8,
   286  	0x03, 0x0a, 0x0c, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x12,
   287  	0x4d, 0x0a, 0x0c, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18,
   288  	0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d,
   289  	0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61,
   290  	0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64,
   291  	0x65, 0x52, 0x0b, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x55,
   292  	0x0a, 0x13, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x5f, 0x72,
   293  	0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x67, 0x6f,
   294  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73,
   295  	0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x61, 0x73,
   296  	0x6f, 0x6e, 0x52, 0x11, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x52,
   297  	0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x7f, 0x0a, 0x0f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x6f,
   298  	0x62, 0x6a, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x56,
   299  	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75,
   300  	0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x43, 0x75,
   301  	0x73, 0x74, 0x6f, 0x6d, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
   302  	0x73, 0x65, 0x2e, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x2e,
   303  	0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x62, 0x6a,
   304  	0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x0e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x62, 0x6a,
   305  	0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x71, 0x0a, 0x16, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61,
   306  	0x63, 0x6b, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65,
   307  	0x12, 0x28, 0x0a, 0x24, 0x46, 0x41, 0x4c, 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x5f, 0x52, 0x4f, 0x55,
   308  	0x54, 0x45, 0x5f, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x55, 0x4e, 0x53,
   309  	0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x2d, 0x0a, 0x29, 0x46, 0x41,
   310  	0x4c, 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x5f, 0x52, 0x41, 0x54, 0x45, 0x43, 0x41, 0x52, 0x44, 0x5f,
   311  	0x57, 0x49, 0x54, 0x48, 0x4f, 0x55, 0x54, 0x5f, 0x54, 0x4f, 0x4c, 0x4c, 0x5f, 0x50, 0x52, 0x49,
   312  	0x43, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x10, 0x01, 0x42, 0xb6, 0x01, 0x0a, 0x19, 0x63, 0x6f,
   313  	0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f,
   314  	0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x20, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65,
   315  	0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70,
   316  	0x6f, 0x6e, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x6f, 0x6f,
   317  	0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67,
   318  	0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
   319  	0x69, 0x73, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x76,
   320  	0x31, 0x3b, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x04, 0x47, 0x4d,
   321  	0x52, 0x53, 0xaa, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x73,
   322  	0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x47, 0x6f, 0x6f,
   323  	0x67, 0x6c, 0x65, 0x5c, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x5c,
   324  	0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   325  }
   326  
   327  var (
   328  	file_google_maps_routes_v1_compute_custom_routes_response_proto_rawDescOnce sync.Once
   329  	file_google_maps_routes_v1_compute_custom_routes_response_proto_rawDescData = file_google_maps_routes_v1_compute_custom_routes_response_proto_rawDesc
   330  )
   331  
   332  func file_google_maps_routes_v1_compute_custom_routes_response_proto_rawDescGZIP() []byte {
   333  	file_google_maps_routes_v1_compute_custom_routes_response_proto_rawDescOnce.Do(func() {
   334  		file_google_maps_routes_v1_compute_custom_routes_response_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_routes_v1_compute_custom_routes_response_proto_rawDescData)
   335  	})
   336  	return file_google_maps_routes_v1_compute_custom_routes_response_proto_rawDescData
   337  }
   338  
   339  var file_google_maps_routes_v1_compute_custom_routes_response_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   340  var file_google_maps_routes_v1_compute_custom_routes_response_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   341  var file_google_maps_routes_v1_compute_custom_routes_response_proto_goTypes = []interface{}{
   342  	(ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective)(0), // 0: google.maps.routes.v1.ComputeCustomRoutesResponse.FallbackInfo.FallbackRouteObjective
   343  	(*ComputeCustomRoutesResponse)(nil),                                  // 1: google.maps.routes.v1.ComputeCustomRoutesResponse
   344  	(*ComputeCustomRoutesResponse_FallbackInfo)(nil),                     // 2: google.maps.routes.v1.ComputeCustomRoutesResponse.FallbackInfo
   345  	(*CustomRoute)(nil),      // 3: google.maps.routes.v1.CustomRoute
   346  	(FallbackRoutingMode)(0), // 4: google.maps.routes.v1.FallbackRoutingMode
   347  	(FallbackReason)(0),      // 5: google.maps.routes.v1.FallbackReason
   348  }
   349  var file_google_maps_routes_v1_compute_custom_routes_response_proto_depIdxs = []int32{
   350  	3, // 0: google.maps.routes.v1.ComputeCustomRoutesResponse.routes:type_name -> google.maps.routes.v1.CustomRoute
   351  	3, // 1: google.maps.routes.v1.ComputeCustomRoutesResponse.fastest_route:type_name -> google.maps.routes.v1.CustomRoute
   352  	3, // 2: google.maps.routes.v1.ComputeCustomRoutesResponse.shortest_route:type_name -> google.maps.routes.v1.CustomRoute
   353  	2, // 3: google.maps.routes.v1.ComputeCustomRoutesResponse.fallback_info:type_name -> google.maps.routes.v1.ComputeCustomRoutesResponse.FallbackInfo
   354  	4, // 4: google.maps.routes.v1.ComputeCustomRoutesResponse.FallbackInfo.routing_mode:type_name -> google.maps.routes.v1.FallbackRoutingMode
   355  	5, // 5: google.maps.routes.v1.ComputeCustomRoutesResponse.FallbackInfo.routing_mode_reason:type_name -> google.maps.routes.v1.FallbackReason
   356  	0, // 6: google.maps.routes.v1.ComputeCustomRoutesResponse.FallbackInfo.route_objective:type_name -> google.maps.routes.v1.ComputeCustomRoutesResponse.FallbackInfo.FallbackRouteObjective
   357  	7, // [7:7] is the sub-list for method output_type
   358  	7, // [7:7] is the sub-list for method input_type
   359  	7, // [7:7] is the sub-list for extension type_name
   360  	7, // [7:7] is the sub-list for extension extendee
   361  	0, // [0:7] is the sub-list for field type_name
   362  }
   363  
   364  func init() { file_google_maps_routes_v1_compute_custom_routes_response_proto_init() }
   365  func file_google_maps_routes_v1_compute_custom_routes_response_proto_init() {
   366  	if File_google_maps_routes_v1_compute_custom_routes_response_proto != nil {
   367  		return
   368  	}
   369  	file_google_maps_routes_v1_custom_route_proto_init()
   370  	file_google_maps_routes_v1_fallback_info_proto_init()
   371  	if !protoimpl.UnsafeEnabled {
   372  		file_google_maps_routes_v1_compute_custom_routes_response_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   373  			switch v := v.(*ComputeCustomRoutesResponse); i {
   374  			case 0:
   375  				return &v.state
   376  			case 1:
   377  				return &v.sizeCache
   378  			case 2:
   379  				return &v.unknownFields
   380  			default:
   381  				return nil
   382  			}
   383  		}
   384  		file_google_maps_routes_v1_compute_custom_routes_response_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   385  			switch v := v.(*ComputeCustomRoutesResponse_FallbackInfo); i {
   386  			case 0:
   387  				return &v.state
   388  			case 1:
   389  				return &v.sizeCache
   390  			case 2:
   391  				return &v.unknownFields
   392  			default:
   393  				return nil
   394  			}
   395  		}
   396  	}
   397  	type x struct{}
   398  	out := protoimpl.TypeBuilder{
   399  		File: protoimpl.DescBuilder{
   400  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   401  			RawDescriptor: file_google_maps_routes_v1_compute_custom_routes_response_proto_rawDesc,
   402  			NumEnums:      1,
   403  			NumMessages:   2,
   404  			NumExtensions: 0,
   405  			NumServices:   0,
   406  		},
   407  		GoTypes:           file_google_maps_routes_v1_compute_custom_routes_response_proto_goTypes,
   408  		DependencyIndexes: file_google_maps_routes_v1_compute_custom_routes_response_proto_depIdxs,
   409  		EnumInfos:         file_google_maps_routes_v1_compute_custom_routes_response_proto_enumTypes,
   410  		MessageInfos:      file_google_maps_routes_v1_compute_custom_routes_response_proto_msgTypes,
   411  	}.Build()
   412  	File_google_maps_routes_v1_compute_custom_routes_response_proto = out.File
   413  	file_google_maps_routes_v1_compute_custom_routes_response_proto_rawDesc = nil
   414  	file_google_maps_routes_v1_compute_custom_routes_response_proto_goTypes = nil
   415  	file_google_maps_routes_v1_compute_custom_routes_response_proto_depIdxs = nil
   416  }
   417  

View as plain text