Class ReplicaConfig (1.61.0)

public final class ReplicaConfig extends GeneratedMessageV3 implements ReplicaConfigOrBuilder

Replica configuration for the instance.

Protobuf type google.cloud.filestore.v1.ReplicaConfig

Static Fields

LAST_ACTIVE_SYNC_TIME_FIELD_NUMBER

public static final int LAST_ACTIVE_SYNC_TIME_FIELD_NUMBER
Field Value
Type Description
int

PEER_INSTANCE_FIELD_NUMBER

public static final int PEER_INSTANCE_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

STATE_REASONS_FIELD_NUMBER

public static final int STATE_REASONS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ReplicaConfig getDefaultInstance()
Returns
Type Description
ReplicaConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ReplicaConfig.Builder newBuilder()
Returns
Type Description
ReplicaConfig.Builder

newBuilder(ReplicaConfig prototype)

public static ReplicaConfig.Builder newBuilder(ReplicaConfig prototype)
Parameter
Name Description
prototype ReplicaConfig
Returns
Type Description
ReplicaConfig.Builder

parseDelimitedFrom(InputStream input)

public static ReplicaConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ReplicaConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ReplicaConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplicaConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ReplicaConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ReplicaConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ReplicaConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplicaConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ReplicaConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ReplicaConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ReplicaConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplicaConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ReplicaConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ReplicaConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ReplicaConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplicaConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ReplicaConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ReplicaConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ReplicaConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplicaConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ReplicaConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ReplicaConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ReplicaConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplicaConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ReplicaConfig> parser()
Returns
Type Description
Parser<ReplicaConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ReplicaConfig getDefaultInstanceForType()
Returns
Type Description
ReplicaConfig

getLastActiveSyncTime()

public 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The lastActiveSyncTime.

getLastActiveSyncTimeOrBuilder()

public 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getParserForType()

public Parser<ReplicaConfig> getParserForType()
Returns
Type Description
Parser<ReplicaConfig>
Overrides

getPeerInstance()

public String getPeerInstance()

Optional. The peer instance.

string peer_instance = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The peerInstance.

getPeerInstanceBytes()

public ByteString getPeerInstanceBytes()

Optional. The peer instance.

string peer_instance = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for peerInstance.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public ReplicaConfig.State getState()

Output only. The replica state.

.google.cloud.filestore.v1.ReplicaConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ReplicaConfig.State

The state.

getStateReasons(int index)

public ReplicaConfig.StateReason getStateReasons(int index)

Output only. Additional information about the replication state, if available.

repeated .google.cloud.filestore.v1.ReplicaConfig.StateReason state_reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
ReplicaConfig.StateReason

The stateReasons at the given index.

getStateReasonsCount()

public int getStateReasonsCount()

Output only. Additional information about the replication state, if available.

repeated .google.cloud.filestore.v1.ReplicaConfig.StateReason state_reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of stateReasons.

getStateReasonsList()

public List<ReplicaConfig.StateReason> getStateReasonsList()

Output only. Additional information about the replication state, if available.

repeated .google.cloud.filestore.v1.ReplicaConfig.StateReason state_reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<StateReason>

A list containing the stateReasons.

getStateReasonsValue(int index)

public int getStateReasonsValue(int index)

Output only. Additional information about the replication state, if available.

repeated .google.cloud.filestore.v1.ReplicaConfig.StateReason state_reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of stateReasons at the given index.

getStateReasonsValueList()

public List<Integer> getStateReasonsValueList()

Output only. Additional information about the replication state, if available.

repeated .google.cloud.filestore.v1.ReplicaConfig.StateReason state_reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for stateReasons.

getStateValue()

public int getStateValue()

Output only. The replica state.

.google.cloud.filestore.v1.ReplicaConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the lastActiveSyncTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ReplicaConfig.Builder newBuilderForType()
Returns
Type Description
ReplicaConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ReplicaConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ReplicaConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ReplicaConfig.Builder toBuilder()
Returns
Type Description
ReplicaConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException