Package org.yamcs.protobuf
Class ReplicationSlaveInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<ReplicationSlaveInfo.Builder>
org.yamcs.protobuf.ReplicationSlaveInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,ReplicationSlaveInfoOrBuilder
- Enclosing class:
- ReplicationSlaveInfo
public static final class ReplicationSlaveInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ReplicationSlaveInfo.Builder>
implements ReplicationSlaveInfoOrBuilder
Protobuf type
yamcs.protobuf.replication.ReplicationSlaveInfo
-
Method Summary
Modifier and TypeMethodDescriptionaddAllStreams
(Iterable<String> values) repeated string streams = 2;
addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addStreams
(String value) repeated string streams = 2;
addStreamsBytes
(com.google.protobuf.ByteString value) repeated string streams = 2;
build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Yamcs instance nameoptional string localAddress = 3;
clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) optional string pullFrom = 6;
optional bool push = 5;
optional string remoteAddress = 4;
repeated string streams = 2;
clearTx()
optional int64 tx = 7;
clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Yamcs instance namecom.google.protobuf.ByteString
Yamcs instance nameoptional string localAddress = 3;
com.google.protobuf.ByteString
optional string localAddress = 3;
optional string pullFrom = 6;
com.google.protobuf.ByteString
optional string pullFrom = 6;
boolean
getPush()
optional bool push = 5;
optional string remoteAddress = 4;
com.google.protobuf.ByteString
optional string remoteAddress = 4;
getStreams
(int index) repeated string streams = 2;
com.google.protobuf.ByteString
getStreamsBytes
(int index) repeated string streams = 2;
int
repeated string streams = 2;
com.google.protobuf.ProtocolStringList
repeated string streams = 2;
long
getTx()
optional int64 tx = 7;
boolean
Yamcs instance nameboolean
optional string localAddress = 3;
boolean
optional string pullFrom = 6;
boolean
hasPush()
optional bool push = 5;
boolean
optional string remoteAddress = 4;
boolean
hasTx()
optional int64 tx = 7;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(ReplicationSlaveInfo other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setInstance
(String value) Yamcs instance namesetInstanceBytes
(com.google.protobuf.ByteString value) Yamcs instance namesetLocalAddress
(String value) optional string localAddress = 3;
setLocalAddressBytes
(com.google.protobuf.ByteString value) optional string localAddress = 3;
setPullFrom
(String value) optional string pullFrom = 6;
setPullFromBytes
(com.google.protobuf.ByteString value) optional string pullFrom = 6;
setPush
(boolean value) optional bool push = 5;
setRemoteAddress
(String value) optional string remoteAddress = 4;
setRemoteAddressBytes
(com.google.protobuf.ByteString value) optional string remoteAddress = 4;
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStreams
(int index, String value) repeated string streams = 2;
setTx
(long value) optional int64 tx = 7;
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplicationSlaveInfo.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplicationSlaveInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplicationSlaveInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplicationSlaveInfo.Builder>
-
setField
public ReplicationSlaveInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplicationSlaveInfo.Builder>
-
clearField
public ReplicationSlaveInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplicationSlaveInfo.Builder>
-
clearOneof
public ReplicationSlaveInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplicationSlaveInfo.Builder>
-
setRepeatedField
public ReplicationSlaveInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplicationSlaveInfo.Builder>
-
addRepeatedField
public ReplicationSlaveInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplicationSlaveInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ReplicationSlaveInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplicationSlaveInfo.Builder>
-
mergeFrom
public ReplicationSlaveInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ReplicationSlaveInfo.Builder>
- Throws:
IOException
-
hasInstance
public boolean hasInstance()Yamcs instance name
optional string instance = 1;
- Specified by:
hasInstance
in interfaceReplicationSlaveInfoOrBuilder
- Returns:
- Whether the instance field is set.
-
getInstance
Yamcs instance name
optional string instance = 1;
- Specified by:
getInstance
in interfaceReplicationSlaveInfoOrBuilder
- Returns:
- The instance.
-
getInstanceBytes
public com.google.protobuf.ByteString getInstanceBytes()Yamcs instance name
optional string instance = 1;
- Specified by:
getInstanceBytes
in interfaceReplicationSlaveInfoOrBuilder
- Returns:
- The bytes for instance.
-
setInstance
Yamcs instance name
optional string instance = 1;
- Parameters:
value
- The instance to set.- Returns:
- This builder for chaining.
-
clearInstance
Yamcs instance name
optional string instance = 1;
- Returns:
- This builder for chaining.
-
setInstanceBytes
Yamcs instance name
optional string instance = 1;
- Parameters:
value
- The bytes for instance to set.- Returns:
- This builder for chaining.
-
getStreamsList
public com.google.protobuf.ProtocolStringList getStreamsList()repeated string streams = 2;
- Specified by:
getStreamsList
in interfaceReplicationSlaveInfoOrBuilder
- Returns:
- A list containing the streams.
-
getStreamsCount
public int getStreamsCount()repeated string streams = 2;
- Specified by:
getStreamsCount
in interfaceReplicationSlaveInfoOrBuilder
- Returns:
- The count of streams.
-
getStreams
repeated string streams = 2;
- Specified by:
getStreams
in interfaceReplicationSlaveInfoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The streams at the given index.
-
getStreamsBytes
public com.google.protobuf.ByteString getStreamsBytes(int index) repeated string streams = 2;
- Specified by:
getStreamsBytes
in interfaceReplicationSlaveInfoOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the streams at the given index.
-
setStreams
repeated string streams = 2;
- Parameters:
index
- The index to set the value at.value
- The streams to set.- Returns:
- This builder for chaining.
-
addStreams
repeated string streams = 2;
- Parameters:
value
- The streams to add.- Returns:
- This builder for chaining.
-
addAllStreams
repeated string streams = 2;
- Parameters:
values
- The streams to add.- Returns:
- This builder for chaining.
-
clearStreams
repeated string streams = 2;
- Returns:
- This builder for chaining.
-
addStreamsBytes
repeated string streams = 2;
- Parameters:
value
- The bytes of the streams to add.- Returns:
- This builder for chaining.
-
hasLocalAddress
public boolean hasLocalAddress()optional string localAddress = 3;
- Specified by:
hasLocalAddress
in interfaceReplicationSlaveInfoOrBuilder
- Returns:
- Whether the localAddress field is set.
-
getLocalAddress
optional string localAddress = 3;
- Specified by:
getLocalAddress
in interfaceReplicationSlaveInfoOrBuilder
- Returns:
- The localAddress.
-
getLocalAddressBytes
public com.google.protobuf.ByteString getLocalAddressBytes()optional string localAddress = 3;
- Specified by:
getLocalAddressBytes
in interfaceReplicationSlaveInfoOrBuilder
- Returns:
- The bytes for localAddress.
-
setLocalAddress
optional string localAddress = 3;
- Parameters:
value
- The localAddress to set.- Returns:
- This builder for chaining.
-
clearLocalAddress
optional string localAddress = 3;
- Returns:
- This builder for chaining.
-
setLocalAddressBytes
optional string localAddress = 3;
- Parameters:
value
- The bytes for localAddress to set.- Returns:
- This builder for chaining.
-
hasRemoteAddress
public boolean hasRemoteAddress()optional string remoteAddress = 4;
- Specified by:
hasRemoteAddress
in interfaceReplicationSlaveInfoOrBuilder
- Returns:
- Whether the remoteAddress field is set.
-
getRemoteAddress
optional string remoteAddress = 4;
- Specified by:
getRemoteAddress
in interfaceReplicationSlaveInfoOrBuilder
- Returns:
- The remoteAddress.
-
getRemoteAddressBytes
public com.google.protobuf.ByteString getRemoteAddressBytes()optional string remoteAddress = 4;
- Specified by:
getRemoteAddressBytes
in interfaceReplicationSlaveInfoOrBuilder
- Returns:
- The bytes for remoteAddress.
-
setRemoteAddress
optional string remoteAddress = 4;
- Parameters:
value
- The remoteAddress to set.- Returns:
- This builder for chaining.
-
clearRemoteAddress
optional string remoteAddress = 4;
- Returns:
- This builder for chaining.
-
setRemoteAddressBytes
optional string remoteAddress = 4;
- Parameters:
value
- The bytes for remoteAddress to set.- Returns:
- This builder for chaining.
-
hasPush
public boolean hasPush()optional bool push = 5;
- Specified by:
hasPush
in interfaceReplicationSlaveInfoOrBuilder
- Returns:
- Whether the push field is set.
-
getPush
public boolean getPush()optional bool push = 5;
- Specified by:
getPush
in interfaceReplicationSlaveInfoOrBuilder
- Returns:
- The push.
-
setPush
optional bool push = 5;
- Parameters:
value
- The push to set.- Returns:
- This builder for chaining.
-
clearPush
optional bool push = 5;
- Returns:
- This builder for chaining.
-
hasPullFrom
public boolean hasPullFrom()optional string pullFrom = 6;
- Specified by:
hasPullFrom
in interfaceReplicationSlaveInfoOrBuilder
- Returns:
- Whether the pullFrom field is set.
-
getPullFrom
optional string pullFrom = 6;
- Specified by:
getPullFrom
in interfaceReplicationSlaveInfoOrBuilder
- Returns:
- The pullFrom.
-
getPullFromBytes
public com.google.protobuf.ByteString getPullFromBytes()optional string pullFrom = 6;
- Specified by:
getPullFromBytes
in interfaceReplicationSlaveInfoOrBuilder
- Returns:
- The bytes for pullFrom.
-
setPullFrom
optional string pullFrom = 6;
- Parameters:
value
- The pullFrom to set.- Returns:
- This builder for chaining.
-
clearPullFrom
optional string pullFrom = 6;
- Returns:
- This builder for chaining.
-
setPullFromBytes
optional string pullFrom = 6;
- Parameters:
value
- The bytes for pullFrom to set.- Returns:
- This builder for chaining.
-
hasTx
public boolean hasTx()optional int64 tx = 7;
- Specified by:
hasTx
in interfaceReplicationSlaveInfoOrBuilder
- Returns:
- Whether the tx field is set.
-
getTx
public long getTx()optional int64 tx = 7;
- Specified by:
getTx
in interfaceReplicationSlaveInfoOrBuilder
- Returns:
- The tx.
-
setTx
optional int64 tx = 7;
- Parameters:
value
- The tx to set.- Returns:
- This builder for chaining.
-
clearTx
optional int64 tx = 7;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final ReplicationSlaveInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplicationSlaveInfo.Builder>
-
mergeUnknownFields
public final ReplicationSlaveInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplicationSlaveInfo.Builder>
-