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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicationSlaveInfo.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.GeneratedMessageV3.Builder<ReplicationSlaveInfo.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.GeneratedMessageV3.Builder<ReplicationSlaveInfo.Builder>
    • getDefaultInstanceForType

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

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

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicationSlaveInfo.Builder>
    • setField

      public ReplicationSlaveInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicationSlaveInfo.Builder>
    • clearField

      public ReplicationSlaveInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicationSlaveInfo.Builder>
    • clearOneof

      public ReplicationSlaveInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicationSlaveInfo.Builder>
    • addRepeatedField

      public ReplicationSlaveInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicationSlaveInfo.Builder>
    • mergeFrom

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 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<ReplicationSlaveInfo.Builder>
      Throws:
      IOException
    • hasInstance

      public boolean hasInstance()
       Yamcs instance name
       
      optional string instance = 1;
      Specified by:
      hasInstance in interface ReplicationSlaveInfoOrBuilder
      Returns:
      Whether the instance field is set.
    • getInstance

      public String getInstance()
       Yamcs instance name
       
      optional string instance = 1;
      Specified by:
      getInstance in interface ReplicationSlaveInfoOrBuilder
      Returns:
      The instance.
    • getInstanceBytes

      public com.google.protobuf.ByteString getInstanceBytes()
       Yamcs instance name
       
      optional string instance = 1;
      Specified by:
      getInstanceBytes in interface ReplicationSlaveInfoOrBuilder
      Returns:
      The bytes for instance.
    • setInstance

      public ReplicationSlaveInfo.Builder setInstance(String value)
       Yamcs instance name
       
      optional string instance = 1;
      Parameters:
      value - The instance to set.
      Returns:
      This builder for chaining.
    • clearInstance

      public ReplicationSlaveInfo.Builder clearInstance()
       Yamcs instance name
       
      optional string instance = 1;
      Returns:
      This builder for chaining.
    • setInstanceBytes

      public ReplicationSlaveInfo.Builder setInstanceBytes(com.google.protobuf.ByteString value)
       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 interface ReplicationSlaveInfoOrBuilder
      Returns:
      A list containing the streams.
    • getStreamsCount

      public int getStreamsCount()
      repeated string streams = 2;
      Specified by:
      getStreamsCount in interface ReplicationSlaveInfoOrBuilder
      Returns:
      The count of streams.
    • getStreams

      public String getStreams(int index)
      repeated string streams = 2;
      Specified by:
      getStreams in interface ReplicationSlaveInfoOrBuilder
      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 interface ReplicationSlaveInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the streams at the given index.
    • setStreams

      public ReplicationSlaveInfo.Builder setStreams(int index, String value)
      repeated string streams = 2;
      Parameters:
      index - The index to set the value at.
      value - The streams to set.
      Returns:
      This builder for chaining.
    • addStreams

      public ReplicationSlaveInfo.Builder addStreams(String value)
      repeated string streams = 2;
      Parameters:
      value - The streams to add.
      Returns:
      This builder for chaining.
    • addAllStreams

      public ReplicationSlaveInfo.Builder addAllStreams(Iterable<String> values)
      repeated string streams = 2;
      Parameters:
      values - The streams to add.
      Returns:
      This builder for chaining.
    • clearStreams

      public ReplicationSlaveInfo.Builder clearStreams()
      repeated string streams = 2;
      Returns:
      This builder for chaining.
    • addStreamsBytes

      public ReplicationSlaveInfo.Builder addStreamsBytes(com.google.protobuf.ByteString value)
      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 interface ReplicationSlaveInfoOrBuilder
      Returns:
      Whether the localAddress field is set.
    • getLocalAddress

      public String getLocalAddress()
      optional string localAddress = 3;
      Specified by:
      getLocalAddress in interface ReplicationSlaveInfoOrBuilder
      Returns:
      The localAddress.
    • getLocalAddressBytes

      public com.google.protobuf.ByteString getLocalAddressBytes()
      optional string localAddress = 3;
      Specified by:
      getLocalAddressBytes in interface ReplicationSlaveInfoOrBuilder
      Returns:
      The bytes for localAddress.
    • setLocalAddress

      public ReplicationSlaveInfo.Builder setLocalAddress(String value)
      optional string localAddress = 3;
      Parameters:
      value - The localAddress to set.
      Returns:
      This builder for chaining.
    • clearLocalAddress

      public ReplicationSlaveInfo.Builder clearLocalAddress()
      optional string localAddress = 3;
      Returns:
      This builder for chaining.
    • setLocalAddressBytes

      public ReplicationSlaveInfo.Builder setLocalAddressBytes(com.google.protobuf.ByteString value)
      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 interface ReplicationSlaveInfoOrBuilder
      Returns:
      Whether the remoteAddress field is set.
    • getRemoteAddress

      public String getRemoteAddress()
      optional string remoteAddress = 4;
      Specified by:
      getRemoteAddress in interface ReplicationSlaveInfoOrBuilder
      Returns:
      The remoteAddress.
    • getRemoteAddressBytes

      public com.google.protobuf.ByteString getRemoteAddressBytes()
      optional string remoteAddress = 4;
      Specified by:
      getRemoteAddressBytes in interface ReplicationSlaveInfoOrBuilder
      Returns:
      The bytes for remoteAddress.
    • setRemoteAddress

      public ReplicationSlaveInfo.Builder setRemoteAddress(String value)
      optional string remoteAddress = 4;
      Parameters:
      value - The remoteAddress to set.
      Returns:
      This builder for chaining.
    • clearRemoteAddress

      public ReplicationSlaveInfo.Builder clearRemoteAddress()
      optional string remoteAddress = 4;
      Returns:
      This builder for chaining.
    • setRemoteAddressBytes

      public ReplicationSlaveInfo.Builder setRemoteAddressBytes(com.google.protobuf.ByteString value)
      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 interface ReplicationSlaveInfoOrBuilder
      Returns:
      Whether the push field is set.
    • getPush

      public boolean getPush()
      optional bool push = 5;
      Specified by:
      getPush in interface ReplicationSlaveInfoOrBuilder
      Returns:
      The push.
    • setPush

      public ReplicationSlaveInfo.Builder setPush(boolean value)
      optional bool push = 5;
      Parameters:
      value - The push to set.
      Returns:
      This builder for chaining.
    • clearPush

      public ReplicationSlaveInfo.Builder clearPush()
      optional bool push = 5;
      Returns:
      This builder for chaining.
    • hasPullFrom

      public boolean hasPullFrom()
      optional string pullFrom = 6;
      Specified by:
      hasPullFrom in interface ReplicationSlaveInfoOrBuilder
      Returns:
      Whether the pullFrom field is set.
    • getPullFrom

      public String getPullFrom()
      optional string pullFrom = 6;
      Specified by:
      getPullFrom in interface ReplicationSlaveInfoOrBuilder
      Returns:
      The pullFrom.
    • getPullFromBytes

      public com.google.protobuf.ByteString getPullFromBytes()
      optional string pullFrom = 6;
      Specified by:
      getPullFromBytes in interface ReplicationSlaveInfoOrBuilder
      Returns:
      The bytes for pullFrom.
    • setPullFrom

      public ReplicationSlaveInfo.Builder setPullFrom(String value)
      optional string pullFrom = 6;
      Parameters:
      value - The pullFrom to set.
      Returns:
      This builder for chaining.
    • clearPullFrom

      public ReplicationSlaveInfo.Builder clearPullFrom()
      optional string pullFrom = 6;
      Returns:
      This builder for chaining.
    • setPullFromBytes

      public ReplicationSlaveInfo.Builder setPullFromBytes(com.google.protobuf.ByteString value)
      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 interface ReplicationSlaveInfoOrBuilder
      Returns:
      Whether the tx field is set.
    • getTx

      public long getTx()
      optional int64 tx = 7;
      Specified by:
      getTx in interface ReplicationSlaveInfoOrBuilder
      Returns:
      The tx.
    • setTx

      public ReplicationSlaveInfo.Builder setTx(long value)
      optional int64 tx = 7;
      Parameters:
      value - The tx to set.
      Returns:
      This builder for chaining.
    • clearTx

      public ReplicationSlaveInfo.Builder 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 interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicationSlaveInfo.Builder>
    • mergeUnknownFields

      public final ReplicationSlaveInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicationSlaveInfo.Builder>