Class ReplicationMasterInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<ReplicationMasterInfo.Builder>
org.yamcs.protobuf.ReplicationMasterInfo.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, ReplicationMasterInfoOrBuilder
Enclosing class:
ReplicationMasterInfo

public static final class ReplicationMasterInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ReplicationMasterInfo.Builder> implements ReplicationMasterInfoOrBuilder
Protobuf type yamcs.protobuf.replication.ReplicationMasterInfo
  • 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<ReplicationMasterInfo.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<ReplicationMasterInfo.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<ReplicationMasterInfo.Builder>
    • getDefaultInstanceForType

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

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

      public ReplicationMasterInfo 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<ReplicationMasterInfo.Builder>
    • setField

      public ReplicationMasterInfo.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<ReplicationMasterInfo.Builder>
    • clearField

      public ReplicationMasterInfo.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<ReplicationMasterInfo.Builder>
    • clearOneof

      public ReplicationMasterInfo.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<ReplicationMasterInfo.Builder>
    • setRepeatedField

      public ReplicationMasterInfo.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<ReplicationMasterInfo.Builder>
    • addRepeatedField

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

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

      public ReplicationMasterInfo.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<ReplicationMasterInfo.Builder>
      Throws:
      IOException
    • hasInstance

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

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

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

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

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

      public ReplicationMasterInfo.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 ReplicationMasterInfoOrBuilder
      Returns:
      A list containing the streams.
    • getStreamsCount

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

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

      public ReplicationMasterInfo.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 ReplicationMasterInfo.Builder addStreams(String value)
      repeated string streams = 2;
      Parameters:
      value - The streams to add.
      Returns:
      This builder for chaining.
    • addAllStreams

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

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

      public ReplicationMasterInfo.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 ReplicationMasterInfoOrBuilder
      Returns:
      Whether the localAddress field is set.
    • getLocalAddress

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

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

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

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

      public ReplicationMasterInfo.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 ReplicationMasterInfoOrBuilder
      Returns:
      Whether the remoteAddress field is set.
    • getRemoteAddress

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

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

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

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

      public ReplicationMasterInfo.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 ReplicationMasterInfoOrBuilder
      Returns:
      Whether the push field is set.
    • getPush

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

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

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

      public boolean hasPushTo()
      optional string pushTo = 6;
      Specified by:
      hasPushTo in interface ReplicationMasterInfoOrBuilder
      Returns:
      Whether the pushTo field is set.
    • getPushTo

      public String getPushTo()
      optional string pushTo = 6;
      Specified by:
      getPushTo in interface ReplicationMasterInfoOrBuilder
      Returns:
      The pushTo.
    • getPushToBytes

      public com.google.protobuf.ByteString getPushToBytes()
      optional string pushTo = 6;
      Specified by:
      getPushToBytes in interface ReplicationMasterInfoOrBuilder
      Returns:
      The bytes for pushTo.
    • setPushTo

      public ReplicationMasterInfo.Builder setPushTo(String value)
      optional string pushTo = 6;
      Parameters:
      value - The pushTo to set.
      Returns:
      This builder for chaining.
    • clearPushTo

      public ReplicationMasterInfo.Builder clearPushTo()
      optional string pushTo = 6;
      Returns:
      This builder for chaining.
    • setPushToBytes

      public ReplicationMasterInfo.Builder setPushToBytes(com.google.protobuf.ByteString value)
      optional string pushTo = 6;
      Parameters:
      value - The bytes for pushTo to set.
      Returns:
      This builder for chaining.
    • hasLocalTx

      public boolean hasLocalTx()
      optional int64 localTx = 7;
      Specified by:
      hasLocalTx in interface ReplicationMasterInfoOrBuilder
      Returns:
      Whether the localTx field is set.
    • getLocalTx

      public long getLocalTx()
      optional int64 localTx = 7;
      Specified by:
      getLocalTx in interface ReplicationMasterInfoOrBuilder
      Returns:
      The localTx.
    • setLocalTx

      public ReplicationMasterInfo.Builder setLocalTx(long value)
      optional int64 localTx = 7;
      Parameters:
      value - The localTx to set.
      Returns:
      This builder for chaining.
    • clearLocalTx

      public ReplicationMasterInfo.Builder clearLocalTx()
      optional int64 localTx = 7;
      Returns:
      This builder for chaining.
    • hasNextTx

      public boolean hasNextTx()
      optional int64 nextTx = 8;
      Specified by:
      hasNextTx in interface ReplicationMasterInfoOrBuilder
      Returns:
      Whether the nextTx field is set.
    • getNextTx

      public long getNextTx()
      optional int64 nextTx = 8;
      Specified by:
      getNextTx in interface ReplicationMasterInfoOrBuilder
      Returns:
      The nextTx.
    • setNextTx

      public ReplicationMasterInfo.Builder setNextTx(long value)
      optional int64 nextTx = 8;
      Parameters:
      value - The nextTx to set.
      Returns:
      This builder for chaining.
    • clearNextTx

      public ReplicationMasterInfo.Builder clearNextTx()
      optional int64 nextTx = 8;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final ReplicationMasterInfo.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<ReplicationMasterInfo.Builder>
    • mergeUnknownFields

      public final ReplicationMasterInfo.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<ReplicationMasterInfo.Builder>