
org.yamcs.protobuf.ReplicationSlaveInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yamcs-api Show documentation
Show all versions of yamcs-api Show documentation
Used by external clients to communicate with Yamcs
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yamcs/protobuf/replication/replication.proto
package org.yamcs.protobuf;
/**
* Protobuf type {@code yamcs.protobuf.replication.ReplicationSlaveInfo}
*/
public final class ReplicationSlaveInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.replication.ReplicationSlaveInfo)
ReplicationSlaveInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReplicationSlaveInfo.newBuilder() to construct.
private ReplicationSlaveInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReplicationSlaveInfo() {
instance_ = "";
streams_ = com.google.protobuf.LazyStringArrayList.EMPTY;
localAddress_ = "";
remoteAddress_ = "";
pullFrom_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ReplicationSlaveInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ReplicationSlaveInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
instance_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
streams_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
streams_.add(bs);
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
localAddress_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
remoteAddress_ = bs;
break;
}
case 40: {
bitField0_ |= 0x00000008;
push_ = input.readBool();
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
pullFrom_ = bs;
break;
}
case 56: {
bitField0_ |= 0x00000020;
tx_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) != 0)) {
streams_ = streams_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.ReplicationProto.internal_static_yamcs_protobuf_replication_ReplicationSlaveInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.ReplicationProto.internal_static_yamcs_protobuf_replication_ReplicationSlaveInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.ReplicationSlaveInfo.class, org.yamcs.protobuf.ReplicationSlaveInfo.Builder.class);
}
private int bitField0_;
public static final int INSTANCE_FIELD_NUMBER = 1;
private volatile java.lang.Object instance_;
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @return Whether the instance field is set.
*/
@java.lang.Override
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @return The instance.
*/
@java.lang.Override
public java.lang.String getInstance() {
java.lang.Object ref = instance_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
instance_ = s;
}
return s;
}
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @return The bytes for instance.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceBytes() {
java.lang.Object ref = instance_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STREAMS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList streams_;
/**
* repeated string streams = 2;
* @return A list containing the streams.
*/
public com.google.protobuf.ProtocolStringList
getStreamsList() {
return streams_;
}
/**
* repeated string streams = 2;
* @return The count of streams.
*/
public int getStreamsCount() {
return streams_.size();
}
/**
* repeated string streams = 2;
* @param index The index of the element to return.
* @return The streams at the given index.
*/
public java.lang.String getStreams(int index) {
return streams_.get(index);
}
/**
* repeated string streams = 2;
* @param index The index of the value to return.
* @return The bytes of the streams at the given index.
*/
public com.google.protobuf.ByteString
getStreamsBytes(int index) {
return streams_.getByteString(index);
}
public static final int LOCALADDRESS_FIELD_NUMBER = 3;
private volatile java.lang.Object localAddress_;
/**
* optional string localAddress = 3;
* @return Whether the localAddress field is set.
*/
@java.lang.Override
public boolean hasLocalAddress() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string localAddress = 3;
* @return The localAddress.
*/
@java.lang.Override
public java.lang.String getLocalAddress() {
java.lang.Object ref = localAddress_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
localAddress_ = s;
}
return s;
}
}
/**
* optional string localAddress = 3;
* @return The bytes for localAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLocalAddressBytes() {
java.lang.Object ref = localAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
localAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REMOTEADDRESS_FIELD_NUMBER = 4;
private volatile java.lang.Object remoteAddress_;
/**
* optional string remoteAddress = 4;
* @return Whether the remoteAddress field is set.
*/
@java.lang.Override
public boolean hasRemoteAddress() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string remoteAddress = 4;
* @return The remoteAddress.
*/
@java.lang.Override
public java.lang.String getRemoteAddress() {
java.lang.Object ref = remoteAddress_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
remoteAddress_ = s;
}
return s;
}
}
/**
* optional string remoteAddress = 4;
* @return The bytes for remoteAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRemoteAddressBytes() {
java.lang.Object ref = remoteAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
remoteAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PUSH_FIELD_NUMBER = 5;
private boolean push_;
/**
* optional bool push = 5;
* @return Whether the push field is set.
*/
@java.lang.Override
public boolean hasPush() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bool push = 5;
* @return The push.
*/
@java.lang.Override
public boolean getPush() {
return push_;
}
public static final int PULLFROM_FIELD_NUMBER = 6;
private volatile java.lang.Object pullFrom_;
/**
* optional string pullFrom = 6;
* @return Whether the pullFrom field is set.
*/
@java.lang.Override
public boolean hasPullFrom() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string pullFrom = 6;
* @return The pullFrom.
*/
@java.lang.Override
public java.lang.String getPullFrom() {
java.lang.Object ref = pullFrom_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
pullFrom_ = s;
}
return s;
}
}
/**
* optional string pullFrom = 6;
* @return The bytes for pullFrom.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPullFromBytes() {
java.lang.Object ref = pullFrom_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pullFrom_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TX_FIELD_NUMBER = 7;
private long tx_;
/**
* optional int64 tx = 7;
* @return Whether the tx field is set.
*/
@java.lang.Override
public boolean hasTx() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int64 tx = 7;
* @return The tx.
*/
@java.lang.Override
public long getTx() {
return tx_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instance_);
}
for (int i = 0; i < streams_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, streams_.getRaw(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, localAddress_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, remoteAddress_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeBool(5, push_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pullFrom_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt64(7, tx_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instance_);
}
{
int dataSize = 0;
for (int i = 0; i < streams_.size(); i++) {
dataSize += computeStringSizeNoTag(streams_.getRaw(i));
}
size += dataSize;
size += 1 * getStreamsList().size();
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, localAddress_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, remoteAddress_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, push_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pullFrom_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, tx_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.yamcs.protobuf.ReplicationSlaveInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.ReplicationSlaveInfo other = (org.yamcs.protobuf.ReplicationSlaveInfo) obj;
if (hasInstance() != other.hasInstance()) return false;
if (hasInstance()) {
if (!getInstance()
.equals(other.getInstance())) return false;
}
if (!getStreamsList()
.equals(other.getStreamsList())) return false;
if (hasLocalAddress() != other.hasLocalAddress()) return false;
if (hasLocalAddress()) {
if (!getLocalAddress()
.equals(other.getLocalAddress())) return false;
}
if (hasRemoteAddress() != other.hasRemoteAddress()) return false;
if (hasRemoteAddress()) {
if (!getRemoteAddress()
.equals(other.getRemoteAddress())) return false;
}
if (hasPush() != other.hasPush()) return false;
if (hasPush()) {
if (getPush()
!= other.getPush()) return false;
}
if (hasPullFrom() != other.hasPullFrom()) return false;
if (hasPullFrom()) {
if (!getPullFrom()
.equals(other.getPullFrom())) return false;
}
if (hasTx() != other.hasTx()) return false;
if (hasTx()) {
if (getTx()
!= other.getTx()) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasInstance()) {
hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
hash = (53 * hash) + getInstance().hashCode();
}
if (getStreamsCount() > 0) {
hash = (37 * hash) + STREAMS_FIELD_NUMBER;
hash = (53 * hash) + getStreamsList().hashCode();
}
if (hasLocalAddress()) {
hash = (37 * hash) + LOCALADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getLocalAddress().hashCode();
}
if (hasRemoteAddress()) {
hash = (37 * hash) + REMOTEADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getRemoteAddress().hashCode();
}
if (hasPush()) {
hash = (37 * hash) + PUSH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPush());
}
if (hasPullFrom()) {
hash = (37 * hash) + PULLFROM_FIELD_NUMBER;
hash = (53 * hash) + getPullFrom().hashCode();
}
if (hasTx()) {
hash = (37 * hash) + TX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTx());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.ReplicationSlaveInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.ReplicationSlaveInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.ReplicationSlaveInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.ReplicationSlaveInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.ReplicationSlaveInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.ReplicationSlaveInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.ReplicationSlaveInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.ReplicationSlaveInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.yamcs.protobuf.ReplicationSlaveInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.ReplicationSlaveInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.yamcs.protobuf.ReplicationSlaveInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.ReplicationSlaveInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.yamcs.protobuf.ReplicationSlaveInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yamcs.protobuf.replication.ReplicationSlaveInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.replication.ReplicationSlaveInfo)
org.yamcs.protobuf.ReplicationSlaveInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.ReplicationProto.internal_static_yamcs_protobuf_replication_ReplicationSlaveInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.ReplicationProto.internal_static_yamcs_protobuf_replication_ReplicationSlaveInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.ReplicationSlaveInfo.class, org.yamcs.protobuf.ReplicationSlaveInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.ReplicationSlaveInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
instance_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
streams_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
localAddress_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
remoteAddress_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
push_ = false;
bitField0_ = (bitField0_ & ~0x00000010);
pullFrom_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
tx_ = 0L;
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.ReplicationProto.internal_static_yamcs_protobuf_replication_ReplicationSlaveInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.ReplicationSlaveInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.ReplicationSlaveInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.ReplicationSlaveInfo build() {
org.yamcs.protobuf.ReplicationSlaveInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.ReplicationSlaveInfo buildPartial() {
org.yamcs.protobuf.ReplicationSlaveInfo result = new org.yamcs.protobuf.ReplicationSlaveInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.instance_ = instance_;
if (((bitField0_ & 0x00000002) != 0)) {
streams_ = streams_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.streams_ = streams_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.localAddress_ = localAddress_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.remoteAddress_ = remoteAddress_;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.push_ = push_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.pullFrom_ = pullFrom_;
if (((from_bitField0_ & 0x00000040) != 0)) {
result.tx_ = tx_;
to_bitField0_ |= 0x00000020;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.ReplicationSlaveInfo) {
return mergeFrom((org.yamcs.protobuf.ReplicationSlaveInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.ReplicationSlaveInfo other) {
if (other == org.yamcs.protobuf.ReplicationSlaveInfo.getDefaultInstance()) return this;
if (other.hasInstance()) {
bitField0_ |= 0x00000001;
instance_ = other.instance_;
onChanged();
}
if (!other.streams_.isEmpty()) {
if (streams_.isEmpty()) {
streams_ = other.streams_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureStreamsIsMutable();
streams_.addAll(other.streams_);
}
onChanged();
}
if (other.hasLocalAddress()) {
bitField0_ |= 0x00000004;
localAddress_ = other.localAddress_;
onChanged();
}
if (other.hasRemoteAddress()) {
bitField0_ |= 0x00000008;
remoteAddress_ = other.remoteAddress_;
onChanged();
}
if (other.hasPush()) {
setPush(other.getPush());
}
if (other.hasPullFrom()) {
bitField0_ |= 0x00000020;
pullFrom_ = other.pullFrom_;
onChanged();
}
if (other.hasTx()) {
setTx(other.getTx());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.ReplicationSlaveInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.ReplicationSlaveInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object instance_ = "";
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @return Whether the instance field is set.
*/
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @return The instance.
*/
public java.lang.String getInstance() {
java.lang.Object ref = instance_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
instance_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @return The bytes for instance.
*/
public com.google.protobuf.ByteString
getInstanceBytes() {
java.lang.Object ref = instance_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @param value The instance to set.
* @return This builder for chaining.
*/
public Builder setInstance(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
instance_ = value;
onChanged();
return this;
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @return This builder for chaining.
*/
public Builder clearInstance() {
bitField0_ = (bitField0_ & ~0x00000001);
instance_ = getDefaultInstance().getInstance();
onChanged();
return this;
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @param value The bytes for instance to set.
* @return This builder for chaining.
*/
public Builder setInstanceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
instance_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList streams_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureStreamsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
streams_ = new com.google.protobuf.LazyStringArrayList(streams_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated string streams = 2;
* @return A list containing the streams.
*/
public com.google.protobuf.ProtocolStringList
getStreamsList() {
return streams_.getUnmodifiableView();
}
/**
* repeated string streams = 2;
* @return The count of streams.
*/
public int getStreamsCount() {
return streams_.size();
}
/**
* repeated string streams = 2;
* @param index The index of the element to return.
* @return The streams at the given index.
*/
public java.lang.String getStreams(int index) {
return streams_.get(index);
}
/**
* repeated string streams = 2;
* @param index The index of the value to return.
* @return The bytes of the streams at the given index.
*/
public com.google.protobuf.ByteString
getStreamsBytes(int index) {
return streams_.getByteString(index);
}
/**
* repeated string streams = 2;
* @param index The index to set the value at.
* @param value The streams to set.
* @return This builder for chaining.
*/
public Builder setStreams(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureStreamsIsMutable();
streams_.set(index, value);
onChanged();
return this;
}
/**
* repeated string streams = 2;
* @param value The streams to add.
* @return This builder for chaining.
*/
public Builder addStreams(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureStreamsIsMutable();
streams_.add(value);
onChanged();
return this;
}
/**
* repeated string streams = 2;
* @param values The streams to add.
* @return This builder for chaining.
*/
public Builder addAllStreams(
java.lang.Iterable values) {
ensureStreamsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, streams_);
onChanged();
return this;
}
/**
* repeated string streams = 2;
* @return This builder for chaining.
*/
public Builder clearStreams() {
streams_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* repeated string streams = 2;
* @param value The bytes of the streams to add.
* @return This builder for chaining.
*/
public Builder addStreamsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureStreamsIsMutable();
streams_.add(value);
onChanged();
return this;
}
private java.lang.Object localAddress_ = "";
/**
* optional string localAddress = 3;
* @return Whether the localAddress field is set.
*/
public boolean hasLocalAddress() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string localAddress = 3;
* @return The localAddress.
*/
public java.lang.String getLocalAddress() {
java.lang.Object ref = localAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
localAddress_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string localAddress = 3;
* @return The bytes for localAddress.
*/
public com.google.protobuf.ByteString
getLocalAddressBytes() {
java.lang.Object ref = localAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
localAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string localAddress = 3;
* @param value The localAddress to set.
* @return This builder for chaining.
*/
public Builder setLocalAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
localAddress_ = value;
onChanged();
return this;
}
/**
* optional string localAddress = 3;
* @return This builder for chaining.
*/
public Builder clearLocalAddress() {
bitField0_ = (bitField0_ & ~0x00000004);
localAddress_ = getDefaultInstance().getLocalAddress();
onChanged();
return this;
}
/**
* optional string localAddress = 3;
* @param value The bytes for localAddress to set.
* @return This builder for chaining.
*/
public Builder setLocalAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
localAddress_ = value;
onChanged();
return this;
}
private java.lang.Object remoteAddress_ = "";
/**
* optional string remoteAddress = 4;
* @return Whether the remoteAddress field is set.
*/
public boolean hasRemoteAddress() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string remoteAddress = 4;
* @return The remoteAddress.
*/
public java.lang.String getRemoteAddress() {
java.lang.Object ref = remoteAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
remoteAddress_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string remoteAddress = 4;
* @return The bytes for remoteAddress.
*/
public com.google.protobuf.ByteString
getRemoteAddressBytes() {
java.lang.Object ref = remoteAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
remoteAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string remoteAddress = 4;
* @param value The remoteAddress to set.
* @return This builder for chaining.
*/
public Builder setRemoteAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
remoteAddress_ = value;
onChanged();
return this;
}
/**
* optional string remoteAddress = 4;
* @return This builder for chaining.
*/
public Builder clearRemoteAddress() {
bitField0_ = (bitField0_ & ~0x00000008);
remoteAddress_ = getDefaultInstance().getRemoteAddress();
onChanged();
return this;
}
/**
* optional string remoteAddress = 4;
* @param value The bytes for remoteAddress to set.
* @return This builder for chaining.
*/
public Builder setRemoteAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
remoteAddress_ = value;
onChanged();
return this;
}
private boolean push_ ;
/**
* optional bool push = 5;
* @return Whether the push field is set.
*/
@java.lang.Override
public boolean hasPush() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional bool push = 5;
* @return The push.
*/
@java.lang.Override
public boolean getPush() {
return push_;
}
/**
* optional bool push = 5;
* @param value The push to set.
* @return This builder for chaining.
*/
public Builder setPush(boolean value) {
bitField0_ |= 0x00000010;
push_ = value;
onChanged();
return this;
}
/**
* optional bool push = 5;
* @return This builder for chaining.
*/
public Builder clearPush() {
bitField0_ = (bitField0_ & ~0x00000010);
push_ = false;
onChanged();
return this;
}
private java.lang.Object pullFrom_ = "";
/**
* optional string pullFrom = 6;
* @return Whether the pullFrom field is set.
*/
public boolean hasPullFrom() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string pullFrom = 6;
* @return The pullFrom.
*/
public java.lang.String getPullFrom() {
java.lang.Object ref = pullFrom_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
pullFrom_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string pullFrom = 6;
* @return The bytes for pullFrom.
*/
public com.google.protobuf.ByteString
getPullFromBytes() {
java.lang.Object ref = pullFrom_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pullFrom_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string pullFrom = 6;
* @param value The pullFrom to set.
* @return This builder for chaining.
*/
public Builder setPullFrom(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
pullFrom_ = value;
onChanged();
return this;
}
/**
* optional string pullFrom = 6;
* @return This builder for chaining.
*/
public Builder clearPullFrom() {
bitField0_ = (bitField0_ & ~0x00000020);
pullFrom_ = getDefaultInstance().getPullFrom();
onChanged();
return this;
}
/**
* optional string pullFrom = 6;
* @param value The bytes for pullFrom to set.
* @return This builder for chaining.
*/
public Builder setPullFromBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
pullFrom_ = value;
onChanged();
return this;
}
private long tx_ ;
/**
* optional int64 tx = 7;
* @return Whether the tx field is set.
*/
@java.lang.Override
public boolean hasTx() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional int64 tx = 7;
* @return The tx.
*/
@java.lang.Override
public long getTx() {
return tx_;
}
/**
* optional int64 tx = 7;
* @param value The tx to set.
* @return This builder for chaining.
*/
public Builder setTx(long value) {
bitField0_ |= 0x00000040;
tx_ = value;
onChanged();
return this;
}
/**
* optional int64 tx = 7;
* @return This builder for chaining.
*/
public Builder clearTx() {
bitField0_ = (bitField0_ & ~0x00000040);
tx_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yamcs.protobuf.replication.ReplicationSlaveInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.replication.ReplicationSlaveInfo)
private static final org.yamcs.protobuf.ReplicationSlaveInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.ReplicationSlaveInfo();
}
public static org.yamcs.protobuf.ReplicationSlaveInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReplicationSlaveInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ReplicationSlaveInfo(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.yamcs.protobuf.ReplicationSlaveInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy