Class InstancesSetNameRequest.Builder

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

public static final class InstancesSetNameRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<InstancesSetNameRequest.Builder> implements InstancesSetNameRequestOrBuilder
 
Protobuf type google.cloud.compute.v1.InstancesSetNameRequest
  • 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<InstancesSetNameRequest.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<InstancesSetNameRequest.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<InstancesSetNameRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public InstancesSetNameRequest.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<InstancesSetNameRequest.Builder>
      Throws:
      IOException
    • hasCurrentName

      public boolean hasCurrentName()
       The current name of this resource, used to prevent conflicts. Provide the
       latest name when making a request to change name.
       
      optional string current_name = 394983825;
      Specified by:
      hasCurrentName in interface InstancesSetNameRequestOrBuilder
      Returns:
      Whether the currentName field is set.
    • getCurrentName

      public String getCurrentName()
       The current name of this resource, used to prevent conflicts. Provide the
       latest name when making a request to change name.
       
      optional string current_name = 394983825;
      Specified by:
      getCurrentName in interface InstancesSetNameRequestOrBuilder
      Returns:
      The currentName.
    • getCurrentNameBytes

      public com.google.protobuf.ByteString getCurrentNameBytes()
       The current name of this resource, used to prevent conflicts. Provide the
       latest name when making a request to change name.
       
      optional string current_name = 394983825;
      Specified by:
      getCurrentNameBytes in interface InstancesSetNameRequestOrBuilder
      Returns:
      The bytes for currentName.
    • setCurrentName

      public InstancesSetNameRequest.Builder setCurrentName(String value)
       The current name of this resource, used to prevent conflicts. Provide the
       latest name when making a request to change name.
       
      optional string current_name = 394983825;
      Parameters:
      value - The currentName to set.
      Returns:
      This builder for chaining.
    • clearCurrentName

      public InstancesSetNameRequest.Builder clearCurrentName()
       The current name of this resource, used to prevent conflicts. Provide the
       latest name when making a request to change name.
       
      optional string current_name = 394983825;
      Returns:
      This builder for chaining.
    • setCurrentNameBytes

      public InstancesSetNameRequest.Builder setCurrentNameBytes(com.google.protobuf.ByteString value)
       The current name of this resource, used to prevent conflicts. Provide the
       latest name when making a request to change name.
       
      optional string current_name = 394983825;
      Parameters:
      value - The bytes for currentName to set.
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       The name to be applied to the instance. Needs to be RFC 1035 compliant.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface InstancesSetNameRequestOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       The name to be applied to the instance. Needs to be RFC 1035 compliant.
       
      optional string name = 3373707;
      Specified by:
      getName in interface InstancesSetNameRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name to be applied to the instance. Needs to be RFC 1035 compliant.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface InstancesSetNameRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public InstancesSetNameRequest.Builder setName(String value)
       The name to be applied to the instance. Needs to be RFC 1035 compliant.
       
      optional string name = 3373707;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public InstancesSetNameRequest.Builder clearName()
       The name to be applied to the instance. Needs to be RFC 1035 compliant.
       
      optional string name = 3373707;
      Returns:
      This builder for chaining.
    • setNameBytes

      public InstancesSetNameRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name to be applied to the instance. Needs to be RFC 1035 compliant.
       
      optional string name = 3373707;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.