This repository was archived by the owner on Apr 7, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 141
Expand file tree
/
Copy pathRoutingHintOrBuilder.java
More file actions
268 lines (251 loc) · 8.05 KB
/
Copy pathRoutingHintOrBuilder.java
File metadata and controls
268 lines (251 loc) · 8.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
/*
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/spanner/v1/location.proto
// Protobuf Java Version: 3.25.8
package com.google.spanner.v1;
public interface RoutingHintOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.spanner.v1.RoutingHint)
com.google.protobuf.MessageOrBuilder {
/**
*
*
* <pre>
* A session-scoped unique ID for the operation, computed client-side.
* Requests with the same `operation_uid` should have a shared 'shape',
* meaning that some fields are expected to be the same, such as the SQL
* query, the target table/columns (for reads) etc. Requests with the same
* `operation_uid` are meant to differ only in fields like keys/key
* ranges/query parameters, transaction IDs, etc.
*
* `operation_uid` must be non-zero for `RoutingHint` to be valid.
* </pre>
*
* <code>uint64 operation_uid = 1;</code>
*
* @return The operationUid.
*/
long getOperationUid();
/**
*
*
* <pre>
* The database ID of the database being accessed, see
* `CacheUpdate.database_id`. Should match the cache entries that were used
* to generate the rest of the fields in this `RoutingHint`.
* </pre>
*
* <code>uint64 database_id = 2;</code>
*
* @return The databaseId.
*/
long getDatabaseId();
/**
*
*
* <pre>
* The schema generation of the recipe that was used to generate `key` and
* `limit_key`. See also `RecipeList.schema_generation`.
* </pre>
*
* <code>bytes schema_generation = 3;</code>
*
* @return The schemaGeneration.
*/
com.google.protobuf.ByteString getSchemaGeneration();
/**
*
*
* <pre>
* The key / key range that this request accesses. For operations that
* access a single key, `key` should be set and `limit_key` should be empty.
* For operations that access a key range, `key` and `limit_key` should both
* be set, to the inclusive start and exclusive end of the range respectively.
*
* The keys are encoded in "sortable string format" (ssformat), using a
* `KeyRecipe` that is appropriate for the request. See `KeyRecipe` for more
* details.
* </pre>
*
* <code>bytes key = 4;</code>
*
* @return The key.
*/
com.google.protobuf.ByteString getKey();
/**
*
*
* <pre>
* If this request targets a key range, this is the exclusive end of the
* range. See `key` for more details.
* </pre>
*
* <code>bytes limit_key = 5;</code>
*
* @return The limitKey.
*/
com.google.protobuf.ByteString getLimitKey();
/**
*
*
* <pre>
* The group UID of the group that the client believes serves the range
* defined by `key` and `limit_key`. See `Range.group_uid` for more details.
* </pre>
*
* <code>uint64 group_uid = 6;</code>
*
* @return The groupUid.
*/
long getGroupUid();
/**
*
*
* <pre>
* The split ID of the split that the client believes contains the range
* defined by `key` and `limit_key`. See `Range.split_id` for more details.
* </pre>
*
* <code>uint64 split_id = 7;</code>
*
* @return The splitId.
*/
long getSplitId();
/**
*
*
* <pre>
* The tablet UID of the tablet from group `group_uid` that the client
* believes is best to serve this request. See `Group.local_tablet_uids` and
* `Group.leader_tablet_uid`.
* </pre>
*
* <code>uint64 tablet_uid = 8;</code>
*
* @return The tabletUid.
*/
long getTabletUid();
/**
*
*
* <pre>
* If the client had multiple options for tablet selection, and some of its
* first choices were unhealthy (e.g., the server is unreachable, or
* `Tablet.skip` is true), this field will contain the tablet UIDs of those
* tablets, with their incarnations. The server may include a `CacheUpdate`
* with new locations for those tablets.
* </pre>
*
* <code>repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9;</code>
*/
java.util.List<com.google.spanner.v1.RoutingHint.SkippedTablet> getSkippedTabletUidList();
/**
*
*
* <pre>
* If the client had multiple options for tablet selection, and some of its
* first choices were unhealthy (e.g., the server is unreachable, or
* `Tablet.skip` is true), this field will contain the tablet UIDs of those
* tablets, with their incarnations. The server may include a `CacheUpdate`
* with new locations for those tablets.
* </pre>
*
* <code>repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9;</code>
*/
com.google.spanner.v1.RoutingHint.SkippedTablet getSkippedTabletUid(int index);
/**
*
*
* <pre>
* If the client had multiple options for tablet selection, and some of its
* first choices were unhealthy (e.g., the server is unreachable, or
* `Tablet.skip` is true), this field will contain the tablet UIDs of those
* tablets, with their incarnations. The server may include a `CacheUpdate`
* with new locations for those tablets.
* </pre>
*
* <code>repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9;</code>
*/
int getSkippedTabletUidCount();
/**
*
*
* <pre>
* If the client had multiple options for tablet selection, and some of its
* first choices were unhealthy (e.g., the server is unreachable, or
* `Tablet.skip` is true), this field will contain the tablet UIDs of those
* tablets, with their incarnations. The server may include a `CacheUpdate`
* with new locations for those tablets.
* </pre>
*
* <code>repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9;</code>
*/
java.util.List<? extends com.google.spanner.v1.RoutingHint.SkippedTabletOrBuilder>
getSkippedTabletUidOrBuilderList();
/**
*
*
* <pre>
* If the client had multiple options for tablet selection, and some of its
* first choices were unhealthy (e.g., the server is unreachable, or
* `Tablet.skip` is true), this field will contain the tablet UIDs of those
* tablets, with their incarnations. The server may include a `CacheUpdate`
* with new locations for those tablets.
* </pre>
*
* <code>repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9;</code>
*/
com.google.spanner.v1.RoutingHint.SkippedTabletOrBuilder getSkippedTabletUidOrBuilder(int index);
/**
*
*
* <pre>
* If present, the client's current location. This should be the name of a
* Google Cloud zone or region, such as "us-central1".
*
* If absent, the client's location will be assumed to be the same as the
* location of the server the client ends up connected to.
*
* Locations are primarily valuable for clients that connect from regions
* other than the ones that contain the Spanner database.
* </pre>
*
* <code>string client_location = 10;</code>
*
* @return The clientLocation.
*/
java.lang.String getClientLocation();
/**
*
*
* <pre>
* If present, the client's current location. This should be the name of a
* Google Cloud zone or region, such as "us-central1".
*
* If absent, the client's location will be assumed to be the same as the
* location of the server the client ends up connected to.
*
* Locations are primarily valuable for clients that connect from regions
* other than the ones that contain the Spanner database.
* </pre>
*
* <code>string client_location = 10;</code>
*
* @return The bytes for clientLocation.
*/
com.google.protobuf.ByteString getClientLocationBytes();
}