1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/compute/v1/compute.proto 18 19 package com.google.cloud.compute.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * A request message for Disks.List. See the method description for details. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.compute.v1.ListDisksRequest} 29 */ 30 public final class ListDisksRequest extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.ListDisksRequest) 33 ListDisksRequestOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use ListDisksRequest.newBuilder() to construct. ListDisksRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private ListDisksRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 ListDisksRequest()40 private ListDisksRequest() { 41 filter_ = ""; 42 orderBy_ = ""; 43 pageToken_ = ""; 44 project_ = ""; 45 zone_ = ""; 46 } 47 48 @java.lang.Override 49 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)50 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 51 return new ListDisksRequest(); 52 } 53 54 @java.lang.Override getUnknownFields()55 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 56 return this.unknownFields; 57 } 58 getDescriptor()59 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 60 return com.google.cloud.compute.v1.Compute 61 .internal_static_google_cloud_compute_v1_ListDisksRequest_descriptor; 62 } 63 64 @java.lang.Override 65 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()66 internalGetFieldAccessorTable() { 67 return com.google.cloud.compute.v1.Compute 68 .internal_static_google_cloud_compute_v1_ListDisksRequest_fieldAccessorTable 69 .ensureFieldAccessorsInitialized( 70 com.google.cloud.compute.v1.ListDisksRequest.class, 71 com.google.cloud.compute.v1.ListDisksRequest.Builder.class); 72 } 73 74 private int bitField0_; 75 public static final int FILTER_FIELD_NUMBER = 336120696; 76 77 @SuppressWarnings("serial") 78 private volatile java.lang.Object filter_ = ""; 79 /** 80 * 81 * 82 * <pre> 83 * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. 84 * </pre> 85 * 86 * <code>optional string filter = 336120696;</code> 87 * 88 * @return Whether the filter field is set. 89 */ 90 @java.lang.Override hasFilter()91 public boolean hasFilter() { 92 return ((bitField0_ & 0x00000001) != 0); 93 } 94 /** 95 * 96 * 97 * <pre> 98 * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. 99 * </pre> 100 * 101 * <code>optional string filter = 336120696;</code> 102 * 103 * @return The filter. 104 */ 105 @java.lang.Override getFilter()106 public java.lang.String getFilter() { 107 java.lang.Object ref = filter_; 108 if (ref instanceof java.lang.String) { 109 return (java.lang.String) ref; 110 } else { 111 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 112 java.lang.String s = bs.toStringUtf8(); 113 filter_ = s; 114 return s; 115 } 116 } 117 /** 118 * 119 * 120 * <pre> 121 * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. 122 * </pre> 123 * 124 * <code>optional string filter = 336120696;</code> 125 * 126 * @return The bytes for filter. 127 */ 128 @java.lang.Override getFilterBytes()129 public com.google.protobuf.ByteString getFilterBytes() { 130 java.lang.Object ref = filter_; 131 if (ref instanceof java.lang.String) { 132 com.google.protobuf.ByteString b = 133 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 134 filter_ = b; 135 return b; 136 } else { 137 return (com.google.protobuf.ByteString) ref; 138 } 139 } 140 141 public static final int MAX_RESULTS_FIELD_NUMBER = 54715419; 142 private int maxResults_ = 0; 143 /** 144 * 145 * 146 * <pre> 147 * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) 148 * </pre> 149 * 150 * <code>optional uint32 max_results = 54715419;</code> 151 * 152 * @return Whether the maxResults field is set. 153 */ 154 @java.lang.Override hasMaxResults()155 public boolean hasMaxResults() { 156 return ((bitField0_ & 0x00000002) != 0); 157 } 158 /** 159 * 160 * 161 * <pre> 162 * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) 163 * </pre> 164 * 165 * <code>optional uint32 max_results = 54715419;</code> 166 * 167 * @return The maxResults. 168 */ 169 @java.lang.Override getMaxResults()170 public int getMaxResults() { 171 return maxResults_; 172 } 173 174 public static final int ORDER_BY_FIELD_NUMBER = 160562920; 175 176 @SuppressWarnings("serial") 177 private volatile java.lang.Object orderBy_ = ""; 178 /** 179 * 180 * 181 * <pre> 182 * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. 183 * </pre> 184 * 185 * <code>optional string order_by = 160562920;</code> 186 * 187 * @return Whether the orderBy field is set. 188 */ 189 @java.lang.Override hasOrderBy()190 public boolean hasOrderBy() { 191 return ((bitField0_ & 0x00000004) != 0); 192 } 193 /** 194 * 195 * 196 * <pre> 197 * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. 198 * </pre> 199 * 200 * <code>optional string order_by = 160562920;</code> 201 * 202 * @return The orderBy. 203 */ 204 @java.lang.Override getOrderBy()205 public java.lang.String getOrderBy() { 206 java.lang.Object ref = orderBy_; 207 if (ref instanceof java.lang.String) { 208 return (java.lang.String) ref; 209 } else { 210 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 211 java.lang.String s = bs.toStringUtf8(); 212 orderBy_ = s; 213 return s; 214 } 215 } 216 /** 217 * 218 * 219 * <pre> 220 * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. 221 * </pre> 222 * 223 * <code>optional string order_by = 160562920;</code> 224 * 225 * @return The bytes for orderBy. 226 */ 227 @java.lang.Override getOrderByBytes()228 public com.google.protobuf.ByteString getOrderByBytes() { 229 java.lang.Object ref = orderBy_; 230 if (ref instanceof java.lang.String) { 231 com.google.protobuf.ByteString b = 232 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 233 orderBy_ = b; 234 return b; 235 } else { 236 return (com.google.protobuf.ByteString) ref; 237 } 238 } 239 240 public static final int PAGE_TOKEN_FIELD_NUMBER = 19994697; 241 242 @SuppressWarnings("serial") 243 private volatile java.lang.Object pageToken_ = ""; 244 /** 245 * 246 * 247 * <pre> 248 * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. 249 * </pre> 250 * 251 * <code>optional string page_token = 19994697;</code> 252 * 253 * @return Whether the pageToken field is set. 254 */ 255 @java.lang.Override hasPageToken()256 public boolean hasPageToken() { 257 return ((bitField0_ & 0x00000008) != 0); 258 } 259 /** 260 * 261 * 262 * <pre> 263 * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. 264 * </pre> 265 * 266 * <code>optional string page_token = 19994697;</code> 267 * 268 * @return The pageToken. 269 */ 270 @java.lang.Override getPageToken()271 public java.lang.String getPageToken() { 272 java.lang.Object ref = pageToken_; 273 if (ref instanceof java.lang.String) { 274 return (java.lang.String) ref; 275 } else { 276 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 277 java.lang.String s = bs.toStringUtf8(); 278 pageToken_ = s; 279 return s; 280 } 281 } 282 /** 283 * 284 * 285 * <pre> 286 * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. 287 * </pre> 288 * 289 * <code>optional string page_token = 19994697;</code> 290 * 291 * @return The bytes for pageToken. 292 */ 293 @java.lang.Override getPageTokenBytes()294 public com.google.protobuf.ByteString getPageTokenBytes() { 295 java.lang.Object ref = pageToken_; 296 if (ref instanceof java.lang.String) { 297 com.google.protobuf.ByteString b = 298 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 299 pageToken_ = b; 300 return b; 301 } else { 302 return (com.google.protobuf.ByteString) ref; 303 } 304 } 305 306 public static final int PROJECT_FIELD_NUMBER = 227560217; 307 308 @SuppressWarnings("serial") 309 private volatile java.lang.Object project_ = ""; 310 /** 311 * 312 * 313 * <pre> 314 * Project ID for this request. 315 * </pre> 316 * 317 * <code>string project = 227560217 [(.google.api.field_behavior) = REQUIRED];</code> 318 * 319 * @return The project. 320 */ 321 @java.lang.Override getProject()322 public java.lang.String getProject() { 323 java.lang.Object ref = project_; 324 if (ref instanceof java.lang.String) { 325 return (java.lang.String) ref; 326 } else { 327 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 328 java.lang.String s = bs.toStringUtf8(); 329 project_ = s; 330 return s; 331 } 332 } 333 /** 334 * 335 * 336 * <pre> 337 * Project ID for this request. 338 * </pre> 339 * 340 * <code>string project = 227560217 [(.google.api.field_behavior) = REQUIRED];</code> 341 * 342 * @return The bytes for project. 343 */ 344 @java.lang.Override getProjectBytes()345 public com.google.protobuf.ByteString getProjectBytes() { 346 java.lang.Object ref = project_; 347 if (ref instanceof java.lang.String) { 348 com.google.protobuf.ByteString b = 349 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 350 project_ = b; 351 return b; 352 } else { 353 return (com.google.protobuf.ByteString) ref; 354 } 355 } 356 357 public static final int RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 517198390; 358 private boolean returnPartialSuccess_ = false; 359 /** 360 * 361 * 362 * <pre> 363 * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. 364 * </pre> 365 * 366 * <code>optional bool return_partial_success = 517198390;</code> 367 * 368 * @return Whether the returnPartialSuccess field is set. 369 */ 370 @java.lang.Override hasReturnPartialSuccess()371 public boolean hasReturnPartialSuccess() { 372 return ((bitField0_ & 0x00000010) != 0); 373 } 374 /** 375 * 376 * 377 * <pre> 378 * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. 379 * </pre> 380 * 381 * <code>optional bool return_partial_success = 517198390;</code> 382 * 383 * @return The returnPartialSuccess. 384 */ 385 @java.lang.Override getReturnPartialSuccess()386 public boolean getReturnPartialSuccess() { 387 return returnPartialSuccess_; 388 } 389 390 public static final int ZONE_FIELD_NUMBER = 3744684; 391 392 @SuppressWarnings("serial") 393 private volatile java.lang.Object zone_ = ""; 394 /** 395 * 396 * 397 * <pre> 398 * The name of the zone for this request. 399 * </pre> 400 * 401 * <code>string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];</code> 402 * 403 * @return The zone. 404 */ 405 @java.lang.Override getZone()406 public java.lang.String getZone() { 407 java.lang.Object ref = zone_; 408 if (ref instanceof java.lang.String) { 409 return (java.lang.String) ref; 410 } else { 411 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 412 java.lang.String s = bs.toStringUtf8(); 413 zone_ = s; 414 return s; 415 } 416 } 417 /** 418 * 419 * 420 * <pre> 421 * The name of the zone for this request. 422 * </pre> 423 * 424 * <code>string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];</code> 425 * 426 * @return The bytes for zone. 427 */ 428 @java.lang.Override getZoneBytes()429 public com.google.protobuf.ByteString getZoneBytes() { 430 java.lang.Object ref = zone_; 431 if (ref instanceof java.lang.String) { 432 com.google.protobuf.ByteString b = 433 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 434 zone_ = b; 435 return b; 436 } else { 437 return (com.google.protobuf.ByteString) ref; 438 } 439 } 440 441 private byte memoizedIsInitialized = -1; 442 443 @java.lang.Override isInitialized()444 public final boolean isInitialized() { 445 byte isInitialized = memoizedIsInitialized; 446 if (isInitialized == 1) return true; 447 if (isInitialized == 0) return false; 448 449 memoizedIsInitialized = 1; 450 return true; 451 } 452 453 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)454 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 455 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { 456 com.google.protobuf.GeneratedMessageV3.writeString(output, 3744684, zone_); 457 } 458 if (((bitField0_ & 0x00000008) != 0)) { 459 com.google.protobuf.GeneratedMessageV3.writeString(output, 19994697, pageToken_); 460 } 461 if (((bitField0_ & 0x00000002) != 0)) { 462 output.writeUInt32(54715419, maxResults_); 463 } 464 if (((bitField0_ & 0x00000004) != 0)) { 465 com.google.protobuf.GeneratedMessageV3.writeString(output, 160562920, orderBy_); 466 } 467 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { 468 com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_); 469 } 470 if (((bitField0_ & 0x00000001) != 0)) { 471 com.google.protobuf.GeneratedMessageV3.writeString(output, 336120696, filter_); 472 } 473 if (((bitField0_ & 0x00000010) != 0)) { 474 output.writeBool(517198390, returnPartialSuccess_); 475 } 476 getUnknownFields().writeTo(output); 477 } 478 479 @java.lang.Override getSerializedSize()480 public int getSerializedSize() { 481 int size = memoizedSize; 482 if (size != -1) return size; 483 484 size = 0; 485 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { 486 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3744684, zone_); 487 } 488 if (((bitField0_ & 0x00000008) != 0)) { 489 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19994697, pageToken_); 490 } 491 if (((bitField0_ & 0x00000002) != 0)) { 492 size += com.google.protobuf.CodedOutputStream.computeUInt32Size(54715419, maxResults_); 493 } 494 if (((bitField0_ & 0x00000004) != 0)) { 495 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(160562920, orderBy_); 496 } 497 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { 498 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_); 499 } 500 if (((bitField0_ & 0x00000001) != 0)) { 501 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(336120696, filter_); 502 } 503 if (((bitField0_ & 0x00000010) != 0)) { 504 size += 505 com.google.protobuf.CodedOutputStream.computeBoolSize(517198390, returnPartialSuccess_); 506 } 507 size += getUnknownFields().getSerializedSize(); 508 memoizedSize = size; 509 return size; 510 } 511 512 @java.lang.Override equals(final java.lang.Object obj)513 public boolean equals(final java.lang.Object obj) { 514 if (obj == this) { 515 return true; 516 } 517 if (!(obj instanceof com.google.cloud.compute.v1.ListDisksRequest)) { 518 return super.equals(obj); 519 } 520 com.google.cloud.compute.v1.ListDisksRequest other = 521 (com.google.cloud.compute.v1.ListDisksRequest) obj; 522 523 if (hasFilter() != other.hasFilter()) return false; 524 if (hasFilter()) { 525 if (!getFilter().equals(other.getFilter())) return false; 526 } 527 if (hasMaxResults() != other.hasMaxResults()) return false; 528 if (hasMaxResults()) { 529 if (getMaxResults() != other.getMaxResults()) return false; 530 } 531 if (hasOrderBy() != other.hasOrderBy()) return false; 532 if (hasOrderBy()) { 533 if (!getOrderBy().equals(other.getOrderBy())) return false; 534 } 535 if (hasPageToken() != other.hasPageToken()) return false; 536 if (hasPageToken()) { 537 if (!getPageToken().equals(other.getPageToken())) return false; 538 } 539 if (!getProject().equals(other.getProject())) return false; 540 if (hasReturnPartialSuccess() != other.hasReturnPartialSuccess()) return false; 541 if (hasReturnPartialSuccess()) { 542 if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) return false; 543 } 544 if (!getZone().equals(other.getZone())) return false; 545 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 546 return true; 547 } 548 549 @java.lang.Override hashCode()550 public int hashCode() { 551 if (memoizedHashCode != 0) { 552 return memoizedHashCode; 553 } 554 int hash = 41; 555 hash = (19 * hash) + getDescriptor().hashCode(); 556 if (hasFilter()) { 557 hash = (37 * hash) + FILTER_FIELD_NUMBER; 558 hash = (53 * hash) + getFilter().hashCode(); 559 } 560 if (hasMaxResults()) { 561 hash = (37 * hash) + MAX_RESULTS_FIELD_NUMBER; 562 hash = (53 * hash) + getMaxResults(); 563 } 564 if (hasOrderBy()) { 565 hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; 566 hash = (53 * hash) + getOrderBy().hashCode(); 567 } 568 if (hasPageToken()) { 569 hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; 570 hash = (53 * hash) + getPageToken().hashCode(); 571 } 572 hash = (37 * hash) + PROJECT_FIELD_NUMBER; 573 hash = (53 * hash) + getProject().hashCode(); 574 if (hasReturnPartialSuccess()) { 575 hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; 576 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); 577 } 578 hash = (37 * hash) + ZONE_FIELD_NUMBER; 579 hash = (53 * hash) + getZone().hashCode(); 580 hash = (29 * hash) + getUnknownFields().hashCode(); 581 memoizedHashCode = hash; 582 return hash; 583 } 584 parseFrom(java.nio.ByteBuffer data)585 public static com.google.cloud.compute.v1.ListDisksRequest parseFrom(java.nio.ByteBuffer data) 586 throws com.google.protobuf.InvalidProtocolBufferException { 587 return PARSER.parseFrom(data); 588 } 589 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)590 public static com.google.cloud.compute.v1.ListDisksRequest parseFrom( 591 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 592 throws com.google.protobuf.InvalidProtocolBufferException { 593 return PARSER.parseFrom(data, extensionRegistry); 594 } 595 parseFrom( com.google.protobuf.ByteString data)596 public static com.google.cloud.compute.v1.ListDisksRequest parseFrom( 597 com.google.protobuf.ByteString data) 598 throws com.google.protobuf.InvalidProtocolBufferException { 599 return PARSER.parseFrom(data); 600 } 601 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)602 public static com.google.cloud.compute.v1.ListDisksRequest parseFrom( 603 com.google.protobuf.ByteString data, 604 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 605 throws com.google.protobuf.InvalidProtocolBufferException { 606 return PARSER.parseFrom(data, extensionRegistry); 607 } 608 parseFrom(byte[] data)609 public static com.google.cloud.compute.v1.ListDisksRequest parseFrom(byte[] data) 610 throws com.google.protobuf.InvalidProtocolBufferException { 611 return PARSER.parseFrom(data); 612 } 613 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)614 public static com.google.cloud.compute.v1.ListDisksRequest parseFrom( 615 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 616 throws com.google.protobuf.InvalidProtocolBufferException { 617 return PARSER.parseFrom(data, extensionRegistry); 618 } 619 parseFrom(java.io.InputStream input)620 public static com.google.cloud.compute.v1.ListDisksRequest parseFrom(java.io.InputStream input) 621 throws java.io.IOException { 622 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 623 } 624 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)625 public static com.google.cloud.compute.v1.ListDisksRequest parseFrom( 626 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 627 throws java.io.IOException { 628 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 629 PARSER, input, extensionRegistry); 630 } 631 parseDelimitedFrom( java.io.InputStream input)632 public static com.google.cloud.compute.v1.ListDisksRequest parseDelimitedFrom( 633 java.io.InputStream input) throws java.io.IOException { 634 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 635 } 636 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)637 public static com.google.cloud.compute.v1.ListDisksRequest parseDelimitedFrom( 638 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 639 throws java.io.IOException { 640 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 641 PARSER, input, extensionRegistry); 642 } 643 parseFrom( com.google.protobuf.CodedInputStream input)644 public static com.google.cloud.compute.v1.ListDisksRequest parseFrom( 645 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 646 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 647 } 648 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)649 public static com.google.cloud.compute.v1.ListDisksRequest parseFrom( 650 com.google.protobuf.CodedInputStream input, 651 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 652 throws java.io.IOException { 653 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 654 PARSER, input, extensionRegistry); 655 } 656 657 @java.lang.Override newBuilderForType()658 public Builder newBuilderForType() { 659 return newBuilder(); 660 } 661 newBuilder()662 public static Builder newBuilder() { 663 return DEFAULT_INSTANCE.toBuilder(); 664 } 665 newBuilder(com.google.cloud.compute.v1.ListDisksRequest prototype)666 public static Builder newBuilder(com.google.cloud.compute.v1.ListDisksRequest prototype) { 667 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 668 } 669 670 @java.lang.Override toBuilder()671 public Builder toBuilder() { 672 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 673 } 674 675 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)676 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 677 Builder builder = new Builder(parent); 678 return builder; 679 } 680 /** 681 * 682 * 683 * <pre> 684 * A request message for Disks.List. See the method description for details. 685 * </pre> 686 * 687 * Protobuf type {@code google.cloud.compute.v1.ListDisksRequest} 688 */ 689 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 690 implements 691 // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.ListDisksRequest) 692 com.google.cloud.compute.v1.ListDisksRequestOrBuilder { getDescriptor()693 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 694 return com.google.cloud.compute.v1.Compute 695 .internal_static_google_cloud_compute_v1_ListDisksRequest_descriptor; 696 } 697 698 @java.lang.Override 699 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()700 internalGetFieldAccessorTable() { 701 return com.google.cloud.compute.v1.Compute 702 .internal_static_google_cloud_compute_v1_ListDisksRequest_fieldAccessorTable 703 .ensureFieldAccessorsInitialized( 704 com.google.cloud.compute.v1.ListDisksRequest.class, 705 com.google.cloud.compute.v1.ListDisksRequest.Builder.class); 706 } 707 708 // Construct using com.google.cloud.compute.v1.ListDisksRequest.newBuilder() Builder()709 private Builder() {} 710 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)711 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 712 super(parent); 713 } 714 715 @java.lang.Override clear()716 public Builder clear() { 717 super.clear(); 718 bitField0_ = 0; 719 filter_ = ""; 720 maxResults_ = 0; 721 orderBy_ = ""; 722 pageToken_ = ""; 723 project_ = ""; 724 returnPartialSuccess_ = false; 725 zone_ = ""; 726 return this; 727 } 728 729 @java.lang.Override getDescriptorForType()730 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 731 return com.google.cloud.compute.v1.Compute 732 .internal_static_google_cloud_compute_v1_ListDisksRequest_descriptor; 733 } 734 735 @java.lang.Override getDefaultInstanceForType()736 public com.google.cloud.compute.v1.ListDisksRequest getDefaultInstanceForType() { 737 return com.google.cloud.compute.v1.ListDisksRequest.getDefaultInstance(); 738 } 739 740 @java.lang.Override build()741 public com.google.cloud.compute.v1.ListDisksRequest build() { 742 com.google.cloud.compute.v1.ListDisksRequest result = buildPartial(); 743 if (!result.isInitialized()) { 744 throw newUninitializedMessageException(result); 745 } 746 return result; 747 } 748 749 @java.lang.Override buildPartial()750 public com.google.cloud.compute.v1.ListDisksRequest buildPartial() { 751 com.google.cloud.compute.v1.ListDisksRequest result = 752 new com.google.cloud.compute.v1.ListDisksRequest(this); 753 if (bitField0_ != 0) { 754 buildPartial0(result); 755 } 756 onBuilt(); 757 return result; 758 } 759 buildPartial0(com.google.cloud.compute.v1.ListDisksRequest result)760 private void buildPartial0(com.google.cloud.compute.v1.ListDisksRequest result) { 761 int from_bitField0_ = bitField0_; 762 int to_bitField0_ = 0; 763 if (((from_bitField0_ & 0x00000001) != 0)) { 764 result.filter_ = filter_; 765 to_bitField0_ |= 0x00000001; 766 } 767 if (((from_bitField0_ & 0x00000002) != 0)) { 768 result.maxResults_ = maxResults_; 769 to_bitField0_ |= 0x00000002; 770 } 771 if (((from_bitField0_ & 0x00000004) != 0)) { 772 result.orderBy_ = orderBy_; 773 to_bitField0_ |= 0x00000004; 774 } 775 if (((from_bitField0_ & 0x00000008) != 0)) { 776 result.pageToken_ = pageToken_; 777 to_bitField0_ |= 0x00000008; 778 } 779 if (((from_bitField0_ & 0x00000010) != 0)) { 780 result.project_ = project_; 781 } 782 if (((from_bitField0_ & 0x00000020) != 0)) { 783 result.returnPartialSuccess_ = returnPartialSuccess_; 784 to_bitField0_ |= 0x00000010; 785 } 786 if (((from_bitField0_ & 0x00000040) != 0)) { 787 result.zone_ = zone_; 788 } 789 result.bitField0_ |= to_bitField0_; 790 } 791 792 @java.lang.Override clone()793 public Builder clone() { 794 return super.clone(); 795 } 796 797 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)798 public Builder setField( 799 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 800 return super.setField(field, value); 801 } 802 803 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)804 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 805 return super.clearField(field); 806 } 807 808 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)809 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 810 return super.clearOneof(oneof); 811 } 812 813 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)814 public Builder setRepeatedField( 815 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 816 return super.setRepeatedField(field, index, value); 817 } 818 819 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)820 public Builder addRepeatedField( 821 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 822 return super.addRepeatedField(field, value); 823 } 824 825 @java.lang.Override mergeFrom(com.google.protobuf.Message other)826 public Builder mergeFrom(com.google.protobuf.Message other) { 827 if (other instanceof com.google.cloud.compute.v1.ListDisksRequest) { 828 return mergeFrom((com.google.cloud.compute.v1.ListDisksRequest) other); 829 } else { 830 super.mergeFrom(other); 831 return this; 832 } 833 } 834 mergeFrom(com.google.cloud.compute.v1.ListDisksRequest other)835 public Builder mergeFrom(com.google.cloud.compute.v1.ListDisksRequest other) { 836 if (other == com.google.cloud.compute.v1.ListDisksRequest.getDefaultInstance()) return this; 837 if (other.hasFilter()) { 838 filter_ = other.filter_; 839 bitField0_ |= 0x00000001; 840 onChanged(); 841 } 842 if (other.hasMaxResults()) { 843 setMaxResults(other.getMaxResults()); 844 } 845 if (other.hasOrderBy()) { 846 orderBy_ = other.orderBy_; 847 bitField0_ |= 0x00000004; 848 onChanged(); 849 } 850 if (other.hasPageToken()) { 851 pageToken_ = other.pageToken_; 852 bitField0_ |= 0x00000008; 853 onChanged(); 854 } 855 if (!other.getProject().isEmpty()) { 856 project_ = other.project_; 857 bitField0_ |= 0x00000010; 858 onChanged(); 859 } 860 if (other.hasReturnPartialSuccess()) { 861 setReturnPartialSuccess(other.getReturnPartialSuccess()); 862 } 863 if (!other.getZone().isEmpty()) { 864 zone_ = other.zone_; 865 bitField0_ |= 0x00000040; 866 onChanged(); 867 } 868 this.mergeUnknownFields(other.getUnknownFields()); 869 onChanged(); 870 return this; 871 } 872 873 @java.lang.Override isInitialized()874 public final boolean isInitialized() { 875 return true; 876 } 877 878 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)879 public Builder mergeFrom( 880 com.google.protobuf.CodedInputStream input, 881 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 882 throws java.io.IOException { 883 if (extensionRegistry == null) { 884 throw new java.lang.NullPointerException(); 885 } 886 try { 887 boolean done = false; 888 while (!done) { 889 int tag = input.readTag(); 890 switch (tag) { 891 case 0: 892 done = true; 893 break; 894 case 29957474: 895 { 896 zone_ = input.readStringRequireUtf8(); 897 bitField0_ |= 0x00000040; 898 break; 899 } // case 29957474 900 case 159957578: 901 { 902 pageToken_ = input.readStringRequireUtf8(); 903 bitField0_ |= 0x00000008; 904 break; 905 } // case 159957578 906 case 437723352: 907 { 908 maxResults_ = input.readUInt32(); 909 bitField0_ |= 0x00000002; 910 break; 911 } // case 437723352 912 case 1284503362: 913 { 914 orderBy_ = input.readStringRequireUtf8(); 915 bitField0_ |= 0x00000004; 916 break; 917 } // case 1284503362 918 case 1820481738: 919 { 920 project_ = input.readStringRequireUtf8(); 921 bitField0_ |= 0x00000010; 922 break; 923 } // case 1820481738 924 case -1606001726: 925 { 926 filter_ = input.readStringRequireUtf8(); 927 bitField0_ |= 0x00000001; 928 break; 929 } // case -1606001726 930 case -157380176: 931 { 932 returnPartialSuccess_ = input.readBool(); 933 bitField0_ |= 0x00000020; 934 break; 935 } // case -157380176 936 default: 937 { 938 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 939 done = true; // was an endgroup tag 940 } 941 break; 942 } // default: 943 } // switch (tag) 944 } // while (!done) 945 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 946 throw e.unwrapIOException(); 947 } finally { 948 onChanged(); 949 } // finally 950 return this; 951 } 952 953 private int bitField0_; 954 955 private java.lang.Object filter_ = ""; 956 /** 957 * 958 * 959 * <pre> 960 * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. 961 * </pre> 962 * 963 * <code>optional string filter = 336120696;</code> 964 * 965 * @return Whether the filter field is set. 966 */ hasFilter()967 public boolean hasFilter() { 968 return ((bitField0_ & 0x00000001) != 0); 969 } 970 /** 971 * 972 * 973 * <pre> 974 * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. 975 * </pre> 976 * 977 * <code>optional string filter = 336120696;</code> 978 * 979 * @return The filter. 980 */ getFilter()981 public java.lang.String getFilter() { 982 java.lang.Object ref = filter_; 983 if (!(ref instanceof java.lang.String)) { 984 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 985 java.lang.String s = bs.toStringUtf8(); 986 filter_ = s; 987 return s; 988 } else { 989 return (java.lang.String) ref; 990 } 991 } 992 /** 993 * 994 * 995 * <pre> 996 * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. 997 * </pre> 998 * 999 * <code>optional string filter = 336120696;</code> 1000 * 1001 * @return The bytes for filter. 1002 */ getFilterBytes()1003 public com.google.protobuf.ByteString getFilterBytes() { 1004 java.lang.Object ref = filter_; 1005 if (ref instanceof String) { 1006 com.google.protobuf.ByteString b = 1007 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1008 filter_ = b; 1009 return b; 1010 } else { 1011 return (com.google.protobuf.ByteString) ref; 1012 } 1013 } 1014 /** 1015 * 1016 * 1017 * <pre> 1018 * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. 1019 * </pre> 1020 * 1021 * <code>optional string filter = 336120696;</code> 1022 * 1023 * @param value The filter to set. 1024 * @return This builder for chaining. 1025 */ setFilter(java.lang.String value)1026 public Builder setFilter(java.lang.String value) { 1027 if (value == null) { 1028 throw new NullPointerException(); 1029 } 1030 filter_ = value; 1031 bitField0_ |= 0x00000001; 1032 onChanged(); 1033 return this; 1034 } 1035 /** 1036 * 1037 * 1038 * <pre> 1039 * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. 1040 * </pre> 1041 * 1042 * <code>optional string filter = 336120696;</code> 1043 * 1044 * @return This builder for chaining. 1045 */ clearFilter()1046 public Builder clearFilter() { 1047 filter_ = getDefaultInstance().getFilter(); 1048 bitField0_ = (bitField0_ & ~0x00000001); 1049 onChanged(); 1050 return this; 1051 } 1052 /** 1053 * 1054 * 1055 * <pre> 1056 * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. 1057 * </pre> 1058 * 1059 * <code>optional string filter = 336120696;</code> 1060 * 1061 * @param value The bytes for filter to set. 1062 * @return This builder for chaining. 1063 */ setFilterBytes(com.google.protobuf.ByteString value)1064 public Builder setFilterBytes(com.google.protobuf.ByteString value) { 1065 if (value == null) { 1066 throw new NullPointerException(); 1067 } 1068 checkByteStringIsUtf8(value); 1069 filter_ = value; 1070 bitField0_ |= 0x00000001; 1071 onChanged(); 1072 return this; 1073 } 1074 1075 private int maxResults_; 1076 /** 1077 * 1078 * 1079 * <pre> 1080 * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) 1081 * </pre> 1082 * 1083 * <code>optional uint32 max_results = 54715419;</code> 1084 * 1085 * @return Whether the maxResults field is set. 1086 */ 1087 @java.lang.Override hasMaxResults()1088 public boolean hasMaxResults() { 1089 return ((bitField0_ & 0x00000002) != 0); 1090 } 1091 /** 1092 * 1093 * 1094 * <pre> 1095 * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) 1096 * </pre> 1097 * 1098 * <code>optional uint32 max_results = 54715419;</code> 1099 * 1100 * @return The maxResults. 1101 */ 1102 @java.lang.Override getMaxResults()1103 public int getMaxResults() { 1104 return maxResults_; 1105 } 1106 /** 1107 * 1108 * 1109 * <pre> 1110 * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) 1111 * </pre> 1112 * 1113 * <code>optional uint32 max_results = 54715419;</code> 1114 * 1115 * @param value The maxResults to set. 1116 * @return This builder for chaining. 1117 */ setMaxResults(int value)1118 public Builder setMaxResults(int value) { 1119 1120 maxResults_ = value; 1121 bitField0_ |= 0x00000002; 1122 onChanged(); 1123 return this; 1124 } 1125 /** 1126 * 1127 * 1128 * <pre> 1129 * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) 1130 * </pre> 1131 * 1132 * <code>optional uint32 max_results = 54715419;</code> 1133 * 1134 * @return This builder for chaining. 1135 */ clearMaxResults()1136 public Builder clearMaxResults() { 1137 bitField0_ = (bitField0_ & ~0x00000002); 1138 maxResults_ = 0; 1139 onChanged(); 1140 return this; 1141 } 1142 1143 private java.lang.Object orderBy_ = ""; 1144 /** 1145 * 1146 * 1147 * <pre> 1148 * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. 1149 * </pre> 1150 * 1151 * <code>optional string order_by = 160562920;</code> 1152 * 1153 * @return Whether the orderBy field is set. 1154 */ hasOrderBy()1155 public boolean hasOrderBy() { 1156 return ((bitField0_ & 0x00000004) != 0); 1157 } 1158 /** 1159 * 1160 * 1161 * <pre> 1162 * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. 1163 * </pre> 1164 * 1165 * <code>optional string order_by = 160562920;</code> 1166 * 1167 * @return The orderBy. 1168 */ getOrderBy()1169 public java.lang.String getOrderBy() { 1170 java.lang.Object ref = orderBy_; 1171 if (!(ref instanceof java.lang.String)) { 1172 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1173 java.lang.String s = bs.toStringUtf8(); 1174 orderBy_ = s; 1175 return s; 1176 } else { 1177 return (java.lang.String) ref; 1178 } 1179 } 1180 /** 1181 * 1182 * 1183 * <pre> 1184 * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. 1185 * </pre> 1186 * 1187 * <code>optional string order_by = 160562920;</code> 1188 * 1189 * @return The bytes for orderBy. 1190 */ getOrderByBytes()1191 public com.google.protobuf.ByteString getOrderByBytes() { 1192 java.lang.Object ref = orderBy_; 1193 if (ref instanceof String) { 1194 com.google.protobuf.ByteString b = 1195 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1196 orderBy_ = b; 1197 return b; 1198 } else { 1199 return (com.google.protobuf.ByteString) ref; 1200 } 1201 } 1202 /** 1203 * 1204 * 1205 * <pre> 1206 * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. 1207 * </pre> 1208 * 1209 * <code>optional string order_by = 160562920;</code> 1210 * 1211 * @param value The orderBy to set. 1212 * @return This builder for chaining. 1213 */ setOrderBy(java.lang.String value)1214 public Builder setOrderBy(java.lang.String value) { 1215 if (value == null) { 1216 throw new NullPointerException(); 1217 } 1218 orderBy_ = value; 1219 bitField0_ |= 0x00000004; 1220 onChanged(); 1221 return this; 1222 } 1223 /** 1224 * 1225 * 1226 * <pre> 1227 * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. 1228 * </pre> 1229 * 1230 * <code>optional string order_by = 160562920;</code> 1231 * 1232 * @return This builder for chaining. 1233 */ clearOrderBy()1234 public Builder clearOrderBy() { 1235 orderBy_ = getDefaultInstance().getOrderBy(); 1236 bitField0_ = (bitField0_ & ~0x00000004); 1237 onChanged(); 1238 return this; 1239 } 1240 /** 1241 * 1242 * 1243 * <pre> 1244 * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. 1245 * </pre> 1246 * 1247 * <code>optional string order_by = 160562920;</code> 1248 * 1249 * @param value The bytes for orderBy to set. 1250 * @return This builder for chaining. 1251 */ setOrderByBytes(com.google.protobuf.ByteString value)1252 public Builder setOrderByBytes(com.google.protobuf.ByteString value) { 1253 if (value == null) { 1254 throw new NullPointerException(); 1255 } 1256 checkByteStringIsUtf8(value); 1257 orderBy_ = value; 1258 bitField0_ |= 0x00000004; 1259 onChanged(); 1260 return this; 1261 } 1262 1263 private java.lang.Object pageToken_ = ""; 1264 /** 1265 * 1266 * 1267 * <pre> 1268 * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. 1269 * </pre> 1270 * 1271 * <code>optional string page_token = 19994697;</code> 1272 * 1273 * @return Whether the pageToken field is set. 1274 */ hasPageToken()1275 public boolean hasPageToken() { 1276 return ((bitField0_ & 0x00000008) != 0); 1277 } 1278 /** 1279 * 1280 * 1281 * <pre> 1282 * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. 1283 * </pre> 1284 * 1285 * <code>optional string page_token = 19994697;</code> 1286 * 1287 * @return The pageToken. 1288 */ getPageToken()1289 public java.lang.String getPageToken() { 1290 java.lang.Object ref = pageToken_; 1291 if (!(ref instanceof java.lang.String)) { 1292 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1293 java.lang.String s = bs.toStringUtf8(); 1294 pageToken_ = s; 1295 return s; 1296 } else { 1297 return (java.lang.String) ref; 1298 } 1299 } 1300 /** 1301 * 1302 * 1303 * <pre> 1304 * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. 1305 * </pre> 1306 * 1307 * <code>optional string page_token = 19994697;</code> 1308 * 1309 * @return The bytes for pageToken. 1310 */ getPageTokenBytes()1311 public com.google.protobuf.ByteString getPageTokenBytes() { 1312 java.lang.Object ref = pageToken_; 1313 if (ref instanceof String) { 1314 com.google.protobuf.ByteString b = 1315 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1316 pageToken_ = b; 1317 return b; 1318 } else { 1319 return (com.google.protobuf.ByteString) ref; 1320 } 1321 } 1322 /** 1323 * 1324 * 1325 * <pre> 1326 * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. 1327 * </pre> 1328 * 1329 * <code>optional string page_token = 19994697;</code> 1330 * 1331 * @param value The pageToken to set. 1332 * @return This builder for chaining. 1333 */ setPageToken(java.lang.String value)1334 public Builder setPageToken(java.lang.String value) { 1335 if (value == null) { 1336 throw new NullPointerException(); 1337 } 1338 pageToken_ = value; 1339 bitField0_ |= 0x00000008; 1340 onChanged(); 1341 return this; 1342 } 1343 /** 1344 * 1345 * 1346 * <pre> 1347 * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. 1348 * </pre> 1349 * 1350 * <code>optional string page_token = 19994697;</code> 1351 * 1352 * @return This builder for chaining. 1353 */ clearPageToken()1354 public Builder clearPageToken() { 1355 pageToken_ = getDefaultInstance().getPageToken(); 1356 bitField0_ = (bitField0_ & ~0x00000008); 1357 onChanged(); 1358 return this; 1359 } 1360 /** 1361 * 1362 * 1363 * <pre> 1364 * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. 1365 * </pre> 1366 * 1367 * <code>optional string page_token = 19994697;</code> 1368 * 1369 * @param value The bytes for pageToken to set. 1370 * @return This builder for chaining. 1371 */ setPageTokenBytes(com.google.protobuf.ByteString value)1372 public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { 1373 if (value == null) { 1374 throw new NullPointerException(); 1375 } 1376 checkByteStringIsUtf8(value); 1377 pageToken_ = value; 1378 bitField0_ |= 0x00000008; 1379 onChanged(); 1380 return this; 1381 } 1382 1383 private java.lang.Object project_ = ""; 1384 /** 1385 * 1386 * 1387 * <pre> 1388 * Project ID for this request. 1389 * </pre> 1390 * 1391 * <code>string project = 227560217 [(.google.api.field_behavior) = REQUIRED];</code> 1392 * 1393 * @return The project. 1394 */ getProject()1395 public java.lang.String getProject() { 1396 java.lang.Object ref = project_; 1397 if (!(ref instanceof java.lang.String)) { 1398 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1399 java.lang.String s = bs.toStringUtf8(); 1400 project_ = s; 1401 return s; 1402 } else { 1403 return (java.lang.String) ref; 1404 } 1405 } 1406 /** 1407 * 1408 * 1409 * <pre> 1410 * Project ID for this request. 1411 * </pre> 1412 * 1413 * <code>string project = 227560217 [(.google.api.field_behavior) = REQUIRED];</code> 1414 * 1415 * @return The bytes for project. 1416 */ getProjectBytes()1417 public com.google.protobuf.ByteString getProjectBytes() { 1418 java.lang.Object ref = project_; 1419 if (ref instanceof String) { 1420 com.google.protobuf.ByteString b = 1421 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1422 project_ = b; 1423 return b; 1424 } else { 1425 return (com.google.protobuf.ByteString) ref; 1426 } 1427 } 1428 /** 1429 * 1430 * 1431 * <pre> 1432 * Project ID for this request. 1433 * </pre> 1434 * 1435 * <code>string project = 227560217 [(.google.api.field_behavior) = REQUIRED];</code> 1436 * 1437 * @param value The project to set. 1438 * @return This builder for chaining. 1439 */ setProject(java.lang.String value)1440 public Builder setProject(java.lang.String value) { 1441 if (value == null) { 1442 throw new NullPointerException(); 1443 } 1444 project_ = value; 1445 bitField0_ |= 0x00000010; 1446 onChanged(); 1447 return this; 1448 } 1449 /** 1450 * 1451 * 1452 * <pre> 1453 * Project ID for this request. 1454 * </pre> 1455 * 1456 * <code>string project = 227560217 [(.google.api.field_behavior) = REQUIRED];</code> 1457 * 1458 * @return This builder for chaining. 1459 */ clearProject()1460 public Builder clearProject() { 1461 project_ = getDefaultInstance().getProject(); 1462 bitField0_ = (bitField0_ & ~0x00000010); 1463 onChanged(); 1464 return this; 1465 } 1466 /** 1467 * 1468 * 1469 * <pre> 1470 * Project ID for this request. 1471 * </pre> 1472 * 1473 * <code>string project = 227560217 [(.google.api.field_behavior) = REQUIRED];</code> 1474 * 1475 * @param value The bytes for project to set. 1476 * @return This builder for chaining. 1477 */ setProjectBytes(com.google.protobuf.ByteString value)1478 public Builder setProjectBytes(com.google.protobuf.ByteString value) { 1479 if (value == null) { 1480 throw new NullPointerException(); 1481 } 1482 checkByteStringIsUtf8(value); 1483 project_ = value; 1484 bitField0_ |= 0x00000010; 1485 onChanged(); 1486 return this; 1487 } 1488 1489 private boolean returnPartialSuccess_; 1490 /** 1491 * 1492 * 1493 * <pre> 1494 * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. 1495 * </pre> 1496 * 1497 * <code>optional bool return_partial_success = 517198390;</code> 1498 * 1499 * @return Whether the returnPartialSuccess field is set. 1500 */ 1501 @java.lang.Override hasReturnPartialSuccess()1502 public boolean hasReturnPartialSuccess() { 1503 return ((bitField0_ & 0x00000020) != 0); 1504 } 1505 /** 1506 * 1507 * 1508 * <pre> 1509 * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. 1510 * </pre> 1511 * 1512 * <code>optional bool return_partial_success = 517198390;</code> 1513 * 1514 * @return The returnPartialSuccess. 1515 */ 1516 @java.lang.Override getReturnPartialSuccess()1517 public boolean getReturnPartialSuccess() { 1518 return returnPartialSuccess_; 1519 } 1520 /** 1521 * 1522 * 1523 * <pre> 1524 * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. 1525 * </pre> 1526 * 1527 * <code>optional bool return_partial_success = 517198390;</code> 1528 * 1529 * @param value The returnPartialSuccess to set. 1530 * @return This builder for chaining. 1531 */ setReturnPartialSuccess(boolean value)1532 public Builder setReturnPartialSuccess(boolean value) { 1533 1534 returnPartialSuccess_ = value; 1535 bitField0_ |= 0x00000020; 1536 onChanged(); 1537 return this; 1538 } 1539 /** 1540 * 1541 * 1542 * <pre> 1543 * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. 1544 * </pre> 1545 * 1546 * <code>optional bool return_partial_success = 517198390;</code> 1547 * 1548 * @return This builder for chaining. 1549 */ clearReturnPartialSuccess()1550 public Builder clearReturnPartialSuccess() { 1551 bitField0_ = (bitField0_ & ~0x00000020); 1552 returnPartialSuccess_ = false; 1553 onChanged(); 1554 return this; 1555 } 1556 1557 private java.lang.Object zone_ = ""; 1558 /** 1559 * 1560 * 1561 * <pre> 1562 * The name of the zone for this request. 1563 * </pre> 1564 * 1565 * <code>string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];</code> 1566 * 1567 * @return The zone. 1568 */ getZone()1569 public java.lang.String getZone() { 1570 java.lang.Object ref = zone_; 1571 if (!(ref instanceof java.lang.String)) { 1572 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1573 java.lang.String s = bs.toStringUtf8(); 1574 zone_ = s; 1575 return s; 1576 } else { 1577 return (java.lang.String) ref; 1578 } 1579 } 1580 /** 1581 * 1582 * 1583 * <pre> 1584 * The name of the zone for this request. 1585 * </pre> 1586 * 1587 * <code>string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];</code> 1588 * 1589 * @return The bytes for zone. 1590 */ getZoneBytes()1591 public com.google.protobuf.ByteString getZoneBytes() { 1592 java.lang.Object ref = zone_; 1593 if (ref instanceof String) { 1594 com.google.protobuf.ByteString b = 1595 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1596 zone_ = b; 1597 return b; 1598 } else { 1599 return (com.google.protobuf.ByteString) ref; 1600 } 1601 } 1602 /** 1603 * 1604 * 1605 * <pre> 1606 * The name of the zone for this request. 1607 * </pre> 1608 * 1609 * <code>string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];</code> 1610 * 1611 * @param value The zone to set. 1612 * @return This builder for chaining. 1613 */ setZone(java.lang.String value)1614 public Builder setZone(java.lang.String value) { 1615 if (value == null) { 1616 throw new NullPointerException(); 1617 } 1618 zone_ = value; 1619 bitField0_ |= 0x00000040; 1620 onChanged(); 1621 return this; 1622 } 1623 /** 1624 * 1625 * 1626 * <pre> 1627 * The name of the zone for this request. 1628 * </pre> 1629 * 1630 * <code>string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];</code> 1631 * 1632 * @return This builder for chaining. 1633 */ clearZone()1634 public Builder clearZone() { 1635 zone_ = getDefaultInstance().getZone(); 1636 bitField0_ = (bitField0_ & ~0x00000040); 1637 onChanged(); 1638 return this; 1639 } 1640 /** 1641 * 1642 * 1643 * <pre> 1644 * The name of the zone for this request. 1645 * </pre> 1646 * 1647 * <code>string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];</code> 1648 * 1649 * @param value The bytes for zone to set. 1650 * @return This builder for chaining. 1651 */ setZoneBytes(com.google.protobuf.ByteString value)1652 public Builder setZoneBytes(com.google.protobuf.ByteString value) { 1653 if (value == null) { 1654 throw new NullPointerException(); 1655 } 1656 checkByteStringIsUtf8(value); 1657 zone_ = value; 1658 bitField0_ |= 0x00000040; 1659 onChanged(); 1660 return this; 1661 } 1662 1663 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1664 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 1665 return super.setUnknownFields(unknownFields); 1666 } 1667 1668 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1669 public final Builder mergeUnknownFields( 1670 final com.google.protobuf.UnknownFieldSet unknownFields) { 1671 return super.mergeUnknownFields(unknownFields); 1672 } 1673 1674 // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.ListDisksRequest) 1675 } 1676 1677 // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.ListDisksRequest) 1678 private static final com.google.cloud.compute.v1.ListDisksRequest DEFAULT_INSTANCE; 1679 1680 static { 1681 DEFAULT_INSTANCE = new com.google.cloud.compute.v1.ListDisksRequest(); 1682 } 1683 getDefaultInstance()1684 public static com.google.cloud.compute.v1.ListDisksRequest getDefaultInstance() { 1685 return DEFAULT_INSTANCE; 1686 } 1687 1688 private static final com.google.protobuf.Parser<ListDisksRequest> PARSER = 1689 new com.google.protobuf.AbstractParser<ListDisksRequest>() { 1690 @java.lang.Override 1691 public ListDisksRequest parsePartialFrom( 1692 com.google.protobuf.CodedInputStream input, 1693 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1694 throws com.google.protobuf.InvalidProtocolBufferException { 1695 Builder builder = newBuilder(); 1696 try { 1697 builder.mergeFrom(input, extensionRegistry); 1698 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1699 throw e.setUnfinishedMessage(builder.buildPartial()); 1700 } catch (com.google.protobuf.UninitializedMessageException e) { 1701 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1702 } catch (java.io.IOException e) { 1703 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1704 .setUnfinishedMessage(builder.buildPartial()); 1705 } 1706 return builder.buildPartial(); 1707 } 1708 }; 1709 parser()1710 public static com.google.protobuf.Parser<ListDisksRequest> parser() { 1711 return PARSER; 1712 } 1713 1714 @java.lang.Override getParserForType()1715 public com.google.protobuf.Parser<ListDisksRequest> getParserForType() { 1716 return PARSER; 1717 } 1718 1719 @java.lang.Override getDefaultInstanceForType()1720 public com.google.cloud.compute.v1.ListDisksRequest getDefaultInstanceForType() { 1721 return DEFAULT_INSTANCE; 1722 } 1723 } 1724