Class ReplicaConfig.Builder

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

public static final class ReplicaConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<ReplicaConfig.Builder> implements ReplicaConfigOrBuilder
 Replica configuration for the instance.
 
Protobuf type google.cloud.filestore.v1beta1.ReplicaConfig
  • 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<ReplicaConfig.Builder>
    • clear

      public ReplicaConfig.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<ReplicaConfig.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<ReplicaConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ReplicaConfig.Builder mergeFrom(ReplicaConfig other)
    • isInitialized

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

      public ReplicaConfig.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<ReplicaConfig.Builder>
      Throws:
      IOException
    • getStateValue

      public int getStateValue()
       Output only. The replica state.
       
      .google.cloud.filestore.v1beta1.ReplicaConfig.State state = 1;
      Specified by:
      getStateValue in interface ReplicaConfigOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public ReplicaConfig.Builder setStateValue(int value)
       Output only. The replica state.
       
      .google.cloud.filestore.v1beta1.ReplicaConfig.State state = 1;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public ReplicaConfig.State getState()
       Output only. The replica state.
       
      .google.cloud.filestore.v1beta1.ReplicaConfig.State state = 1;
      Specified by:
      getState in interface ReplicaConfigOrBuilder
      Returns:
      The state.
    • setState

      public ReplicaConfig.Builder setState(ReplicaConfig.State value)
       Output only. The replica state.
       
      .google.cloud.filestore.v1beta1.ReplicaConfig.State state = 1;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public ReplicaConfig.Builder clearState()
       Output only. The replica state.
       
      .google.cloud.filestore.v1beta1.ReplicaConfig.State state = 1;
      Returns:
      This builder for chaining.
    • getStateReasonsList

      public List<ReplicaConfig.StateReason> getStateReasonsList()
       Output only. Additional information about the replication state, if
       available.
       
      repeated .google.cloud.filestore.v1beta1.ReplicaConfig.StateReason state_reasons = 2;
      Specified by:
      getStateReasonsList in interface ReplicaConfigOrBuilder
      Returns:
      A list containing the stateReasons.
    • getStateReasonsCount

      public int getStateReasonsCount()
       Output only. Additional information about the replication state, if
       available.
       
      repeated .google.cloud.filestore.v1beta1.ReplicaConfig.StateReason state_reasons = 2;
      Specified by:
      getStateReasonsCount in interface ReplicaConfigOrBuilder
      Returns:
      The count of stateReasons.
    • getStateReasons

      public ReplicaConfig.StateReason getStateReasons(int index)
       Output only. Additional information about the replication state, if
       available.
       
      repeated .google.cloud.filestore.v1beta1.ReplicaConfig.StateReason state_reasons = 2;
      Specified by:
      getStateReasons in interface ReplicaConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The stateReasons at the given index.
    • setStateReasons

      public ReplicaConfig.Builder setStateReasons(int index, ReplicaConfig.StateReason value)
       Output only. Additional information about the replication state, if
       available.
       
      repeated .google.cloud.filestore.v1beta1.ReplicaConfig.StateReason state_reasons = 2;
      Parameters:
      index - The index to set the value at.
      value - The stateReasons to set.
      Returns:
      This builder for chaining.
    • addStateReasons

      public ReplicaConfig.Builder addStateReasons(ReplicaConfig.StateReason value)
       Output only. Additional information about the replication state, if
       available.
       
      repeated .google.cloud.filestore.v1beta1.ReplicaConfig.StateReason state_reasons = 2;
      Parameters:
      value - The stateReasons to add.
      Returns:
      This builder for chaining.
    • addAllStateReasons

      public ReplicaConfig.Builder addAllStateReasons(Iterable<? extends ReplicaConfig.StateReason> values)
       Output only. Additional information about the replication state, if
       available.
       
      repeated .google.cloud.filestore.v1beta1.ReplicaConfig.StateReason state_reasons = 2;
      Parameters:
      values - The stateReasons to add.
      Returns:
      This builder for chaining.
    • clearStateReasons

      public ReplicaConfig.Builder clearStateReasons()
       Output only. Additional information about the replication state, if
       available.
       
      repeated .google.cloud.filestore.v1beta1.ReplicaConfig.StateReason state_reasons = 2;
      Returns:
      This builder for chaining.
    • getStateReasonsValueList

      public List<Integer> getStateReasonsValueList()
       Output only. Additional information about the replication state, if
       available.
       
      repeated .google.cloud.filestore.v1beta1.ReplicaConfig.StateReason state_reasons = 2;
      Specified by:
      getStateReasonsValueList in interface ReplicaConfigOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for stateReasons.
    • getStateReasonsValue

      public int getStateReasonsValue(int index)
       Output only. Additional information about the replication state, if
       available.
       
      repeated .google.cloud.filestore.v1beta1.ReplicaConfig.StateReason state_reasons = 2;
      Specified by:
      getStateReasonsValue in interface ReplicaConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of stateReasons at the given index.
    • setStateReasonsValue

      public ReplicaConfig.Builder setStateReasonsValue(int index, int value)
       Output only. Additional information about the replication state, if
       available.
       
      repeated .google.cloud.filestore.v1beta1.ReplicaConfig.StateReason state_reasons = 2;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for stateReasons to set.
      Returns:
      This builder for chaining.
    • addStateReasonsValue

      public ReplicaConfig.Builder addStateReasonsValue(int value)
       Output only. Additional information about the replication state, if
       available.
       
      repeated .google.cloud.filestore.v1beta1.ReplicaConfig.StateReason state_reasons = 2;
      Parameters:
      value - The enum numeric value on the wire for stateReasons to add.
      Returns:
      This builder for chaining.
    • addAllStateReasonsValue

      public ReplicaConfig.Builder addAllStateReasonsValue(Iterable<Integer> values)
       Output only. Additional information about the replication state, if
       available.
       
      repeated .google.cloud.filestore.v1beta1.ReplicaConfig.StateReason state_reasons = 2;
      Parameters:
      values - The enum numeric values on the wire for stateReasons to add.
      Returns:
      This builder for chaining.
    • getPeerInstance

      public String getPeerInstance()
       The peer instance.
       
      string peer_instance = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getPeerInstance in interface ReplicaConfigOrBuilder
      Returns:
      The peerInstance.
    • getPeerInstanceBytes

      public com.google.protobuf.ByteString getPeerInstanceBytes()
       The peer instance.
       
      string peer_instance = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getPeerInstanceBytes in interface ReplicaConfigOrBuilder
      Returns:
      The bytes for peerInstance.
    • setPeerInstance

      public ReplicaConfig.Builder setPeerInstance(String value)
       The peer instance.
       
      string peer_instance = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The peerInstance to set.
      Returns:
      This builder for chaining.
    • clearPeerInstance

      public ReplicaConfig.Builder clearPeerInstance()
       The peer instance.
       
      string peer_instance = 3 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setPeerInstanceBytes

      public ReplicaConfig.Builder setPeerInstanceBytes(com.google.protobuf.ByteString value)
       The peer instance.
       
      string peer_instance = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for peerInstance to set.
      Returns:
      This builder for chaining.
    • hasLastActiveSyncTime

      public boolean hasLastActiveSyncTime()
       Output only. The timestamp of the latest replication snapshot taken on the
       active instance and is already replicated safely.
       
      .google.protobuf.Timestamp last_active_sync_time = 10;
      Specified by:
      hasLastActiveSyncTime in interface ReplicaConfigOrBuilder
      Returns:
      Whether the lastActiveSyncTime field is set.
    • getLastActiveSyncTime

      public com.google.protobuf.Timestamp getLastActiveSyncTime()
       Output only. The timestamp of the latest replication snapshot taken on the
       active instance and is already replicated safely.
       
      .google.protobuf.Timestamp last_active_sync_time = 10;
      Specified by:
      getLastActiveSyncTime in interface ReplicaConfigOrBuilder
      Returns:
      The lastActiveSyncTime.
    • setLastActiveSyncTime

      public ReplicaConfig.Builder setLastActiveSyncTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp of the latest replication snapshot taken on the
       active instance and is already replicated safely.
       
      .google.protobuf.Timestamp last_active_sync_time = 10;
    • setLastActiveSyncTime

      public ReplicaConfig.Builder setLastActiveSyncTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp of the latest replication snapshot taken on the
       active instance and is already replicated safely.
       
      .google.protobuf.Timestamp last_active_sync_time = 10;
    • mergeLastActiveSyncTime

      public ReplicaConfig.Builder mergeLastActiveSyncTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp of the latest replication snapshot taken on the
       active instance and is already replicated safely.
       
      .google.protobuf.Timestamp last_active_sync_time = 10;
    • clearLastActiveSyncTime

      public ReplicaConfig.Builder clearLastActiveSyncTime()
       Output only. The timestamp of the latest replication snapshot taken on the
       active instance and is already replicated safely.
       
      .google.protobuf.Timestamp last_active_sync_time = 10;
    • getLastActiveSyncTimeBuilder

      public com.google.protobuf.Timestamp.Builder getLastActiveSyncTimeBuilder()
       Output only. The timestamp of the latest replication snapshot taken on the
       active instance and is already replicated safely.
       
      .google.protobuf.Timestamp last_active_sync_time = 10;
    • getLastActiveSyncTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastActiveSyncTimeOrBuilder()
       Output only. The timestamp of the latest replication snapshot taken on the
       active instance and is already replicated safely.
       
      .google.protobuf.Timestamp last_active_sync_time = 10;
      Specified by:
      getLastActiveSyncTimeOrBuilder in interface ReplicaConfigOrBuilder