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 Summary
Modifier and TypeMethodDescriptionaddAllStateReasons(Iterable<? extends ReplicaConfig.StateReason> values) Output only.addAllStateReasonsValue(Iterable<Integer> values) Output only.Output only.addStateReasonsValue(int value) Output only.build()clear()Output only.The peer instance.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.The peer instance.com.google.protobuf.ByteStringThe peer instance.getState()Output only.getStateReasons(int index) Output only.intOutput only.Output only.intgetStateReasonsValue(int index) Output only.Output only.intOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ReplicaConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLastActiveSyncTime(com.google.protobuf.Timestamp value) Output only.setLastActiveSyncTime(com.google.protobuf.Timestamp value) Output only.setLastActiveSyncTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setPeerInstance(String value) The peer instance.setPeerInstanceBytes(com.google.protobuf.ByteString value) The peer instance.setState(ReplicaConfig.State value) Output only.setStateReasons(int index, ReplicaConfig.StateReason value) Output only.setStateReasonsValue(int index, int value) Output only.setStateValue(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ReplicaConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ReplicaConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ReplicaConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReplicaConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getStateValuein interfaceReplicaConfigOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
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
Output only. The replica state.
.google.cloud.filestore.v1beta1.ReplicaConfig.State state = 1;- Specified by:
getStatein interfaceReplicaConfigOrBuilder- Returns:
- The state.
-
setState
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
Output only. The replica state.
.google.cloud.filestore.v1beta1.ReplicaConfig.State state = 1;- Returns:
- This builder for chaining.
-
getStateReasonsList
Output only. Additional information about the replication state, if available.
repeated .google.cloud.filestore.v1beta1.ReplicaConfig.StateReason state_reasons = 2;- Specified by:
getStateReasonsListin interfaceReplicaConfigOrBuilder- 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:
getStateReasonsCountin interfaceReplicaConfigOrBuilder- Returns:
- The count of stateReasons.
-
getStateReasons
Output only. Additional information about the replication state, if available.
repeated .google.cloud.filestore.v1beta1.ReplicaConfig.StateReason state_reasons = 2;- Specified by:
getStateReasonsin interfaceReplicaConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The stateReasons at the given index.
-
setStateReasons
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
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
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
Output only. Additional information about the replication state, if available.
repeated .google.cloud.filestore.v1beta1.ReplicaConfig.StateReason state_reasons = 2;- Specified by:
getStateReasonsValueListin interfaceReplicaConfigOrBuilder- 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:
getStateReasonsValuein interfaceReplicaConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of stateReasons at the given index.
-
setStateReasonsValue
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
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
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
The peer instance.
string peer_instance = 3 [(.google.api.resource_reference) = { ... }- Specified by:
getPeerInstancein interfaceReplicaConfigOrBuilder- Returns:
- The peerInstance.
-
getPeerInstanceBytes
public com.google.protobuf.ByteString getPeerInstanceBytes()The peer instance.
string peer_instance = 3 [(.google.api.resource_reference) = { ... }- Specified by:
getPeerInstanceBytesin interfaceReplicaConfigOrBuilder- Returns:
- The bytes for peerInstance.
-
setPeerInstance
The peer instance.
string peer_instance = 3 [(.google.api.resource_reference) = { ... }- Parameters:
value- The peerInstance to set.- Returns:
- This builder for chaining.
-
clearPeerInstance
The peer instance.
string peer_instance = 3 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setPeerInstanceBytes
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:
hasLastActiveSyncTimein interfaceReplicaConfigOrBuilder- 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:
getLastActiveSyncTimein interfaceReplicaConfigOrBuilder- Returns:
- The lastActiveSyncTime.
-
setLastActiveSyncTime
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
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
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:
getLastActiveSyncTimeOrBuilderin interfaceReplicaConfigOrBuilder
-