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 guest attributes entry. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.compute.v1.GuestAttributes} 29 */ 30 public final class GuestAttributes extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.GuestAttributes) 33 GuestAttributesOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use GuestAttributes.newBuilder() to construct. GuestAttributes(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private GuestAttributes(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 GuestAttributes()40 private GuestAttributes() { 41 kind_ = ""; 42 queryPath_ = ""; 43 selfLink_ = ""; 44 variableKey_ = ""; 45 variableValue_ = ""; 46 } 47 48 @java.lang.Override 49 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)50 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 51 return new GuestAttributes(); 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_GuestAttributes_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_GuestAttributes_fieldAccessorTable 69 .ensureFieldAccessorsInitialized( 70 com.google.cloud.compute.v1.GuestAttributes.class, 71 com.google.cloud.compute.v1.GuestAttributes.Builder.class); 72 } 73 74 private int bitField0_; 75 public static final int KIND_FIELD_NUMBER = 3292052; 76 77 @SuppressWarnings("serial") 78 private volatile java.lang.Object kind_ = ""; 79 /** 80 * 81 * 82 * <pre> 83 * [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry. 84 * </pre> 85 * 86 * <code>optional string kind = 3292052;</code> 87 * 88 * @return Whether the kind field is set. 89 */ 90 @java.lang.Override hasKind()91 public boolean hasKind() { 92 return ((bitField0_ & 0x00000001) != 0); 93 } 94 /** 95 * 96 * 97 * <pre> 98 * [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry. 99 * </pre> 100 * 101 * <code>optional string kind = 3292052;</code> 102 * 103 * @return The kind. 104 */ 105 @java.lang.Override getKind()106 public java.lang.String getKind() { 107 java.lang.Object ref = kind_; 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 kind_ = s; 114 return s; 115 } 116 } 117 /** 118 * 119 * 120 * <pre> 121 * [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry. 122 * </pre> 123 * 124 * <code>optional string kind = 3292052;</code> 125 * 126 * @return The bytes for kind. 127 */ 128 @java.lang.Override getKindBytes()129 public com.google.protobuf.ByteString getKindBytes() { 130 java.lang.Object ref = kind_; 131 if (ref instanceof java.lang.String) { 132 com.google.protobuf.ByteString b = 133 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 134 kind_ = b; 135 return b; 136 } else { 137 return (com.google.protobuf.ByteString) ref; 138 } 139 } 140 141 public static final int QUERY_PATH_FIELD_NUMBER = 368591164; 142 143 @SuppressWarnings("serial") 144 private volatile java.lang.Object queryPath_ = ""; 145 /** 146 * 147 * 148 * <pre> 149 * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\'). 150 * </pre> 151 * 152 * <code>optional string query_path = 368591164;</code> 153 * 154 * @return Whether the queryPath field is set. 155 */ 156 @java.lang.Override hasQueryPath()157 public boolean hasQueryPath() { 158 return ((bitField0_ & 0x00000002) != 0); 159 } 160 /** 161 * 162 * 163 * <pre> 164 * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\'). 165 * </pre> 166 * 167 * <code>optional string query_path = 368591164;</code> 168 * 169 * @return The queryPath. 170 */ 171 @java.lang.Override getQueryPath()172 public java.lang.String getQueryPath() { 173 java.lang.Object ref = queryPath_; 174 if (ref instanceof java.lang.String) { 175 return (java.lang.String) ref; 176 } else { 177 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 178 java.lang.String s = bs.toStringUtf8(); 179 queryPath_ = s; 180 return s; 181 } 182 } 183 /** 184 * 185 * 186 * <pre> 187 * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\'). 188 * </pre> 189 * 190 * <code>optional string query_path = 368591164;</code> 191 * 192 * @return The bytes for queryPath. 193 */ 194 @java.lang.Override getQueryPathBytes()195 public com.google.protobuf.ByteString getQueryPathBytes() { 196 java.lang.Object ref = queryPath_; 197 if (ref instanceof java.lang.String) { 198 com.google.protobuf.ByteString b = 199 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 200 queryPath_ = b; 201 return b; 202 } else { 203 return (com.google.protobuf.ByteString) ref; 204 } 205 } 206 207 public static final int QUERY_VALUE_FIELD_NUMBER = 157570874; 208 private com.google.cloud.compute.v1.GuestAttributesValue queryValue_; 209 /** 210 * 211 * 212 * <pre> 213 * [Output Only] The value of the requested queried path. 214 * </pre> 215 * 216 * <code>optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;</code> 217 * 218 * @return Whether the queryValue field is set. 219 */ 220 @java.lang.Override hasQueryValue()221 public boolean hasQueryValue() { 222 return ((bitField0_ & 0x00000004) != 0); 223 } 224 /** 225 * 226 * 227 * <pre> 228 * [Output Only] The value of the requested queried path. 229 * </pre> 230 * 231 * <code>optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;</code> 232 * 233 * @return The queryValue. 234 */ 235 @java.lang.Override getQueryValue()236 public com.google.cloud.compute.v1.GuestAttributesValue getQueryValue() { 237 return queryValue_ == null 238 ? com.google.cloud.compute.v1.GuestAttributesValue.getDefaultInstance() 239 : queryValue_; 240 } 241 /** 242 * 243 * 244 * <pre> 245 * [Output Only] The value of the requested queried path. 246 * </pre> 247 * 248 * <code>optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;</code> 249 */ 250 @java.lang.Override getQueryValueOrBuilder()251 public com.google.cloud.compute.v1.GuestAttributesValueOrBuilder getQueryValueOrBuilder() { 252 return queryValue_ == null 253 ? com.google.cloud.compute.v1.GuestAttributesValue.getDefaultInstance() 254 : queryValue_; 255 } 256 257 public static final int SELF_LINK_FIELD_NUMBER = 456214797; 258 259 @SuppressWarnings("serial") 260 private volatile java.lang.Object selfLink_ = ""; 261 /** 262 * 263 * 264 * <pre> 265 * [Output Only] Server-defined URL for this resource. 266 * </pre> 267 * 268 * <code>optional string self_link = 456214797;</code> 269 * 270 * @return Whether the selfLink field is set. 271 */ 272 @java.lang.Override hasSelfLink()273 public boolean hasSelfLink() { 274 return ((bitField0_ & 0x00000008) != 0); 275 } 276 /** 277 * 278 * 279 * <pre> 280 * [Output Only] Server-defined URL for this resource. 281 * </pre> 282 * 283 * <code>optional string self_link = 456214797;</code> 284 * 285 * @return The selfLink. 286 */ 287 @java.lang.Override getSelfLink()288 public java.lang.String getSelfLink() { 289 java.lang.Object ref = selfLink_; 290 if (ref instanceof java.lang.String) { 291 return (java.lang.String) ref; 292 } else { 293 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 294 java.lang.String s = bs.toStringUtf8(); 295 selfLink_ = s; 296 return s; 297 } 298 } 299 /** 300 * 301 * 302 * <pre> 303 * [Output Only] Server-defined URL for this resource. 304 * </pre> 305 * 306 * <code>optional string self_link = 456214797;</code> 307 * 308 * @return The bytes for selfLink. 309 */ 310 @java.lang.Override getSelfLinkBytes()311 public com.google.protobuf.ByteString getSelfLinkBytes() { 312 java.lang.Object ref = selfLink_; 313 if (ref instanceof java.lang.String) { 314 com.google.protobuf.ByteString b = 315 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 316 selfLink_ = b; 317 return b; 318 } else { 319 return (com.google.protobuf.ByteString) ref; 320 } 321 } 322 323 public static final int VARIABLE_KEY_FIELD_NUMBER = 164364828; 324 325 @SuppressWarnings("serial") 326 private volatile java.lang.Object variableKey_ = ""; 327 /** 328 * 329 * 330 * <pre> 331 * The key to search for. 332 * </pre> 333 * 334 * <code>optional string variable_key = 164364828;</code> 335 * 336 * @return Whether the variableKey field is set. 337 */ 338 @java.lang.Override hasVariableKey()339 public boolean hasVariableKey() { 340 return ((bitField0_ & 0x00000010) != 0); 341 } 342 /** 343 * 344 * 345 * <pre> 346 * The key to search for. 347 * </pre> 348 * 349 * <code>optional string variable_key = 164364828;</code> 350 * 351 * @return The variableKey. 352 */ 353 @java.lang.Override getVariableKey()354 public java.lang.String getVariableKey() { 355 java.lang.Object ref = variableKey_; 356 if (ref instanceof java.lang.String) { 357 return (java.lang.String) ref; 358 } else { 359 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 360 java.lang.String s = bs.toStringUtf8(); 361 variableKey_ = s; 362 return s; 363 } 364 } 365 /** 366 * 367 * 368 * <pre> 369 * The key to search for. 370 * </pre> 371 * 372 * <code>optional string variable_key = 164364828;</code> 373 * 374 * @return The bytes for variableKey. 375 */ 376 @java.lang.Override getVariableKeyBytes()377 public com.google.protobuf.ByteString getVariableKeyBytes() { 378 java.lang.Object ref = variableKey_; 379 if (ref instanceof java.lang.String) { 380 com.google.protobuf.ByteString b = 381 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 382 variableKey_ = b; 383 return b; 384 } else { 385 return (com.google.protobuf.ByteString) ref; 386 } 387 } 388 389 public static final int VARIABLE_VALUE_FIELD_NUMBER = 124582382; 390 391 @SuppressWarnings("serial") 392 private volatile java.lang.Object variableValue_ = ""; 393 /** 394 * 395 * 396 * <pre> 397 * [Output Only] The value found for the requested key. 398 * </pre> 399 * 400 * <code>optional string variable_value = 124582382;</code> 401 * 402 * @return Whether the variableValue field is set. 403 */ 404 @java.lang.Override hasVariableValue()405 public boolean hasVariableValue() { 406 return ((bitField0_ & 0x00000020) != 0); 407 } 408 /** 409 * 410 * 411 * <pre> 412 * [Output Only] The value found for the requested key. 413 * </pre> 414 * 415 * <code>optional string variable_value = 124582382;</code> 416 * 417 * @return The variableValue. 418 */ 419 @java.lang.Override getVariableValue()420 public java.lang.String getVariableValue() { 421 java.lang.Object ref = variableValue_; 422 if (ref instanceof java.lang.String) { 423 return (java.lang.String) ref; 424 } else { 425 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 426 java.lang.String s = bs.toStringUtf8(); 427 variableValue_ = s; 428 return s; 429 } 430 } 431 /** 432 * 433 * 434 * <pre> 435 * [Output Only] The value found for the requested key. 436 * </pre> 437 * 438 * <code>optional string variable_value = 124582382;</code> 439 * 440 * @return The bytes for variableValue. 441 */ 442 @java.lang.Override getVariableValueBytes()443 public com.google.protobuf.ByteString getVariableValueBytes() { 444 java.lang.Object ref = variableValue_; 445 if (ref instanceof java.lang.String) { 446 com.google.protobuf.ByteString b = 447 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 448 variableValue_ = b; 449 return b; 450 } else { 451 return (com.google.protobuf.ByteString) ref; 452 } 453 } 454 455 private byte memoizedIsInitialized = -1; 456 457 @java.lang.Override isInitialized()458 public final boolean isInitialized() { 459 byte isInitialized = memoizedIsInitialized; 460 if (isInitialized == 1) return true; 461 if (isInitialized == 0) return false; 462 463 memoizedIsInitialized = 1; 464 return true; 465 } 466 467 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)468 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 469 if (((bitField0_ & 0x00000001) != 0)) { 470 com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_); 471 } 472 if (((bitField0_ & 0x00000020) != 0)) { 473 com.google.protobuf.GeneratedMessageV3.writeString(output, 124582382, variableValue_); 474 } 475 if (((bitField0_ & 0x00000004) != 0)) { 476 output.writeMessage(157570874, getQueryValue()); 477 } 478 if (((bitField0_ & 0x00000010) != 0)) { 479 com.google.protobuf.GeneratedMessageV3.writeString(output, 164364828, variableKey_); 480 } 481 if (((bitField0_ & 0x00000002) != 0)) { 482 com.google.protobuf.GeneratedMessageV3.writeString(output, 368591164, queryPath_); 483 } 484 if (((bitField0_ & 0x00000008) != 0)) { 485 com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_); 486 } 487 getUnknownFields().writeTo(output); 488 } 489 490 @java.lang.Override getSerializedSize()491 public int getSerializedSize() { 492 int size = memoizedSize; 493 if (size != -1) return size; 494 495 size = 0; 496 if (((bitField0_ & 0x00000001) != 0)) { 497 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_); 498 } 499 if (((bitField0_ & 0x00000020) != 0)) { 500 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(124582382, variableValue_); 501 } 502 if (((bitField0_ & 0x00000004) != 0)) { 503 size += com.google.protobuf.CodedOutputStream.computeMessageSize(157570874, getQueryValue()); 504 } 505 if (((bitField0_ & 0x00000010) != 0)) { 506 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(164364828, variableKey_); 507 } 508 if (((bitField0_ & 0x00000002) != 0)) { 509 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(368591164, queryPath_); 510 } 511 if (((bitField0_ & 0x00000008) != 0)) { 512 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_); 513 } 514 size += getUnknownFields().getSerializedSize(); 515 memoizedSize = size; 516 return size; 517 } 518 519 @java.lang.Override equals(final java.lang.Object obj)520 public boolean equals(final java.lang.Object obj) { 521 if (obj == this) { 522 return true; 523 } 524 if (!(obj instanceof com.google.cloud.compute.v1.GuestAttributes)) { 525 return super.equals(obj); 526 } 527 com.google.cloud.compute.v1.GuestAttributes other = 528 (com.google.cloud.compute.v1.GuestAttributes) obj; 529 530 if (hasKind() != other.hasKind()) return false; 531 if (hasKind()) { 532 if (!getKind().equals(other.getKind())) return false; 533 } 534 if (hasQueryPath() != other.hasQueryPath()) return false; 535 if (hasQueryPath()) { 536 if (!getQueryPath().equals(other.getQueryPath())) return false; 537 } 538 if (hasQueryValue() != other.hasQueryValue()) return false; 539 if (hasQueryValue()) { 540 if (!getQueryValue().equals(other.getQueryValue())) return false; 541 } 542 if (hasSelfLink() != other.hasSelfLink()) return false; 543 if (hasSelfLink()) { 544 if (!getSelfLink().equals(other.getSelfLink())) return false; 545 } 546 if (hasVariableKey() != other.hasVariableKey()) return false; 547 if (hasVariableKey()) { 548 if (!getVariableKey().equals(other.getVariableKey())) return false; 549 } 550 if (hasVariableValue() != other.hasVariableValue()) return false; 551 if (hasVariableValue()) { 552 if (!getVariableValue().equals(other.getVariableValue())) return false; 553 } 554 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 555 return true; 556 } 557 558 @java.lang.Override hashCode()559 public int hashCode() { 560 if (memoizedHashCode != 0) { 561 return memoizedHashCode; 562 } 563 int hash = 41; 564 hash = (19 * hash) + getDescriptor().hashCode(); 565 if (hasKind()) { 566 hash = (37 * hash) + KIND_FIELD_NUMBER; 567 hash = (53 * hash) + getKind().hashCode(); 568 } 569 if (hasQueryPath()) { 570 hash = (37 * hash) + QUERY_PATH_FIELD_NUMBER; 571 hash = (53 * hash) + getQueryPath().hashCode(); 572 } 573 if (hasQueryValue()) { 574 hash = (37 * hash) + QUERY_VALUE_FIELD_NUMBER; 575 hash = (53 * hash) + getQueryValue().hashCode(); 576 } 577 if (hasSelfLink()) { 578 hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; 579 hash = (53 * hash) + getSelfLink().hashCode(); 580 } 581 if (hasVariableKey()) { 582 hash = (37 * hash) + VARIABLE_KEY_FIELD_NUMBER; 583 hash = (53 * hash) + getVariableKey().hashCode(); 584 } 585 if (hasVariableValue()) { 586 hash = (37 * hash) + VARIABLE_VALUE_FIELD_NUMBER; 587 hash = (53 * hash) + getVariableValue().hashCode(); 588 } 589 hash = (29 * hash) + getUnknownFields().hashCode(); 590 memoizedHashCode = hash; 591 return hash; 592 } 593 parseFrom(java.nio.ByteBuffer data)594 public static com.google.cloud.compute.v1.GuestAttributes parseFrom(java.nio.ByteBuffer data) 595 throws com.google.protobuf.InvalidProtocolBufferException { 596 return PARSER.parseFrom(data); 597 } 598 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)599 public static com.google.cloud.compute.v1.GuestAttributes parseFrom( 600 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 601 throws com.google.protobuf.InvalidProtocolBufferException { 602 return PARSER.parseFrom(data, extensionRegistry); 603 } 604 parseFrom( com.google.protobuf.ByteString data)605 public static com.google.cloud.compute.v1.GuestAttributes parseFrom( 606 com.google.protobuf.ByteString data) 607 throws com.google.protobuf.InvalidProtocolBufferException { 608 return PARSER.parseFrom(data); 609 } 610 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)611 public static com.google.cloud.compute.v1.GuestAttributes parseFrom( 612 com.google.protobuf.ByteString data, 613 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 614 throws com.google.protobuf.InvalidProtocolBufferException { 615 return PARSER.parseFrom(data, extensionRegistry); 616 } 617 parseFrom(byte[] data)618 public static com.google.cloud.compute.v1.GuestAttributes parseFrom(byte[] data) 619 throws com.google.protobuf.InvalidProtocolBufferException { 620 return PARSER.parseFrom(data); 621 } 622 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)623 public static com.google.cloud.compute.v1.GuestAttributes parseFrom( 624 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 625 throws com.google.protobuf.InvalidProtocolBufferException { 626 return PARSER.parseFrom(data, extensionRegistry); 627 } 628 parseFrom(java.io.InputStream input)629 public static com.google.cloud.compute.v1.GuestAttributes parseFrom(java.io.InputStream input) 630 throws java.io.IOException { 631 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 632 } 633 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)634 public static com.google.cloud.compute.v1.GuestAttributes parseFrom( 635 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 636 throws java.io.IOException { 637 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 638 PARSER, input, extensionRegistry); 639 } 640 parseDelimitedFrom( java.io.InputStream input)641 public static com.google.cloud.compute.v1.GuestAttributes parseDelimitedFrom( 642 java.io.InputStream input) throws java.io.IOException { 643 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 644 } 645 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)646 public static com.google.cloud.compute.v1.GuestAttributes parseDelimitedFrom( 647 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 648 throws java.io.IOException { 649 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 650 PARSER, input, extensionRegistry); 651 } 652 parseFrom( com.google.protobuf.CodedInputStream input)653 public static com.google.cloud.compute.v1.GuestAttributes parseFrom( 654 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 655 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 656 } 657 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)658 public static com.google.cloud.compute.v1.GuestAttributes parseFrom( 659 com.google.protobuf.CodedInputStream input, 660 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 661 throws java.io.IOException { 662 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 663 PARSER, input, extensionRegistry); 664 } 665 666 @java.lang.Override newBuilderForType()667 public Builder newBuilderForType() { 668 return newBuilder(); 669 } 670 newBuilder()671 public static Builder newBuilder() { 672 return DEFAULT_INSTANCE.toBuilder(); 673 } 674 newBuilder(com.google.cloud.compute.v1.GuestAttributes prototype)675 public static Builder newBuilder(com.google.cloud.compute.v1.GuestAttributes prototype) { 676 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 677 } 678 679 @java.lang.Override toBuilder()680 public Builder toBuilder() { 681 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 682 } 683 684 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)685 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 686 Builder builder = new Builder(parent); 687 return builder; 688 } 689 /** 690 * 691 * 692 * <pre> 693 * A guest attributes entry. 694 * </pre> 695 * 696 * Protobuf type {@code google.cloud.compute.v1.GuestAttributes} 697 */ 698 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 699 implements 700 // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.GuestAttributes) 701 com.google.cloud.compute.v1.GuestAttributesOrBuilder { getDescriptor()702 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 703 return com.google.cloud.compute.v1.Compute 704 .internal_static_google_cloud_compute_v1_GuestAttributes_descriptor; 705 } 706 707 @java.lang.Override 708 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()709 internalGetFieldAccessorTable() { 710 return com.google.cloud.compute.v1.Compute 711 .internal_static_google_cloud_compute_v1_GuestAttributes_fieldAccessorTable 712 .ensureFieldAccessorsInitialized( 713 com.google.cloud.compute.v1.GuestAttributes.class, 714 com.google.cloud.compute.v1.GuestAttributes.Builder.class); 715 } 716 717 // Construct using com.google.cloud.compute.v1.GuestAttributes.newBuilder() Builder()718 private Builder() { 719 maybeForceBuilderInitialization(); 720 } 721 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)722 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 723 super(parent); 724 maybeForceBuilderInitialization(); 725 } 726 maybeForceBuilderInitialization()727 private void maybeForceBuilderInitialization() { 728 if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { 729 getQueryValueFieldBuilder(); 730 } 731 } 732 733 @java.lang.Override clear()734 public Builder clear() { 735 super.clear(); 736 bitField0_ = 0; 737 kind_ = ""; 738 queryPath_ = ""; 739 queryValue_ = null; 740 if (queryValueBuilder_ != null) { 741 queryValueBuilder_.dispose(); 742 queryValueBuilder_ = null; 743 } 744 selfLink_ = ""; 745 variableKey_ = ""; 746 variableValue_ = ""; 747 return this; 748 } 749 750 @java.lang.Override getDescriptorForType()751 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 752 return com.google.cloud.compute.v1.Compute 753 .internal_static_google_cloud_compute_v1_GuestAttributes_descriptor; 754 } 755 756 @java.lang.Override getDefaultInstanceForType()757 public com.google.cloud.compute.v1.GuestAttributes getDefaultInstanceForType() { 758 return com.google.cloud.compute.v1.GuestAttributes.getDefaultInstance(); 759 } 760 761 @java.lang.Override build()762 public com.google.cloud.compute.v1.GuestAttributes build() { 763 com.google.cloud.compute.v1.GuestAttributes result = buildPartial(); 764 if (!result.isInitialized()) { 765 throw newUninitializedMessageException(result); 766 } 767 return result; 768 } 769 770 @java.lang.Override buildPartial()771 public com.google.cloud.compute.v1.GuestAttributes buildPartial() { 772 com.google.cloud.compute.v1.GuestAttributes result = 773 new com.google.cloud.compute.v1.GuestAttributes(this); 774 if (bitField0_ != 0) { 775 buildPartial0(result); 776 } 777 onBuilt(); 778 return result; 779 } 780 buildPartial0(com.google.cloud.compute.v1.GuestAttributes result)781 private void buildPartial0(com.google.cloud.compute.v1.GuestAttributes result) { 782 int from_bitField0_ = bitField0_; 783 int to_bitField0_ = 0; 784 if (((from_bitField0_ & 0x00000001) != 0)) { 785 result.kind_ = kind_; 786 to_bitField0_ |= 0x00000001; 787 } 788 if (((from_bitField0_ & 0x00000002) != 0)) { 789 result.queryPath_ = queryPath_; 790 to_bitField0_ |= 0x00000002; 791 } 792 if (((from_bitField0_ & 0x00000004) != 0)) { 793 result.queryValue_ = queryValueBuilder_ == null ? queryValue_ : queryValueBuilder_.build(); 794 to_bitField0_ |= 0x00000004; 795 } 796 if (((from_bitField0_ & 0x00000008) != 0)) { 797 result.selfLink_ = selfLink_; 798 to_bitField0_ |= 0x00000008; 799 } 800 if (((from_bitField0_ & 0x00000010) != 0)) { 801 result.variableKey_ = variableKey_; 802 to_bitField0_ |= 0x00000010; 803 } 804 if (((from_bitField0_ & 0x00000020) != 0)) { 805 result.variableValue_ = variableValue_; 806 to_bitField0_ |= 0x00000020; 807 } 808 result.bitField0_ |= to_bitField0_; 809 } 810 811 @java.lang.Override clone()812 public Builder clone() { 813 return super.clone(); 814 } 815 816 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)817 public Builder setField( 818 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 819 return super.setField(field, value); 820 } 821 822 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)823 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 824 return super.clearField(field); 825 } 826 827 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)828 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 829 return super.clearOneof(oneof); 830 } 831 832 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)833 public Builder setRepeatedField( 834 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 835 return super.setRepeatedField(field, index, value); 836 } 837 838 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)839 public Builder addRepeatedField( 840 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 841 return super.addRepeatedField(field, value); 842 } 843 844 @java.lang.Override mergeFrom(com.google.protobuf.Message other)845 public Builder mergeFrom(com.google.protobuf.Message other) { 846 if (other instanceof com.google.cloud.compute.v1.GuestAttributes) { 847 return mergeFrom((com.google.cloud.compute.v1.GuestAttributes) other); 848 } else { 849 super.mergeFrom(other); 850 return this; 851 } 852 } 853 mergeFrom(com.google.cloud.compute.v1.GuestAttributes other)854 public Builder mergeFrom(com.google.cloud.compute.v1.GuestAttributes other) { 855 if (other == com.google.cloud.compute.v1.GuestAttributes.getDefaultInstance()) return this; 856 if (other.hasKind()) { 857 kind_ = other.kind_; 858 bitField0_ |= 0x00000001; 859 onChanged(); 860 } 861 if (other.hasQueryPath()) { 862 queryPath_ = other.queryPath_; 863 bitField0_ |= 0x00000002; 864 onChanged(); 865 } 866 if (other.hasQueryValue()) { 867 mergeQueryValue(other.getQueryValue()); 868 } 869 if (other.hasSelfLink()) { 870 selfLink_ = other.selfLink_; 871 bitField0_ |= 0x00000008; 872 onChanged(); 873 } 874 if (other.hasVariableKey()) { 875 variableKey_ = other.variableKey_; 876 bitField0_ |= 0x00000010; 877 onChanged(); 878 } 879 if (other.hasVariableValue()) { 880 variableValue_ = other.variableValue_; 881 bitField0_ |= 0x00000020; 882 onChanged(); 883 } 884 this.mergeUnknownFields(other.getUnknownFields()); 885 onChanged(); 886 return this; 887 } 888 889 @java.lang.Override isInitialized()890 public final boolean isInitialized() { 891 return true; 892 } 893 894 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)895 public Builder mergeFrom( 896 com.google.protobuf.CodedInputStream input, 897 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 898 throws java.io.IOException { 899 if (extensionRegistry == null) { 900 throw new java.lang.NullPointerException(); 901 } 902 try { 903 boolean done = false; 904 while (!done) { 905 int tag = input.readTag(); 906 switch (tag) { 907 case 0: 908 done = true; 909 break; 910 case 26336418: 911 { 912 kind_ = input.readStringRequireUtf8(); 913 bitField0_ |= 0x00000001; 914 break; 915 } // case 26336418 916 case 996659058: 917 { 918 variableValue_ = input.readStringRequireUtf8(); 919 bitField0_ |= 0x00000020; 920 break; 921 } // case 996659058 922 case 1260566994: 923 { 924 input.readMessage(getQueryValueFieldBuilder().getBuilder(), extensionRegistry); 925 bitField0_ |= 0x00000004; 926 break; 927 } // case 1260566994 928 case 1314918626: 929 { 930 variableKey_ = input.readStringRequireUtf8(); 931 bitField0_ |= 0x00000010; 932 break; 933 } // case 1314918626 934 case -1346237982: 935 { 936 queryPath_ = input.readStringRequireUtf8(); 937 bitField0_ |= 0x00000002; 938 break; 939 } // case -1346237982 940 case -645248918: 941 { 942 selfLink_ = input.readStringRequireUtf8(); 943 bitField0_ |= 0x00000008; 944 break; 945 } // case -645248918 946 default: 947 { 948 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 949 done = true; // was an endgroup tag 950 } 951 break; 952 } // default: 953 } // switch (tag) 954 } // while (!done) 955 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 956 throw e.unwrapIOException(); 957 } finally { 958 onChanged(); 959 } // finally 960 return this; 961 } 962 963 private int bitField0_; 964 965 private java.lang.Object kind_ = ""; 966 /** 967 * 968 * 969 * <pre> 970 * [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry. 971 * </pre> 972 * 973 * <code>optional string kind = 3292052;</code> 974 * 975 * @return Whether the kind field is set. 976 */ hasKind()977 public boolean hasKind() { 978 return ((bitField0_ & 0x00000001) != 0); 979 } 980 /** 981 * 982 * 983 * <pre> 984 * [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry. 985 * </pre> 986 * 987 * <code>optional string kind = 3292052;</code> 988 * 989 * @return The kind. 990 */ getKind()991 public java.lang.String getKind() { 992 java.lang.Object ref = kind_; 993 if (!(ref instanceof java.lang.String)) { 994 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 995 java.lang.String s = bs.toStringUtf8(); 996 kind_ = s; 997 return s; 998 } else { 999 return (java.lang.String) ref; 1000 } 1001 } 1002 /** 1003 * 1004 * 1005 * <pre> 1006 * [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry. 1007 * </pre> 1008 * 1009 * <code>optional string kind = 3292052;</code> 1010 * 1011 * @return The bytes for kind. 1012 */ getKindBytes()1013 public com.google.protobuf.ByteString getKindBytes() { 1014 java.lang.Object ref = kind_; 1015 if (ref instanceof String) { 1016 com.google.protobuf.ByteString b = 1017 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1018 kind_ = b; 1019 return b; 1020 } else { 1021 return (com.google.protobuf.ByteString) ref; 1022 } 1023 } 1024 /** 1025 * 1026 * 1027 * <pre> 1028 * [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry. 1029 * </pre> 1030 * 1031 * <code>optional string kind = 3292052;</code> 1032 * 1033 * @param value The kind to set. 1034 * @return This builder for chaining. 1035 */ setKind(java.lang.String value)1036 public Builder setKind(java.lang.String value) { 1037 if (value == null) { 1038 throw new NullPointerException(); 1039 } 1040 kind_ = value; 1041 bitField0_ |= 0x00000001; 1042 onChanged(); 1043 return this; 1044 } 1045 /** 1046 * 1047 * 1048 * <pre> 1049 * [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry. 1050 * </pre> 1051 * 1052 * <code>optional string kind = 3292052;</code> 1053 * 1054 * @return This builder for chaining. 1055 */ clearKind()1056 public Builder clearKind() { 1057 kind_ = getDefaultInstance().getKind(); 1058 bitField0_ = (bitField0_ & ~0x00000001); 1059 onChanged(); 1060 return this; 1061 } 1062 /** 1063 * 1064 * 1065 * <pre> 1066 * [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry. 1067 * </pre> 1068 * 1069 * <code>optional string kind = 3292052;</code> 1070 * 1071 * @param value The bytes for kind to set. 1072 * @return This builder for chaining. 1073 */ setKindBytes(com.google.protobuf.ByteString value)1074 public Builder setKindBytes(com.google.protobuf.ByteString value) { 1075 if (value == null) { 1076 throw new NullPointerException(); 1077 } 1078 checkByteStringIsUtf8(value); 1079 kind_ = value; 1080 bitField0_ |= 0x00000001; 1081 onChanged(); 1082 return this; 1083 } 1084 1085 private java.lang.Object queryPath_ = ""; 1086 /** 1087 * 1088 * 1089 * <pre> 1090 * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\'). 1091 * </pre> 1092 * 1093 * <code>optional string query_path = 368591164;</code> 1094 * 1095 * @return Whether the queryPath field is set. 1096 */ hasQueryPath()1097 public boolean hasQueryPath() { 1098 return ((bitField0_ & 0x00000002) != 0); 1099 } 1100 /** 1101 * 1102 * 1103 * <pre> 1104 * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\'). 1105 * </pre> 1106 * 1107 * <code>optional string query_path = 368591164;</code> 1108 * 1109 * @return The queryPath. 1110 */ getQueryPath()1111 public java.lang.String getQueryPath() { 1112 java.lang.Object ref = queryPath_; 1113 if (!(ref instanceof java.lang.String)) { 1114 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1115 java.lang.String s = bs.toStringUtf8(); 1116 queryPath_ = s; 1117 return s; 1118 } else { 1119 return (java.lang.String) ref; 1120 } 1121 } 1122 /** 1123 * 1124 * 1125 * <pre> 1126 * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\'). 1127 * </pre> 1128 * 1129 * <code>optional string query_path = 368591164;</code> 1130 * 1131 * @return The bytes for queryPath. 1132 */ getQueryPathBytes()1133 public com.google.protobuf.ByteString getQueryPathBytes() { 1134 java.lang.Object ref = queryPath_; 1135 if (ref instanceof String) { 1136 com.google.protobuf.ByteString b = 1137 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1138 queryPath_ = b; 1139 return b; 1140 } else { 1141 return (com.google.protobuf.ByteString) ref; 1142 } 1143 } 1144 /** 1145 * 1146 * 1147 * <pre> 1148 * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\'). 1149 * </pre> 1150 * 1151 * <code>optional string query_path = 368591164;</code> 1152 * 1153 * @param value The queryPath to set. 1154 * @return This builder for chaining. 1155 */ setQueryPath(java.lang.String value)1156 public Builder setQueryPath(java.lang.String value) { 1157 if (value == null) { 1158 throw new NullPointerException(); 1159 } 1160 queryPath_ = value; 1161 bitField0_ |= 0x00000002; 1162 onChanged(); 1163 return this; 1164 } 1165 /** 1166 * 1167 * 1168 * <pre> 1169 * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\'). 1170 * </pre> 1171 * 1172 * <code>optional string query_path = 368591164;</code> 1173 * 1174 * @return This builder for chaining. 1175 */ clearQueryPath()1176 public Builder clearQueryPath() { 1177 queryPath_ = getDefaultInstance().getQueryPath(); 1178 bitField0_ = (bitField0_ & ~0x00000002); 1179 onChanged(); 1180 return this; 1181 } 1182 /** 1183 * 1184 * 1185 * <pre> 1186 * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\'). 1187 * </pre> 1188 * 1189 * <code>optional string query_path = 368591164;</code> 1190 * 1191 * @param value The bytes for queryPath to set. 1192 * @return This builder for chaining. 1193 */ setQueryPathBytes(com.google.protobuf.ByteString value)1194 public Builder setQueryPathBytes(com.google.protobuf.ByteString value) { 1195 if (value == null) { 1196 throw new NullPointerException(); 1197 } 1198 checkByteStringIsUtf8(value); 1199 queryPath_ = value; 1200 bitField0_ |= 0x00000002; 1201 onChanged(); 1202 return this; 1203 } 1204 1205 private com.google.cloud.compute.v1.GuestAttributesValue queryValue_; 1206 private com.google.protobuf.SingleFieldBuilderV3< 1207 com.google.cloud.compute.v1.GuestAttributesValue, 1208 com.google.cloud.compute.v1.GuestAttributesValue.Builder, 1209 com.google.cloud.compute.v1.GuestAttributesValueOrBuilder> 1210 queryValueBuilder_; 1211 /** 1212 * 1213 * 1214 * <pre> 1215 * [Output Only] The value of the requested queried path. 1216 * </pre> 1217 * 1218 * <code>optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;</code> 1219 * 1220 * @return Whether the queryValue field is set. 1221 */ hasQueryValue()1222 public boolean hasQueryValue() { 1223 return ((bitField0_ & 0x00000004) != 0); 1224 } 1225 /** 1226 * 1227 * 1228 * <pre> 1229 * [Output Only] The value of the requested queried path. 1230 * </pre> 1231 * 1232 * <code>optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;</code> 1233 * 1234 * @return The queryValue. 1235 */ getQueryValue()1236 public com.google.cloud.compute.v1.GuestAttributesValue getQueryValue() { 1237 if (queryValueBuilder_ == null) { 1238 return queryValue_ == null 1239 ? com.google.cloud.compute.v1.GuestAttributesValue.getDefaultInstance() 1240 : queryValue_; 1241 } else { 1242 return queryValueBuilder_.getMessage(); 1243 } 1244 } 1245 /** 1246 * 1247 * 1248 * <pre> 1249 * [Output Only] The value of the requested queried path. 1250 * </pre> 1251 * 1252 * <code>optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;</code> 1253 */ setQueryValue(com.google.cloud.compute.v1.GuestAttributesValue value)1254 public Builder setQueryValue(com.google.cloud.compute.v1.GuestAttributesValue value) { 1255 if (queryValueBuilder_ == null) { 1256 if (value == null) { 1257 throw new NullPointerException(); 1258 } 1259 queryValue_ = value; 1260 } else { 1261 queryValueBuilder_.setMessage(value); 1262 } 1263 bitField0_ |= 0x00000004; 1264 onChanged(); 1265 return this; 1266 } 1267 /** 1268 * 1269 * 1270 * <pre> 1271 * [Output Only] The value of the requested queried path. 1272 * </pre> 1273 * 1274 * <code>optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;</code> 1275 */ setQueryValue( com.google.cloud.compute.v1.GuestAttributesValue.Builder builderForValue)1276 public Builder setQueryValue( 1277 com.google.cloud.compute.v1.GuestAttributesValue.Builder builderForValue) { 1278 if (queryValueBuilder_ == null) { 1279 queryValue_ = builderForValue.build(); 1280 } else { 1281 queryValueBuilder_.setMessage(builderForValue.build()); 1282 } 1283 bitField0_ |= 0x00000004; 1284 onChanged(); 1285 return this; 1286 } 1287 /** 1288 * 1289 * 1290 * <pre> 1291 * [Output Only] The value of the requested queried path. 1292 * </pre> 1293 * 1294 * <code>optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;</code> 1295 */ mergeQueryValue(com.google.cloud.compute.v1.GuestAttributesValue value)1296 public Builder mergeQueryValue(com.google.cloud.compute.v1.GuestAttributesValue value) { 1297 if (queryValueBuilder_ == null) { 1298 if (((bitField0_ & 0x00000004) != 0) 1299 && queryValue_ != null 1300 && queryValue_ 1301 != com.google.cloud.compute.v1.GuestAttributesValue.getDefaultInstance()) { 1302 getQueryValueBuilder().mergeFrom(value); 1303 } else { 1304 queryValue_ = value; 1305 } 1306 } else { 1307 queryValueBuilder_.mergeFrom(value); 1308 } 1309 bitField0_ |= 0x00000004; 1310 onChanged(); 1311 return this; 1312 } 1313 /** 1314 * 1315 * 1316 * <pre> 1317 * [Output Only] The value of the requested queried path. 1318 * </pre> 1319 * 1320 * <code>optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;</code> 1321 */ clearQueryValue()1322 public Builder clearQueryValue() { 1323 bitField0_ = (bitField0_ & ~0x00000004); 1324 queryValue_ = null; 1325 if (queryValueBuilder_ != null) { 1326 queryValueBuilder_.dispose(); 1327 queryValueBuilder_ = null; 1328 } 1329 onChanged(); 1330 return this; 1331 } 1332 /** 1333 * 1334 * 1335 * <pre> 1336 * [Output Only] The value of the requested queried path. 1337 * </pre> 1338 * 1339 * <code>optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;</code> 1340 */ getQueryValueBuilder()1341 public com.google.cloud.compute.v1.GuestAttributesValue.Builder getQueryValueBuilder() { 1342 bitField0_ |= 0x00000004; 1343 onChanged(); 1344 return getQueryValueFieldBuilder().getBuilder(); 1345 } 1346 /** 1347 * 1348 * 1349 * <pre> 1350 * [Output Only] The value of the requested queried path. 1351 * </pre> 1352 * 1353 * <code>optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;</code> 1354 */ getQueryValueOrBuilder()1355 public com.google.cloud.compute.v1.GuestAttributesValueOrBuilder getQueryValueOrBuilder() { 1356 if (queryValueBuilder_ != null) { 1357 return queryValueBuilder_.getMessageOrBuilder(); 1358 } else { 1359 return queryValue_ == null 1360 ? com.google.cloud.compute.v1.GuestAttributesValue.getDefaultInstance() 1361 : queryValue_; 1362 } 1363 } 1364 /** 1365 * 1366 * 1367 * <pre> 1368 * [Output Only] The value of the requested queried path. 1369 * </pre> 1370 * 1371 * <code>optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;</code> 1372 */ 1373 private com.google.protobuf.SingleFieldBuilderV3< 1374 com.google.cloud.compute.v1.GuestAttributesValue, 1375 com.google.cloud.compute.v1.GuestAttributesValue.Builder, 1376 com.google.cloud.compute.v1.GuestAttributesValueOrBuilder> getQueryValueFieldBuilder()1377 getQueryValueFieldBuilder() { 1378 if (queryValueBuilder_ == null) { 1379 queryValueBuilder_ = 1380 new com.google.protobuf.SingleFieldBuilderV3< 1381 com.google.cloud.compute.v1.GuestAttributesValue, 1382 com.google.cloud.compute.v1.GuestAttributesValue.Builder, 1383 com.google.cloud.compute.v1.GuestAttributesValueOrBuilder>( 1384 getQueryValue(), getParentForChildren(), isClean()); 1385 queryValue_ = null; 1386 } 1387 return queryValueBuilder_; 1388 } 1389 1390 private java.lang.Object selfLink_ = ""; 1391 /** 1392 * 1393 * 1394 * <pre> 1395 * [Output Only] Server-defined URL for this resource. 1396 * </pre> 1397 * 1398 * <code>optional string self_link = 456214797;</code> 1399 * 1400 * @return Whether the selfLink field is set. 1401 */ hasSelfLink()1402 public boolean hasSelfLink() { 1403 return ((bitField0_ & 0x00000008) != 0); 1404 } 1405 /** 1406 * 1407 * 1408 * <pre> 1409 * [Output Only] Server-defined URL for this resource. 1410 * </pre> 1411 * 1412 * <code>optional string self_link = 456214797;</code> 1413 * 1414 * @return The selfLink. 1415 */ getSelfLink()1416 public java.lang.String getSelfLink() { 1417 java.lang.Object ref = selfLink_; 1418 if (!(ref instanceof java.lang.String)) { 1419 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1420 java.lang.String s = bs.toStringUtf8(); 1421 selfLink_ = s; 1422 return s; 1423 } else { 1424 return (java.lang.String) ref; 1425 } 1426 } 1427 /** 1428 * 1429 * 1430 * <pre> 1431 * [Output Only] Server-defined URL for this resource. 1432 * </pre> 1433 * 1434 * <code>optional string self_link = 456214797;</code> 1435 * 1436 * @return The bytes for selfLink. 1437 */ getSelfLinkBytes()1438 public com.google.protobuf.ByteString getSelfLinkBytes() { 1439 java.lang.Object ref = selfLink_; 1440 if (ref instanceof String) { 1441 com.google.protobuf.ByteString b = 1442 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1443 selfLink_ = b; 1444 return b; 1445 } else { 1446 return (com.google.protobuf.ByteString) ref; 1447 } 1448 } 1449 /** 1450 * 1451 * 1452 * <pre> 1453 * [Output Only] Server-defined URL for this resource. 1454 * </pre> 1455 * 1456 * <code>optional string self_link = 456214797;</code> 1457 * 1458 * @param value The selfLink to set. 1459 * @return This builder for chaining. 1460 */ setSelfLink(java.lang.String value)1461 public Builder setSelfLink(java.lang.String value) { 1462 if (value == null) { 1463 throw new NullPointerException(); 1464 } 1465 selfLink_ = value; 1466 bitField0_ |= 0x00000008; 1467 onChanged(); 1468 return this; 1469 } 1470 /** 1471 * 1472 * 1473 * <pre> 1474 * [Output Only] Server-defined URL for this resource. 1475 * </pre> 1476 * 1477 * <code>optional string self_link = 456214797;</code> 1478 * 1479 * @return This builder for chaining. 1480 */ clearSelfLink()1481 public Builder clearSelfLink() { 1482 selfLink_ = getDefaultInstance().getSelfLink(); 1483 bitField0_ = (bitField0_ & ~0x00000008); 1484 onChanged(); 1485 return this; 1486 } 1487 /** 1488 * 1489 * 1490 * <pre> 1491 * [Output Only] Server-defined URL for this resource. 1492 * </pre> 1493 * 1494 * <code>optional string self_link = 456214797;</code> 1495 * 1496 * @param value The bytes for selfLink to set. 1497 * @return This builder for chaining. 1498 */ setSelfLinkBytes(com.google.protobuf.ByteString value)1499 public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { 1500 if (value == null) { 1501 throw new NullPointerException(); 1502 } 1503 checkByteStringIsUtf8(value); 1504 selfLink_ = value; 1505 bitField0_ |= 0x00000008; 1506 onChanged(); 1507 return this; 1508 } 1509 1510 private java.lang.Object variableKey_ = ""; 1511 /** 1512 * 1513 * 1514 * <pre> 1515 * The key to search for. 1516 * </pre> 1517 * 1518 * <code>optional string variable_key = 164364828;</code> 1519 * 1520 * @return Whether the variableKey field is set. 1521 */ hasVariableKey()1522 public boolean hasVariableKey() { 1523 return ((bitField0_ & 0x00000010) != 0); 1524 } 1525 /** 1526 * 1527 * 1528 * <pre> 1529 * The key to search for. 1530 * </pre> 1531 * 1532 * <code>optional string variable_key = 164364828;</code> 1533 * 1534 * @return The variableKey. 1535 */ getVariableKey()1536 public java.lang.String getVariableKey() { 1537 java.lang.Object ref = variableKey_; 1538 if (!(ref instanceof java.lang.String)) { 1539 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1540 java.lang.String s = bs.toStringUtf8(); 1541 variableKey_ = s; 1542 return s; 1543 } else { 1544 return (java.lang.String) ref; 1545 } 1546 } 1547 /** 1548 * 1549 * 1550 * <pre> 1551 * The key to search for. 1552 * </pre> 1553 * 1554 * <code>optional string variable_key = 164364828;</code> 1555 * 1556 * @return The bytes for variableKey. 1557 */ getVariableKeyBytes()1558 public com.google.protobuf.ByteString getVariableKeyBytes() { 1559 java.lang.Object ref = variableKey_; 1560 if (ref instanceof String) { 1561 com.google.protobuf.ByteString b = 1562 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1563 variableKey_ = b; 1564 return b; 1565 } else { 1566 return (com.google.protobuf.ByteString) ref; 1567 } 1568 } 1569 /** 1570 * 1571 * 1572 * <pre> 1573 * The key to search for. 1574 * </pre> 1575 * 1576 * <code>optional string variable_key = 164364828;</code> 1577 * 1578 * @param value The variableKey to set. 1579 * @return This builder for chaining. 1580 */ setVariableKey(java.lang.String value)1581 public Builder setVariableKey(java.lang.String value) { 1582 if (value == null) { 1583 throw new NullPointerException(); 1584 } 1585 variableKey_ = value; 1586 bitField0_ |= 0x00000010; 1587 onChanged(); 1588 return this; 1589 } 1590 /** 1591 * 1592 * 1593 * <pre> 1594 * The key to search for. 1595 * </pre> 1596 * 1597 * <code>optional string variable_key = 164364828;</code> 1598 * 1599 * @return This builder for chaining. 1600 */ clearVariableKey()1601 public Builder clearVariableKey() { 1602 variableKey_ = getDefaultInstance().getVariableKey(); 1603 bitField0_ = (bitField0_ & ~0x00000010); 1604 onChanged(); 1605 return this; 1606 } 1607 /** 1608 * 1609 * 1610 * <pre> 1611 * The key to search for. 1612 * </pre> 1613 * 1614 * <code>optional string variable_key = 164364828;</code> 1615 * 1616 * @param value The bytes for variableKey to set. 1617 * @return This builder for chaining. 1618 */ setVariableKeyBytes(com.google.protobuf.ByteString value)1619 public Builder setVariableKeyBytes(com.google.protobuf.ByteString value) { 1620 if (value == null) { 1621 throw new NullPointerException(); 1622 } 1623 checkByteStringIsUtf8(value); 1624 variableKey_ = value; 1625 bitField0_ |= 0x00000010; 1626 onChanged(); 1627 return this; 1628 } 1629 1630 private java.lang.Object variableValue_ = ""; 1631 /** 1632 * 1633 * 1634 * <pre> 1635 * [Output Only] The value found for the requested key. 1636 * </pre> 1637 * 1638 * <code>optional string variable_value = 124582382;</code> 1639 * 1640 * @return Whether the variableValue field is set. 1641 */ hasVariableValue()1642 public boolean hasVariableValue() { 1643 return ((bitField0_ & 0x00000020) != 0); 1644 } 1645 /** 1646 * 1647 * 1648 * <pre> 1649 * [Output Only] The value found for the requested key. 1650 * </pre> 1651 * 1652 * <code>optional string variable_value = 124582382;</code> 1653 * 1654 * @return The variableValue. 1655 */ getVariableValue()1656 public java.lang.String getVariableValue() { 1657 java.lang.Object ref = variableValue_; 1658 if (!(ref instanceof java.lang.String)) { 1659 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1660 java.lang.String s = bs.toStringUtf8(); 1661 variableValue_ = s; 1662 return s; 1663 } else { 1664 return (java.lang.String) ref; 1665 } 1666 } 1667 /** 1668 * 1669 * 1670 * <pre> 1671 * [Output Only] The value found for the requested key. 1672 * </pre> 1673 * 1674 * <code>optional string variable_value = 124582382;</code> 1675 * 1676 * @return The bytes for variableValue. 1677 */ getVariableValueBytes()1678 public com.google.protobuf.ByteString getVariableValueBytes() { 1679 java.lang.Object ref = variableValue_; 1680 if (ref instanceof String) { 1681 com.google.protobuf.ByteString b = 1682 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1683 variableValue_ = b; 1684 return b; 1685 } else { 1686 return (com.google.protobuf.ByteString) ref; 1687 } 1688 } 1689 /** 1690 * 1691 * 1692 * <pre> 1693 * [Output Only] The value found for the requested key. 1694 * </pre> 1695 * 1696 * <code>optional string variable_value = 124582382;</code> 1697 * 1698 * @param value The variableValue to set. 1699 * @return This builder for chaining. 1700 */ setVariableValue(java.lang.String value)1701 public Builder setVariableValue(java.lang.String value) { 1702 if (value == null) { 1703 throw new NullPointerException(); 1704 } 1705 variableValue_ = value; 1706 bitField0_ |= 0x00000020; 1707 onChanged(); 1708 return this; 1709 } 1710 /** 1711 * 1712 * 1713 * <pre> 1714 * [Output Only] The value found for the requested key. 1715 * </pre> 1716 * 1717 * <code>optional string variable_value = 124582382;</code> 1718 * 1719 * @return This builder for chaining. 1720 */ clearVariableValue()1721 public Builder clearVariableValue() { 1722 variableValue_ = getDefaultInstance().getVariableValue(); 1723 bitField0_ = (bitField0_ & ~0x00000020); 1724 onChanged(); 1725 return this; 1726 } 1727 /** 1728 * 1729 * 1730 * <pre> 1731 * [Output Only] The value found for the requested key. 1732 * </pre> 1733 * 1734 * <code>optional string variable_value = 124582382;</code> 1735 * 1736 * @param value The bytes for variableValue to set. 1737 * @return This builder for chaining. 1738 */ setVariableValueBytes(com.google.protobuf.ByteString value)1739 public Builder setVariableValueBytes(com.google.protobuf.ByteString value) { 1740 if (value == null) { 1741 throw new NullPointerException(); 1742 } 1743 checkByteStringIsUtf8(value); 1744 variableValue_ = value; 1745 bitField0_ |= 0x00000020; 1746 onChanged(); 1747 return this; 1748 } 1749 1750 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1751 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 1752 return super.setUnknownFields(unknownFields); 1753 } 1754 1755 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1756 public final Builder mergeUnknownFields( 1757 final com.google.protobuf.UnknownFieldSet unknownFields) { 1758 return super.mergeUnknownFields(unknownFields); 1759 } 1760 1761 // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.GuestAttributes) 1762 } 1763 1764 // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.GuestAttributes) 1765 private static final com.google.cloud.compute.v1.GuestAttributes DEFAULT_INSTANCE; 1766 1767 static { 1768 DEFAULT_INSTANCE = new com.google.cloud.compute.v1.GuestAttributes(); 1769 } 1770 getDefaultInstance()1771 public static com.google.cloud.compute.v1.GuestAttributes getDefaultInstance() { 1772 return DEFAULT_INSTANCE; 1773 } 1774 1775 private static final com.google.protobuf.Parser<GuestAttributes> PARSER = 1776 new com.google.protobuf.AbstractParser<GuestAttributes>() { 1777 @java.lang.Override 1778 public GuestAttributes parsePartialFrom( 1779 com.google.protobuf.CodedInputStream input, 1780 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1781 throws com.google.protobuf.InvalidProtocolBufferException { 1782 Builder builder = newBuilder(); 1783 try { 1784 builder.mergeFrom(input, extensionRegistry); 1785 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1786 throw e.setUnfinishedMessage(builder.buildPartial()); 1787 } catch (com.google.protobuf.UninitializedMessageException e) { 1788 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1789 } catch (java.io.IOException e) { 1790 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1791 .setUnfinishedMessage(builder.buildPartial()); 1792 } 1793 return builder.buildPartial(); 1794 } 1795 }; 1796 parser()1797 public static com.google.protobuf.Parser<GuestAttributes> parser() { 1798 return PARSER; 1799 } 1800 1801 @java.lang.Override getParserForType()1802 public com.google.protobuf.Parser<GuestAttributes> getParserForType() { 1803 return PARSER; 1804 } 1805 1806 @java.lang.Override getDefaultInstanceForType()1807 public com.google.cloud.compute.v1.GuestAttributes getDefaultInstanceForType() { 1808 return DEFAULT_INSTANCE; 1809 } 1810 } 1811