Debian Codegraph @

googleapis/maps/routes/v1alpha/route_service.pb.go

raw symbols SCIP
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/v1alpha/route_service.proto
20
21 package routes
22
23 import (
24 context "context"
25 reflect "reflect"
26
27 _ "google.golang.org/genproto/googleapis/api/annotations"
28 v1 "google.golang.org/genproto/googleapis/maps/routes/v1"
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 var File_google_maps_routes_v1alpha_route_service_proto protoreflect.FileDescriptor
44
45 var file_google_maps_routes_v1alpha_route_service_proto_rawDesc = []byte{
46 0x0a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x6f,
47 0x75, 0x74, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x6f, 0x75,
48 0x74, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
49 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f,
50 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, 0x1c, 0x67, 0x6f,
51 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
52 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67,
53 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72,
54 0x6f, 0x74, 0x6f, 0x1a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73,
55 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75,
56 0x74, 0x65, 0x5f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73,
57 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3a,
58 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x75, 0x74,
59 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x63, 0x75,
60 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x70,
61 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x38, 0x67, 0x6f, 0x6f, 0x67,
62 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x76,
63 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f,
64 0x6d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x70,
65 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70,
66 0x73, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x70,
67 0x75, 0x74, 0x65, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65,
68 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
69 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f,
70 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x5f, 0x72,
71 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x30, 0x67,
72 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65,
73 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x74, 0x72, 0x69,
74 0x78, 0x5f, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
75 0xc6, 0x04, 0x0a, 0x0b, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x12,
76 0x8d, 0x01, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65,
77 0x73, 0x12, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e,
78 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74,
79 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c,
80 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75,
81 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x6f,
82 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3,
83 0xe4, 0x93, 0x02, 0x1b, 0x22, 0x16, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x63,
84 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x3a, 0x01, 0x2a, 0x12,
85 0x9b, 0x01, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65,
86 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x12, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
87 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43,
88 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4d, 0x61, 0x74, 0x72, 0x69,
89 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
90 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31,
91 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x45, 0x6c, 0x65, 0x6d,
92 0x65, 0x6e, 0x74, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1b, 0x2f, 0x76, 0x31,
93 0x61, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x6f, 0x75,
94 0x74, 0x65, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x3a, 0x01, 0x2a, 0x30, 0x01, 0x12, 0xa5, 0x01,
95 0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x52,
96 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d,
97 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f,
98 0x6d, 0x70, 0x75, 0x74, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x52, 0x6f, 0x75, 0x74, 0x65,
99 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
100 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31,
101 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x52, 0x6f,
102 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3,
103 0xe4, 0x93, 0x02, 0x21, 0x22, 0x1c, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x63,
104 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x52, 0x6f, 0x75, 0x74,
105 0x65, 0x73, 0x3a, 0x01, 0x2a, 0x1a, 0x61, 0xca, 0x41, 0x1e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73,
106 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
107 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x3d, 0x68, 0x74, 0x74, 0x70, 0x73,
108 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
109 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2d,
110 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x70,
111 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x42, 0xc1, 0x01, 0x0a, 0x1e, 0x63, 0x6f, 0x6d,
112 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75,
113 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x17, 0x52, 0x6f, 0x75,
114 0x74, 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x50,
115 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x40, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67,
116 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f,
117 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x6d, 0x61,
118 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68,
119 0x61, 0x3b, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x04, 0x47, 0x4d,
120 0x52, 0x53, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x73,
121 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x56, 0x31, 0x41, 0x6c, 0x70, 0x68, 0x61, 0xca,
122 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x52, 0x6f,
123 0x75, 0x74, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x62, 0x06, 0x70, 0x72,
124 0x6f, 0x74, 0x6f, 0x33,
125 }
126
127 var file_google_maps_routes_v1alpha_route_service_proto_goTypes = []interface{}{
128 (*v1.ComputeRoutesRequest)(nil), // 0: google.maps.routes.v1.ComputeRoutesRequest
129 (*v1.ComputeRouteMatrixRequest)(nil), // 1: google.maps.routes.v1.ComputeRouteMatrixRequest
130 (*v1.ComputeCustomRoutesRequest)(nil), // 2: google.maps.routes.v1.ComputeCustomRoutesRequest
131 (*v1.ComputeRoutesResponse)(nil), // 3: google.maps.routes.v1.ComputeRoutesResponse
132 (*v1.RouteMatrixElement)(nil), // 4: google.maps.routes.v1.RouteMatrixElement
133 (*v1.ComputeCustomRoutesResponse)(nil), // 5: google.maps.routes.v1.ComputeCustomRoutesResponse
134 }
135 var file_google_maps_routes_v1alpha_route_service_proto_depIdxs = []int32{
136 0, // 0: google.maps.routes.v1alpha.RoutesAlpha.ComputeRoutes:input_type -> google.maps.routes.v1.ComputeRoutesRequest
137 1, // 1: google.maps.routes.v1alpha.RoutesAlpha.ComputeRouteMatrix:input_type -> google.maps.routes.v1.ComputeRouteMatrixRequest
138 2, // 2: google.maps.routes.v1alpha.RoutesAlpha.ComputeCustomRoutes:input_type -> google.maps.routes.v1.ComputeCustomRoutesRequest
139 3, // 3: google.maps.routes.v1alpha.RoutesAlpha.ComputeRoutes:output_type -> google.maps.routes.v1.ComputeRoutesResponse
140 4, // 4: google.maps.routes.v1alpha.RoutesAlpha.ComputeRouteMatrix:output_type -> google.maps.routes.v1.RouteMatrixElement
141 5, // 5: google.maps.routes.v1alpha.RoutesAlpha.ComputeCustomRoutes:output_type -> google.maps.routes.v1.ComputeCustomRoutesResponse
142 3, // [3:6] is the sub-list for method output_type
143 0, // [0:3] is the sub-list for method input_type
144 0, // [0:0] is the sub-list for extension type_name
145 0, // [0:0] is the sub-list for extension extendee
146 0, // [0:0] is the sub-list for field type_name
147 }
148
149 func init() { file_google_maps_routes_v1alpha_route_service_proto_init() }
150 func file_google_maps_routes_v1alpha_route_service_proto_init() {
151 if File_google_maps_routes_v1alpha_route_service_proto != nil {
152 return
153 }
154 type x struct{}
155 out := protoimpl.TypeBuilder{
156 File: protoimpl.DescBuilder{
157 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
158 RawDescriptor: file_google_maps_routes_v1alpha_route_service_proto_rawDesc,
159 NumEnums: 0,
160 NumMessages: 0,
161 NumExtensions: 0,
162 NumServices: 1,
163 },
164 GoTypes: file_google_maps_routes_v1alpha_route_service_proto_goTypes,
165 DependencyIndexes: file_google_maps_routes_v1alpha_route_service_proto_depIdxs,
166 }.Build()
167 File_google_maps_routes_v1alpha_route_service_proto = out.File
168 file_google_maps_routes_v1alpha_route_service_proto_rawDesc = nil
169 file_google_maps_routes_v1alpha_route_service_proto_goTypes = nil
170 file_google_maps_routes_v1alpha_route_service_proto_depIdxs = nil
171 }
172
173 // Reference imports to suppress errors if they are not otherwise used.
174 var _ context.Context
175 var _ grpc.ClientConnInterface
176
177 // This is a compile-time assertion to ensure that this generated file
178 // is compatible with the grpc package it is being compiled against.
179 const _ = grpc.SupportPackageIsVersion6
180
181 // RoutesAlphaClient is the client API for RoutesAlpha service.
182 //
183 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
184 type RoutesAlphaClient interface {
185 // Returns the primary route along with optional alternate routes, given a set
186 // of terminal and intermediate waypoints.
187 //
188 // **NOTE:** This method requires that you specify a response field mask in
189 // the input. You can provide the response field mask by using the URL
190 // parameter `$fields` or `fields`, or by using the HTTP/gRPC header
191 // `X-Goog-FieldMask` (see the [available URL parameters and
192 // headers](https://cloud.google.com/apis/docs/system-parameters). The value
193 // is a comma separated list of field paths. See this detailed documentation
194 // about [how to construct the field
195 // paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto).
196 //
197 // For example, in this method:
198 //
199 // * Field mask of all available fields (for manual inspection):
200 // `X-Goog-FieldMask: *`
201 // * Field mask of Route-level duration, distance, and polyline (an example
202 // production setup):
203 // `X-Goog-FieldMask:
204 // routes.duration,routes.distanceMeters,routes.polyline.encodedPolyline`
205 //
206 // Google discourages the use of the wildcard (`*`) response field mask, or
207 // specifying the field mask at the top level (`routes`), because:
208 //
209 // * Selecting only the fields that you need helps our server save computation
210 // cycles, allowing us to return the result to you with a lower latency.
211 // * Selecting only the fields that you need in your production job ensures
212 // stable latency performance. We might add more response fields in the
213 // future, and those new fields might require extra computation time. If you
214 // select all fields, or if you select all fields at the top level, then you
215 // might experience performance degradation because any new field we add will
216 // be automatically included in the response.
217 // * Selecting only the fields that you need results in a smaller response
218 // size, and thus higher network throughput.
219 ComputeRoutes(ctx context.Context, in *v1.ComputeRoutesRequest, opts ...grpc.CallOption) (*v1.ComputeRoutesResponse, error)
220 // Takes in a list of origins and destinations and returns a stream containing
221 // route information for each combination of origin and destination.
222 //
223 // **NOTE:** This method requires that you specify a response field mask in
224 // the input. You can provide the response field mask by using the URL
225 // parameter `$fields` or `fields`, or by using the HTTP/gRPC header
226 // `X-Goog-FieldMask` (see the [available URL parameters and
227 // headers](https://cloud.google.com/apis/docs/system-parameters). The value
228 // is a comma separated list of field paths. See this detailed documentation
229 // about [how to construct the field
230 // paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto).
231 //
232 // For example, in this method:
233 //
234 // * Field mask of all available fields (for manual inspection):
235 // `X-Goog-FieldMask: *`
236 // * Field mask of route durations, distances, element status, condition, and
237 // element indices (an example production setup):
238 // `X-Goog-FieldMask:
239 // originIndex,destinationIndex,status,condition,distanceMeters,duration`
240 //
241 // It is critical that you include `status` in your field mask as otherwise
242 // all messages will appear to be OK. Google discourages the use of the
243 // wildcard (`*`) response field mask, because:
244 //
245 // * Selecting only the fields that you need helps our server save computation
246 // cycles, allowing us to return the result to you with a lower latency.
247 // * Selecting only the fields that you need in your production job ensures
248 // stable latency performance. We might add more response fields in the
249 // future, and those new fields might require extra computation time. If you
250 // select all fields, or if you select all fields at the top level, then you
251 // might experience performance degradation because any new field we add will
252 // be automatically included in the response.
253 // * Selecting only the fields that you need results in a smaller response
254 // size, and thus higher network throughput.
255 ComputeRouteMatrix(ctx context.Context, in *v1.ComputeRouteMatrixRequest, opts ...grpc.CallOption) (RoutesAlpha_ComputeRouteMatrixClient, error)
256 // Given a set of terminal and intermediate waypoints, and a route objective,
257 // computes the best route for the route objective. Also returns fastest route
258 // and shortest route as reference routes.
259 //
260 // **NOTE:** This method requires that you specify a response field mask in
261 // the input. You can provide the response field mask by using the URL
262 // parameter `$fields` or `fields`, or by using the HTTP/gRPC header
263 // `X-Goog-FieldMask` (see the [available URL parameters and
264 // headers](https://cloud.google.com/apis/docs/system-parameters). The value
265 // is a comma separated list of field paths. See this detailed documentation
266 // about [how to construct the field
267 // paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto).
268 //
269 // For example, in this method:
270 //
271 // * Field mask of all available fields (for manual inspection):
272 // `X-Goog-FieldMask: *`
273 // * Field mask of route distances, durations, token and toll info:
274 // `X-Goog-FieldMask:
275 // routes.route.distanceMeters,routes.route.duration,routes.token,routes.route.travelAdvisory.tollInfo`
276 //
277 // Google discourages the use of the wildcard (`*`) response field mask, or
278 // specifying the field mask at the top level (`routes`), because:
279 //
280 // * Selecting only the fields that you need helps our server save computation
281 // cycles, allowing us to return the result to you with a lower latency.
282 // * Selecting only the fields that you need in your production job ensures
283 // stable latency performance. We might add more response fields in the
284 // future, and those new fields might require extra computation time. If you
285 // select all fields, or if you select all fields at the top level, then you
286 // might experience performance degradation because any new field we add will
287 // be automatically included in the response.
288 // * Selecting only the fields that you need results in a smaller response
289 // size, and thus higher network throughput.
290 ComputeCustomRoutes(ctx context.Context, in *v1.ComputeCustomRoutesRequest, opts ...grpc.CallOption) (*v1.ComputeCustomRoutesResponse, error)
291 }
292
293 type routesAlphaClient struct {
294 cc grpc.ClientConnInterface
295 }
296
297 func NewRoutesAlphaClient(cc grpc.ClientConnInterface) RoutesAlphaClient {
298 return &routesAlphaClient{cc}
299 }
300
301 func (c *routesAlphaClient) ComputeRoutes(ctx context.Context, in *v1.ComputeRoutesRequest, opts ...grpc.CallOption) (*v1.ComputeRoutesResponse, error) {
302 out := new(v1.ComputeRoutesResponse)
303 err := c.cc.Invoke(ctx, "/google.maps.routes.v1alpha.RoutesAlpha/ComputeRoutes", in, out, opts...)
304 if err != nil {
305 return nil, err
306 }
307 return out, nil
308 }
309
310 func (c *routesAlphaClient) ComputeRouteMatrix(ctx context.Context, in *v1.ComputeRouteMatrixRequest, opts ...grpc.CallOption) (RoutesAlpha_ComputeRouteMatrixClient, error) {
311 stream, err := c.cc.NewStream(ctx, &_RoutesAlpha_serviceDesc.Streams[0], "/google.maps.routes.v1alpha.RoutesAlpha/ComputeRouteMatrix", opts...)
312 if err != nil {
313 return nil, err
314 }
315 x := &routesAlphaComputeRouteMatrixClient{stream}
316 if err := x.ClientStream.SendMsg(in); err != nil {
317 return nil, err
318 }
319 if err := x.ClientStream.CloseSend(); err != nil {
320 return nil, err
321 }
322 return x, nil
323 }
324
325 type RoutesAlpha_ComputeRouteMatrixClient interface {
326 Recv() (*v1.RouteMatrixElement, error)
327 grpc.ClientStream
328 }
329
330 type routesAlphaComputeRouteMatrixClient struct {
331 grpc.ClientStream
332 }
333
334 func (x *routesAlphaComputeRouteMatrixClient) Recv() (*v1.RouteMatrixElement, error) {
335 m := new(v1.RouteMatrixElement)
336 if err := x.ClientStream.RecvMsg(m); err != nil {
337 return nil, err
338 }
339 return m, nil
340 }
341
342 func (c *routesAlphaClient) ComputeCustomRoutes(ctx context.Context, in *v1.ComputeCustomRoutesRequest, opts ...grpc.CallOption) (*v1.ComputeCustomRoutesResponse, error) {
343 out := new(v1.ComputeCustomRoutesResponse)
344 err := c.cc.Invoke(ctx, "/google.maps.routes.v1alpha.RoutesAlpha/ComputeCustomRoutes", in, out, opts...)
345 if err != nil {
346 return nil, err
347 }
348 return out, nil
349 }
350
351 // RoutesAlphaServer is the server API for RoutesAlpha service.
352 type RoutesAlphaServer interface {
353 // Returns the primary route along with optional alternate routes, given a set
354 // of terminal and intermediate waypoints.
355 //
356 // **NOTE:** This method requires that you specify a response field mask in
357 // the input. You can provide the response field mask by using the URL
358 // parameter `$fields` or `fields`, or by using the HTTP/gRPC header
359 // `X-Goog-FieldMask` (see the [available URL parameters and
360 // headers](https://cloud.google.com/apis/docs/system-parameters). The value
361 // is a comma separated list of field paths. See this detailed documentation
362 // about [how to construct the field
363 // paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto).
364 //
365 // For example, in this method:
366 //
367 // * Field mask of all available fields (for manual inspection):
368 // `X-Goog-FieldMask: *`
369 // * Field mask of Route-level duration, distance, and polyline (an example
370 // production setup):
371 // `X-Goog-FieldMask:
372 // routes.duration,routes.distanceMeters,routes.polyline.encodedPolyline`
373 //
374 // Google discourages the use of the wildcard (`*`) response field mask, or
375 // specifying the field mask at the top level (`routes`), because:
376 //
377 // * Selecting only the fields that you need helps our server save computation
378 // cycles, allowing us to return the result to you with a lower latency.
379 // * Selecting only the fields that you need in your production job ensures
380 // stable latency performance. We might add more response fields in the
381 // future, and those new fields might require extra computation time. If you
382 // select all fields, or if you select all fields at the top level, then you
383 // might experience performance degradation because any new field we add will
384 // be automatically included in the response.
385 // * Selecting only the fields that you need results in a smaller response
386 // size, and thus higher network throughput.
387 ComputeRoutes(context.Context, *v1.ComputeRoutesRequest) (*v1.ComputeRoutesResponse, error)
388 // Takes in a list of origins and destinations and returns a stream containing
389 // route information for each combination of origin and destination.
390 //
391 // **NOTE:** This method requires that you specify a response field mask in
392 // the input. You can provide the response field mask by using the URL
393 // parameter `$fields` or `fields`, or by using the HTTP/gRPC header
394 // `X-Goog-FieldMask` (see the [available URL parameters and
395 // headers](https://cloud.google.com/apis/docs/system-parameters). The value
396 // is a comma separated list of field paths. See this detailed documentation
397 // about [how to construct the field
398 // paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto).
399 //
400 // For example, in this method:
401 //
402 // * Field mask of all available fields (for manual inspection):
403 // `X-Goog-FieldMask: *`
404 // * Field mask of route durations, distances, element status, condition, and
405 // element indices (an example production setup):
406 // `X-Goog-FieldMask:
407 // originIndex,destinationIndex,status,condition,distanceMeters,duration`
408 //
409 // It is critical that you include `status` in your field mask as otherwise
410 // all messages will appear to be OK. Google discourages the use of the
411 // wildcard (`*`) response field mask, because:
412 //
413 // * Selecting only the fields that you need helps our server save computation
414 // cycles, allowing us to return the result to you with a lower latency.
415 // * Selecting only the fields that you need in your production job ensures
416 // stable latency performance. We might add more response fields in the
417 // future, and those new fields might require extra computation time. If you
418 // select all fields, or if you select all fields at the top level, then you
419 // might experience performance degradation because any new field we add will
420 // be automatically included in the response.
421 // * Selecting only the fields that you need results in a smaller response
422 // size, and thus higher network throughput.
423 ComputeRouteMatrix(*v1.ComputeRouteMatrixRequest, RoutesAlpha_ComputeRouteMatrixServer) error
424 // Given a set of terminal and intermediate waypoints, and a route objective,
425 // computes the best route for the route objective. Also returns fastest route
426 // and shortest route as reference routes.
427 //
428 // **NOTE:** This method requires that you specify a response field mask in
429 // the input. You can provide the response field mask by using the URL
430 // parameter `$fields` or `fields`, or by using the HTTP/gRPC header
431 // `X-Goog-FieldMask` (see the [available URL parameters and
432 // headers](https://cloud.google.com/apis/docs/system-parameters). The value
433 // is a comma separated list of field paths. See this detailed documentation
434 // about [how to construct the field
435 // paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto).
436 //
437 // For example, in this method:
438 //
439 // * Field mask of all available fields (for manual inspection):
440 // `X-Goog-FieldMask: *`
441 // * Field mask of route distances, durations, token and toll info:
442 // `X-Goog-FieldMask:
443 // routes.route.distanceMeters,routes.route.duration,routes.token,routes.route.travelAdvisory.tollInfo`
444 //
445 // Google discourages the use of the wildcard (`*`) response field mask, or
446 // specifying the field mask at the top level (`routes`), because:
447 //
448 // * Selecting only the fields that you need helps our server save computation
449 // cycles, allowing us to return the result to you with a lower latency.
450 // * Selecting only the fields that you need in your production job ensures
451 // stable latency performance. We might add more response fields in the
452 // future, and those new fields might require extra computation time. If you
453 // select all fields, or if you select all fields at the top level, then you
454 // might experience performance degradation because any new field we add will
455 // be automatically included in the response.
456 // * Selecting only the fields that you need results in a smaller response
457 // size, and thus higher network throughput.
458 ComputeCustomRoutes(context.Context, *v1.ComputeCustomRoutesRequest) (*v1.ComputeCustomRoutesResponse, error)
459 }
460
461 // UnimplementedRoutesAlphaServer can be embedded to have forward compatible implementations.
462 type UnimplementedRoutesAlphaServer struct {
463 }
464
465 func (*UnimplementedRoutesAlphaServer) ComputeRoutes(context.Context, *v1.ComputeRoutesRequest) (*v1.ComputeRoutesResponse, error) {
466 return nil, status.Errorf(codes.Unimplemented, "method ComputeRoutes not implemented")
467 }
468 func (*UnimplementedRoutesAlphaServer) ComputeRouteMatrix(*v1.ComputeRouteMatrixRequest, RoutesAlpha_ComputeRouteMatrixServer) error {
469 return status.Errorf(codes.Unimplemented, "method ComputeRouteMatrix not implemented")
470 }
471 func (*UnimplementedRoutesAlphaServer) ComputeCustomRoutes(context.Context, *v1.ComputeCustomRoutesRequest) (*v1.ComputeCustomRoutesResponse, error) {
472 return nil, status.Errorf(codes.Unimplemented, "method ComputeCustomRoutes not implemented")
473 }
474
475 func RegisterRoutesAlphaServer(s *grpc.Server, srv RoutesAlphaServer) {
476 s.RegisterService(&_RoutesAlpha_serviceDesc, srv)
477 }
478
479 func _RoutesAlpha_ComputeRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
480 in := new(v1.ComputeRoutesRequest)
481 if err := dec(in); err != nil {
482 return nil, err
483 }
484 if interceptor == nil {
485 return srv.(RoutesAlphaServer).ComputeRoutes(ctx, in)
486 }
487 info := &grpc.UnaryServerInfo{
488 Server: srv,
489 FullMethod: "/google.maps.routes.v1alpha.RoutesAlpha/ComputeRoutes",
490 }
491 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
492 return srv.(RoutesAlphaServer).ComputeRoutes(ctx, req.(*v1.ComputeRoutesRequest))
493 }
494 return interceptor(ctx, in, info, handler)
495 }
496
497 func _RoutesAlpha_ComputeRouteMatrix_Handler(srv interface{}, stream grpc.ServerStream) error {
498 m := new(v1.ComputeRouteMatrixRequest)
499 if err := stream.RecvMsg(m); err != nil {
500 return err
501 }
502 return srv.(RoutesAlphaServer).ComputeRouteMatrix(m, &routesAlphaComputeRouteMatrixServer{stream})
503 }
504
505 type RoutesAlpha_ComputeRouteMatrixServer interface {
506 Send(*v1.RouteMatrixElement) error
507 grpc.ServerStream
508 }
509
510 type routesAlphaComputeRouteMatrixServer struct {
511 grpc.ServerStream
512 }
513
514 func (x *routesAlphaComputeRouteMatrixServer) Send(m *v1.RouteMatrixElement) error {
515 return x.ServerStream.SendMsg(m)
516 }
517
518 func _RoutesAlpha_ComputeCustomRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
519 in := new(v1.ComputeCustomRoutesRequest)
520 if err := dec(in); err != nil {
521 return nil, err
522 }
523 if interceptor == nil {
524 return srv.(RoutesAlphaServer).ComputeCustomRoutes(ctx, in)
525 }
526 info := &grpc.UnaryServerInfo{
527 Server: srv,
528 FullMethod: "/google.maps.routes.v1alpha.RoutesAlpha/ComputeCustomRoutes",
529 }
530 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
531 return srv.(RoutesAlphaServer).ComputeCustomRoutes(ctx, req.(*v1.ComputeCustomRoutesRequest))
532 }
533 return interceptor(ctx, in, info, handler)
534 }
535
536 var _RoutesAlpha_serviceDesc = grpc.ServiceDesc{
537 ServiceName: "google.maps.routes.v1alpha.RoutesAlpha",
538 HandlerType: (*RoutesAlphaServer)(nil),
539 Methods: []grpc.MethodDesc{
540 {
541 MethodName: "ComputeRoutes",
542 Handler: _RoutesAlpha_ComputeRoutes_Handler,
543 },
544 {
545 MethodName: "ComputeCustomRoutes",
546 Handler: _RoutesAlpha_ComputeCustomRoutes_Handler,
547 },
548 },
549 Streams: []grpc.StreamDesc{
550 {
551 StreamName: "ComputeRouteMatrix",
552 Handler: _RoutesAlpha_ComputeRouteMatrix_Handler,
553 ServerStreams: true,
554 },
555 },
556 Metadata: "google/maps/routes/v1alpha/route_service.proto",
557 }