Class PromoteReplicaRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PromoteReplicaRequest.Builder>
com.google.cloud.filestore.v1beta1.PromoteReplicaRequest.Builder
All Implemented Interfaces:
PromoteReplicaRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PromoteReplicaRequest

public static final class PromoteReplicaRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<PromoteReplicaRequest.Builder> implements PromoteReplicaRequestOrBuilder
 PromoteReplicaRequest promotes a Filestore standby instance (replica).
 
Protobuf type google.cloud.filestore.v1beta1.PromoteReplicaRequest
  • 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<PromoteReplicaRequest.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<PromoteReplicaRequest.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<PromoteReplicaRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public PromoteReplicaRequest.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<PromoteReplicaRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The resource name of the instance, in the format
       `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface PromoteReplicaRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The resource name of the instance, in the format
       `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface PromoteReplicaRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public PromoteReplicaRequest.Builder setName(String value)
       Required. The resource name of the instance, in the format
       `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public PromoteReplicaRequest.Builder clearName()
       Required. The resource name of the instance, in the format
       `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public PromoteReplicaRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the instance, in the format
       `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getPeerInstance

      public String getPeerInstance()
       Optional. The resource name of the peer instance to promote, in the format
       `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
       The peer instance is required if the operation is called on an active
       instance.
       
      string peer_instance = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getPeerInstance in interface PromoteReplicaRequestOrBuilder
      Returns:
      The peerInstance.
    • getPeerInstanceBytes

      public com.google.protobuf.ByteString getPeerInstanceBytes()
       Optional. The resource name of the peer instance to promote, in the format
       `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
       The peer instance is required if the operation is called on an active
       instance.
       
      string peer_instance = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getPeerInstanceBytes in interface PromoteReplicaRequestOrBuilder
      Returns:
      The bytes for peerInstance.
    • setPeerInstance

      public PromoteReplicaRequest.Builder setPeerInstance(String value)
       Optional. The resource name of the peer instance to promote, in the format
       `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
       The peer instance is required if the operation is called on an active
       instance.
       
      string peer_instance = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The peerInstance to set.
      Returns:
      This builder for chaining.
    • clearPeerInstance

      public PromoteReplicaRequest.Builder clearPeerInstance()
       Optional. The resource name of the peer instance to promote, in the format
       `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
       The peer instance is required if the operation is called on an active
       instance.
       
      string peer_instance = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setPeerInstanceBytes

      public PromoteReplicaRequest.Builder setPeerInstanceBytes(com.google.protobuf.ByteString value)
       Optional. The resource name of the peer instance to promote, in the format
       `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
       The peer instance is required if the operation is called on an active
       instance.
       
      string peer_instance = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for peerInstance to set.
      Returns:
      This builder for chaining.