Class GuestAttributes.Builder

  • All Implemented Interfaces:
    GuestAttributesOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    GuestAttributes

    public static final class GuestAttributes.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<GuestAttributes.Builder>
    implements GuestAttributesOrBuilder
     A guest attributes entry.
     
    Protobuf type google.cloud.compute.v1.GuestAttributes
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GuestAttributes.Builder>
      • clear

        public GuestAttributes.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<GuestAttributes.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GuestAttributes.Builder>
      • getDefaultInstanceForType

        public GuestAttributes getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public GuestAttributes build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public GuestAttributes buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public GuestAttributes.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<GuestAttributes.Builder>
      • setField

        public GuestAttributes.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<GuestAttributes.Builder>
      • clearField

        public GuestAttributes.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GuestAttributes.Builder>
      • clearOneof

        public GuestAttributes.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GuestAttributes.Builder>
      • setRepeatedField

        public GuestAttributes.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GuestAttributes.Builder>
      • addRepeatedField

        public GuestAttributes.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GuestAttributes.Builder>
      • mergeFrom

        public GuestAttributes.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GuestAttributes.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GuestAttributes.Builder>
      • mergeFrom

        public GuestAttributes.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GuestAttributes.Builder>
        Throws:
        IOException
      • hasKind

        public boolean hasKind()
         [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.
         
        optional string kind = 3292052;
        Specified by:
        hasKind in interface GuestAttributesOrBuilder
        Returns:
        Whether the kind field is set.
      • getKind

        public String getKind()
         [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.
         
        optional string kind = 3292052;
        Specified by:
        getKind in interface GuestAttributesOrBuilder
        Returns:
        The kind.
      • getKindBytes

        public com.google.protobuf.ByteString getKindBytes()
         [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.
         
        optional string kind = 3292052;
        Specified by:
        getKindBytes in interface GuestAttributesOrBuilder
        Returns:
        The bytes for kind.
      • setKind

        public GuestAttributes.Builder setKind​(String value)
         [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.
         
        optional string kind = 3292052;
        Parameters:
        value - The kind to set.
        Returns:
        This builder for chaining.
      • clearKind

        public GuestAttributes.Builder clearKind()
         [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.
         
        optional string kind = 3292052;
        Returns:
        This builder for chaining.
      • setKindBytes

        public GuestAttributes.Builder setKindBytes​(com.google.protobuf.ByteString value)
         [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.
         
        optional string kind = 3292052;
        Parameters:
        value - The bytes for kind to set.
        Returns:
        This builder for chaining.
      • hasQueryPath

        public boolean hasQueryPath()
         The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\').
         
        optional string query_path = 368591164;
        Specified by:
        hasQueryPath in interface GuestAttributesOrBuilder
        Returns:
        Whether the queryPath field is set.
      • getQueryPath

        public String getQueryPath()
         The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\').
         
        optional string query_path = 368591164;
        Specified by:
        getQueryPath in interface GuestAttributesOrBuilder
        Returns:
        The queryPath.
      • getQueryPathBytes

        public com.google.protobuf.ByteString getQueryPathBytes()
         The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\').
         
        optional string query_path = 368591164;
        Specified by:
        getQueryPathBytes in interface GuestAttributesOrBuilder
        Returns:
        The bytes for queryPath.
      • setQueryPath

        public GuestAttributes.Builder setQueryPath​(String value)
         The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\').
         
        optional string query_path = 368591164;
        Parameters:
        value - The queryPath to set.
        Returns:
        This builder for chaining.
      • clearQueryPath

        public GuestAttributes.Builder clearQueryPath()
         The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\').
         
        optional string query_path = 368591164;
        Returns:
        This builder for chaining.
      • setQueryPathBytes

        public GuestAttributes.Builder setQueryPathBytes​(com.google.protobuf.ByteString value)
         The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\').
         
        optional string query_path = 368591164;
        Parameters:
        value - The bytes for queryPath to set.
        Returns:
        This builder for chaining.
      • hasQueryValue

        public boolean hasQueryValue()
         [Output Only] The value of the requested queried path.
         
        optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;
        Specified by:
        hasQueryValue in interface GuestAttributesOrBuilder
        Returns:
        Whether the queryValue field is set.
      • getQueryValue

        public GuestAttributesValue getQueryValue()
         [Output Only] The value of the requested queried path.
         
        optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;
        Specified by:
        getQueryValue in interface GuestAttributesOrBuilder
        Returns:
        The queryValue.
      • setQueryValue

        public GuestAttributes.Builder setQueryValue​(GuestAttributesValue value)
         [Output Only] The value of the requested queried path.
         
        optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;
      • mergeQueryValue

        public GuestAttributes.Builder mergeQueryValue​(GuestAttributesValue value)
         [Output Only] The value of the requested queried path.
         
        optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;
      • clearQueryValue

        public GuestAttributes.Builder clearQueryValue()
         [Output Only] The value of the requested queried path.
         
        optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;
      • getQueryValueBuilder

        public GuestAttributesValue.Builder getQueryValueBuilder()
         [Output Only] The value of the requested queried path.
         
        optional .google.cloud.compute.v1.GuestAttributesValue query_value = 157570874;
      • hasSelfLink

        public boolean hasSelfLink()
         [Output Only] Server-defined URL for this resource.
         
        optional string self_link = 456214797;
        Specified by:
        hasSelfLink in interface GuestAttributesOrBuilder
        Returns:
        Whether the selfLink field is set.
      • getSelfLink

        public String getSelfLink()
         [Output Only] Server-defined URL for this resource.
         
        optional string self_link = 456214797;
        Specified by:
        getSelfLink in interface GuestAttributesOrBuilder
        Returns:
        The selfLink.
      • getSelfLinkBytes

        public com.google.protobuf.ByteString getSelfLinkBytes()
         [Output Only] Server-defined URL for this resource.
         
        optional string self_link = 456214797;
        Specified by:
        getSelfLinkBytes in interface GuestAttributesOrBuilder
        Returns:
        The bytes for selfLink.
      • setSelfLink

        public GuestAttributes.Builder setSelfLink​(String value)
         [Output Only] Server-defined URL for this resource.
         
        optional string self_link = 456214797;
        Parameters:
        value - The selfLink to set.
        Returns:
        This builder for chaining.
      • clearSelfLink

        public GuestAttributes.Builder clearSelfLink()
         [Output Only] Server-defined URL for this resource.
         
        optional string self_link = 456214797;
        Returns:
        This builder for chaining.
      • setSelfLinkBytes

        public GuestAttributes.Builder setSelfLinkBytes​(com.google.protobuf.ByteString value)
         [Output Only] Server-defined URL for this resource.
         
        optional string self_link = 456214797;
        Parameters:
        value - The bytes for selfLink to set.
        Returns:
        This builder for chaining.
      • hasVariableKey

        public boolean hasVariableKey()
         The key to search for.
         
        optional string variable_key = 164364828;
        Specified by:
        hasVariableKey in interface GuestAttributesOrBuilder
        Returns:
        Whether the variableKey field is set.
      • getVariableKeyBytes

        public com.google.protobuf.ByteString getVariableKeyBytes()
         The key to search for.
         
        optional string variable_key = 164364828;
        Specified by:
        getVariableKeyBytes in interface GuestAttributesOrBuilder
        Returns:
        The bytes for variableKey.
      • setVariableKey

        public GuestAttributes.Builder setVariableKey​(String value)
         The key to search for.
         
        optional string variable_key = 164364828;
        Parameters:
        value - The variableKey to set.
        Returns:
        This builder for chaining.
      • clearVariableKey

        public GuestAttributes.Builder clearVariableKey()
         The key to search for.
         
        optional string variable_key = 164364828;
        Returns:
        This builder for chaining.
      • setVariableKeyBytes

        public GuestAttributes.Builder setVariableKeyBytes​(com.google.protobuf.ByteString value)
         The key to search for.
         
        optional string variable_key = 164364828;
        Parameters:
        value - The bytes for variableKey to set.
        Returns:
        This builder for chaining.
      • hasVariableValue

        public boolean hasVariableValue()
         [Output Only] The value found for the requested key.
         
        optional string variable_value = 124582382;
        Specified by:
        hasVariableValue in interface GuestAttributesOrBuilder
        Returns:
        Whether the variableValue field is set.
      • getVariableValue

        public String getVariableValue()
         [Output Only] The value found for the requested key.
         
        optional string variable_value = 124582382;
        Specified by:
        getVariableValue in interface GuestAttributesOrBuilder
        Returns:
        The variableValue.
      • getVariableValueBytes

        public com.google.protobuf.ByteString getVariableValueBytes()
         [Output Only] The value found for the requested key.
         
        optional string variable_value = 124582382;
        Specified by:
        getVariableValueBytes in interface GuestAttributesOrBuilder
        Returns:
        The bytes for variableValue.
      • setVariableValue

        public GuestAttributes.Builder setVariableValue​(String value)
         [Output Only] The value found for the requested key.
         
        optional string variable_value = 124582382;
        Parameters:
        value - The variableValue to set.
        Returns:
        This builder for chaining.
      • clearVariableValue

        public GuestAttributes.Builder clearVariableValue()
         [Output Only] The value found for the requested key.
         
        optional string variable_value = 124582382;
        Returns:
        This builder for chaining.
      • setVariableValueBytes

        public GuestAttributes.Builder setVariableValueBytes​(com.google.protobuf.ByteString value)
         [Output Only] The value found for the requested key.
         
        optional string variable_value = 124582382;
        Parameters:
        value - The bytes for variableValue to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final GuestAttributes.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GuestAttributes.Builder>
      • mergeUnknownFields

        public final GuestAttributes.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GuestAttributes.Builder>