All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.compute.v1.GuestAttributes Maven / Gradle / Ivy

There is a newer version: 1.69.0
Show newest version
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/compute/v1/compute.proto

// Protobuf Java Version: 3.25.5
package com.google.cloud.compute.v1;

/**
 *
 *
 * 
 * A guest attributes entry.
 * 
* * Protobuf type {@code google.cloud.compute.v1.GuestAttributes} */ public final class GuestAttributes extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.GuestAttributes) GuestAttributesOrBuilder { private static final long serialVersionUID = 0L; // Use GuestAttributes.newBuilder() to construct. private GuestAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GuestAttributes() { kind_ = ""; queryPath_ = ""; selfLink_ = ""; variableKey_ = ""; variableValue_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GuestAttributes(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_GuestAttributes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_GuestAttributes_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.compute.v1.GuestAttributes.class, com.google.cloud.compute.v1.GuestAttributes.Builder.class); } private int bitField0_; public static final int KIND_FIELD_NUMBER = 3292052; @SuppressWarnings("serial") private volatile java.lang.Object kind_ = ""; /** * * *
   * [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.
   * 
* * optional string kind = 3292052; * * @return Whether the kind field is set. */ @java.lang.Override public boolean hasKind() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.
   * 
* * optional string kind = 3292052; * * @return The kind. */ @java.lang.Override public java.lang.String getKind() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** * * *
   * [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.
   * 
* * optional string kind = 3292052; * * @return The bytes for kind. */ @java.lang.Override public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int QUERY_PATH_FIELD_NUMBER = 368591164; @SuppressWarnings("serial") private volatile java.lang.Object queryPath_ = ""; /** * * *
   * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\').
   * 
* * optional string query_path = 368591164; * * @return Whether the queryPath field is set. */ @java.lang.Override public boolean hasQueryPath() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\').
   * 
* * optional string query_path = 368591164; * * @return The queryPath. */ @java.lang.Override public java.lang.String getQueryPath() { java.lang.Object ref = queryPath_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryPath_ = s; return s; } } /** * * *
   * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\').
   * 
* * optional string query_path = 368591164; * * @return The bytes for queryPath. */ @java.lang.Override public com.google.protobuf.ByteString getQueryPathBytes() { java.lang.Object ref = queryPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); queryPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int QUERY_VALUE_FIELD_NUMBER = 157570874; private com.google.cloud.compute.v1.GuestAttributesValue queryValue_; /** * * *
   * [Output Only] The value of the requested queried path.
   * 
* * optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874; * * @return Whether the queryValue field is set. */ @java.lang.Override public boolean hasQueryValue() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * [Output Only] The value of the requested queried path.
   * 
* * optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874; * * @return The queryValue. */ @java.lang.Override public com.google.cloud.compute.v1.GuestAttributesValue getQueryValue() { return queryValue_ == null ? com.google.cloud.compute.v1.GuestAttributesValue.getDefaultInstance() : queryValue_; } /** * * *
   * [Output Only] The value of the requested queried path.
   * 
* * optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874; */ @java.lang.Override public com.google.cloud.compute.v1.GuestAttributesValueOrBuilder getQueryValueOrBuilder() { return queryValue_ == null ? com.google.cloud.compute.v1.GuestAttributesValue.getDefaultInstance() : queryValue_; } public static final int SELF_LINK_FIELD_NUMBER = 456214797; @SuppressWarnings("serial") private volatile java.lang.Object selfLink_ = ""; /** * * *
   * [Output Only] Server-defined URL for this resource.
   * 
* * optional string self_link = 456214797; * * @return Whether the selfLink field is set. */ @java.lang.Override public boolean hasSelfLink() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * [Output Only] Server-defined URL for this resource.
   * 
* * optional string self_link = 456214797; * * @return The selfLink. */ @java.lang.Override public java.lang.String getSelfLink() { java.lang.Object ref = selfLink_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); selfLink_ = s; return s; } } /** * * *
   * [Output Only] Server-defined URL for this resource.
   * 
* * optional string self_link = 456214797; * * @return The bytes for selfLink. */ @java.lang.Override public com.google.protobuf.ByteString getSelfLinkBytes() { java.lang.Object ref = selfLink_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selfLink_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VARIABLE_KEY_FIELD_NUMBER = 164364828; @SuppressWarnings("serial") private volatile java.lang.Object variableKey_ = ""; /** * * *
   * The key to search for.
   * 
* * optional string variable_key = 164364828; * * @return Whether the variableKey field is set. */ @java.lang.Override public boolean hasVariableKey() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * The key to search for.
   * 
* * optional string variable_key = 164364828; * * @return The variableKey. */ @java.lang.Override public java.lang.String getVariableKey() { java.lang.Object ref = variableKey_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); variableKey_ = s; return s; } } /** * * *
   * The key to search for.
   * 
* * optional string variable_key = 164364828; * * @return The bytes for variableKey. */ @java.lang.Override public com.google.protobuf.ByteString getVariableKeyBytes() { java.lang.Object ref = variableKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); variableKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VARIABLE_VALUE_FIELD_NUMBER = 124582382; @SuppressWarnings("serial") private volatile java.lang.Object variableValue_ = ""; /** * * *
   * [Output Only] The value found for the requested key.
   * 
* * optional string variable_value = 124582382; * * @return Whether the variableValue field is set. */ @java.lang.Override public boolean hasVariableValue() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
   * [Output Only] The value found for the requested key.
   * 
* * optional string variable_value = 124582382; * * @return The variableValue. */ @java.lang.Override public java.lang.String getVariableValue() { java.lang.Object ref = variableValue_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); variableValue_ = s; return s; } } /** * * *
   * [Output Only] The value found for the requested key.
   * 
* * optional string variable_value = 124582382; * * @return The bytes for variableValue. */ @java.lang.Override public com.google.protobuf.ByteString getVariableValueBytes() { java.lang.Object ref = variableValue_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); variableValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_); } if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 124582382, variableValue_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(157570874, getQueryValue()); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 164364828, variableKey_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 368591164, queryPath_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(124582382, variableValue_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(157570874, getQueryValue()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(164364828, variableKey_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(368591164, queryPath_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.compute.v1.GuestAttributes)) { return super.equals(obj); } com.google.cloud.compute.v1.GuestAttributes other = (com.google.cloud.compute.v1.GuestAttributes) obj; if (hasKind() != other.hasKind()) return false; if (hasKind()) { if (!getKind().equals(other.getKind())) return false; } if (hasQueryPath() != other.hasQueryPath()) return false; if (hasQueryPath()) { if (!getQueryPath().equals(other.getQueryPath())) return false; } if (hasQueryValue() != other.hasQueryValue()) return false; if (hasQueryValue()) { if (!getQueryValue().equals(other.getQueryValue())) return false; } if (hasSelfLink() != other.hasSelfLink()) return false; if (hasSelfLink()) { if (!getSelfLink().equals(other.getSelfLink())) return false; } if (hasVariableKey() != other.hasVariableKey()) return false; if (hasVariableKey()) { if (!getVariableKey().equals(other.getVariableKey())) return false; } if (hasVariableValue() != other.hasVariableValue()) return false; if (hasVariableValue()) { if (!getVariableValue().equals(other.getVariableValue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasKind()) { hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + getKind().hashCode(); } if (hasQueryPath()) { hash = (37 * hash) + QUERY_PATH_FIELD_NUMBER; hash = (53 * hash) + getQueryPath().hashCode(); } if (hasQueryValue()) { hash = (37 * hash) + QUERY_VALUE_FIELD_NUMBER; hash = (53 * hash) + getQueryValue().hashCode(); } if (hasSelfLink()) { hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; hash = (53 * hash) + getSelfLink().hashCode(); } if (hasVariableKey()) { hash = (37 * hash) + VARIABLE_KEY_FIELD_NUMBER; hash = (53 * hash) + getVariableKey().hashCode(); } if (hasVariableValue()) { hash = (37 * hash) + VARIABLE_VALUE_FIELD_NUMBER; hash = (53 * hash) + getVariableValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.compute.v1.GuestAttributes parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.GuestAttributes parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.compute.v1.GuestAttributes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.GuestAttributes parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.compute.v1.GuestAttributes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.GuestAttributes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.compute.v1.GuestAttributes parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.compute.v1.GuestAttributes parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.compute.v1.GuestAttributes parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.compute.v1.GuestAttributes parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.compute.v1.GuestAttributes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.compute.v1.GuestAttributes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.cloud.compute.v1.GuestAttributes prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * A guest attributes entry.
   * 
* * Protobuf type {@code google.cloud.compute.v1.GuestAttributes} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.GuestAttributes) com.google.cloud.compute.v1.GuestAttributesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_GuestAttributes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_GuestAttributes_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.compute.v1.GuestAttributes.class, com.google.cloud.compute.v1.GuestAttributes.Builder.class); } // Construct using com.google.cloud.compute.v1.GuestAttributes.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getQueryValueFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; kind_ = ""; queryPath_ = ""; queryValue_ = null; if (queryValueBuilder_ != null) { queryValueBuilder_.dispose(); queryValueBuilder_ = null; } selfLink_ = ""; variableKey_ = ""; variableValue_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_GuestAttributes_descriptor; } @java.lang.Override public com.google.cloud.compute.v1.GuestAttributes getDefaultInstanceForType() { return com.google.cloud.compute.v1.GuestAttributes.getDefaultInstance(); } @java.lang.Override public com.google.cloud.compute.v1.GuestAttributes build() { com.google.cloud.compute.v1.GuestAttributes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.compute.v1.GuestAttributes buildPartial() { com.google.cloud.compute.v1.GuestAttributes result = new com.google.cloud.compute.v1.GuestAttributes(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.compute.v1.GuestAttributes result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.kind_ = kind_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.queryPath_ = queryPath_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.queryValue_ = queryValueBuilder_ == null ? queryValue_ : queryValueBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.selfLink_ = selfLink_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.variableKey_ = variableKey_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.variableValue_ = variableValue_; to_bitField0_ |= 0x00000020; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.compute.v1.GuestAttributes) { return mergeFrom((com.google.cloud.compute.v1.GuestAttributes) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.compute.v1.GuestAttributes other) { if (other == com.google.cloud.compute.v1.GuestAttributes.getDefaultInstance()) return this; if (other.hasKind()) { kind_ = other.kind_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasQueryPath()) { queryPath_ = other.queryPath_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasQueryValue()) { mergeQueryValue(other.getQueryValue()); } if (other.hasSelfLink()) { selfLink_ = other.selfLink_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasVariableKey()) { variableKey_ = other.variableKey_; bitField0_ |= 0x00000010; onChanged(); } if (other.hasVariableValue()) { variableValue_ = other.variableValue_; bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 26336418: { kind_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 26336418 case 996659058: { variableValue_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 996659058 case 1260566994: { input.readMessage(getQueryValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 1260566994 case 1314918626: { variableKey_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 1314918626 case -1346237982: { queryPath_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case -1346237982 case -645248918: { selfLink_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case -645248918 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object kind_ = ""; /** * * *
     * [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.
     * 
* * optional string kind = 3292052; * * @return Whether the kind field is set. */ public boolean hasKind() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.
     * 
* * optional string kind = 3292052; * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.
     * 
* * optional string kind = 3292052; * * @return The bytes for kind. */ public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.
     * 
* * optional string kind = 3292052; * * @param value The kind to set. * @return This builder for chaining. */ public Builder setKind(java.lang.String value) { if (value == null) { throw new NullPointerException(); } kind_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.
     * 
* * optional string kind = 3292052; * * @return This builder for chaining. */ public Builder clearKind() { kind_ = getDefaultInstance().getKind(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.
     * 
* * optional string kind = 3292052; * * @param value The bytes for kind to set. * @return This builder for chaining. */ public Builder setKindBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kind_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object queryPath_ = ""; /** * * *
     * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\').
     * 
* * optional string query_path = 368591164; * * @return Whether the queryPath field is set. */ public boolean hasQueryPath() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\').
     * 
* * optional string query_path = 368591164; * * @return The queryPath. */ public java.lang.String getQueryPath() { java.lang.Object ref = queryPath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryPath_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\').
     * 
* * optional string query_path = 368591164; * * @return The bytes for queryPath. */ public com.google.protobuf.ByteString getQueryPathBytes() { java.lang.Object ref = queryPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); queryPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\').
     * 
* * optional string query_path = 368591164; * * @param value The queryPath to set. * @return This builder for chaining. */ public Builder setQueryPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } queryPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\').
     * 
* * optional string query_path = 368591164; * * @return This builder for chaining. */ public Builder clearQueryPath() { queryPath_ = getDefaultInstance().getQueryPath(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\').
     * 
* * optional string query_path = 368591164; * * @param value The bytes for queryPath to set. * @return This builder for chaining. */ public Builder setQueryPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); queryPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.cloud.compute.v1.GuestAttributesValue queryValue_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.GuestAttributesValue, com.google.cloud.compute.v1.GuestAttributesValue.Builder, com.google.cloud.compute.v1.GuestAttributesValueOrBuilder> queryValueBuilder_; /** * * *
     * [Output Only] The value of the requested queried path.
     * 
* * optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874; * * @return Whether the queryValue field is set. */ public boolean hasQueryValue() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * [Output Only] The value of the requested queried path.
     * 
* * optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874; * * @return The queryValue. */ public com.google.cloud.compute.v1.GuestAttributesValue getQueryValue() { if (queryValueBuilder_ == null) { return queryValue_ == null ? com.google.cloud.compute.v1.GuestAttributesValue.getDefaultInstance() : queryValue_; } else { return queryValueBuilder_.getMessage(); } } /** * * *
     * [Output Only] The value of the requested queried path.
     * 
* * optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874; */ public Builder setQueryValue(com.google.cloud.compute.v1.GuestAttributesValue value) { if (queryValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } queryValue_ = value; } else { queryValueBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * [Output Only] The value of the requested queried path.
     * 
* * optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874; */ public Builder setQueryValue( com.google.cloud.compute.v1.GuestAttributesValue.Builder builderForValue) { if (queryValueBuilder_ == null) { queryValue_ = builderForValue.build(); } else { queryValueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * [Output Only] The value of the requested queried path.
     * 
* * optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874; */ public Builder mergeQueryValue(com.google.cloud.compute.v1.GuestAttributesValue value) { if (queryValueBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && queryValue_ != null && queryValue_ != com.google.cloud.compute.v1.GuestAttributesValue.getDefaultInstance()) { getQueryValueBuilder().mergeFrom(value); } else { queryValue_ = value; } } else { queryValueBuilder_.mergeFrom(value); } if (queryValue_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * [Output Only] The value of the requested queried path.
     * 
* * optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874; */ public Builder clearQueryValue() { bitField0_ = (bitField0_ & ~0x00000004); queryValue_ = null; if (queryValueBuilder_ != null) { queryValueBuilder_.dispose(); queryValueBuilder_ = null; } onChanged(); return this; } /** * * *
     * [Output Only] The value of the requested queried path.
     * 
* * optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874; */ public com.google.cloud.compute.v1.GuestAttributesValue.Builder getQueryValueBuilder() { bitField0_ |= 0x00000004; onChanged(); return getQueryValueFieldBuilder().getBuilder(); } /** * * *
     * [Output Only] The value of the requested queried path.
     * 
* * optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874; */ public com.google.cloud.compute.v1.GuestAttributesValueOrBuilder getQueryValueOrBuilder() { if (queryValueBuilder_ != null) { return queryValueBuilder_.getMessageOrBuilder(); } else { return queryValue_ == null ? com.google.cloud.compute.v1.GuestAttributesValue.getDefaultInstance() : queryValue_; } } /** * * *
     * [Output Only] The value of the requested queried path.
     * 
* * optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.GuestAttributesValue, com.google.cloud.compute.v1.GuestAttributesValue.Builder, com.google.cloud.compute.v1.GuestAttributesValueOrBuilder> getQueryValueFieldBuilder() { if (queryValueBuilder_ == null) { queryValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.GuestAttributesValue, com.google.cloud.compute.v1.GuestAttributesValue.Builder, com.google.cloud.compute.v1.GuestAttributesValueOrBuilder>( getQueryValue(), getParentForChildren(), isClean()); queryValue_ = null; } return queryValueBuilder_; } private java.lang.Object selfLink_ = ""; /** * * *
     * [Output Only] Server-defined URL for this resource.
     * 
* * optional string self_link = 456214797; * * @return Whether the selfLink field is set. */ public boolean hasSelfLink() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * [Output Only] Server-defined URL for this resource.
     * 
* * optional string self_link = 456214797; * * @return The selfLink. */ public java.lang.String getSelfLink() { java.lang.Object ref = selfLink_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); selfLink_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * [Output Only] Server-defined URL for this resource.
     * 
* * optional string self_link = 456214797; * * @return The bytes for selfLink. */ public com.google.protobuf.ByteString getSelfLinkBytes() { java.lang.Object ref = selfLink_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selfLink_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * [Output Only] Server-defined URL for this resource.
     * 
* * optional string self_link = 456214797; * * @param value The selfLink to set. * @return This builder for chaining. */ public Builder setSelfLink(java.lang.String value) { if (value == null) { throw new NullPointerException(); } selfLink_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * [Output Only] Server-defined URL for this resource.
     * 
* * optional string self_link = 456214797; * * @return This builder for chaining. */ public Builder clearSelfLink() { selfLink_ = getDefaultInstance().getSelfLink(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
     * [Output Only] Server-defined URL for this resource.
     * 
* * optional string self_link = 456214797; * * @param value The bytes for selfLink to set. * @return This builder for chaining. */ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); selfLink_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object variableKey_ = ""; /** * * *
     * The key to search for.
     * 
* * optional string variable_key = 164364828; * * @return Whether the variableKey field is set. */ public boolean hasVariableKey() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * The key to search for.
     * 
* * optional string variable_key = 164364828; * * @return The variableKey. */ public java.lang.String getVariableKey() { java.lang.Object ref = variableKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); variableKey_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The key to search for.
     * 
* * optional string variable_key = 164364828; * * @return The bytes for variableKey. */ public com.google.protobuf.ByteString getVariableKeyBytes() { java.lang.Object ref = variableKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); variableKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The key to search for.
     * 
* * optional string variable_key = 164364828; * * @param value The variableKey to set. * @return This builder for chaining. */ public Builder setVariableKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } variableKey_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * The key to search for.
     * 
* * optional string variable_key = 164364828; * * @return This builder for chaining. */ public Builder clearVariableKey() { variableKey_ = getDefaultInstance().getVariableKey(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
     * The key to search for.
     * 
* * optional string variable_key = 164364828; * * @param value The bytes for variableKey to set. * @return This builder for chaining. */ public Builder setVariableKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); variableKey_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object variableValue_ = ""; /** * * *
     * [Output Only] The value found for the requested key.
     * 
* * optional string variable_value = 124582382; * * @return Whether the variableValue field is set. */ public boolean hasVariableValue() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
     * [Output Only] The value found for the requested key.
     * 
* * optional string variable_value = 124582382; * * @return The variableValue. */ public java.lang.String getVariableValue() { java.lang.Object ref = variableValue_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); variableValue_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * [Output Only] The value found for the requested key.
     * 
* * optional string variable_value = 124582382; * * @return The bytes for variableValue. */ public com.google.protobuf.ByteString getVariableValueBytes() { java.lang.Object ref = variableValue_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); variableValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * [Output Only] The value found for the requested key.
     * 
* * optional string variable_value = 124582382; * * @param value The variableValue to set. * @return This builder for chaining. */ public Builder setVariableValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } variableValue_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * [Output Only] The value found for the requested key.
     * 
* * optional string variable_value = 124582382; * * @return This builder for chaining. */ public Builder clearVariableValue() { variableValue_ = getDefaultInstance().getVariableValue(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
     * [Output Only] The value found for the requested key.
     * 
* * optional string variable_value = 124582382; * * @param value The bytes for variableValue to set. * @return This builder for chaining. */ public Builder setVariableValueBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); variableValue_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.GuestAttributes) } // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.GuestAttributes) private static final com.google.cloud.compute.v1.GuestAttributes DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.compute.v1.GuestAttributes(); } public static com.google.cloud.compute.v1.GuestAttributes getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GuestAttributes parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.compute.v1.GuestAttributes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy