...

Source file src/google.golang.org/genproto/googleapis/maps/routes/v1/compute_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_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  // ComputeRoutes the response message.
    39  type ComputeRoutesResponse struct {
    40  	state         protoimpl.MessageState
    41  	sizeCache     protoimpl.SizeCache
    42  	unknownFields protoimpl.UnknownFields
    43  
    44  	// Contains an array of computed routes (up to three) when you specify
    45  	// compute_alternatives_routes, and contains just one route when you don't.
    46  	// When this array contains multiple entries, the first one is the most
    47  	// recommended route. If the array is empty, then it means no route could be
    48  	// found.
    49  	Routes []*Route `protobuf:"bytes,1,rep,name=routes,proto3" json:"routes,omitempty"`
    50  	// In some cases when the server is not able to compute the route results with
    51  	// all of the input preferences, it may fallback to using a different way of
    52  	// computation. When fallback mode is used, this field contains detailed info
    53  	// about the fallback response. Otherwise this field is unset.
    54  	FallbackInfo *FallbackInfo `protobuf:"bytes,2,opt,name=fallback_info,json=fallbackInfo,proto3" json:"fallback_info,omitempty"`
    55  }
    56  
    57  func (x *ComputeRoutesResponse) Reset() {
    58  	*x = ComputeRoutesResponse{}
    59  	if protoimpl.UnsafeEnabled {
    60  		mi := &file_google_maps_routes_v1_compute_routes_response_proto_msgTypes[0]
    61  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    62  		ms.StoreMessageInfo(mi)
    63  	}
    64  }
    65  
    66  func (x *ComputeRoutesResponse) String() string {
    67  	return protoimpl.X.MessageStringOf(x)
    68  }
    69  
    70  func (*ComputeRoutesResponse) ProtoMessage() {}
    71  
    72  func (x *ComputeRoutesResponse) ProtoReflect() protoreflect.Message {
    73  	mi := &file_google_maps_routes_v1_compute_routes_response_proto_msgTypes[0]
    74  	if protoimpl.UnsafeEnabled && x != nil {
    75  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    76  		if ms.LoadMessageInfo() == nil {
    77  			ms.StoreMessageInfo(mi)
    78  		}
    79  		return ms
    80  	}
    81  	return mi.MessageOf(x)
    82  }
    83  
    84  // Deprecated: Use ComputeRoutesResponse.ProtoReflect.Descriptor instead.
    85  func (*ComputeRoutesResponse) Descriptor() ([]byte, []int) {
    86  	return file_google_maps_routes_v1_compute_routes_response_proto_rawDescGZIP(), []int{0}
    87  }
    88  
    89  func (x *ComputeRoutesResponse) GetRoutes() []*Route {
    90  	if x != nil {
    91  		return x.Routes
    92  	}
    93  	return nil
    94  }
    95  
    96  func (x *ComputeRoutesResponse) GetFallbackInfo() *FallbackInfo {
    97  	if x != nil {
    98  		return x.FallbackInfo
    99  	}
   100  	return nil
   101  }
   102  
   103  var File_google_maps_routes_v1_compute_routes_response_proto protoreflect.FileDescriptor
   104  
   105  var file_google_maps_routes_v1_compute_routes_response_proto_rawDesc = []byte{
   106  	0x0a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x6f,
   107  	0x75, 0x74, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f,
   108  	0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e,
   109  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61,
   110  	0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x29, 0x67, 0x6f,
   111  	0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73,
   112  	0x2f, 0x76, 0x31, 0x2f, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x6e, 0x66,
   113  	0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
   114  	0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72,
   115  	0x6f, 0x75, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x97, 0x01, 0x0a, 0x15, 0x43,
   116  	0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70,
   117  	0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01,
   118  	0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61,
   119  	0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x75,
   120  	0x74, 0x65, 0x52, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x48, 0x0a, 0x0d, 0x66, 0x61,
   121  	0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28,
   122  	0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e,
   123  	0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61,
   124  	0x63, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b,
   125  	0x49, 0x6e, 0x66, 0x6f, 0x42, 0xb0, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f,
   126  	0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e,
   127  	0x76, 0x31, 0x42, 0x1a, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65,
   128  	0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
   129  	0x5a, 0x3b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e,
   130  	0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f,
   131  	0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x75,
   132  	0x74, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0xf8, 0x01, 0x01,
   133  	0xa2, 0x02, 0x04, 0x47, 0x4d, 0x52, 0x53, 0xaa, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   134  	0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca,
   135  	0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x52, 0x6f,
   136  	0x75, 0x74, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   137  }
   138  
   139  var (
   140  	file_google_maps_routes_v1_compute_routes_response_proto_rawDescOnce sync.Once
   141  	file_google_maps_routes_v1_compute_routes_response_proto_rawDescData = file_google_maps_routes_v1_compute_routes_response_proto_rawDesc
   142  )
   143  
   144  func file_google_maps_routes_v1_compute_routes_response_proto_rawDescGZIP() []byte {
   145  	file_google_maps_routes_v1_compute_routes_response_proto_rawDescOnce.Do(func() {
   146  		file_google_maps_routes_v1_compute_routes_response_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_routes_v1_compute_routes_response_proto_rawDescData)
   147  	})
   148  	return file_google_maps_routes_v1_compute_routes_response_proto_rawDescData
   149  }
   150  
   151  var file_google_maps_routes_v1_compute_routes_response_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   152  var file_google_maps_routes_v1_compute_routes_response_proto_goTypes = []interface{}{
   153  	(*ComputeRoutesResponse)(nil), // 0: google.maps.routes.v1.ComputeRoutesResponse
   154  	(*Route)(nil),                 // 1: google.maps.routes.v1.Route
   155  	(*FallbackInfo)(nil),          // 2: google.maps.routes.v1.FallbackInfo
   156  }
   157  var file_google_maps_routes_v1_compute_routes_response_proto_depIdxs = []int32{
   158  	1, // 0: google.maps.routes.v1.ComputeRoutesResponse.routes:type_name -> google.maps.routes.v1.Route
   159  	2, // 1: google.maps.routes.v1.ComputeRoutesResponse.fallback_info:type_name -> google.maps.routes.v1.FallbackInfo
   160  	2, // [2:2] is the sub-list for method output_type
   161  	2, // [2:2] is the sub-list for method input_type
   162  	2, // [2:2] is the sub-list for extension type_name
   163  	2, // [2:2] is the sub-list for extension extendee
   164  	0, // [0:2] is the sub-list for field type_name
   165  }
   166  
   167  func init() { file_google_maps_routes_v1_compute_routes_response_proto_init() }
   168  func file_google_maps_routes_v1_compute_routes_response_proto_init() {
   169  	if File_google_maps_routes_v1_compute_routes_response_proto != nil {
   170  		return
   171  	}
   172  	file_google_maps_routes_v1_fallback_info_proto_init()
   173  	file_google_maps_routes_v1_route_proto_init()
   174  	if !protoimpl.UnsafeEnabled {
   175  		file_google_maps_routes_v1_compute_routes_response_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   176  			switch v := v.(*ComputeRoutesResponse); i {
   177  			case 0:
   178  				return &v.state
   179  			case 1:
   180  				return &v.sizeCache
   181  			case 2:
   182  				return &v.unknownFields
   183  			default:
   184  				return nil
   185  			}
   186  		}
   187  	}
   188  	type x struct{}
   189  	out := protoimpl.TypeBuilder{
   190  		File: protoimpl.DescBuilder{
   191  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   192  			RawDescriptor: file_google_maps_routes_v1_compute_routes_response_proto_rawDesc,
   193  			NumEnums:      0,
   194  			NumMessages:   1,
   195  			NumExtensions: 0,
   196  			NumServices:   0,
   197  		},
   198  		GoTypes:           file_google_maps_routes_v1_compute_routes_response_proto_goTypes,
   199  		DependencyIndexes: file_google_maps_routes_v1_compute_routes_response_proto_depIdxs,
   200  		MessageInfos:      file_google_maps_routes_v1_compute_routes_response_proto_msgTypes,
   201  	}.Build()
   202  	File_google_maps_routes_v1_compute_routes_response_proto = out.File
   203  	file_google_maps_routes_v1_compute_routes_response_proto_rawDesc = nil
   204  	file_google_maps_routes_v1_compute_routes_response_proto_goTypes = nil
   205  	file_google_maps_routes_v1_compute_routes_response_proto_depIdxs = nil
   206  }
   207  

View as plain text