Class GuestAttributesEntry.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GuestAttributesEntry.Builder>
com.google.cloud.compute.v1.GuestAttributesEntry.Builder
All Implemented Interfaces:
GuestAttributesEntryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GuestAttributesEntry

public static final class GuestAttributesEntry.Builder extends com.google.protobuf.GeneratedMessage.Builder<GuestAttributesEntry.Builder> implements GuestAttributesEntryOrBuilder
 A guest attributes namespace/key/value entry.
 
Protobuf type google.cloud.compute.v1.GuestAttributesEntry
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GuestAttributesEntry.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.GeneratedMessage.Builder<GuestAttributesEntry.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.GeneratedMessage.Builder<GuestAttributesEntry.Builder>
    • getDefaultInstanceForType

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

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

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

      public GuestAttributesEntry.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<GuestAttributesEntry.Builder>
    • mergeFrom

    • isInitialized

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

      public GuestAttributesEntry.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<GuestAttributesEntry.Builder>
      Throws:
      IOException
    • hasKey

      public boolean hasKey()
       Key for the guest attribute entry.
       
      optional string key = 106079;
      Specified by:
      hasKey in interface GuestAttributesEntryOrBuilder
      Returns:
      Whether the key field is set.
    • getKey

      public String getKey()
       Key for the guest attribute entry.
       
      optional string key = 106079;
      Specified by:
      getKey in interface GuestAttributesEntryOrBuilder
      Returns:
      The key.
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
       Key for the guest attribute entry.
       
      optional string key = 106079;
      Specified by:
      getKeyBytes in interface GuestAttributesEntryOrBuilder
      Returns:
      The bytes for key.
    • setKey

      public GuestAttributesEntry.Builder setKey(String value)
       Key for the guest attribute entry.
       
      optional string key = 106079;
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

      public GuestAttributesEntry.Builder clearKey()
       Key for the guest attribute entry.
       
      optional string key = 106079;
      Returns:
      This builder for chaining.
    • setKeyBytes

      public GuestAttributesEntry.Builder setKeyBytes(com.google.protobuf.ByteString value)
       Key for the guest attribute entry.
       
      optional string key = 106079;
      Parameters:
      value - The bytes for key to set.
      Returns:
      This builder for chaining.
    • hasNamespace

      public boolean hasNamespace()
       Namespace for the guest attribute entry.
       
      optional string namespace = 178476379;
      Specified by:
      hasNamespace in interface GuestAttributesEntryOrBuilder
      Returns:
      Whether the namespace field is set.
    • getNamespace

      public String getNamespace()
       Namespace for the guest attribute entry.
       
      optional string namespace = 178476379;
      Specified by:
      getNamespace in interface GuestAttributesEntryOrBuilder
      Returns:
      The namespace.
    • getNamespaceBytes

      public com.google.protobuf.ByteString getNamespaceBytes()
       Namespace for the guest attribute entry.
       
      optional string namespace = 178476379;
      Specified by:
      getNamespaceBytes in interface GuestAttributesEntryOrBuilder
      Returns:
      The bytes for namespace.
    • setNamespace

      public GuestAttributesEntry.Builder setNamespace(String value)
       Namespace for the guest attribute entry.
       
      optional string namespace = 178476379;
      Parameters:
      value - The namespace to set.
      Returns:
      This builder for chaining.
    • clearNamespace

      public GuestAttributesEntry.Builder clearNamespace()
       Namespace for the guest attribute entry.
       
      optional string namespace = 178476379;
      Returns:
      This builder for chaining.
    • setNamespaceBytes

      public GuestAttributesEntry.Builder setNamespaceBytes(com.google.protobuf.ByteString value)
       Namespace for the guest attribute entry.
       
      optional string namespace = 178476379;
      Parameters:
      value - The bytes for namespace to set.
      Returns:
      This builder for chaining.
    • hasValue

      public boolean hasValue()
       Value for the guest attribute entry.
       
      optional string value = 111972721;
      Specified by:
      hasValue in interface GuestAttributesEntryOrBuilder
      Returns:
      Whether the value field is set.
    • getValue

      public String getValue()
       Value for the guest attribute entry.
       
      optional string value = 111972721;
      Specified by:
      getValue in interface GuestAttributesEntryOrBuilder
      Returns:
      The value.
    • getValueBytes

      public com.google.protobuf.ByteString getValueBytes()
       Value for the guest attribute entry.
       
      optional string value = 111972721;
      Specified by:
      getValueBytes in interface GuestAttributesEntryOrBuilder
      Returns:
      The bytes for value.
    • setValue

      public GuestAttributesEntry.Builder setValue(String value)
       Value for the guest attribute entry.
       
      optional string value = 111972721;
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public GuestAttributesEntry.Builder clearValue()
       Value for the guest attribute entry.
       
      optional string value = 111972721;
      Returns:
      This builder for chaining.
    • setValueBytes

      public GuestAttributesEntry.Builder setValueBytes(com.google.protobuf.ByteString value)
       Value for the guest attribute entry.
       
      optional string value = 111972721;
      Parameters:
      value - The bytes for value to set.
      Returns:
      This builder for chaining.