Class Compute.DestroyInstanceRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Compute.DestroyInstanceRequest.Builder>
com.google.protobuf.GeneratedMessage.Builder<Compute.DestroyInstanceRequest.Builder>
namespace.cloud.compute.v1beta.Compute.DestroyInstanceRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Compute.DestroyInstanceRequestOrBuilder
Enclosing class:
Compute.DestroyInstanceRequest

public static final class Compute.DestroyInstanceRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<Compute.DestroyInstanceRequest.Builder> implements Compute.DestroyInstanceRequestOrBuilder
Protobuf type namespace.cloud.compute.v1beta.DestroyInstanceRequest
  • 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<Compute.DestroyInstanceRequest.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<Compute.DestroyInstanceRequest.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<Compute.DestroyInstanceRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public Compute.DestroyInstanceRequest.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<Compute.DestroyInstanceRequest.Builder>
      Throws:
      IOException
    • getInstanceId

      public String getInstanceId()
       The ID of instance which this call targets.
       
      string instance_id = 1;
      Specified by:
      getInstanceId in interface Compute.DestroyInstanceRequestOrBuilder
      Returns:
      The instanceId.
    • getInstanceIdBytes

      public com.google.protobuf.ByteString getInstanceIdBytes()
       The ID of instance which this call targets.
       
      string instance_id = 1;
      Specified by:
      getInstanceIdBytes in interface Compute.DestroyInstanceRequestOrBuilder
      Returns:
      The bytes for instanceId.
    • setInstanceId

      public Compute.DestroyInstanceRequest.Builder setInstanceId(String value)
       The ID of instance which this call targets.
       
      string instance_id = 1;
      Parameters:
      value - The instanceId to set.
      Returns:
      This builder for chaining.
    • clearInstanceId

      public Compute.DestroyInstanceRequest.Builder clearInstanceId()
       The ID of instance which this call targets.
       
      string instance_id = 1;
      Returns:
      This builder for chaining.
    • setInstanceIdBytes

      public Compute.DestroyInstanceRequest.Builder setInstanceIdBytes(com.google.protobuf.ByteString value)
       The ID of instance which this call targets.
       
      string instance_id = 1;
      Parameters:
      value - The bytes for instanceId to set.
      Returns:
      This builder for chaining.
    • getReason

      public String getReason()
       The reason of destruction is persisted with the instance and can be
       retrieved later.
       
      string reason = 2;
      Specified by:
      getReason in interface Compute.DestroyInstanceRequestOrBuilder
      Returns:
      The reason.
    • getReasonBytes

      public com.google.protobuf.ByteString getReasonBytes()
       The reason of destruction is persisted with the instance and can be
       retrieved later.
       
      string reason = 2;
      Specified by:
      getReasonBytes in interface Compute.DestroyInstanceRequestOrBuilder
      Returns:
      The bytes for reason.
    • setReason

       The reason of destruction is persisted with the instance and can be
       retrieved later.
       
      string reason = 2;
      Parameters:
      value - The reason to set.
      Returns:
      This builder for chaining.
    • clearReason

       The reason of destruction is persisted with the instance and can be
       retrieved later.
       
      string reason = 2;
      Returns:
      This builder for chaining.
    • setReasonBytes

      public Compute.DestroyInstanceRequest.Builder setReasonBytes(com.google.protobuf.ByteString value)
       The reason of destruction is persisted with the instance and can be
       retrieved later.
       
      string reason = 2;
      Parameters:
      value - The bytes for reason to set.
      Returns:
      This builder for chaining.