// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: dragent.proto
package org.voltdb.pmsg;
public final class DRAgent {
private DRAgent() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface UUIDOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required fixed64 instance = 1;
/**
* <code>required fixed64 instance = 1;</code>
*/
boolean hasInstance();
/**
* <code>required fixed64 instance = 1;</code>
*/
long getInstance();
// required fixed64 count = 2;
/**
* <code>required fixed64 count = 2;</code>
*/
boolean hasCount();
/**
* <code>required fixed64 count = 2;</code>
*/
long getCount();
}
/**
* Protobuf type {@code pmsg.UUID}
*/
public static final class UUID extends
com.google.protobuf.GeneratedMessage
implements UUIDOrBuilder {
// Use UUID.newBuilder() to construct.
private UUID(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private UUID(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final UUID defaultInstance;
public static UUID getDefaultInstance() {
return defaultInstance;
}
public UUID getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UUID(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 9: {
bitField0_ |= 0x00000001;
instance_ = input.readFixed64();
break;
}
case 17: {
bitField0_ |= 0x00000002;
count_ = input.readFixed64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_UUID_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_UUID_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.UUID.class, org.voltdb.pmsg.DRAgent.UUID.Builder.class);
}
public static com.google.protobuf.Parser<UUID> PARSER =
new com.google.protobuf.AbstractParser<UUID>() {
public UUID parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UUID(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<UUID> getParserForType() {
return PARSER;
}
private int bitField0_;
// required fixed64 instance = 1;
public static final int INSTANCE_FIELD_NUMBER = 1;
private long instance_;
/**
* <code>required fixed64 instance = 1;</code>
*/
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required fixed64 instance = 1;</code>
*/
public long getInstance() {
return instance_;
}
// required fixed64 count = 2;
public static final int COUNT_FIELD_NUMBER = 2;
private long count_;
/**
* <code>required fixed64 count = 2;</code>
*/
public boolean hasCount() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required fixed64 count = 2;</code>
*/
public long getCount() {
return count_;
}
private void initFields() {
instance_ = 0L;
count_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasInstance()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasCount()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeFixed64(1, instance_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeFixed64(2, count_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(1, instance_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(2, count_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.voltdb.pmsg.DRAgent.UUID parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.UUID parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.UUID parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.UUID parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.UUID parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.UUID parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.UUID parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.voltdb.pmsg.DRAgent.UUID parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.UUID parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.UUID parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.voltdb.pmsg.DRAgent.UUID prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pmsg.UUID}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.voltdb.pmsg.DRAgent.UUIDOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_UUID_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_UUID_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.UUID.class, org.voltdb.pmsg.DRAgent.UUID.Builder.class);
}
// Construct using org.voltdb.pmsg.DRAgent.UUID.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
instance_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
count_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_UUID_descriptor;
}
public org.voltdb.pmsg.DRAgent.UUID getDefaultInstanceForType() {
return org.voltdb.pmsg.DRAgent.UUID.getDefaultInstance();
}
public org.voltdb.pmsg.DRAgent.UUID build() {
org.voltdb.pmsg.DRAgent.UUID result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.voltdb.pmsg.DRAgent.UUID buildPartial() {
org.voltdb.pmsg.DRAgent.UUID result = new org.voltdb.pmsg.DRAgent.UUID(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.instance_ = instance_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.count_ = count_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.voltdb.pmsg.DRAgent.UUID) {
return mergeFrom((org.voltdb.pmsg.DRAgent.UUID)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.voltdb.pmsg.DRAgent.UUID other) {
if (other == org.voltdb.pmsg.DRAgent.UUID.getDefaultInstance()) return this;
if (other.hasInstance()) {
setInstance(other.getInstance());
}
if (other.hasCount()) {
setCount(other.getCount());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasInstance()) {
return false;
}
if (!hasCount()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.voltdb.pmsg.DRAgent.UUID parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.voltdb.pmsg.DRAgent.UUID) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required fixed64 instance = 1;
private long instance_ ;
/**
* <code>required fixed64 instance = 1;</code>
*/
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required fixed64 instance = 1;</code>
*/
public long getInstance() {
return instance_;
}
/**
* <code>required fixed64 instance = 1;</code>
*/
public Builder setInstance(long value) {
bitField0_ |= 0x00000001;
instance_ = value;
onChanged();
return this;
}
/**
* <code>required fixed64 instance = 1;</code>
*/
public Builder clearInstance() {
bitField0_ = (bitField0_ & ~0x00000001);
instance_ = 0L;
onChanged();
return this;
}
// required fixed64 count = 2;
private long count_ ;
/**
* <code>required fixed64 count = 2;</code>
*/
public boolean hasCount() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required fixed64 count = 2;</code>
*/
public long getCount() {
return count_;
}
/**
* <code>required fixed64 count = 2;</code>
*/
public Builder setCount(long value) {
bitField0_ |= 0x00000002;
count_ = value;
onChanged();
return this;
}
/**
* <code>required fixed64 count = 2;</code>
*/
public Builder clearCount() {
bitField0_ = (bitField0_ & ~0x00000002);
count_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:pmsg.UUID)
}
static {
defaultInstance = new UUID(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pmsg.UUID)
}
public interface AckOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int32 partitionId = 1;
/**
* <code>optional int32 partitionId = 1;</code>
*/
boolean hasPartitionId();
/**
* <code>optional int32 partitionId = 1;</code>
*/
int getPartitionId();
// optional fixed64 timestamp = 2;
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
boolean hasTimestamp();
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
long getTimestamp();
// optional fixed64 averageRowLatencyNanos = 3;
/**
* <code>optional fixed64 averageRowLatencyNanos = 3;</code>
*/
boolean hasAverageRowLatencyNanos();
/**
* <code>optional fixed64 averageRowLatencyNanos = 3;</code>
*/
long getAverageRowLatencyNanos();
}
/**
* Protobuf type {@code pmsg.Ack}
*/
public static final class Ack extends
com.google.protobuf.GeneratedMessage
implements AckOrBuilder {
// Use Ack.newBuilder() to construct.
private Ack(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Ack(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Ack defaultInstance;
public static Ack getDefaultInstance() {
return defaultInstance;
}
public Ack getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Ack(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
partitionId_ = input.readInt32();
break;
}
case 17: {
bitField0_ |= 0x00000002;
timestamp_ = input.readFixed64();
break;
}
case 25: {
bitField0_ |= 0x00000004;
averageRowLatencyNanos_ = input.readFixed64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Ack_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Ack_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.Ack.class, org.voltdb.pmsg.DRAgent.Ack.Builder.class);
}
public static com.google.protobuf.Parser<Ack> PARSER =
new com.google.protobuf.AbstractParser<Ack>() {
public Ack parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Ack(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Ack> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int32 partitionId = 1;
public static final int PARTITIONID_FIELD_NUMBER = 1;
private int partitionId_;
/**
* <code>optional int32 partitionId = 1;</code>
*/
public boolean hasPartitionId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 partitionId = 1;</code>
*/
public int getPartitionId() {
return partitionId_;
}
// optional fixed64 timestamp = 2;
public static final int TIMESTAMP_FIELD_NUMBER = 2;
private long timestamp_;
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
public long getTimestamp() {
return timestamp_;
}
// optional fixed64 averageRowLatencyNanos = 3;
public static final int AVERAGEROWLATENCYNANOS_FIELD_NUMBER = 3;
private long averageRowLatencyNanos_;
/**
* <code>optional fixed64 averageRowLatencyNanos = 3;</code>
*/
public boolean hasAverageRowLatencyNanos() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional fixed64 averageRowLatencyNanos = 3;</code>
*/
public long getAverageRowLatencyNanos() {
return averageRowLatencyNanos_;
}
private void initFields() {
partitionId_ = 0;
timestamp_ = 0L;
averageRowLatencyNanos_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, partitionId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeFixed64(2, timestamp_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeFixed64(3, averageRowLatencyNanos_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, partitionId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(2, timestamp_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(3, averageRowLatencyNanos_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.voltdb.pmsg.DRAgent.Ack parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.Ack parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Ack parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.Ack parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Ack parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.Ack parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Ack parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.voltdb.pmsg.DRAgent.Ack parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Ack parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.Ack parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.voltdb.pmsg.DRAgent.Ack prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pmsg.Ack}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.voltdb.pmsg.DRAgent.AckOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Ack_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Ack_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.Ack.class, org.voltdb.pmsg.DRAgent.Ack.Builder.class);
}
// Construct using org.voltdb.pmsg.DRAgent.Ack.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
partitionId_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
timestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
averageRowLatencyNanos_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Ack_descriptor;
}
public org.voltdb.pmsg.DRAgent.Ack getDefaultInstanceForType() {
return org.voltdb.pmsg.DRAgent.Ack.getDefaultInstance();
}
public org.voltdb.pmsg.DRAgent.Ack build() {
org.voltdb.pmsg.DRAgent.Ack result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.voltdb.pmsg.DRAgent.Ack buildPartial() {
org.voltdb.pmsg.DRAgent.Ack result = new org.voltdb.pmsg.DRAgent.Ack(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.partitionId_ = partitionId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.timestamp_ = timestamp_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.averageRowLatencyNanos_ = averageRowLatencyNanos_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.voltdb.pmsg.DRAgent.Ack) {
return mergeFrom((org.voltdb.pmsg.DRAgent.Ack)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.voltdb.pmsg.DRAgent.Ack other) {
if (other == org.voltdb.pmsg.DRAgent.Ack.getDefaultInstance()) return this;
if (other.hasPartitionId()) {
setPartitionId(other.getPartitionId());
}
if (other.hasTimestamp()) {
setTimestamp(other.getTimestamp());
}
if (other.hasAverageRowLatencyNanos()) {
setAverageRowLatencyNanos(other.getAverageRowLatencyNanos());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.voltdb.pmsg.DRAgent.Ack parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.voltdb.pmsg.DRAgent.Ack) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int32 partitionId = 1;
private int partitionId_ ;
/**
* <code>optional int32 partitionId = 1;</code>
*/
public boolean hasPartitionId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 partitionId = 1;</code>
*/
public int getPartitionId() {
return partitionId_;
}
/**
* <code>optional int32 partitionId = 1;</code>
*/
public Builder setPartitionId(int value) {
bitField0_ |= 0x00000001;
partitionId_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 partitionId = 1;</code>
*/
public Builder clearPartitionId() {
bitField0_ = (bitField0_ & ~0x00000001);
partitionId_ = 0;
onChanged();
return this;
}
// optional fixed64 timestamp = 2;
private long timestamp_ ;
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
public long getTimestamp() {
return timestamp_;
}
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
public Builder setTimestamp(long value) {
bitField0_ |= 0x00000002;
timestamp_ = value;
onChanged();
return this;
}
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000002);
timestamp_ = 0L;
onChanged();
return this;
}
// optional fixed64 averageRowLatencyNanos = 3;
private long averageRowLatencyNanos_ ;
/**
* <code>optional fixed64 averageRowLatencyNanos = 3;</code>
*/
public boolean hasAverageRowLatencyNanos() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional fixed64 averageRowLatencyNanos = 3;</code>
*/
public long getAverageRowLatencyNanos() {
return averageRowLatencyNanos_;
}
/**
* <code>optional fixed64 averageRowLatencyNanos = 3;</code>
*/
public Builder setAverageRowLatencyNanos(long value) {
bitField0_ |= 0x00000004;
averageRowLatencyNanos_ = value;
onChanged();
return this;
}
/**
* <code>optional fixed64 averageRowLatencyNanos = 3;</code>
*/
public Builder clearAverageRowLatencyNanos() {
bitField0_ = (bitField0_ & ~0x00000004);
averageRowLatencyNanos_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:pmsg.Ack)
}
static {
defaultInstance = new Ack(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pmsg.Ack)
}
public interface SnapshotReqOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string nonce = 1;
/**
* <code>optional string nonce = 1;</code>
*/
boolean hasNonce();
/**
* <code>optional string nonce = 1;</code>
*/
java.lang.String getNonce();
/**
* <code>optional string nonce = 1;</code>
*/
com.google.protobuf.ByteString
getNonceBytes();
// optional int32 globalPartitionCount = 2;
/**
* <code>optional int32 globalPartitionCount = 2;</code>
*/
boolean hasGlobalPartitionCount();
/**
* <code>optional int32 globalPartitionCount = 2;</code>
*/
int getGlobalPartitionCount();
}
/**
* Protobuf type {@code pmsg.SnapshotReq}
*/
public static final class SnapshotReq extends
com.google.protobuf.GeneratedMessage
implements SnapshotReqOrBuilder {
// Use SnapshotReq.newBuilder() to construct.
private SnapshotReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SnapshotReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SnapshotReq defaultInstance;
public static SnapshotReq getDefaultInstance() {
return defaultInstance;
}
public SnapshotReq getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SnapshotReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
nonce_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
globalPartitionCount_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_SnapshotReq_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_SnapshotReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.SnapshotReq.class, org.voltdb.pmsg.DRAgent.SnapshotReq.Builder.class);
}
public static com.google.protobuf.Parser<SnapshotReq> PARSER =
new com.google.protobuf.AbstractParser<SnapshotReq>() {
public SnapshotReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SnapshotReq(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<SnapshotReq> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string nonce = 1;
public static final int NONCE_FIELD_NUMBER = 1;
private java.lang.Object nonce_;
/**
* <code>optional string nonce = 1;</code>
*/
public boolean hasNonce() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string nonce = 1;</code>
*/
public java.lang.String getNonce() {
java.lang.Object ref = nonce_;
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()) {
nonce_ = s;
}
return s;
}
}
/**
* <code>optional string nonce = 1;</code>
*/
public com.google.protobuf.ByteString
getNonceBytes() {
java.lang.Object ref = nonce_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nonce_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional int32 globalPartitionCount = 2;
public static final int GLOBALPARTITIONCOUNT_FIELD_NUMBER = 2;
private int globalPartitionCount_;
/**
* <code>optional int32 globalPartitionCount = 2;</code>
*/
public boolean hasGlobalPartitionCount() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int32 globalPartitionCount = 2;</code>
*/
public int getGlobalPartitionCount() {
return globalPartitionCount_;
}
private void initFields() {
nonce_ = "";
globalPartitionCount_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getNonceBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, globalPartitionCount_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getNonceBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, globalPartitionCount_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.voltdb.pmsg.DRAgent.SnapshotReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.SnapshotReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.SnapshotReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.SnapshotReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.SnapshotReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.SnapshotReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.SnapshotReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.voltdb.pmsg.DRAgent.SnapshotReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.SnapshotReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.SnapshotReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.voltdb.pmsg.DRAgent.SnapshotReq prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pmsg.SnapshotReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.voltdb.pmsg.DRAgent.SnapshotReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_SnapshotReq_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_SnapshotReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.SnapshotReq.class, org.voltdb.pmsg.DRAgent.SnapshotReq.Builder.class);
}
// Construct using org.voltdb.pmsg.DRAgent.SnapshotReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
nonce_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
globalPartitionCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_SnapshotReq_descriptor;
}
public org.voltdb.pmsg.DRAgent.SnapshotReq getDefaultInstanceForType() {
return org.voltdb.pmsg.DRAgent.SnapshotReq.getDefaultInstance();
}
public org.voltdb.pmsg.DRAgent.SnapshotReq build() {
org.voltdb.pmsg.DRAgent.SnapshotReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.voltdb.pmsg.DRAgent.SnapshotReq buildPartial() {
org.voltdb.pmsg.DRAgent.SnapshotReq result = new org.voltdb.pmsg.DRAgent.SnapshotReq(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.nonce_ = nonce_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.globalPartitionCount_ = globalPartitionCount_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.voltdb.pmsg.DRAgent.SnapshotReq) {
return mergeFrom((org.voltdb.pmsg.DRAgent.SnapshotReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.voltdb.pmsg.DRAgent.SnapshotReq other) {
if (other == org.voltdb.pmsg.DRAgent.SnapshotReq.getDefaultInstance()) return this;
if (other.hasNonce()) {
bitField0_ |= 0x00000001;
nonce_ = other.nonce_;
onChanged();
}
if (other.hasGlobalPartitionCount()) {
setGlobalPartitionCount(other.getGlobalPartitionCount());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.voltdb.pmsg.DRAgent.SnapshotReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.voltdb.pmsg.DRAgent.SnapshotReq) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string nonce = 1;
private java.lang.Object nonce_ = "";
/**
* <code>optional string nonce = 1;</code>
*/
public boolean hasNonce() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string nonce = 1;</code>
*/
public java.lang.String getNonce() {
java.lang.Object ref = nonce_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
nonce_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string nonce = 1;</code>
*/
public com.google.protobuf.ByteString
getNonceBytes() {
java.lang.Object ref = nonce_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nonce_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string nonce = 1;</code>
*/
public Builder setNonce(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
nonce_ = value;
onChanged();
return this;
}
/**
* <code>optional string nonce = 1;</code>
*/
public Builder clearNonce() {
bitField0_ = (bitField0_ & ~0x00000001);
nonce_ = getDefaultInstance().getNonce();
onChanged();
return this;
}
/**
* <code>optional string nonce = 1;</code>
*/
public Builder setNonceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
nonce_ = value;
onChanged();
return this;
}
// optional int32 globalPartitionCount = 2;
private int globalPartitionCount_ ;
/**
* <code>optional int32 globalPartitionCount = 2;</code>
*/
public boolean hasGlobalPartitionCount() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int32 globalPartitionCount = 2;</code>
*/
public int getGlobalPartitionCount() {
return globalPartitionCount_;
}
/**
* <code>optional int32 globalPartitionCount = 2;</code>
*/
public Builder setGlobalPartitionCount(int value) {
bitField0_ |= 0x00000002;
globalPartitionCount_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 globalPartitionCount = 2;</code>
*/
public Builder clearGlobalPartitionCount() {
bitField0_ = (bitField0_ & ~0x00000002);
globalPartitionCount_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:pmsg.SnapshotReq)
}
static {
defaultInstance = new SnapshotReq(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pmsg.SnapshotReq)
}
public interface ResetOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int32 partitionId = 1;
/**
* <code>optional int32 partitionId = 1;</code>
*/
boolean hasPartitionId();
/**
* <code>optional int32 partitionId = 1;</code>
*/
int getPartitionId();
// optional fixed64 timestamp = 2;
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
boolean hasTimestamp();
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
long getTimestamp();
}
/**
* Protobuf type {@code pmsg.Reset}
*/
public static final class Reset extends
com.google.protobuf.GeneratedMessage
implements ResetOrBuilder {
// Use Reset.newBuilder() to construct.
private Reset(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Reset(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Reset defaultInstance;
public static Reset getDefaultInstance() {
return defaultInstance;
}
public Reset getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Reset(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
partitionId_ = input.readInt32();
break;
}
case 17: {
bitField0_ |= 0x00000002;
timestamp_ = input.readFixed64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Reset_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Reset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.Reset.class, org.voltdb.pmsg.DRAgent.Reset.Builder.class);
}
public static com.google.protobuf.Parser<Reset> PARSER =
new com.google.protobuf.AbstractParser<Reset>() {
public Reset parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Reset(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Reset> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int32 partitionId = 1;
public static final int PARTITIONID_FIELD_NUMBER = 1;
private int partitionId_;
/**
* <code>optional int32 partitionId = 1;</code>
*/
public boolean hasPartitionId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 partitionId = 1;</code>
*/
public int getPartitionId() {
return partitionId_;
}
// optional fixed64 timestamp = 2;
public static final int TIMESTAMP_FIELD_NUMBER = 2;
private long timestamp_;
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
public long getTimestamp() {
return timestamp_;
}
private void initFields() {
partitionId_ = 0;
timestamp_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, partitionId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeFixed64(2, timestamp_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, partitionId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(2, timestamp_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.voltdb.pmsg.DRAgent.Reset parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.Reset parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Reset parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.Reset parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Reset parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.Reset parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Reset parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.voltdb.pmsg.DRAgent.Reset parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Reset parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.Reset parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.voltdb.pmsg.DRAgent.Reset prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pmsg.Reset}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.voltdb.pmsg.DRAgent.ResetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Reset_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Reset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.Reset.class, org.voltdb.pmsg.DRAgent.Reset.Builder.class);
}
// Construct using org.voltdb.pmsg.DRAgent.Reset.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
partitionId_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
timestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Reset_descriptor;
}
public org.voltdb.pmsg.DRAgent.Reset getDefaultInstanceForType() {
return org.voltdb.pmsg.DRAgent.Reset.getDefaultInstance();
}
public org.voltdb.pmsg.DRAgent.Reset build() {
org.voltdb.pmsg.DRAgent.Reset result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.voltdb.pmsg.DRAgent.Reset buildPartial() {
org.voltdb.pmsg.DRAgent.Reset result = new org.voltdb.pmsg.DRAgent.Reset(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.partitionId_ = partitionId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.timestamp_ = timestamp_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.voltdb.pmsg.DRAgent.Reset) {
return mergeFrom((org.voltdb.pmsg.DRAgent.Reset)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.voltdb.pmsg.DRAgent.Reset other) {
if (other == org.voltdb.pmsg.DRAgent.Reset.getDefaultInstance()) return this;
if (other.hasPartitionId()) {
setPartitionId(other.getPartitionId());
}
if (other.hasTimestamp()) {
setTimestamp(other.getTimestamp());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.voltdb.pmsg.DRAgent.Reset parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.voltdb.pmsg.DRAgent.Reset) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int32 partitionId = 1;
private int partitionId_ ;
/**
* <code>optional int32 partitionId = 1;</code>
*/
public boolean hasPartitionId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 partitionId = 1;</code>
*/
public int getPartitionId() {
return partitionId_;
}
/**
* <code>optional int32 partitionId = 1;</code>
*/
public Builder setPartitionId(int value) {
bitField0_ |= 0x00000001;
partitionId_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 partitionId = 1;</code>
*/
public Builder clearPartitionId() {
bitField0_ = (bitField0_ & ~0x00000001);
partitionId_ = 0;
onChanged();
return this;
}
// optional fixed64 timestamp = 2;
private long timestamp_ ;
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
public long getTimestamp() {
return timestamp_;
}
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
public Builder setTimestamp(long value) {
bitField0_ |= 0x00000002;
timestamp_ = value;
onChanged();
return this;
}
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000002);
timestamp_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:pmsg.Reset)
}
static {
defaultInstance = new Reset(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pmsg.Reset)
}
public interface PauseOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int32 partitionId = 1;
/**
* <code>optional int32 partitionId = 1;</code>
*/
boolean hasPartitionId();
/**
* <code>optional int32 partitionId = 1;</code>
*/
int getPartitionId();
}
/**
* Protobuf type {@code pmsg.Pause}
*/
public static final class Pause extends
com.google.protobuf.GeneratedMessage
implements PauseOrBuilder {
// Use Pause.newBuilder() to construct.
private Pause(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Pause(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Pause defaultInstance;
public static Pause getDefaultInstance() {
return defaultInstance;
}
public Pause getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Pause(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
partitionId_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Pause_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Pause_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.Pause.class, org.voltdb.pmsg.DRAgent.Pause.Builder.class);
}
public static com.google.protobuf.Parser<Pause> PARSER =
new com.google.protobuf.AbstractParser<Pause>() {
public Pause parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Pause(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Pause> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int32 partitionId = 1;
public static final int PARTITIONID_FIELD_NUMBER = 1;
private int partitionId_;
/**
* <code>optional int32 partitionId = 1;</code>
*/
public boolean hasPartitionId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 partitionId = 1;</code>
*/
public int getPartitionId() {
return partitionId_;
}
private void initFields() {
partitionId_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, partitionId_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, partitionId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.voltdb.pmsg.DRAgent.Pause parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.Pause parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Pause parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.Pause parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Pause parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.Pause parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Pause parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.voltdb.pmsg.DRAgent.Pause parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Pause parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.Pause parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.voltdb.pmsg.DRAgent.Pause prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pmsg.Pause}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.voltdb.pmsg.DRAgent.PauseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Pause_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Pause_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.Pause.class, org.voltdb.pmsg.DRAgent.Pause.Builder.class);
}
// Construct using org.voltdb.pmsg.DRAgent.Pause.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
partitionId_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Pause_descriptor;
}
public org.voltdb.pmsg.DRAgent.Pause getDefaultInstanceForType() {
return org.voltdb.pmsg.DRAgent.Pause.getDefaultInstance();
}
public org.voltdb.pmsg.DRAgent.Pause build() {
org.voltdb.pmsg.DRAgent.Pause result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.voltdb.pmsg.DRAgent.Pause buildPartial() {
org.voltdb.pmsg.DRAgent.Pause result = new org.voltdb.pmsg.DRAgent.Pause(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.partitionId_ = partitionId_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.voltdb.pmsg.DRAgent.Pause) {
return mergeFrom((org.voltdb.pmsg.DRAgent.Pause)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.voltdb.pmsg.DRAgent.Pause other) {
if (other == org.voltdb.pmsg.DRAgent.Pause.getDefaultInstance()) return this;
if (other.hasPartitionId()) {
setPartitionId(other.getPartitionId());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.voltdb.pmsg.DRAgent.Pause parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.voltdb.pmsg.DRAgent.Pause) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int32 partitionId = 1;
private int partitionId_ ;
/**
* <code>optional int32 partitionId = 1;</code>
*/
public boolean hasPartitionId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 partitionId = 1;</code>
*/
public int getPartitionId() {
return partitionId_;
}
/**
* <code>optional int32 partitionId = 1;</code>
*/
public Builder setPartitionId(int value) {
bitField0_ |= 0x00000001;
partitionId_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 partitionId = 1;</code>
*/
public Builder clearPartitionId() {
bitField0_ = (bitField0_ & ~0x00000001);
partitionId_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:pmsg.Pause)
}
static {
defaultInstance = new Pause(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pmsg.Pause)
}
public interface ConnectOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int32 clusterId = 1;
/**
* <code>optional int32 clusterId = 1;</code>
*/
boolean hasClusterId();
/**
* <code>optional int32 clusterId = 1;</code>
*/
int getClusterId();
// optional fixed64 clusterCreationId = 2;
/**
* <code>optional fixed64 clusterCreationId = 2;</code>
*/
boolean hasClusterCreationId();
/**
* <code>optional fixed64 clusterCreationId = 2;</code>
*/
long getClusterCreationId();
// optional int32 protocolVersion = 3;
/**
* <code>optional int32 protocolVersion = 3;</code>
*/
boolean hasProtocolVersion();
/**
* <code>optional int32 protocolVersion = 3;</code>
*/
int getProtocolVersion();
// optional fixed64 clusterRecoveryId = 4;
/**
* <code>optional fixed64 clusterRecoveryId = 4;</code>
*/
boolean hasClusterRecoveryId();
/**
* <code>optional fixed64 clusterRecoveryId = 4;</code>
*/
long getClusterRecoveryId();
// optional .pmsg.NodeInfo nodeInfo = 5;
/**
* <code>optional .pmsg.NodeInfo nodeInfo = 5;</code>
*/
boolean hasNodeInfo();
/**
* <code>optional .pmsg.NodeInfo nodeInfo = 5;</code>
*/
org.voltdb.pmsg.DRAgent.NodeInfo getNodeInfo();
/**
* <code>optional .pmsg.NodeInfo nodeInfo = 5;</code>
*/
org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder getNodeInfoOrBuilder();
}
/**
* Protobuf type {@code pmsg.Connect}
*/
public static final class Connect extends
com.google.protobuf.GeneratedMessage
implements ConnectOrBuilder {
// Use Connect.newBuilder() to construct.
private Connect(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Connect(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Connect defaultInstance;
public static Connect getDefaultInstance() {
return defaultInstance;
}
public Connect getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Connect(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
clusterId_ = input.readInt32();
break;
}
case 17: {
bitField0_ |= 0x00000002;
clusterCreationId_ = input.readFixed64();
break;
}
case 24: {
bitField0_ |= 0x00000004;
protocolVersion_ = input.readInt32();
break;
}
case 33: {
bitField0_ |= 0x00000008;
clusterRecoveryId_ = input.readFixed64();
break;
}
case 42: {
org.voltdb.pmsg.DRAgent.NodeInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = nodeInfo_.toBuilder();
}
nodeInfo_ = input.readMessage(org.voltdb.pmsg.DRAgent.NodeInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nodeInfo_);
nodeInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Connect_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Connect_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.Connect.class, org.voltdb.pmsg.DRAgent.Connect.Builder.class);
}
public static com.google.protobuf.Parser<Connect> PARSER =
new com.google.protobuf.AbstractParser<Connect>() {
public Connect parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Connect(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Connect> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int32 clusterId = 1;
public static final int CLUSTERID_FIELD_NUMBER = 1;
private int clusterId_;
/**
* <code>optional int32 clusterId = 1;</code>
*/
public boolean hasClusterId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 clusterId = 1;</code>
*/
public int getClusterId() {
return clusterId_;
}
// optional fixed64 clusterCreationId = 2;
public static final int CLUSTERCREATIONID_FIELD_NUMBER = 2;
private long clusterCreationId_;
/**
* <code>optional fixed64 clusterCreationId = 2;</code>
*/
public boolean hasClusterCreationId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional fixed64 clusterCreationId = 2;</code>
*/
public long getClusterCreationId() {
return clusterCreationId_;
}
// optional int32 protocolVersion = 3;
public static final int PROTOCOLVERSION_FIELD_NUMBER = 3;
private int protocolVersion_;
/**
* <code>optional int32 protocolVersion = 3;</code>
*/
public boolean hasProtocolVersion() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int32 protocolVersion = 3;</code>
*/
public int getProtocolVersion() {
return protocolVersion_;
}
// optional fixed64 clusterRecoveryId = 4;
public static final int CLUSTERRECOVERYID_FIELD_NUMBER = 4;
private long clusterRecoveryId_;
/**
* <code>optional fixed64 clusterRecoveryId = 4;</code>
*/
public boolean hasClusterRecoveryId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional fixed64 clusterRecoveryId = 4;</code>
*/
public long getClusterRecoveryId() {
return clusterRecoveryId_;
}
// optional .pmsg.NodeInfo nodeInfo = 5;
public static final int NODEINFO_FIELD_NUMBER = 5;
private org.voltdb.pmsg.DRAgent.NodeInfo nodeInfo_;
/**
* <code>optional .pmsg.NodeInfo nodeInfo = 5;</code>
*/
public boolean hasNodeInfo() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .pmsg.NodeInfo nodeInfo = 5;</code>
*/
public org.voltdb.pmsg.DRAgent.NodeInfo getNodeInfo() {
return nodeInfo_;
}
/**
* <code>optional .pmsg.NodeInfo nodeInfo = 5;</code>
*/
public org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder getNodeInfoOrBuilder() {
return nodeInfo_;
}
private void initFields() {
clusterId_ = 0;
clusterCreationId_ = 0L;
protocolVersion_ = 0;
clusterRecoveryId_ = 0L;
nodeInfo_ = org.voltdb.pmsg.DRAgent.NodeInfo.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, clusterId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeFixed64(2, clusterCreationId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, protocolVersion_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeFixed64(4, clusterRecoveryId_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(5, nodeInfo_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, clusterId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(2, clusterCreationId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, protocolVersion_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(4, clusterRecoveryId_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, nodeInfo_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.voltdb.pmsg.DRAgent.Connect parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.Connect parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Connect parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.Connect parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Connect parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.Connect parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Connect parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.voltdb.pmsg.DRAgent.Connect parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Connect parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.Connect parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.voltdb.pmsg.DRAgent.Connect prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pmsg.Connect}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.voltdb.pmsg.DRAgent.ConnectOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Connect_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Connect_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.Connect.class, org.voltdb.pmsg.DRAgent.Connect.Builder.class);
}
// Construct using org.voltdb.pmsg.DRAgent.Connect.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getNodeInfoFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
clusterId_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
clusterCreationId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
protocolVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
clusterRecoveryId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
if (nodeInfoBuilder_ == null) {
nodeInfo_ = org.voltdb.pmsg.DRAgent.NodeInfo.getDefaultInstance();
} else {
nodeInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Connect_descriptor;
}
public org.voltdb.pmsg.DRAgent.Connect getDefaultInstanceForType() {
return org.voltdb.pmsg.DRAgent.Connect.getDefaultInstance();
}
public org.voltdb.pmsg.DRAgent.Connect build() {
org.voltdb.pmsg.DRAgent.Connect result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.voltdb.pmsg.DRAgent.Connect buildPartial() {
org.voltdb.pmsg.DRAgent.Connect result = new org.voltdb.pmsg.DRAgent.Connect(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.clusterId_ = clusterId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.clusterCreationId_ = clusterCreationId_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.protocolVersion_ = protocolVersion_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.clusterRecoveryId_ = clusterRecoveryId_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
if (nodeInfoBuilder_ == null) {
result.nodeInfo_ = nodeInfo_;
} else {
result.nodeInfo_ = nodeInfoBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.voltdb.pmsg.DRAgent.Connect) {
return mergeFrom((org.voltdb.pmsg.DRAgent.Connect)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.voltdb.pmsg.DRAgent.Connect other) {
if (other == org.voltdb.pmsg.DRAgent.Connect.getDefaultInstance()) return this;
if (other.hasClusterId()) {
setClusterId(other.getClusterId());
}
if (other.hasClusterCreationId()) {
setClusterCreationId(other.getClusterCreationId());
}
if (other.hasProtocolVersion()) {
setProtocolVersion(other.getProtocolVersion());
}
if (other.hasClusterRecoveryId()) {
setClusterRecoveryId(other.getClusterRecoveryId());
}
if (other.hasNodeInfo()) {
mergeNodeInfo(other.getNodeInfo());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.voltdb.pmsg.DRAgent.Connect parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.voltdb.pmsg.DRAgent.Connect) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int32 clusterId = 1;
private int clusterId_ ;
/**
* <code>optional int32 clusterId = 1;</code>
*/
public boolean hasClusterId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 clusterId = 1;</code>
*/
public int getClusterId() {
return clusterId_;
}
/**
* <code>optional int32 clusterId = 1;</code>
*/
public Builder setClusterId(int value) {
bitField0_ |= 0x00000001;
clusterId_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 clusterId = 1;</code>
*/
public Builder clearClusterId() {
bitField0_ = (bitField0_ & ~0x00000001);
clusterId_ = 0;
onChanged();
return this;
}
// optional fixed64 clusterCreationId = 2;
private long clusterCreationId_ ;
/**
* <code>optional fixed64 clusterCreationId = 2;</code>
*/
public boolean hasClusterCreationId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional fixed64 clusterCreationId = 2;</code>
*/
public long getClusterCreationId() {
return clusterCreationId_;
}
/**
* <code>optional fixed64 clusterCreationId = 2;</code>
*/
public Builder setClusterCreationId(long value) {
bitField0_ |= 0x00000002;
clusterCreationId_ = value;
onChanged();
return this;
}
/**
* <code>optional fixed64 clusterCreationId = 2;</code>
*/
public Builder clearClusterCreationId() {
bitField0_ = (bitField0_ & ~0x00000002);
clusterCreationId_ = 0L;
onChanged();
return this;
}
// optional int32 protocolVersion = 3;
private int protocolVersion_ ;
/**
* <code>optional int32 protocolVersion = 3;</code>
*/
public boolean hasProtocolVersion() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int32 protocolVersion = 3;</code>
*/
public int getProtocolVersion() {
return protocolVersion_;
}
/**
* <code>optional int32 protocolVersion = 3;</code>
*/
public Builder setProtocolVersion(int value) {
bitField0_ |= 0x00000004;
protocolVersion_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 protocolVersion = 3;</code>
*/
public Builder clearProtocolVersion() {
bitField0_ = (bitField0_ & ~0x00000004);
protocolVersion_ = 0;
onChanged();
return this;
}
// optional fixed64 clusterRecoveryId = 4;
private long clusterRecoveryId_ ;
/**
* <code>optional fixed64 clusterRecoveryId = 4;</code>
*/
public boolean hasClusterRecoveryId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional fixed64 clusterRecoveryId = 4;</code>
*/
public long getClusterRecoveryId() {
return clusterRecoveryId_;
}
/**
* <code>optional fixed64 clusterRecoveryId = 4;</code>
*/
public Builder setClusterRecoveryId(long value) {
bitField0_ |= 0x00000008;
clusterRecoveryId_ = value;
onChanged();
return this;
}
/**
* <code>optional fixed64 clusterRecoveryId = 4;</code>
*/
public Builder clearClusterRecoveryId() {
bitField0_ = (bitField0_ & ~0x00000008);
clusterRecoveryId_ = 0L;
onChanged();
return this;
}
// optional .pmsg.NodeInfo nodeInfo = 5;
private org.voltdb.pmsg.DRAgent.NodeInfo nodeInfo_ = org.voltdb.pmsg.DRAgent.NodeInfo.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.NodeInfo, org.voltdb.pmsg.DRAgent.NodeInfo.Builder, org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder> nodeInfoBuilder_;
/**
* <code>optional .pmsg.NodeInfo nodeInfo = 5;</code>
*/
public boolean hasNodeInfo() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .pmsg.NodeInfo nodeInfo = 5;</code>
*/
public org.voltdb.pmsg.DRAgent.NodeInfo getNodeInfo() {
if (nodeInfoBuilder_ == null) {
return nodeInfo_;
} else {
return nodeInfoBuilder_.getMessage();
}
}
/**
* <code>optional .pmsg.NodeInfo nodeInfo = 5;</code>
*/
public Builder setNodeInfo(org.voltdb.pmsg.DRAgent.NodeInfo value) {
if (nodeInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nodeInfo_ = value;
onChanged();
} else {
nodeInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .pmsg.NodeInfo nodeInfo = 5;</code>
*/
public Builder setNodeInfo(
org.voltdb.pmsg.DRAgent.NodeInfo.Builder builderForValue) {
if (nodeInfoBuilder_ == null) {
nodeInfo_ = builderForValue.build();
onChanged();
} else {
nodeInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .pmsg.NodeInfo nodeInfo = 5;</code>
*/
public Builder mergeNodeInfo(org.voltdb.pmsg.DRAgent.NodeInfo value) {
if (nodeInfoBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
nodeInfo_ != org.voltdb.pmsg.DRAgent.NodeInfo.getDefaultInstance()) {
nodeInfo_ =
org.voltdb.pmsg.DRAgent.NodeInfo.newBuilder(nodeInfo_).mergeFrom(value).buildPartial();
} else {
nodeInfo_ = value;
}
onChanged();
} else {
nodeInfoBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .pmsg.NodeInfo nodeInfo = 5;</code>
*/
public Builder clearNodeInfo() {
if (nodeInfoBuilder_ == null) {
nodeInfo_ = org.voltdb.pmsg.DRAgent.NodeInfo.getDefaultInstance();
onChanged();
} else {
nodeInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* <code>optional .pmsg.NodeInfo nodeInfo = 5;</code>
*/
public org.voltdb.pmsg.DRAgent.NodeInfo.Builder getNodeInfoBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getNodeInfoFieldBuilder().getBuilder();
}
/**
* <code>optional .pmsg.NodeInfo nodeInfo = 5;</code>
*/
public org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder getNodeInfoOrBuilder() {
if (nodeInfoBuilder_ != null) {
return nodeInfoBuilder_.getMessageOrBuilder();
} else {
return nodeInfo_;
}
}
/**
* <code>optional .pmsg.NodeInfo nodeInfo = 5;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.NodeInfo, org.voltdb.pmsg.DRAgent.NodeInfo.Builder, org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder>
getNodeInfoFieldBuilder() {
if (nodeInfoBuilder_ == null) {
nodeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.NodeInfo, org.voltdb.pmsg.DRAgent.NodeInfo.Builder, org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder>(
nodeInfo_,
getParentForChildren(),
isClean());
nodeInfo_ = null;
}
return nodeInfoBuilder_;
}
// @@protoc_insertion_point(builder_scope:pmsg.Connect)
}
static {
defaultInstance = new Connect(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pmsg.Connect)
}
public interface SubscribeOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int32 partitionId = 1;
/**
* <code>optional int32 partitionId = 1;</code>
*/
boolean hasPartitionId();
/**
* <code>optional int32 partitionId = 1;</code>
*/
int getPartitionId();
// optional fixed64 timestamp = 2;
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
boolean hasTimestamp();
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
long getTimestamp();
// optional bool isCovering = 3;
/**
* <code>optional bool isCovering = 3;</code>
*/
boolean hasIsCovering();
/**
* <code>optional bool isCovering = 3;</code>
*/
boolean getIsCovering();
// optional fixed64 rewindToUniqueId = 4;
/**
* <code>optional fixed64 rewindToUniqueId = 4;</code>
*/
boolean hasRewindToUniqueId();
/**
* <code>optional fixed64 rewindToUniqueId = 4;</code>
*/
long getRewindToUniqueId();
// optional bool isSyncing = 5;
/**
* <code>optional bool isSyncing = 5;</code>
*/
boolean hasIsSyncing();
/**
* <code>optional bool isSyncing = 5;</code>
*/
boolean getIsSyncing();
}
/**
* Protobuf type {@code pmsg.Subscribe}
*/
public static final class Subscribe extends
com.google.protobuf.GeneratedMessage
implements SubscribeOrBuilder {
// Use Subscribe.newBuilder() to construct.
private Subscribe(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Subscribe(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Subscribe defaultInstance;
public static Subscribe getDefaultInstance() {
return defaultInstance;
}
public Subscribe getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Subscribe(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
partitionId_ = input.readInt32();
break;
}
case 17: {
bitField0_ |= 0x00000002;
timestamp_ = input.readFixed64();
break;
}
case 24: {
bitField0_ |= 0x00000004;
isCovering_ = input.readBool();
break;
}
case 33: {
bitField0_ |= 0x00000008;
rewindToUniqueId_ = input.readFixed64();
break;
}
case 40: {
bitField0_ |= 0x00000010;
isSyncing_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Subscribe_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Subscribe_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.Subscribe.class, org.voltdb.pmsg.DRAgent.Subscribe.Builder.class);
}
public static com.google.protobuf.Parser<Subscribe> PARSER =
new com.google.protobuf.AbstractParser<Subscribe>() {
public Subscribe parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Subscribe(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Subscribe> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int32 partitionId = 1;
public static final int PARTITIONID_FIELD_NUMBER = 1;
private int partitionId_;
/**
* <code>optional int32 partitionId = 1;</code>
*/
public boolean hasPartitionId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 partitionId = 1;</code>
*/
public int getPartitionId() {
return partitionId_;
}
// optional fixed64 timestamp = 2;
public static final int TIMESTAMP_FIELD_NUMBER = 2;
private long timestamp_;
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
public long getTimestamp() {
return timestamp_;
}
// optional bool isCovering = 3;
public static final int ISCOVERING_FIELD_NUMBER = 3;
private boolean isCovering_;
/**
* <code>optional bool isCovering = 3;</code>
*/
public boolean hasIsCovering() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bool isCovering = 3;</code>
*/
public boolean getIsCovering() {
return isCovering_;
}
// optional fixed64 rewindToUniqueId = 4;
public static final int REWINDTOUNIQUEID_FIELD_NUMBER = 4;
private long rewindToUniqueId_;
/**
* <code>optional fixed64 rewindToUniqueId = 4;</code>
*/
public boolean hasRewindToUniqueId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional fixed64 rewindToUniqueId = 4;</code>
*/
public long getRewindToUniqueId() {
return rewindToUniqueId_;
}
// optional bool isSyncing = 5;
public static final int ISSYNCING_FIELD_NUMBER = 5;
private boolean isSyncing_;
/**
* <code>optional bool isSyncing = 5;</code>
*/
public boolean hasIsSyncing() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional bool isSyncing = 5;</code>
*/
public boolean getIsSyncing() {
return isSyncing_;
}
private void initFields() {
partitionId_ = 0;
timestamp_ = 0L;
isCovering_ = false;
rewindToUniqueId_ = 0L;
isSyncing_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, partitionId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeFixed64(2, timestamp_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(3, isCovering_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeFixed64(4, rewindToUniqueId_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBool(5, isSyncing_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, partitionId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(2, timestamp_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, isCovering_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(4, rewindToUniqueId_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, isSyncing_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.voltdb.pmsg.DRAgent.Subscribe parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.Subscribe parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Subscribe parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.Subscribe parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Subscribe parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.Subscribe parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Subscribe parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.voltdb.pmsg.DRAgent.Subscribe parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Subscribe parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.Subscribe parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.voltdb.pmsg.DRAgent.Subscribe prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pmsg.Subscribe}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.voltdb.pmsg.DRAgent.SubscribeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Subscribe_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Subscribe_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.Subscribe.class, org.voltdb.pmsg.DRAgent.Subscribe.Builder.class);
}
// Construct using org.voltdb.pmsg.DRAgent.Subscribe.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
partitionId_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
timestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
isCovering_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
rewindToUniqueId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
isSyncing_ = false;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Subscribe_descriptor;
}
public org.voltdb.pmsg.DRAgent.Subscribe getDefaultInstanceForType() {
return org.voltdb.pmsg.DRAgent.Subscribe.getDefaultInstance();
}
public org.voltdb.pmsg.DRAgent.Subscribe build() {
org.voltdb.pmsg.DRAgent.Subscribe result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.voltdb.pmsg.DRAgent.Subscribe buildPartial() {
org.voltdb.pmsg.DRAgent.Subscribe result = new org.voltdb.pmsg.DRAgent.Subscribe(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.partitionId_ = partitionId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.timestamp_ = timestamp_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.isCovering_ = isCovering_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.rewindToUniqueId_ = rewindToUniqueId_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.isSyncing_ = isSyncing_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.voltdb.pmsg.DRAgent.Subscribe) {
return mergeFrom((org.voltdb.pmsg.DRAgent.Subscribe)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.voltdb.pmsg.DRAgent.Subscribe other) {
if (other == org.voltdb.pmsg.DRAgent.Subscribe.getDefaultInstance()) return this;
if (other.hasPartitionId()) {
setPartitionId(other.getPartitionId());
}
if (other.hasTimestamp()) {
setTimestamp(other.getTimestamp());
}
if (other.hasIsCovering()) {
setIsCovering(other.getIsCovering());
}
if (other.hasRewindToUniqueId()) {
setRewindToUniqueId(other.getRewindToUniqueId());
}
if (other.hasIsSyncing()) {
setIsSyncing(other.getIsSyncing());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.voltdb.pmsg.DRAgent.Subscribe parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.voltdb.pmsg.DRAgent.Subscribe) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int32 partitionId = 1;
private int partitionId_ ;
/**
* <code>optional int32 partitionId = 1;</code>
*/
public boolean hasPartitionId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 partitionId = 1;</code>
*/
public int getPartitionId() {
return partitionId_;
}
/**
* <code>optional int32 partitionId = 1;</code>
*/
public Builder setPartitionId(int value) {
bitField0_ |= 0x00000001;
partitionId_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 partitionId = 1;</code>
*/
public Builder clearPartitionId() {
bitField0_ = (bitField0_ & ~0x00000001);
partitionId_ = 0;
onChanged();
return this;
}
// optional fixed64 timestamp = 2;
private long timestamp_ ;
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
public long getTimestamp() {
return timestamp_;
}
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
public Builder setTimestamp(long value) {
bitField0_ |= 0x00000002;
timestamp_ = value;
onChanged();
return this;
}
/**
* <code>optional fixed64 timestamp = 2;</code>
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000002);
timestamp_ = 0L;
onChanged();
return this;
}
// optional bool isCovering = 3;
private boolean isCovering_ ;
/**
* <code>optional bool isCovering = 3;</code>
*/
public boolean hasIsCovering() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bool isCovering = 3;</code>
*/
public boolean getIsCovering() {
return isCovering_;
}
/**
* <code>optional bool isCovering = 3;</code>
*/
public Builder setIsCovering(boolean value) {
bitField0_ |= 0x00000004;
isCovering_ = value;
onChanged();
return this;
}
/**
* <code>optional bool isCovering = 3;</code>
*/
public Builder clearIsCovering() {
bitField0_ = (bitField0_ & ~0x00000004);
isCovering_ = false;
onChanged();
return this;
}
// optional fixed64 rewindToUniqueId = 4;
private long rewindToUniqueId_ ;
/**
* <code>optional fixed64 rewindToUniqueId = 4;</code>
*/
public boolean hasRewindToUniqueId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional fixed64 rewindToUniqueId = 4;</code>
*/
public long getRewindToUniqueId() {
return rewindToUniqueId_;
}
/**
* <code>optional fixed64 rewindToUniqueId = 4;</code>
*/
public Builder setRewindToUniqueId(long value) {
bitField0_ |= 0x00000008;
rewindToUniqueId_ = value;
onChanged();
return this;
}
/**
* <code>optional fixed64 rewindToUniqueId = 4;</code>
*/
public Builder clearRewindToUniqueId() {
bitField0_ = (bitField0_ & ~0x00000008);
rewindToUniqueId_ = 0L;
onChanged();
return this;
}
// optional bool isSyncing = 5;
private boolean isSyncing_ ;
/**
* <code>optional bool isSyncing = 5;</code>
*/
public boolean hasIsSyncing() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional bool isSyncing = 5;</code>
*/
public boolean getIsSyncing() {
return isSyncing_;
}
/**
* <code>optional bool isSyncing = 5;</code>
*/
public Builder setIsSyncing(boolean value) {
bitField0_ |= 0x00000010;
isSyncing_ = value;
onChanged();
return this;
}
/**
* <code>optional bool isSyncing = 5;</code>
*/
public Builder clearIsSyncing() {
bitField0_ = (bitField0_ & ~0x00000010);
isSyncing_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:pmsg.Subscribe)
}
static {
defaultInstance = new Subscribe(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pmsg.Subscribe)
}
public interface QueryOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional bool includeMesh = 1 [default = false];
/**
* <code>optional bool includeMesh = 1 [default = false];</code>
*
* <pre>
* whether or not to include other clusters in the mesh
* </pre>
*/
boolean hasIncludeMesh();
/**
* <code>optional bool includeMesh = 1 [default = false];</code>
*
* <pre>
* whether or not to include other clusters in the mesh
* </pre>
*/
boolean getIncludeMesh();
}
/**
* Protobuf type {@code pmsg.Query}
*/
public static final class Query extends
com.google.protobuf.GeneratedMessage
implements QueryOrBuilder {
// Use Query.newBuilder() to construct.
private Query(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Query(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Query defaultInstance;
public static Query getDefaultInstance() {
return defaultInstance;
}
public Query getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Query(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
includeMesh_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Query_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Query_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.Query.class, org.voltdb.pmsg.DRAgent.Query.Builder.class);
}
public static com.google.protobuf.Parser<Query> PARSER =
new com.google.protobuf.AbstractParser<Query>() {
public Query parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Query(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Query> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bool includeMesh = 1 [default = false];
public static final int INCLUDEMESH_FIELD_NUMBER = 1;
private boolean includeMesh_;
/**
* <code>optional bool includeMesh = 1 [default = false];</code>
*
* <pre>
* whether or not to include other clusters in the mesh
* </pre>
*/
public boolean hasIncludeMesh() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool includeMesh = 1 [default = false];</code>
*
* <pre>
* whether or not to include other clusters in the mesh
* </pre>
*/
public boolean getIncludeMesh() {
return includeMesh_;
}
private void initFields() {
includeMesh_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBool(1, includeMesh_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, includeMesh_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.voltdb.pmsg.DRAgent.Query parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.Query parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Query parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.Query parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Query parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.Query parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Query parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.voltdb.pmsg.DRAgent.Query parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Query parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.Query parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.voltdb.pmsg.DRAgent.Query prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pmsg.Query}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.voltdb.pmsg.DRAgent.QueryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Query_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Query_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.Query.class, org.voltdb.pmsg.DRAgent.Query.Builder.class);
}
// Construct using org.voltdb.pmsg.DRAgent.Query.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
includeMesh_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Query_descriptor;
}
public org.voltdb.pmsg.DRAgent.Query getDefaultInstanceForType() {
return org.voltdb.pmsg.DRAgent.Query.getDefaultInstance();
}
public org.voltdb.pmsg.DRAgent.Query build() {
org.voltdb.pmsg.DRAgent.Query result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.voltdb.pmsg.DRAgent.Query buildPartial() {
org.voltdb.pmsg.DRAgent.Query result = new org.voltdb.pmsg.DRAgent.Query(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.includeMesh_ = includeMesh_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.voltdb.pmsg.DRAgent.Query) {
return mergeFrom((org.voltdb.pmsg.DRAgent.Query)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.voltdb.pmsg.DRAgent.Query other) {
if (other == org.voltdb.pmsg.DRAgent.Query.getDefaultInstance()) return this;
if (other.hasIncludeMesh()) {
setIncludeMesh(other.getIncludeMesh());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.voltdb.pmsg.DRAgent.Query parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.voltdb.pmsg.DRAgent.Query) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bool includeMesh = 1 [default = false];
private boolean includeMesh_ ;
/**
* <code>optional bool includeMesh = 1 [default = false];</code>
*
* <pre>
* whether or not to include other clusters in the mesh
* </pre>
*/
public boolean hasIncludeMesh() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool includeMesh = 1 [default = false];</code>
*
* <pre>
* whether or not to include other clusters in the mesh
* </pre>
*/
public boolean getIncludeMesh() {
return includeMesh_;
}
/**
* <code>optional bool includeMesh = 1 [default = false];</code>
*
* <pre>
* whether or not to include other clusters in the mesh
* </pre>
*/
public Builder setIncludeMesh(boolean value) {
bitField0_ |= 0x00000001;
includeMesh_ = value;
onChanged();
return this;
}
/**
* <code>optional bool includeMesh = 1 [default = false];</code>
*
* <pre>
* whether or not to include other clusters in the mesh
* </pre>
*/
public Builder clearIncludeMesh() {
bitField0_ = (bitField0_ & ~0x00000001);
includeMesh_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:pmsg.Query)
}
static {
defaultInstance = new Query(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pmsg.Query)
}
public interface StartCursorOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .pmsg.ClusterInfo clusterInfo = 1;
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
java.util.List<org.voltdb.pmsg.DRAgent.ClusterInfo>
getClusterInfoList();
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
org.voltdb.pmsg.DRAgent.ClusterInfo getClusterInfo(int index);
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
int getClusterInfoCount();
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
java.util.List<? extends org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder>
getClusterInfoOrBuilderList();
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder getClusterInfoOrBuilder(
int index);
}
/**
* Protobuf type {@code pmsg.StartCursor}
*/
public static final class StartCursor extends
com.google.protobuf.GeneratedMessage
implements StartCursorOrBuilder {
// Use StartCursor.newBuilder() to construct.
private StartCursor(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private StartCursor(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final StartCursor defaultInstance;
public static StartCursor getDefaultInstance() {
return defaultInstance;
}
public StartCursor getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StartCursor(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
clusterInfo_ = new java.util.ArrayList<org.voltdb.pmsg.DRAgent.ClusterInfo>();
mutable_bitField0_ |= 0x00000001;
}
clusterInfo_.add(input.readMessage(org.voltdb.pmsg.DRAgent.ClusterInfo.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
clusterInfo_ = java.util.Collections.unmodifiableList(clusterInfo_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_StartCursor_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_StartCursor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.StartCursor.class, org.voltdb.pmsg.DRAgent.StartCursor.Builder.class);
}
public static com.google.protobuf.Parser<StartCursor> PARSER =
new com.google.protobuf.AbstractParser<StartCursor>() {
public StartCursor parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StartCursor(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<StartCursor> getParserForType() {
return PARSER;
}
// repeated .pmsg.ClusterInfo clusterInfo = 1;
public static final int CLUSTERINFO_FIELD_NUMBER = 1;
private java.util.List<org.voltdb.pmsg.DRAgent.ClusterInfo> clusterInfo_;
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public java.util.List<org.voltdb.pmsg.DRAgent.ClusterInfo> getClusterInfoList() {
return clusterInfo_;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public java.util.List<? extends org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder>
getClusterInfoOrBuilderList() {
return clusterInfo_;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public int getClusterInfoCount() {
return clusterInfo_.size();
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public org.voltdb.pmsg.DRAgent.ClusterInfo getClusterInfo(int index) {
return clusterInfo_.get(index);
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder getClusterInfoOrBuilder(
int index) {
return clusterInfo_.get(index);
}
private void initFields() {
clusterInfo_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
for (int i = 0; i < getClusterInfoCount(); i++) {
if (!getClusterInfo(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < clusterInfo_.size(); i++) {
output.writeMessage(1, clusterInfo_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < clusterInfo_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, clusterInfo_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.voltdb.pmsg.DRAgent.StartCursor parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.StartCursor parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.StartCursor parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.StartCursor parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.StartCursor parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.StartCursor parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.StartCursor parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.voltdb.pmsg.DRAgent.StartCursor parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.StartCursor parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.StartCursor parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.voltdb.pmsg.DRAgent.StartCursor prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pmsg.StartCursor}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.voltdb.pmsg.DRAgent.StartCursorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_StartCursor_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_StartCursor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.StartCursor.class, org.voltdb.pmsg.DRAgent.StartCursor.Builder.class);
}
// Construct using org.voltdb.pmsg.DRAgent.StartCursor.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getClusterInfoFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (clusterInfoBuilder_ == null) {
clusterInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
clusterInfoBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_StartCursor_descriptor;
}
public org.voltdb.pmsg.DRAgent.StartCursor getDefaultInstanceForType() {
return org.voltdb.pmsg.DRAgent.StartCursor.getDefaultInstance();
}
public org.voltdb.pmsg.DRAgent.StartCursor build() {
org.voltdb.pmsg.DRAgent.StartCursor result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.voltdb.pmsg.DRAgent.StartCursor buildPartial() {
org.voltdb.pmsg.DRAgent.StartCursor result = new org.voltdb.pmsg.DRAgent.StartCursor(this);
int from_bitField0_ = bitField0_;
if (clusterInfoBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
clusterInfo_ = java.util.Collections.unmodifiableList(clusterInfo_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.clusterInfo_ = clusterInfo_;
} else {
result.clusterInfo_ = clusterInfoBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.voltdb.pmsg.DRAgent.StartCursor) {
return mergeFrom((org.voltdb.pmsg.DRAgent.StartCursor)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.voltdb.pmsg.DRAgent.StartCursor other) {
if (other == org.voltdb.pmsg.DRAgent.StartCursor.getDefaultInstance()) return this;
if (clusterInfoBuilder_ == null) {
if (!other.clusterInfo_.isEmpty()) {
if (clusterInfo_.isEmpty()) {
clusterInfo_ = other.clusterInfo_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureClusterInfoIsMutable();
clusterInfo_.addAll(other.clusterInfo_);
}
onChanged();
}
} else {
if (!other.clusterInfo_.isEmpty()) {
if (clusterInfoBuilder_.isEmpty()) {
clusterInfoBuilder_.dispose();
clusterInfoBuilder_ = null;
clusterInfo_ = other.clusterInfo_;
bitField0_ = (bitField0_ & ~0x00000001);
clusterInfoBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getClusterInfoFieldBuilder() : null;
} else {
clusterInfoBuilder_.addAllMessages(other.clusterInfo_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getClusterInfoCount(); i++) {
if (!getClusterInfo(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.voltdb.pmsg.DRAgent.StartCursor parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.voltdb.pmsg.DRAgent.StartCursor) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .pmsg.ClusterInfo clusterInfo = 1;
private java.util.List<org.voltdb.pmsg.DRAgent.ClusterInfo> clusterInfo_ =
java.util.Collections.emptyList();
private void ensureClusterInfoIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
clusterInfo_ = new java.util.ArrayList<org.voltdb.pmsg.DRAgent.ClusterInfo>(clusterInfo_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.voltdb.pmsg.DRAgent.ClusterInfo, org.voltdb.pmsg.DRAgent.ClusterInfo.Builder, org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder> clusterInfoBuilder_;
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public java.util.List<org.voltdb.pmsg.DRAgent.ClusterInfo> getClusterInfoList() {
if (clusterInfoBuilder_ == null) {
return java.util.Collections.unmodifiableList(clusterInfo_);
} else {
return clusterInfoBuilder_.getMessageList();
}
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public int getClusterInfoCount() {
if (clusterInfoBuilder_ == null) {
return clusterInfo_.size();
} else {
return clusterInfoBuilder_.getCount();
}
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public org.voltdb.pmsg.DRAgent.ClusterInfo getClusterInfo(int index) {
if (clusterInfoBuilder_ == null) {
return clusterInfo_.get(index);
} else {
return clusterInfoBuilder_.getMessage(index);
}
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public Builder setClusterInfo(
int index, org.voltdb.pmsg.DRAgent.ClusterInfo value) {
if (clusterInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClusterInfoIsMutable();
clusterInfo_.set(index, value);
onChanged();
} else {
clusterInfoBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public Builder setClusterInfo(
int index, org.voltdb.pmsg.DRAgent.ClusterInfo.Builder builderForValue) {
if (clusterInfoBuilder_ == null) {
ensureClusterInfoIsMutable();
clusterInfo_.set(index, builderForValue.build());
onChanged();
} else {
clusterInfoBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public Builder addClusterInfo(org.voltdb.pmsg.DRAgent.ClusterInfo value) {
if (clusterInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClusterInfoIsMutable();
clusterInfo_.add(value);
onChanged();
} else {
clusterInfoBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public Builder addClusterInfo(
int index, org.voltdb.pmsg.DRAgent.ClusterInfo value) {
if (clusterInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClusterInfoIsMutable();
clusterInfo_.add(index, value);
onChanged();
} else {
clusterInfoBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public Builder addClusterInfo(
org.voltdb.pmsg.DRAgent.ClusterInfo.Builder builderForValue) {
if (clusterInfoBuilder_ == null) {
ensureClusterInfoIsMutable();
clusterInfo_.add(builderForValue.build());
onChanged();
} else {
clusterInfoBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public Builder addClusterInfo(
int index, org.voltdb.pmsg.DRAgent.ClusterInfo.Builder builderForValue) {
if (clusterInfoBuilder_ == null) {
ensureClusterInfoIsMutable();
clusterInfo_.add(index, builderForValue.build());
onChanged();
} else {
clusterInfoBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public Builder addAllClusterInfo(
java.lang.Iterable<? extends org.voltdb.pmsg.DRAgent.ClusterInfo> values) {
if (clusterInfoBuilder_ == null) {
ensureClusterInfoIsMutable();
super.addAll(values, clusterInfo_);
onChanged();
} else {
clusterInfoBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public Builder clearClusterInfo() {
if (clusterInfoBuilder_ == null) {
clusterInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
clusterInfoBuilder_.clear();
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public Builder removeClusterInfo(int index) {
if (clusterInfoBuilder_ == null) {
ensureClusterInfoIsMutable();
clusterInfo_.remove(index);
onChanged();
} else {
clusterInfoBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public org.voltdb.pmsg.DRAgent.ClusterInfo.Builder getClusterInfoBuilder(
int index) {
return getClusterInfoFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder getClusterInfoOrBuilder(
int index) {
if (clusterInfoBuilder_ == null) {
return clusterInfo_.get(index); } else {
return clusterInfoBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public java.util.List<? extends org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder>
getClusterInfoOrBuilderList() {
if (clusterInfoBuilder_ != null) {
return clusterInfoBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(clusterInfo_);
}
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public org.voltdb.pmsg.DRAgent.ClusterInfo.Builder addClusterInfoBuilder() {
return getClusterInfoFieldBuilder().addBuilder(
org.voltdb.pmsg.DRAgent.ClusterInfo.getDefaultInstance());
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public org.voltdb.pmsg.DRAgent.ClusterInfo.Builder addClusterInfoBuilder(
int index) {
return getClusterInfoFieldBuilder().addBuilder(
index, org.voltdb.pmsg.DRAgent.ClusterInfo.getDefaultInstance());
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 1;</code>
*/
public java.util.List<org.voltdb.pmsg.DRAgent.ClusterInfo.Builder>
getClusterInfoBuilderList() {
return getClusterInfoFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.voltdb.pmsg.DRAgent.ClusterInfo, org.voltdb.pmsg.DRAgent.ClusterInfo.Builder, org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder>
getClusterInfoFieldBuilder() {
if (clusterInfoBuilder_ == null) {
clusterInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.voltdb.pmsg.DRAgent.ClusterInfo, org.voltdb.pmsg.DRAgent.ClusterInfo.Builder, org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder>(
clusterInfo_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
clusterInfo_ = null;
}
return clusterInfoBuilder_;
}
// @@protoc_insertion_point(builder_scope:pmsg.StartCursor)
}
static {
defaultInstance = new StartCursor(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pmsg.StartCursor)
}
public interface ResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .pmsg.UUID id = 1;
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
boolean hasId();
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
org.voltdb.pmsg.DRAgent.UUID getId();
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
org.voltdb.pmsg.DRAgent.UUIDOrBuilder getIdOrBuilder();
// optional .pmsg.Response.ReplicationMode mode = 2;
/**
* <code>optional .pmsg.Response.ReplicationMode mode = 2;</code>
*/
boolean hasMode();
/**
* <code>optional .pmsg.Response.ReplicationMode mode = 2;</code>
*/
org.voltdb.pmsg.DRAgent.Response.ReplicationMode getMode();
// optional fixed64 snapshotTimestamp = 3;
/**
* <code>optional fixed64 snapshotTimestamp = 3;</code>
*/
boolean hasSnapshotTimestamp();
/**
* <code>optional fixed64 snapshotTimestamp = 3;</code>
*/
long getSnapshotTimestamp();
// optional fixed64 instanceIdHash = 4;
/**
* <code>optional fixed64 instanceIdHash = 4;</code>
*/
boolean hasInstanceIdHash();
/**
* <code>optional fixed64 instanceIdHash = 4;</code>
*/
long getInstanceIdHash();
// optional string version = 5;
/**
* <code>optional string version = 5;</code>
*/
boolean hasVersion();
/**
* <code>optional string version = 5;</code>
*/
java.lang.String getVersion();
/**
* <code>optional string version = 5;</code>
*/
com.google.protobuf.ByteString
getVersionBytes();
// repeated .pmsg.NodeInfo nodeInfo = 6;
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
java.util.List<org.voltdb.pmsg.DRAgent.NodeInfo>
getNodeInfoList();
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
org.voltdb.pmsg.DRAgent.NodeInfo getNodeInfo(int index);
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
int getNodeInfoCount();
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
java.util.List<? extends org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder>
getNodeInfoOrBuilderList();
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder getNodeInfoOrBuilder(
int index);
// optional int32 globalPartitionCount = 7;
/**
* <code>optional int32 globalPartitionCount = 7;</code>
*/
boolean hasGlobalPartitionCount();
/**
* <code>optional int32 globalPartitionCount = 7;</code>
*/
int getGlobalPartitionCount();
// repeated .pmsg.PartitionInfo partitionInfo = 8;
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
java.util.List<org.voltdb.pmsg.DRAgent.PartitionInfo>
getPartitionInfoList();
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
org.voltdb.pmsg.DRAgent.PartitionInfo getPartitionInfo(int index);
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
int getPartitionInfoCount();
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
java.util.List<? extends org.voltdb.pmsg.DRAgent.PartitionInfoOrBuilder>
getPartitionInfoOrBuilderList();
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
org.voltdb.pmsg.DRAgent.PartitionInfoOrBuilder getPartitionInfoOrBuilder(
int index);
// optional int32 status = 9 [default = 0];
/**
* <code>optional int32 status = 9 [default = 0];</code>
*
* <pre>
* status. 0 means ok
* </pre>
*/
boolean hasStatus();
/**
* <code>optional int32 status = 9 [default = 0];</code>
*
* <pre>
* status. 0 means ok
* </pre>
*/
int getStatus();
// optional .pmsg.CtrlEnvelope.Type type = 10;
/**
* <code>optional .pmsg.CtrlEnvelope.Type type = 10;</code>
*/
boolean hasType();
/**
* <code>optional .pmsg.CtrlEnvelope.Type type = 10;</code>
*/
org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type getType();
// optional fixed64 catalogCRC = 11;
/**
* <code>optional fixed64 catalogCRC = 11;</code>
*/
boolean hasCatalogCRC();
/**
* <code>optional fixed64 catalogCRC = 11;</code>
*/
long getCatalogCRC();
// optional string catalogSignature = 12;
/**
* <code>optional string catalogSignature = 12;</code>
*/
boolean hasCatalogSignature();
/**
* <code>optional string catalogSignature = 12;</code>
*/
java.lang.String getCatalogSignature();
/**
* <code>optional string catalogSignature = 12;</code>
*/
com.google.protobuf.ByteString
getCatalogSignatureBytes();
// optional string failureCause = 13;
/**
* <code>optional string failureCause = 13;</code>
*/
boolean hasFailureCause();
/**
* <code>optional string failureCause = 13;</code>
*/
java.lang.String getFailureCause();
/**
* <code>optional string failureCause = 13;</code>
*/
com.google.protobuf.ByteString
getFailureCauseBytes();
// optional bool isEndOfStream = 14;
/**
* <code>optional bool isEndOfStream = 14;</code>
*/
boolean hasIsEndOfStream();
/**
* <code>optional bool isEndOfStream = 14;</code>
*/
boolean getIsEndOfStream();
// optional int32 protocolVersion = 15;
/**
* <code>optional int32 protocolVersion = 15;</code>
*/
boolean hasProtocolVersion();
/**
* <code>optional int32 protocolVersion = 15;</code>
*/
int getProtocolVersion();
}
/**
* Protobuf type {@code pmsg.Response}
*/
public static final class Response extends
com.google.protobuf.GeneratedMessage
implements ResponseOrBuilder {
// Use Response.newBuilder() to construct.
private Response(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Response(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Response defaultInstance;
public static Response getDefaultInstance() {
return defaultInstance;
}
public Response getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Response(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.voltdb.pmsg.DRAgent.UUID.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.voltdb.pmsg.DRAgent.UUID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 16: {
int rawValue = input.readEnum();
org.voltdb.pmsg.DRAgent.Response.ReplicationMode value = org.voltdb.pmsg.DRAgent.Response.ReplicationMode.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
mode_ = value;
}
break;
}
case 25: {
bitField0_ |= 0x00000004;
snapshotTimestamp_ = input.readFixed64();
break;
}
case 33: {
bitField0_ |= 0x00000008;
instanceIdHash_ = input.readFixed64();
break;
}
case 42: {
bitField0_ |= 0x00000010;
version_ = input.readBytes();
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
nodeInfo_ = new java.util.ArrayList<org.voltdb.pmsg.DRAgent.NodeInfo>();
mutable_bitField0_ |= 0x00000020;
}
nodeInfo_.add(input.readMessage(org.voltdb.pmsg.DRAgent.NodeInfo.PARSER, extensionRegistry));
break;
}
case 56: {
bitField0_ |= 0x00000020;
globalPartitionCount_ = input.readInt32();
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
partitionInfo_ = new java.util.ArrayList<org.voltdb.pmsg.DRAgent.PartitionInfo>();
mutable_bitField0_ |= 0x00000080;
}
partitionInfo_.add(input.readMessage(org.voltdb.pmsg.DRAgent.PartitionInfo.PARSER, extensionRegistry));
break;
}
case 72: {
bitField0_ |= 0x00000040;
status_ = input.readInt32();
break;
}
case 80: {
int rawValue = input.readEnum();
org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type value = org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(10, rawValue);
} else {
bitField0_ |= 0x00000080;
type_ = value;
}
break;
}
case 89: {
bitField0_ |= 0x00000100;
catalogCRC_ = input.readFixed64();
break;
}
case 98: {
bitField0_ |= 0x00000200;
catalogSignature_ = input.readBytes();
break;
}
case 106: {
bitField0_ |= 0x00000400;
failureCause_ = input.readBytes();
break;
}
case 112: {
bitField0_ |= 0x00000800;
isEndOfStream_ = input.readBool();
break;
}
case 120: {
bitField0_ |= 0x00001000;
protocolVersion_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
nodeInfo_ = java.util.Collections.unmodifiableList(nodeInfo_);
}
if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
partitionInfo_ = java.util.Collections.unmodifiableList(partitionInfo_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Response_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.Response.class, org.voltdb.pmsg.DRAgent.Response.Builder.class);
}
public static com.google.protobuf.Parser<Response> PARSER =
new com.google.protobuf.AbstractParser<Response>() {
public Response parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Response(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Response> getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code pmsg.Response.ReplicationMode}
*/
public enum ReplicationMode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>IDLE = 1;</code>
*/
IDLE(0, 1),
/**
* <code>SYNCING_REPLICATED = 2;</code>
*/
SYNCING_REPLICATED(1, 2),
/**
* <code>SYNCING_PARTITIONED = 3;</code>
*/
SYNCING_PARTITIONED(2, 3),
/**
* <code>ACTIVE = 4;</code>
*/
ACTIVE(3, 4),
/**
* <code>UNAVAILABLE = 5;</code>
*/
UNAVAILABLE(4, 5),
;
/**
* <code>IDLE = 1;</code>
*/
public static final int IDLE_VALUE = 1;
/**
* <code>SYNCING_REPLICATED = 2;</code>
*/
public static final int SYNCING_REPLICATED_VALUE = 2;
/**
* <code>SYNCING_PARTITIONED = 3;</code>
*/
public static final int SYNCING_PARTITIONED_VALUE = 3;
/**
* <code>ACTIVE = 4;</code>
*/
public static final int ACTIVE_VALUE = 4;
/**
* <code>UNAVAILABLE = 5;</code>
*/
public static final int UNAVAILABLE_VALUE = 5;
public final int getNumber() { return value; }
public static ReplicationMode valueOf(int value) {
switch (value) {
case 1: return IDLE;
case 2: return SYNCING_REPLICATED;
case 3: return SYNCING_PARTITIONED;
case 4: return ACTIVE;
case 5: return UNAVAILABLE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<ReplicationMode>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<ReplicationMode>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<ReplicationMode>() {
public ReplicationMode findValueByNumber(int number) {
return ReplicationMode.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.Response.getDescriptor().getEnumTypes().get(0);
}
private static final ReplicationMode[] VALUES = values();
public static ReplicationMode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private ReplicationMode(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:pmsg.Response.ReplicationMode)
}
private int bitField0_;
// required .pmsg.UUID id = 1;
public static final int ID_FIELD_NUMBER = 1;
private org.voltdb.pmsg.DRAgent.UUID id_;
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
public org.voltdb.pmsg.DRAgent.UUID getId() {
return id_;
}
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
public org.voltdb.pmsg.DRAgent.UUIDOrBuilder getIdOrBuilder() {
return id_;
}
// optional .pmsg.Response.ReplicationMode mode = 2;
public static final int MODE_FIELD_NUMBER = 2;
private org.voltdb.pmsg.DRAgent.Response.ReplicationMode mode_;
/**
* <code>optional .pmsg.Response.ReplicationMode mode = 2;</code>
*/
public boolean hasMode() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .pmsg.Response.ReplicationMode mode = 2;</code>
*/
public org.voltdb.pmsg.DRAgent.Response.ReplicationMode getMode() {
return mode_;
}
// optional fixed64 snapshotTimestamp = 3;
public static final int SNAPSHOTTIMESTAMP_FIELD_NUMBER = 3;
private long snapshotTimestamp_;
/**
* <code>optional fixed64 snapshotTimestamp = 3;</code>
*/
public boolean hasSnapshotTimestamp() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional fixed64 snapshotTimestamp = 3;</code>
*/
public long getSnapshotTimestamp() {
return snapshotTimestamp_;
}
// optional fixed64 instanceIdHash = 4;
public static final int INSTANCEIDHASH_FIELD_NUMBER = 4;
private long instanceIdHash_;
/**
* <code>optional fixed64 instanceIdHash = 4;</code>
*/
public boolean hasInstanceIdHash() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional fixed64 instanceIdHash = 4;</code>
*/
public long getInstanceIdHash() {
return instanceIdHash_;
}
// optional string version = 5;
public static final int VERSION_FIELD_NUMBER = 5;
private java.lang.Object version_;
/**
* <code>optional string version = 5;</code>
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional string version = 5;</code>
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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()) {
version_ = s;
}
return s;
}
}
/**
* <code>optional string version = 5;</code>
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// repeated .pmsg.NodeInfo nodeInfo = 6;
public static final int NODEINFO_FIELD_NUMBER = 6;
private java.util.List<org.voltdb.pmsg.DRAgent.NodeInfo> nodeInfo_;
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public java.util.List<org.voltdb.pmsg.DRAgent.NodeInfo> getNodeInfoList() {
return nodeInfo_;
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public java.util.List<? extends org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder>
getNodeInfoOrBuilderList() {
return nodeInfo_;
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public int getNodeInfoCount() {
return nodeInfo_.size();
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public org.voltdb.pmsg.DRAgent.NodeInfo getNodeInfo(int index) {
return nodeInfo_.get(index);
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder getNodeInfoOrBuilder(
int index) {
return nodeInfo_.get(index);
}
// optional int32 globalPartitionCount = 7;
public static final int GLOBALPARTITIONCOUNT_FIELD_NUMBER = 7;
private int globalPartitionCount_;
/**
* <code>optional int32 globalPartitionCount = 7;</code>
*/
public boolean hasGlobalPartitionCount() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional int32 globalPartitionCount = 7;</code>
*/
public int getGlobalPartitionCount() {
return globalPartitionCount_;
}
// repeated .pmsg.PartitionInfo partitionInfo = 8;
public static final int PARTITIONINFO_FIELD_NUMBER = 8;
private java.util.List<org.voltdb.pmsg.DRAgent.PartitionInfo> partitionInfo_;
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public java.util.List<org.voltdb.pmsg.DRAgent.PartitionInfo> getPartitionInfoList() {
return partitionInfo_;
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public java.util.List<? extends org.voltdb.pmsg.DRAgent.PartitionInfoOrBuilder>
getPartitionInfoOrBuilderList() {
return partitionInfo_;
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public int getPartitionInfoCount() {
return partitionInfo_.size();
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public org.voltdb.pmsg.DRAgent.PartitionInfo getPartitionInfo(int index) {
return partitionInfo_.get(index);
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public org.voltdb.pmsg.DRAgent.PartitionInfoOrBuilder getPartitionInfoOrBuilder(
int index) {
return partitionInfo_.get(index);
}
// optional int32 status = 9 [default = 0];
public static final int STATUS_FIELD_NUMBER = 9;
private int status_;
/**
* <code>optional int32 status = 9 [default = 0];</code>
*
* <pre>
* status. 0 means ok
* </pre>
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional int32 status = 9 [default = 0];</code>
*
* <pre>
* status. 0 means ok
* </pre>
*/
public int getStatus() {
return status_;
}
// optional .pmsg.CtrlEnvelope.Type type = 10;
public static final int TYPE_FIELD_NUMBER = 10;
private org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type type_;
/**
* <code>optional .pmsg.CtrlEnvelope.Type type = 10;</code>
*/
public boolean hasType() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional .pmsg.CtrlEnvelope.Type type = 10;</code>
*/
public org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type getType() {
return type_;
}
// optional fixed64 catalogCRC = 11;
public static final int CATALOGCRC_FIELD_NUMBER = 11;
private long catalogCRC_;
/**
* <code>optional fixed64 catalogCRC = 11;</code>
*/
public boolean hasCatalogCRC() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional fixed64 catalogCRC = 11;</code>
*/
public long getCatalogCRC() {
return catalogCRC_;
}
// optional string catalogSignature = 12;
public static final int CATALOGSIGNATURE_FIELD_NUMBER = 12;
private java.lang.Object catalogSignature_;
/**
* <code>optional string catalogSignature = 12;</code>
*/
public boolean hasCatalogSignature() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* <code>optional string catalogSignature = 12;</code>
*/
public java.lang.String getCatalogSignature() {
java.lang.Object ref = catalogSignature_;
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()) {
catalogSignature_ = s;
}
return s;
}
}
/**
* <code>optional string catalogSignature = 12;</code>
*/
public com.google.protobuf.ByteString
getCatalogSignatureBytes() {
java.lang.Object ref = catalogSignature_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
catalogSignature_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string failureCause = 13;
public static final int FAILURECAUSE_FIELD_NUMBER = 13;
private java.lang.Object failureCause_;
/**
* <code>optional string failureCause = 13;</code>
*/
public boolean hasFailureCause() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* <code>optional string failureCause = 13;</code>
*/
public java.lang.String getFailureCause() {
java.lang.Object ref = failureCause_;
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()) {
failureCause_ = s;
}
return s;
}
}
/**
* <code>optional string failureCause = 13;</code>
*/
public com.google.protobuf.ByteString
getFailureCauseBytes() {
java.lang.Object ref = failureCause_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
failureCause_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional bool isEndOfStream = 14;
public static final int ISENDOFSTREAM_FIELD_NUMBER = 14;
private boolean isEndOfStream_;
/**
* <code>optional bool isEndOfStream = 14;</code>
*/
public boolean hasIsEndOfStream() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* <code>optional bool isEndOfStream = 14;</code>
*/
public boolean getIsEndOfStream() {
return isEndOfStream_;
}
// optional int32 protocolVersion = 15;
public static final int PROTOCOLVERSION_FIELD_NUMBER = 15;
private int protocolVersion_;
/**
* <code>optional int32 protocolVersion = 15;</code>
*/
public boolean hasProtocolVersion() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* <code>optional int32 protocolVersion = 15;</code>
*/
public int getProtocolVersion() {
return protocolVersion_;
}
private void initFields() {
id_ = org.voltdb.pmsg.DRAgent.UUID.getDefaultInstance();
mode_ = org.voltdb.pmsg.DRAgent.Response.ReplicationMode.IDLE;
snapshotTimestamp_ = 0L;
instanceIdHash_ = 0L;
version_ = "";
nodeInfo_ = java.util.Collections.emptyList();
globalPartitionCount_ = 0;
partitionInfo_ = java.util.Collections.emptyList();
status_ = 0;
type_ = org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type.ACK;
catalogCRC_ = 0L;
catalogSignature_ = "";
failureCause_ = "";
isEndOfStream_ = false;
protocolVersion_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasId()) {
memoizedIsInitialized = 0;
return false;
}
if (!getId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeEnum(2, mode_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeFixed64(3, snapshotTimestamp_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeFixed64(4, instanceIdHash_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBytes(5, getVersionBytes());
}
for (int i = 0; i < nodeInfo_.size(); i++) {
output.writeMessage(6, nodeInfo_.get(i));
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt32(7, globalPartitionCount_);
}
for (int i = 0; i < partitionInfo_.size(); i++) {
output.writeMessage(8, partitionInfo_.get(i));
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeInt32(9, status_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeEnum(10, type_.getNumber());
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeFixed64(11, catalogCRC_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeBytes(12, getCatalogSignatureBytes());
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeBytes(13, getFailureCauseBytes());
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeBool(14, isEndOfStream_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
output.writeInt32(15, protocolVersion_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, mode_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(3, snapshotTimestamp_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(4, instanceIdHash_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, getVersionBytes());
}
for (int i = 0; i < nodeInfo_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, nodeInfo_.get(i));
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, globalPartitionCount_);
}
for (int i = 0; i < partitionInfo_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, partitionInfo_.get(i));
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(9, status_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(10, type_.getNumber());
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(11, catalogCRC_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(12, getCatalogSignatureBytes());
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(13, getFailureCauseBytes());
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(14, isEndOfStream_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(15, protocolVersion_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.voltdb.pmsg.DRAgent.Response parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.Response parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Response parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.Response parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Response parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.Response parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Response parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.voltdb.pmsg.DRAgent.Response parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.Response parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.Response parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.voltdb.pmsg.DRAgent.Response prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pmsg.Response}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.voltdb.pmsg.DRAgent.ResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Response_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.Response.class, org.voltdb.pmsg.DRAgent.Response.Builder.class);
}
// Construct using org.voltdb.pmsg.DRAgent.Response.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getIdFieldBuilder();
getNodeInfoFieldBuilder();
getPartitionInfoFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (idBuilder_ == null) {
id_ = org.voltdb.pmsg.DRAgent.UUID.getDefaultInstance();
} else {
idBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
mode_ = org.voltdb.pmsg.DRAgent.Response.ReplicationMode.IDLE;
bitField0_ = (bitField0_ & ~0x00000002);
snapshotTimestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
instanceIdHash_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
version_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
if (nodeInfoBuilder_ == null) {
nodeInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
nodeInfoBuilder_.clear();
}
globalPartitionCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
if (partitionInfoBuilder_ == null) {
partitionInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
} else {
partitionInfoBuilder_.clear();
}
status_ = 0;
bitField0_ = (bitField0_ & ~0x00000100);
type_ = org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type.ACK;
bitField0_ = (bitField0_ & ~0x00000200);
catalogCRC_ = 0L;
bitField0_ = (bitField0_ & ~0x00000400);
catalogSignature_ = "";
bitField0_ = (bitField0_ & ~0x00000800);
failureCause_ = "";
bitField0_ = (bitField0_ & ~0x00001000);
isEndOfStream_ = false;
bitField0_ = (bitField0_ & ~0x00002000);
protocolVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00004000);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_Response_descriptor;
}
public org.voltdb.pmsg.DRAgent.Response getDefaultInstanceForType() {
return org.voltdb.pmsg.DRAgent.Response.getDefaultInstance();
}
public org.voltdb.pmsg.DRAgent.Response build() {
org.voltdb.pmsg.DRAgent.Response result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.voltdb.pmsg.DRAgent.Response buildPartial() {
org.voltdb.pmsg.DRAgent.Response result = new org.voltdb.pmsg.DRAgent.Response(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.mode_ = mode_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.snapshotTimestamp_ = snapshotTimestamp_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.instanceIdHash_ = instanceIdHash_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.version_ = version_;
if (nodeInfoBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020)) {
nodeInfo_ = java.util.Collections.unmodifiableList(nodeInfo_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.nodeInfo_ = nodeInfo_;
} else {
result.nodeInfo_ = nodeInfoBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000020;
}
result.globalPartitionCount_ = globalPartitionCount_;
if (partitionInfoBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080)) {
partitionInfo_ = java.util.Collections.unmodifiableList(partitionInfo_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.partitionInfo_ = partitionInfo_;
} else {
result.partitionInfo_ = partitionInfoBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000040;
}
result.status_ = status_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000080;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000100;
}
result.catalogCRC_ = catalogCRC_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000200;
}
result.catalogSignature_ = catalogSignature_;
if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
to_bitField0_ |= 0x00000400;
}
result.failureCause_ = failureCause_;
if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
to_bitField0_ |= 0x00000800;
}
result.isEndOfStream_ = isEndOfStream_;
if (((from_bitField0_ & 0x00004000) == 0x00004000)) {
to_bitField0_ |= 0x00001000;
}
result.protocolVersion_ = protocolVersion_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.voltdb.pmsg.DRAgent.Response) {
return mergeFrom((org.voltdb.pmsg.DRAgent.Response)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.voltdb.pmsg.DRAgent.Response other) {
if (other == org.voltdb.pmsg.DRAgent.Response.getDefaultInstance()) return this;
if (other.hasId()) {
mergeId(other.getId());
}
if (other.hasMode()) {
setMode(other.getMode());
}
if (other.hasSnapshotTimestamp()) {
setSnapshotTimestamp(other.getSnapshotTimestamp());
}
if (other.hasInstanceIdHash()) {
setInstanceIdHash(other.getInstanceIdHash());
}
if (other.hasVersion()) {
bitField0_ |= 0x00000010;
version_ = other.version_;
onChanged();
}
if (nodeInfoBuilder_ == null) {
if (!other.nodeInfo_.isEmpty()) {
if (nodeInfo_.isEmpty()) {
nodeInfo_ = other.nodeInfo_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureNodeInfoIsMutable();
nodeInfo_.addAll(other.nodeInfo_);
}
onChanged();
}
} else {
if (!other.nodeInfo_.isEmpty()) {
if (nodeInfoBuilder_.isEmpty()) {
nodeInfoBuilder_.dispose();
nodeInfoBuilder_ = null;
nodeInfo_ = other.nodeInfo_;
bitField0_ = (bitField0_ & ~0x00000020);
nodeInfoBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getNodeInfoFieldBuilder() : null;
} else {
nodeInfoBuilder_.addAllMessages(other.nodeInfo_);
}
}
}
if (other.hasGlobalPartitionCount()) {
setGlobalPartitionCount(other.getGlobalPartitionCount());
}
if (partitionInfoBuilder_ == null) {
if (!other.partitionInfo_.isEmpty()) {
if (partitionInfo_.isEmpty()) {
partitionInfo_ = other.partitionInfo_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensurePartitionInfoIsMutable();
partitionInfo_.addAll(other.partitionInfo_);
}
onChanged();
}
} else {
if (!other.partitionInfo_.isEmpty()) {
if (partitionInfoBuilder_.isEmpty()) {
partitionInfoBuilder_.dispose();
partitionInfoBuilder_ = null;
partitionInfo_ = other.partitionInfo_;
bitField0_ = (bitField0_ & ~0x00000080);
partitionInfoBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getPartitionInfoFieldBuilder() : null;
} else {
partitionInfoBuilder_.addAllMessages(other.partitionInfo_);
}
}
}
if (other.hasStatus()) {
setStatus(other.getStatus());
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasCatalogCRC()) {
setCatalogCRC(other.getCatalogCRC());
}
if (other.hasCatalogSignature()) {
bitField0_ |= 0x00000800;
catalogSignature_ = other.catalogSignature_;
onChanged();
}
if (other.hasFailureCause()) {
bitField0_ |= 0x00001000;
failureCause_ = other.failureCause_;
onChanged();
}
if (other.hasIsEndOfStream()) {
setIsEndOfStream(other.getIsEndOfStream());
}
if (other.hasProtocolVersion()) {
setProtocolVersion(other.getProtocolVersion());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasId()) {
return false;
}
if (!getId().isInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.voltdb.pmsg.DRAgent.Response parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.voltdb.pmsg.DRAgent.Response) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .pmsg.UUID id = 1;
private org.voltdb.pmsg.DRAgent.UUID id_ = org.voltdb.pmsg.DRAgent.UUID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.UUID, org.voltdb.pmsg.DRAgent.UUID.Builder, org.voltdb.pmsg.DRAgent.UUIDOrBuilder> idBuilder_;
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
public org.voltdb.pmsg.DRAgent.UUID getId() {
if (idBuilder_ == null) {
return id_;
} else {
return idBuilder_.getMessage();
}
}
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
public Builder setId(org.voltdb.pmsg.DRAgent.UUID value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
public Builder setId(
org.voltdb.pmsg.DRAgent.UUID.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
public Builder mergeId(org.voltdb.pmsg.DRAgent.UUID value) {
if (idBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
id_ != org.voltdb.pmsg.DRAgent.UUID.getDefaultInstance()) {
id_ =
org.voltdb.pmsg.DRAgent.UUID.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = org.voltdb.pmsg.DRAgent.UUID.getDefaultInstance();
onChanged();
} else {
idBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
public org.voltdb.pmsg.DRAgent.UUID.Builder getIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
public org.voltdb.pmsg.DRAgent.UUIDOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_;
}
}
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.UUID, org.voltdb.pmsg.DRAgent.UUID.Builder, org.voltdb.pmsg.DRAgent.UUIDOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.UUID, org.voltdb.pmsg.DRAgent.UUID.Builder, org.voltdb.pmsg.DRAgent.UUIDOrBuilder>(
id_,
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
// optional .pmsg.Response.ReplicationMode mode = 2;
private org.voltdb.pmsg.DRAgent.Response.ReplicationMode mode_ = org.voltdb.pmsg.DRAgent.Response.ReplicationMode.IDLE;
/**
* <code>optional .pmsg.Response.ReplicationMode mode = 2;</code>
*/
public boolean hasMode() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .pmsg.Response.ReplicationMode mode = 2;</code>
*/
public org.voltdb.pmsg.DRAgent.Response.ReplicationMode getMode() {
return mode_;
}
/**
* <code>optional .pmsg.Response.ReplicationMode mode = 2;</code>
*/
public Builder setMode(org.voltdb.pmsg.DRAgent.Response.ReplicationMode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
mode_ = value;
onChanged();
return this;
}
/**
* <code>optional .pmsg.Response.ReplicationMode mode = 2;</code>
*/
public Builder clearMode() {
bitField0_ = (bitField0_ & ~0x00000002);
mode_ = org.voltdb.pmsg.DRAgent.Response.ReplicationMode.IDLE;
onChanged();
return this;
}
// optional fixed64 snapshotTimestamp = 3;
private long snapshotTimestamp_ ;
/**
* <code>optional fixed64 snapshotTimestamp = 3;</code>
*/
public boolean hasSnapshotTimestamp() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional fixed64 snapshotTimestamp = 3;</code>
*/
public long getSnapshotTimestamp() {
return snapshotTimestamp_;
}
/**
* <code>optional fixed64 snapshotTimestamp = 3;</code>
*/
public Builder setSnapshotTimestamp(long value) {
bitField0_ |= 0x00000004;
snapshotTimestamp_ = value;
onChanged();
return this;
}
/**
* <code>optional fixed64 snapshotTimestamp = 3;</code>
*/
public Builder clearSnapshotTimestamp() {
bitField0_ = (bitField0_ & ~0x00000004);
snapshotTimestamp_ = 0L;
onChanged();
return this;
}
// optional fixed64 instanceIdHash = 4;
private long instanceIdHash_ ;
/**
* <code>optional fixed64 instanceIdHash = 4;</code>
*/
public boolean hasInstanceIdHash() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional fixed64 instanceIdHash = 4;</code>
*/
public long getInstanceIdHash() {
return instanceIdHash_;
}
/**
* <code>optional fixed64 instanceIdHash = 4;</code>
*/
public Builder setInstanceIdHash(long value) {
bitField0_ |= 0x00000008;
instanceIdHash_ = value;
onChanged();
return this;
}
/**
* <code>optional fixed64 instanceIdHash = 4;</code>
*/
public Builder clearInstanceIdHash() {
bitField0_ = (bitField0_ & ~0x00000008);
instanceIdHash_ = 0L;
onChanged();
return this;
}
// optional string version = 5;
private java.lang.Object version_ = "";
/**
* <code>optional string version = 5;</code>
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional string version = 5;</code>
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
version_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string version = 5;</code>
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string version = 5;</code>
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
version_ = value;
onChanged();
return this;
}
/**
* <code>optional string version = 5;</code>
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000010);
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
* <code>optional string version = 5;</code>
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
version_ = value;
onChanged();
return this;
}
// repeated .pmsg.NodeInfo nodeInfo = 6;
private java.util.List<org.voltdb.pmsg.DRAgent.NodeInfo> nodeInfo_ =
java.util.Collections.emptyList();
private void ensureNodeInfoIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
nodeInfo_ = new java.util.ArrayList<org.voltdb.pmsg.DRAgent.NodeInfo>(nodeInfo_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.voltdb.pmsg.DRAgent.NodeInfo, org.voltdb.pmsg.DRAgent.NodeInfo.Builder, org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder> nodeInfoBuilder_;
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public java.util.List<org.voltdb.pmsg.DRAgent.NodeInfo> getNodeInfoList() {
if (nodeInfoBuilder_ == null) {
return java.util.Collections.unmodifiableList(nodeInfo_);
} else {
return nodeInfoBuilder_.getMessageList();
}
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public int getNodeInfoCount() {
if (nodeInfoBuilder_ == null) {
return nodeInfo_.size();
} else {
return nodeInfoBuilder_.getCount();
}
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public org.voltdb.pmsg.DRAgent.NodeInfo getNodeInfo(int index) {
if (nodeInfoBuilder_ == null) {
return nodeInfo_.get(index);
} else {
return nodeInfoBuilder_.getMessage(index);
}
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public Builder setNodeInfo(
int index, org.voltdb.pmsg.DRAgent.NodeInfo value) {
if (nodeInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeInfoIsMutable();
nodeInfo_.set(index, value);
onChanged();
} else {
nodeInfoBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public Builder setNodeInfo(
int index, org.voltdb.pmsg.DRAgent.NodeInfo.Builder builderForValue) {
if (nodeInfoBuilder_ == null) {
ensureNodeInfoIsMutable();
nodeInfo_.set(index, builderForValue.build());
onChanged();
} else {
nodeInfoBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public Builder addNodeInfo(org.voltdb.pmsg.DRAgent.NodeInfo value) {
if (nodeInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeInfoIsMutable();
nodeInfo_.add(value);
onChanged();
} else {
nodeInfoBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public Builder addNodeInfo(
int index, org.voltdb.pmsg.DRAgent.NodeInfo value) {
if (nodeInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeInfoIsMutable();
nodeInfo_.add(index, value);
onChanged();
} else {
nodeInfoBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public Builder addNodeInfo(
org.voltdb.pmsg.DRAgent.NodeInfo.Builder builderForValue) {
if (nodeInfoBuilder_ == null) {
ensureNodeInfoIsMutable();
nodeInfo_.add(builderForValue.build());
onChanged();
} else {
nodeInfoBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public Builder addNodeInfo(
int index, org.voltdb.pmsg.DRAgent.NodeInfo.Builder builderForValue) {
if (nodeInfoBuilder_ == null) {
ensureNodeInfoIsMutable();
nodeInfo_.add(index, builderForValue.build());
onChanged();
} else {
nodeInfoBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public Builder addAllNodeInfo(
java.lang.Iterable<? extends org.voltdb.pmsg.DRAgent.NodeInfo> values) {
if (nodeInfoBuilder_ == null) {
ensureNodeInfoIsMutable();
super.addAll(values, nodeInfo_);
onChanged();
} else {
nodeInfoBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public Builder clearNodeInfo() {
if (nodeInfoBuilder_ == null) {
nodeInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
nodeInfoBuilder_.clear();
}
return this;
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public Builder removeNodeInfo(int index) {
if (nodeInfoBuilder_ == null) {
ensureNodeInfoIsMutable();
nodeInfo_.remove(index);
onChanged();
} else {
nodeInfoBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public org.voltdb.pmsg.DRAgent.NodeInfo.Builder getNodeInfoBuilder(
int index) {
return getNodeInfoFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder getNodeInfoOrBuilder(
int index) {
if (nodeInfoBuilder_ == null) {
return nodeInfo_.get(index); } else {
return nodeInfoBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public java.util.List<? extends org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder>
getNodeInfoOrBuilderList() {
if (nodeInfoBuilder_ != null) {
return nodeInfoBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(nodeInfo_);
}
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public org.voltdb.pmsg.DRAgent.NodeInfo.Builder addNodeInfoBuilder() {
return getNodeInfoFieldBuilder().addBuilder(
org.voltdb.pmsg.DRAgent.NodeInfo.getDefaultInstance());
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public org.voltdb.pmsg.DRAgent.NodeInfo.Builder addNodeInfoBuilder(
int index) {
return getNodeInfoFieldBuilder().addBuilder(
index, org.voltdb.pmsg.DRAgent.NodeInfo.getDefaultInstance());
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*
* <pre>
* all known nodes globally
* first entry is self
* </pre>
*/
public java.util.List<org.voltdb.pmsg.DRAgent.NodeInfo.Builder>
getNodeInfoBuilderList() {
return getNodeInfoFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.voltdb.pmsg.DRAgent.NodeInfo, org.voltdb.pmsg.DRAgent.NodeInfo.Builder, org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder>
getNodeInfoFieldBuilder() {
if (nodeInfoBuilder_ == null) {
nodeInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.voltdb.pmsg.DRAgent.NodeInfo, org.voltdb.pmsg.DRAgent.NodeInfo.Builder, org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder>(
nodeInfo_,
((bitField0_ & 0x00000020) == 0x00000020),
getParentForChildren(),
isClean());
nodeInfo_ = null;
}
return nodeInfoBuilder_;
}
// optional int32 globalPartitionCount = 7;
private int globalPartitionCount_ ;
/**
* <code>optional int32 globalPartitionCount = 7;</code>
*/
public boolean hasGlobalPartitionCount() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional int32 globalPartitionCount = 7;</code>
*/
public int getGlobalPartitionCount() {
return globalPartitionCount_;
}
/**
* <code>optional int32 globalPartitionCount = 7;</code>
*/
public Builder setGlobalPartitionCount(int value) {
bitField0_ |= 0x00000040;
globalPartitionCount_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 globalPartitionCount = 7;</code>
*/
public Builder clearGlobalPartitionCount() {
bitField0_ = (bitField0_ & ~0x00000040);
globalPartitionCount_ = 0;
onChanged();
return this;
}
// repeated .pmsg.PartitionInfo partitionInfo = 8;
private java.util.List<org.voltdb.pmsg.DRAgent.PartitionInfo> partitionInfo_ =
java.util.Collections.emptyList();
private void ensurePartitionInfoIsMutable() {
if (!((bitField0_ & 0x00000080) == 0x00000080)) {
partitionInfo_ = new java.util.ArrayList<org.voltdb.pmsg.DRAgent.PartitionInfo>(partitionInfo_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.voltdb.pmsg.DRAgent.PartitionInfo, org.voltdb.pmsg.DRAgent.PartitionInfo.Builder, org.voltdb.pmsg.DRAgent.PartitionInfoOrBuilder> partitionInfoBuilder_;
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public java.util.List<org.voltdb.pmsg.DRAgent.PartitionInfo> getPartitionInfoList() {
if (partitionInfoBuilder_ == null) {
return java.util.Collections.unmodifiableList(partitionInfo_);
} else {
return partitionInfoBuilder_.getMessageList();
}
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public int getPartitionInfoCount() {
if (partitionInfoBuilder_ == null) {
return partitionInfo_.size();
} else {
return partitionInfoBuilder_.getCount();
}
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public org.voltdb.pmsg.DRAgent.PartitionInfo getPartitionInfo(int index) {
if (partitionInfoBuilder_ == null) {
return partitionInfo_.get(index);
} else {
return partitionInfoBuilder_.getMessage(index);
}
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public Builder setPartitionInfo(
int index, org.voltdb.pmsg.DRAgent.PartitionInfo value) {
if (partitionInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartitionInfoIsMutable();
partitionInfo_.set(index, value);
onChanged();
} else {
partitionInfoBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public Builder setPartitionInfo(
int index, org.voltdb.pmsg.DRAgent.PartitionInfo.Builder builderForValue) {
if (partitionInfoBuilder_ == null) {
ensurePartitionInfoIsMutable();
partitionInfo_.set(index, builderForValue.build());
onChanged();
} else {
partitionInfoBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public Builder addPartitionInfo(org.voltdb.pmsg.DRAgent.PartitionInfo value) {
if (partitionInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartitionInfoIsMutable();
partitionInfo_.add(value);
onChanged();
} else {
partitionInfoBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public Builder addPartitionInfo(
int index, org.voltdb.pmsg.DRAgent.PartitionInfo value) {
if (partitionInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartitionInfoIsMutable();
partitionInfo_.add(index, value);
onChanged();
} else {
partitionInfoBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public Builder addPartitionInfo(
org.voltdb.pmsg.DRAgent.PartitionInfo.Builder builderForValue) {
if (partitionInfoBuilder_ == null) {
ensurePartitionInfoIsMutable();
partitionInfo_.add(builderForValue.build());
onChanged();
} else {
partitionInfoBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public Builder addPartitionInfo(
int index, org.voltdb.pmsg.DRAgent.PartitionInfo.Builder builderForValue) {
if (partitionInfoBuilder_ == null) {
ensurePartitionInfoIsMutable();
partitionInfo_.add(index, builderForValue.build());
onChanged();
} else {
partitionInfoBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public Builder addAllPartitionInfo(
java.lang.Iterable<? extends org.voltdb.pmsg.DRAgent.PartitionInfo> values) {
if (partitionInfoBuilder_ == null) {
ensurePartitionInfoIsMutable();
super.addAll(values, partitionInfo_);
onChanged();
} else {
partitionInfoBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public Builder clearPartitionInfo() {
if (partitionInfoBuilder_ == null) {
partitionInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
partitionInfoBuilder_.clear();
}
return this;
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public Builder removePartitionInfo(int index) {
if (partitionInfoBuilder_ == null) {
ensurePartitionInfoIsMutable();
partitionInfo_.remove(index);
onChanged();
} else {
partitionInfoBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public org.voltdb.pmsg.DRAgent.PartitionInfo.Builder getPartitionInfoBuilder(
int index) {
return getPartitionInfoFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public org.voltdb.pmsg.DRAgent.PartitionInfoOrBuilder getPartitionInfoOrBuilder(
int index) {
if (partitionInfoBuilder_ == null) {
return partitionInfo_.get(index); } else {
return partitionInfoBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public java.util.List<? extends org.voltdb.pmsg.DRAgent.PartitionInfoOrBuilder>
getPartitionInfoOrBuilderList() {
if (partitionInfoBuilder_ != null) {
return partitionInfoBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(partitionInfo_);
}
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public org.voltdb.pmsg.DRAgent.PartitionInfo.Builder addPartitionInfoBuilder() {
return getPartitionInfoFieldBuilder().addBuilder(
org.voltdb.pmsg.DRAgent.PartitionInfo.getDefaultInstance());
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public org.voltdb.pmsg.DRAgent.PartitionInfo.Builder addPartitionInfoBuilder(
int index) {
return getPartitionInfoFieldBuilder().addBuilder(
index, org.voltdb.pmsg.DRAgent.PartitionInfo.getDefaultInstance());
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 8;</code>
*
* <pre>
* local partitions
* </pre>
*/
public java.util.List<org.voltdb.pmsg.DRAgent.PartitionInfo.Builder>
getPartitionInfoBuilderList() {
return getPartitionInfoFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.voltdb.pmsg.DRAgent.PartitionInfo, org.voltdb.pmsg.DRAgent.PartitionInfo.Builder, org.voltdb.pmsg.DRAgent.PartitionInfoOrBuilder>
getPartitionInfoFieldBuilder() {
if (partitionInfoBuilder_ == null) {
partitionInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.voltdb.pmsg.DRAgent.PartitionInfo, org.voltdb.pmsg.DRAgent.PartitionInfo.Builder, org.voltdb.pmsg.DRAgent.PartitionInfoOrBuilder>(
partitionInfo_,
((bitField0_ & 0x00000080) == 0x00000080),
getParentForChildren(),
isClean());
partitionInfo_ = null;
}
return partitionInfoBuilder_;
}
// optional int32 status = 9 [default = 0];
private int status_ ;
/**
* <code>optional int32 status = 9 [default = 0];</code>
*
* <pre>
* status. 0 means ok
* </pre>
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional int32 status = 9 [default = 0];</code>
*
* <pre>
* status. 0 means ok
* </pre>
*/
public int getStatus() {
return status_;
}
/**
* <code>optional int32 status = 9 [default = 0];</code>
*
* <pre>
* status. 0 means ok
* </pre>
*/
public Builder setStatus(int value) {
bitField0_ |= 0x00000100;
status_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 status = 9 [default = 0];</code>
*
* <pre>
* status. 0 means ok
* </pre>
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000100);
status_ = 0;
onChanged();
return this;
}
// optional .pmsg.CtrlEnvelope.Type type = 10;
private org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type type_ = org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type.ACK;
/**
* <code>optional .pmsg.CtrlEnvelope.Type type = 10;</code>
*/
public boolean hasType() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* <code>optional .pmsg.CtrlEnvelope.Type type = 10;</code>
*/
public org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type getType() {
return type_;
}
/**
* <code>optional .pmsg.CtrlEnvelope.Type type = 10;</code>
*/
public Builder setType(org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
type_ = value;
onChanged();
return this;
}
/**
* <code>optional .pmsg.CtrlEnvelope.Type type = 10;</code>
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000200);
type_ = org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type.ACK;
onChanged();
return this;
}
// optional fixed64 catalogCRC = 11;
private long catalogCRC_ ;
/**
* <code>optional fixed64 catalogCRC = 11;</code>
*/
public boolean hasCatalogCRC() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* <code>optional fixed64 catalogCRC = 11;</code>
*/
public long getCatalogCRC() {
return catalogCRC_;
}
/**
* <code>optional fixed64 catalogCRC = 11;</code>
*/
public Builder setCatalogCRC(long value) {
bitField0_ |= 0x00000400;
catalogCRC_ = value;
onChanged();
return this;
}
/**
* <code>optional fixed64 catalogCRC = 11;</code>
*/
public Builder clearCatalogCRC() {
bitField0_ = (bitField0_ & ~0x00000400);
catalogCRC_ = 0L;
onChanged();
return this;
}
// optional string catalogSignature = 12;
private java.lang.Object catalogSignature_ = "";
/**
* <code>optional string catalogSignature = 12;</code>
*/
public boolean hasCatalogSignature() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* <code>optional string catalogSignature = 12;</code>
*/
public java.lang.String getCatalogSignature() {
java.lang.Object ref = catalogSignature_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
catalogSignature_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string catalogSignature = 12;</code>
*/
public com.google.protobuf.ByteString
getCatalogSignatureBytes() {
java.lang.Object ref = catalogSignature_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
catalogSignature_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string catalogSignature = 12;</code>
*/
public Builder setCatalogSignature(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
catalogSignature_ = value;
onChanged();
return this;
}
/**
* <code>optional string catalogSignature = 12;</code>
*/
public Builder clearCatalogSignature() {
bitField0_ = (bitField0_ & ~0x00000800);
catalogSignature_ = getDefaultInstance().getCatalogSignature();
onChanged();
return this;
}
/**
* <code>optional string catalogSignature = 12;</code>
*/
public Builder setCatalogSignatureBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
catalogSignature_ = value;
onChanged();
return this;
}
// optional string failureCause = 13;
private java.lang.Object failureCause_ = "";
/**
* <code>optional string failureCause = 13;</code>
*/
public boolean hasFailureCause() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* <code>optional string failureCause = 13;</code>
*/
public java.lang.String getFailureCause() {
java.lang.Object ref = failureCause_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
failureCause_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string failureCause = 13;</code>
*/
public com.google.protobuf.ByteString
getFailureCauseBytes() {
java.lang.Object ref = failureCause_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
failureCause_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string failureCause = 13;</code>
*/
public Builder setFailureCause(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00001000;
failureCause_ = value;
onChanged();
return this;
}
/**
* <code>optional string failureCause = 13;</code>
*/
public Builder clearFailureCause() {
bitField0_ = (bitField0_ & ~0x00001000);
failureCause_ = getDefaultInstance().getFailureCause();
onChanged();
return this;
}
/**
* <code>optional string failureCause = 13;</code>
*/
public Builder setFailureCauseBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00001000;
failureCause_ = value;
onChanged();
return this;
}
// optional bool isEndOfStream = 14;
private boolean isEndOfStream_ ;
/**
* <code>optional bool isEndOfStream = 14;</code>
*/
public boolean hasIsEndOfStream() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* <code>optional bool isEndOfStream = 14;</code>
*/
public boolean getIsEndOfStream() {
return isEndOfStream_;
}
/**
* <code>optional bool isEndOfStream = 14;</code>
*/
public Builder setIsEndOfStream(boolean value) {
bitField0_ |= 0x00002000;
isEndOfStream_ = value;
onChanged();
return this;
}
/**
* <code>optional bool isEndOfStream = 14;</code>
*/
public Builder clearIsEndOfStream() {
bitField0_ = (bitField0_ & ~0x00002000);
isEndOfStream_ = false;
onChanged();
return this;
}
// optional int32 protocolVersion = 15;
private int protocolVersion_ ;
/**
* <code>optional int32 protocolVersion = 15;</code>
*/
public boolean hasProtocolVersion() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
* <code>optional int32 protocolVersion = 15;</code>
*/
public int getProtocolVersion() {
return protocolVersion_;
}
/**
* <code>optional int32 protocolVersion = 15;</code>
*/
public Builder setProtocolVersion(int value) {
bitField0_ |= 0x00004000;
protocolVersion_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 protocolVersion = 15;</code>
*/
public Builder clearProtocolVersion() {
bitField0_ = (bitField0_ & ~0x00004000);
protocolVersion_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:pmsg.Response)
}
static {
defaultInstance = new Response(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pmsg.Response)
}
public interface CtrlProtoResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .pmsg.UUID id = 1;
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
boolean hasId();
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
org.voltdb.pmsg.DRAgent.UUID getId();
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
org.voltdb.pmsg.DRAgent.UUIDOrBuilder getIdOrBuilder();
// optional .pmsg.CtrlEnvelope.Type type = 2;
/**
* <code>optional .pmsg.CtrlEnvelope.Type type = 2;</code>
*/
boolean hasType();
/**
* <code>optional .pmsg.CtrlEnvelope.Type type = 2;</code>
*/
org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type getType();
// optional int32 status = 3 [default = 0];
/**
* <code>optional int32 status = 3 [default = 0];</code>
*
* <pre>
* status. 0 means ok
* </pre>
*/
boolean hasStatus();
/**
* <code>optional int32 status = 3 [default = 0];</code>
*
* <pre>
* status. 0 means ok
* </pre>
*/
int getStatus();
// optional string failureCause = 4;
/**
* <code>optional string failureCause = 4;</code>
*/
boolean hasFailureCause();
/**
* <code>optional string failureCause = 4;</code>
*/
java.lang.String getFailureCause();
/**
* <code>optional string failureCause = 4;</code>
*/
com.google.protobuf.ByteString
getFailureCauseBytes();
// optional .pmsg.ConnectResponse connectResponse = 5;
/**
* <code>optional .pmsg.ConnectResponse connectResponse = 5;</code>
*/
boolean hasConnectResponse();
/**
* <code>optional .pmsg.ConnectResponse connectResponse = 5;</code>
*/
org.voltdb.pmsg.DRAgent.ConnectResponse getConnectResponse();
/**
* <code>optional .pmsg.ConnectResponse connectResponse = 5;</code>
*/
org.voltdb.pmsg.DRAgent.ConnectResponseOrBuilder getConnectResponseOrBuilder();
// optional .pmsg.QueryResponse queryResponse = 6;
/**
* <code>optional .pmsg.QueryResponse queryResponse = 6;</code>
*/
boolean hasQueryResponse();
/**
* <code>optional .pmsg.QueryResponse queryResponse = 6;</code>
*/
org.voltdb.pmsg.DRAgent.QueryResponse getQueryResponse();
/**
* <code>optional .pmsg.QueryResponse queryResponse = 6;</code>
*/
org.voltdb.pmsg.DRAgent.QueryResponseOrBuilder getQueryResponseOrBuilder();
// optional .pmsg.AckResponse ackResponse = 7;
/**
* <code>optional .pmsg.AckResponse ackResponse = 7;</code>
*/
boolean hasAckResponse();
/**
* <code>optional .pmsg.AckResponse ackResponse = 7;</code>
*/
org.voltdb.pmsg.DRAgent.AckResponse getAckResponse();
/**
* <code>optional .pmsg.AckResponse ackResponse = 7;</code>
*/
org.voltdb.pmsg.DRAgent.AckResponseOrBuilder getAckResponseOrBuilder();
}
/**
* Protobuf type {@code pmsg.CtrlProtoResponse}
*
* <pre>
* More structured Response object for use with VoltDB 7.0 and higher.
* </pre>
*/
public static final class CtrlProtoResponse extends
com.google.protobuf.GeneratedMessage
implements CtrlProtoResponseOrBuilder {
// Use CtrlProtoResponse.newBuilder() to construct.
private CtrlProtoResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CtrlProtoResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CtrlProtoResponse defaultInstance;
public static CtrlProtoResponse getDefaultInstance() {
return defaultInstance;
}
public CtrlProtoResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CtrlProtoResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.voltdb.pmsg.DRAgent.UUID.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.voltdb.pmsg.DRAgent.UUID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 16: {
int rawValue = input.readEnum();
org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type value = org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
type_ = value;
}
break;
}
case 24: {
bitField0_ |= 0x00000004;
status_ = input.readInt32();
break;
}
case 34: {
bitField0_ |= 0x00000008;
failureCause_ = input.readBytes();
break;
}
case 42: {
org.voltdb.pmsg.DRAgent.ConnectResponse.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = connectResponse_.toBuilder();
}
connectResponse_ = input.readMessage(org.voltdb.pmsg.DRAgent.ConnectResponse.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(connectResponse_);
connectResponse_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 50: {
org.voltdb.pmsg.DRAgent.QueryResponse.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
subBuilder = queryResponse_.toBuilder();
}
queryResponse_ = input.readMessage(org.voltdb.pmsg.DRAgent.QueryResponse.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(queryResponse_);
queryResponse_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
case 58: {
org.voltdb.pmsg.DRAgent.AckResponse.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
subBuilder = ackResponse_.toBuilder();
}
ackResponse_ = input.readMessage(org.voltdb.pmsg.DRAgent.AckResponse.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ackResponse_);
ackResponse_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_CtrlProtoResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_CtrlProtoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.CtrlProtoResponse.class, org.voltdb.pmsg.DRAgent.CtrlProtoResponse.Builder.class);
}
public static com.google.protobuf.Parser<CtrlProtoResponse> PARSER =
new com.google.protobuf.AbstractParser<CtrlProtoResponse>() {
public CtrlProtoResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CtrlProtoResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CtrlProtoResponse> getParserForType() {
return PARSER;
}
private int bitField0_;
// required .pmsg.UUID id = 1;
public static final int ID_FIELD_NUMBER = 1;
private org.voltdb.pmsg.DRAgent.UUID id_;
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
public org.voltdb.pmsg.DRAgent.UUID getId() {
return id_;
}
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
public org.voltdb.pmsg.DRAgent.UUIDOrBuilder getIdOrBuilder() {
return id_;
}
// optional .pmsg.CtrlEnvelope.Type type = 2;
public static final int TYPE_FIELD_NUMBER = 2;
private org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type type_;
/**
* <code>optional .pmsg.CtrlEnvelope.Type type = 2;</code>
*/
public boolean hasType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .pmsg.CtrlEnvelope.Type type = 2;</code>
*/
public org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type getType() {
return type_;
}
// optional int32 status = 3 [default = 0];
public static final int STATUS_FIELD_NUMBER = 3;
private int status_;
/**
* <code>optional int32 status = 3 [default = 0];</code>
*
* <pre>
* status. 0 means ok
* </pre>
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int32 status = 3 [default = 0];</code>
*
* <pre>
* status. 0 means ok
* </pre>
*/
public int getStatus() {
return status_;
}
// optional string failureCause = 4;
public static final int FAILURECAUSE_FIELD_NUMBER = 4;
private java.lang.Object failureCause_;
/**
* <code>optional string failureCause = 4;</code>
*/
public boolean hasFailureCause() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional string failureCause = 4;</code>
*/
public java.lang.String getFailureCause() {
java.lang.Object ref = failureCause_;
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()) {
failureCause_ = s;
}
return s;
}
}
/**
* <code>optional string failureCause = 4;</code>
*/
public com.google.protobuf.ByteString
getFailureCauseBytes() {
java.lang.Object ref = failureCause_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
failureCause_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional .pmsg.ConnectResponse connectResponse = 5;
public static final int CONNECTRESPONSE_FIELD_NUMBER = 5;
private org.voltdb.pmsg.DRAgent.ConnectResponse connectResponse_;
/**
* <code>optional .pmsg.ConnectResponse connectResponse = 5;</code>
*/
public boolean hasConnectResponse() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .pmsg.ConnectResponse connectResponse = 5;</code>
*/
public org.voltdb.pmsg.DRAgent.ConnectResponse getConnectResponse() {
return connectResponse_;
}
/**
* <code>optional .pmsg.ConnectResponse connectResponse = 5;</code>
*/
public org.voltdb.pmsg.DRAgent.ConnectResponseOrBuilder getConnectResponseOrBuilder() {
return connectResponse_;
}
// optional .pmsg.QueryResponse queryResponse = 6;
public static final int QUERYRESPONSE_FIELD_NUMBER = 6;
private org.voltdb.pmsg.DRAgent.QueryResponse queryResponse_;
/**
* <code>optional .pmsg.QueryResponse queryResponse = 6;</code>
*/
public boolean hasQueryResponse() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional .pmsg.QueryResponse queryResponse = 6;</code>
*/
public org.voltdb.pmsg.DRAgent.QueryResponse getQueryResponse() {
return queryResponse_;
}
/**
* <code>optional .pmsg.QueryResponse queryResponse = 6;</code>
*/
public org.voltdb.pmsg.DRAgent.QueryResponseOrBuilder getQueryResponseOrBuilder() {
return queryResponse_;
}
// optional .pmsg.AckResponse ackResponse = 7;
public static final int ACKRESPONSE_FIELD_NUMBER = 7;
private org.voltdb.pmsg.DRAgent.AckResponse ackResponse_;
/**
* <code>optional .pmsg.AckResponse ackResponse = 7;</code>
*/
public boolean hasAckResponse() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional .pmsg.AckResponse ackResponse = 7;</code>
*/
public org.voltdb.pmsg.DRAgent.AckResponse getAckResponse() {
return ackResponse_;
}
/**
* <code>optional .pmsg.AckResponse ackResponse = 7;</code>
*/
public org.voltdb.pmsg.DRAgent.AckResponseOrBuilder getAckResponseOrBuilder() {
return ackResponse_;
}
private void initFields() {
id_ = org.voltdb.pmsg.DRAgent.UUID.getDefaultInstance();
type_ = org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type.ACK;
status_ = 0;
failureCause_ = "";
connectResponse_ = org.voltdb.pmsg.DRAgent.ConnectResponse.getDefaultInstance();
queryResponse_ = org.voltdb.pmsg.DRAgent.QueryResponse.getDefaultInstance();
ackResponse_ = org.voltdb.pmsg.DRAgent.AckResponse.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasId()) {
memoizedIsInitialized = 0;
return false;
}
if (!getId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (hasConnectResponse()) {
if (!getConnectResponse().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasQueryResponse()) {
if (!getQueryResponse().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeEnum(2, type_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, status_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getFailureCauseBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(5, connectResponse_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeMessage(6, queryResponse_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeMessage(7, ackResponse_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, type_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, status_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getFailureCauseBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, connectResponse_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, queryResponse_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, ackResponse_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.voltdb.pmsg.DRAgent.CtrlProtoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.CtrlProtoResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.CtrlProtoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.CtrlProtoResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.CtrlProtoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.CtrlProtoResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.CtrlProtoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.voltdb.pmsg.DRAgent.CtrlProtoResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.CtrlProtoResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.CtrlProtoResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.voltdb.pmsg.DRAgent.CtrlProtoResponse prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pmsg.CtrlProtoResponse}
*
* <pre>
* More structured Response object for use with VoltDB 7.0 and higher.
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.voltdb.pmsg.DRAgent.CtrlProtoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_CtrlProtoResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_CtrlProtoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.CtrlProtoResponse.class, org.voltdb.pmsg.DRAgent.CtrlProtoResponse.Builder.class);
}
// Construct using org.voltdb.pmsg.DRAgent.CtrlProtoResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getIdFieldBuilder();
getConnectResponseFieldBuilder();
getQueryResponseFieldBuilder();
getAckResponseFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (idBuilder_ == null) {
id_ = org.voltdb.pmsg.DRAgent.UUID.getDefaultInstance();
} else {
idBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
type_ = org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type.ACK;
bitField0_ = (bitField0_ & ~0x00000002);
status_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
failureCause_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
if (connectResponseBuilder_ == null) {
connectResponse_ = org.voltdb.pmsg.DRAgent.ConnectResponse.getDefaultInstance();
} else {
connectResponseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (queryResponseBuilder_ == null) {
queryResponse_ = org.voltdb.pmsg.DRAgent.QueryResponse.getDefaultInstance();
} else {
queryResponseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
if (ackResponseBuilder_ == null) {
ackResponse_ = org.voltdb.pmsg.DRAgent.AckResponse.getDefaultInstance();
} else {
ackResponseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_CtrlProtoResponse_descriptor;
}
public org.voltdb.pmsg.DRAgent.CtrlProtoResponse getDefaultInstanceForType() {
return org.voltdb.pmsg.DRAgent.CtrlProtoResponse.getDefaultInstance();
}
public org.voltdb.pmsg.DRAgent.CtrlProtoResponse build() {
org.voltdb.pmsg.DRAgent.CtrlProtoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.voltdb.pmsg.DRAgent.CtrlProtoResponse buildPartial() {
org.voltdb.pmsg.DRAgent.CtrlProtoResponse result = new org.voltdb.pmsg.DRAgent.CtrlProtoResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.status_ = status_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.failureCause_ = failureCause_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
if (connectResponseBuilder_ == null) {
result.connectResponse_ = connectResponse_;
} else {
result.connectResponse_ = connectResponseBuilder_.build();
}
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
if (queryResponseBuilder_ == null) {
result.queryResponse_ = queryResponse_;
} else {
result.queryResponse_ = queryResponseBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
if (ackResponseBuilder_ == null) {
result.ackResponse_ = ackResponse_;
} else {
result.ackResponse_ = ackResponseBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.voltdb.pmsg.DRAgent.CtrlProtoResponse) {
return mergeFrom((org.voltdb.pmsg.DRAgent.CtrlProtoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.voltdb.pmsg.DRAgent.CtrlProtoResponse other) {
if (other == org.voltdb.pmsg.DRAgent.CtrlProtoResponse.getDefaultInstance()) return this;
if (other.hasId()) {
mergeId(other.getId());
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasStatus()) {
setStatus(other.getStatus());
}
if (other.hasFailureCause()) {
bitField0_ |= 0x00000008;
failureCause_ = other.failureCause_;
onChanged();
}
if (other.hasConnectResponse()) {
mergeConnectResponse(other.getConnectResponse());
}
if (other.hasQueryResponse()) {
mergeQueryResponse(other.getQueryResponse());
}
if (other.hasAckResponse()) {
mergeAckResponse(other.getAckResponse());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasId()) {
return false;
}
if (!getId().isInitialized()) {
return false;
}
if (hasConnectResponse()) {
if (!getConnectResponse().isInitialized()) {
return false;
}
}
if (hasQueryResponse()) {
if (!getQueryResponse().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.voltdb.pmsg.DRAgent.CtrlProtoResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.voltdb.pmsg.DRAgent.CtrlProtoResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .pmsg.UUID id = 1;
private org.voltdb.pmsg.DRAgent.UUID id_ = org.voltdb.pmsg.DRAgent.UUID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.UUID, org.voltdb.pmsg.DRAgent.UUID.Builder, org.voltdb.pmsg.DRAgent.UUIDOrBuilder> idBuilder_;
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
public org.voltdb.pmsg.DRAgent.UUID getId() {
if (idBuilder_ == null) {
return id_;
} else {
return idBuilder_.getMessage();
}
}
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
public Builder setId(org.voltdb.pmsg.DRAgent.UUID value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
public Builder setId(
org.voltdb.pmsg.DRAgent.UUID.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
public Builder mergeId(org.voltdb.pmsg.DRAgent.UUID value) {
if (idBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
id_ != org.voltdb.pmsg.DRAgent.UUID.getDefaultInstance()) {
id_ =
org.voltdb.pmsg.DRAgent.UUID.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = org.voltdb.pmsg.DRAgent.UUID.getDefaultInstance();
onChanged();
} else {
idBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
public org.voltdb.pmsg.DRAgent.UUID.Builder getIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
public org.voltdb.pmsg.DRAgent.UUIDOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_;
}
}
/**
* <code>required .pmsg.UUID id = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.UUID, org.voltdb.pmsg.DRAgent.UUID.Builder, org.voltdb.pmsg.DRAgent.UUIDOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.UUID, org.voltdb.pmsg.DRAgent.UUID.Builder, org.voltdb.pmsg.DRAgent.UUIDOrBuilder>(
id_,
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
// optional .pmsg.CtrlEnvelope.Type type = 2;
private org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type type_ = org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type.ACK;
/**
* <code>optional .pmsg.CtrlEnvelope.Type type = 2;</code>
*/
public boolean hasType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .pmsg.CtrlEnvelope.Type type = 2;</code>
*/
public org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type getType() {
return type_;
}
/**
* <code>optional .pmsg.CtrlEnvelope.Type type = 2;</code>
*/
public Builder setType(org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
type_ = value;
onChanged();
return this;
}
/**
* <code>optional .pmsg.CtrlEnvelope.Type type = 2;</code>
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
type_ = org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type.ACK;
onChanged();
return this;
}
// optional int32 status = 3 [default = 0];
private int status_ ;
/**
* <code>optional int32 status = 3 [default = 0];</code>
*
* <pre>
* status. 0 means ok
* </pre>
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int32 status = 3 [default = 0];</code>
*
* <pre>
* status. 0 means ok
* </pre>
*/
public int getStatus() {
return status_;
}
/**
* <code>optional int32 status = 3 [default = 0];</code>
*
* <pre>
* status. 0 means ok
* </pre>
*/
public Builder setStatus(int value) {
bitField0_ |= 0x00000004;
status_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 status = 3 [default = 0];</code>
*
* <pre>
* status. 0 means ok
* </pre>
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000004);
status_ = 0;
onChanged();
return this;
}
// optional string failureCause = 4;
private java.lang.Object failureCause_ = "";
/**
* <code>optional string failureCause = 4;</code>
*/
public boolean hasFailureCause() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional string failureCause = 4;</code>
*/
public java.lang.String getFailureCause() {
java.lang.Object ref = failureCause_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
failureCause_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string failureCause = 4;</code>
*/
public com.google.protobuf.ByteString
getFailureCauseBytes() {
java.lang.Object ref = failureCause_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
failureCause_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string failureCause = 4;</code>
*/
public Builder setFailureCause(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
failureCause_ = value;
onChanged();
return this;
}
/**
* <code>optional string failureCause = 4;</code>
*/
public Builder clearFailureCause() {
bitField0_ = (bitField0_ & ~0x00000008);
failureCause_ = getDefaultInstance().getFailureCause();
onChanged();
return this;
}
/**
* <code>optional string failureCause = 4;</code>
*/
public Builder setFailureCauseBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
failureCause_ = value;
onChanged();
return this;
}
// optional .pmsg.ConnectResponse connectResponse = 5;
private org.voltdb.pmsg.DRAgent.ConnectResponse connectResponse_ = org.voltdb.pmsg.DRAgent.ConnectResponse.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.ConnectResponse, org.voltdb.pmsg.DRAgent.ConnectResponse.Builder, org.voltdb.pmsg.DRAgent.ConnectResponseOrBuilder> connectResponseBuilder_;
/**
* <code>optional .pmsg.ConnectResponse connectResponse = 5;</code>
*/
public boolean hasConnectResponse() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .pmsg.ConnectResponse connectResponse = 5;</code>
*/
public org.voltdb.pmsg.DRAgent.ConnectResponse getConnectResponse() {
if (connectResponseBuilder_ == null) {
return connectResponse_;
} else {
return connectResponseBuilder_.getMessage();
}
}
/**
* <code>optional .pmsg.ConnectResponse connectResponse = 5;</code>
*/
public Builder setConnectResponse(org.voltdb.pmsg.DRAgent.ConnectResponse value) {
if (connectResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
connectResponse_ = value;
onChanged();
} else {
connectResponseBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .pmsg.ConnectResponse connectResponse = 5;</code>
*/
public Builder setConnectResponse(
org.voltdb.pmsg.DRAgent.ConnectResponse.Builder builderForValue) {
if (connectResponseBuilder_ == null) {
connectResponse_ = builderForValue.build();
onChanged();
} else {
connectResponseBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .pmsg.ConnectResponse connectResponse = 5;</code>
*/
public Builder mergeConnectResponse(org.voltdb.pmsg.DRAgent.ConnectResponse value) {
if (connectResponseBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
connectResponse_ != org.voltdb.pmsg.DRAgent.ConnectResponse.getDefaultInstance()) {
connectResponse_ =
org.voltdb.pmsg.DRAgent.ConnectResponse.newBuilder(connectResponse_).mergeFrom(value).buildPartial();
} else {
connectResponse_ = value;
}
onChanged();
} else {
connectResponseBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .pmsg.ConnectResponse connectResponse = 5;</code>
*/
public Builder clearConnectResponse() {
if (connectResponseBuilder_ == null) {
connectResponse_ = org.voltdb.pmsg.DRAgent.ConnectResponse.getDefaultInstance();
onChanged();
} else {
connectResponseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* <code>optional .pmsg.ConnectResponse connectResponse = 5;</code>
*/
public org.voltdb.pmsg.DRAgent.ConnectResponse.Builder getConnectResponseBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getConnectResponseFieldBuilder().getBuilder();
}
/**
* <code>optional .pmsg.ConnectResponse connectResponse = 5;</code>
*/
public org.voltdb.pmsg.DRAgent.ConnectResponseOrBuilder getConnectResponseOrBuilder() {
if (connectResponseBuilder_ != null) {
return connectResponseBuilder_.getMessageOrBuilder();
} else {
return connectResponse_;
}
}
/**
* <code>optional .pmsg.ConnectResponse connectResponse = 5;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.ConnectResponse, org.voltdb.pmsg.DRAgent.ConnectResponse.Builder, org.voltdb.pmsg.DRAgent.ConnectResponseOrBuilder>
getConnectResponseFieldBuilder() {
if (connectResponseBuilder_ == null) {
connectResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.ConnectResponse, org.voltdb.pmsg.DRAgent.ConnectResponse.Builder, org.voltdb.pmsg.DRAgent.ConnectResponseOrBuilder>(
connectResponse_,
getParentForChildren(),
isClean());
connectResponse_ = null;
}
return connectResponseBuilder_;
}
// optional .pmsg.QueryResponse queryResponse = 6;
private org.voltdb.pmsg.DRAgent.QueryResponse queryResponse_ = org.voltdb.pmsg.DRAgent.QueryResponse.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.QueryResponse, org.voltdb.pmsg.DRAgent.QueryResponse.Builder, org.voltdb.pmsg.DRAgent.QueryResponseOrBuilder> queryResponseBuilder_;
/**
* <code>optional .pmsg.QueryResponse queryResponse = 6;</code>
*/
public boolean hasQueryResponse() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional .pmsg.QueryResponse queryResponse = 6;</code>
*/
public org.voltdb.pmsg.DRAgent.QueryResponse getQueryResponse() {
if (queryResponseBuilder_ == null) {
return queryResponse_;
} else {
return queryResponseBuilder_.getMessage();
}
}
/**
* <code>optional .pmsg.QueryResponse queryResponse = 6;</code>
*/
public Builder setQueryResponse(org.voltdb.pmsg.DRAgent.QueryResponse value) {
if (queryResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryResponse_ = value;
onChanged();
} else {
queryResponseBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* <code>optional .pmsg.QueryResponse queryResponse = 6;</code>
*/
public Builder setQueryResponse(
org.voltdb.pmsg.DRAgent.QueryResponse.Builder builderForValue) {
if (queryResponseBuilder_ == null) {
queryResponse_ = builderForValue.build();
onChanged();
} else {
queryResponseBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
return this;
}
/**
* <code>optional .pmsg.QueryResponse queryResponse = 6;</code>
*/
public Builder mergeQueryResponse(org.voltdb.pmsg.DRAgent.QueryResponse value) {
if (queryResponseBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020) &&
queryResponse_ != org.voltdb.pmsg.DRAgent.QueryResponse.getDefaultInstance()) {
queryResponse_ =
org.voltdb.pmsg.DRAgent.QueryResponse.newBuilder(queryResponse_).mergeFrom(value).buildPartial();
} else {
queryResponse_ = value;
}
onChanged();
} else {
queryResponseBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* <code>optional .pmsg.QueryResponse queryResponse = 6;</code>
*/
public Builder clearQueryResponse() {
if (queryResponseBuilder_ == null) {
queryResponse_ = org.voltdb.pmsg.DRAgent.QueryResponse.getDefaultInstance();
onChanged();
} else {
queryResponseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
* <code>optional .pmsg.QueryResponse queryResponse = 6;</code>
*/
public org.voltdb.pmsg.DRAgent.QueryResponse.Builder getQueryResponseBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getQueryResponseFieldBuilder().getBuilder();
}
/**
* <code>optional .pmsg.QueryResponse queryResponse = 6;</code>
*/
public org.voltdb.pmsg.DRAgent.QueryResponseOrBuilder getQueryResponseOrBuilder() {
if (queryResponseBuilder_ != null) {
return queryResponseBuilder_.getMessageOrBuilder();
} else {
return queryResponse_;
}
}
/**
* <code>optional .pmsg.QueryResponse queryResponse = 6;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.QueryResponse, org.voltdb.pmsg.DRAgent.QueryResponse.Builder, org.voltdb.pmsg.DRAgent.QueryResponseOrBuilder>
getQueryResponseFieldBuilder() {
if (queryResponseBuilder_ == null) {
queryResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.QueryResponse, org.voltdb.pmsg.DRAgent.QueryResponse.Builder, org.voltdb.pmsg.DRAgent.QueryResponseOrBuilder>(
queryResponse_,
getParentForChildren(),
isClean());
queryResponse_ = null;
}
return queryResponseBuilder_;
}
// optional .pmsg.AckResponse ackResponse = 7;
private org.voltdb.pmsg.DRAgent.AckResponse ackResponse_ = org.voltdb.pmsg.DRAgent.AckResponse.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.AckResponse, org.voltdb.pmsg.DRAgent.AckResponse.Builder, org.voltdb.pmsg.DRAgent.AckResponseOrBuilder> ackResponseBuilder_;
/**
* <code>optional .pmsg.AckResponse ackResponse = 7;</code>
*/
public boolean hasAckResponse() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional .pmsg.AckResponse ackResponse = 7;</code>
*/
public org.voltdb.pmsg.DRAgent.AckResponse getAckResponse() {
if (ackResponseBuilder_ == null) {
return ackResponse_;
} else {
return ackResponseBuilder_.getMessage();
}
}
/**
* <code>optional .pmsg.AckResponse ackResponse = 7;</code>
*/
public Builder setAckResponse(org.voltdb.pmsg.DRAgent.AckResponse value) {
if (ackResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ackResponse_ = value;
onChanged();
} else {
ackResponseBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .pmsg.AckResponse ackResponse = 7;</code>
*/
public Builder setAckResponse(
org.voltdb.pmsg.DRAgent.AckResponse.Builder builderForValue) {
if (ackResponseBuilder_ == null) {
ackResponse_ = builderForValue.build();
onChanged();
} else {
ackResponseBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .pmsg.AckResponse ackResponse = 7;</code>
*/
public Builder mergeAckResponse(org.voltdb.pmsg.DRAgent.AckResponse value) {
if (ackResponseBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040) &&
ackResponse_ != org.voltdb.pmsg.DRAgent.AckResponse.getDefaultInstance()) {
ackResponse_ =
org.voltdb.pmsg.DRAgent.AckResponse.newBuilder(ackResponse_).mergeFrom(value).buildPartial();
} else {
ackResponse_ = value;
}
onChanged();
} else {
ackResponseBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .pmsg.AckResponse ackResponse = 7;</code>
*/
public Builder clearAckResponse() {
if (ackResponseBuilder_ == null) {
ackResponse_ = org.voltdb.pmsg.DRAgent.AckResponse.getDefaultInstance();
onChanged();
} else {
ackResponseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
* <code>optional .pmsg.AckResponse ackResponse = 7;</code>
*/
public org.voltdb.pmsg.DRAgent.AckResponse.Builder getAckResponseBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getAckResponseFieldBuilder().getBuilder();
}
/**
* <code>optional .pmsg.AckResponse ackResponse = 7;</code>
*/
public org.voltdb.pmsg.DRAgent.AckResponseOrBuilder getAckResponseOrBuilder() {
if (ackResponseBuilder_ != null) {
return ackResponseBuilder_.getMessageOrBuilder();
} else {
return ackResponse_;
}
}
/**
* <code>optional .pmsg.AckResponse ackResponse = 7;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.AckResponse, org.voltdb.pmsg.DRAgent.AckResponse.Builder, org.voltdb.pmsg.DRAgent.AckResponseOrBuilder>
getAckResponseFieldBuilder() {
if (ackResponseBuilder_ == null) {
ackResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.AckResponse, org.voltdb.pmsg.DRAgent.AckResponse.Builder, org.voltdb.pmsg.DRAgent.AckResponseOrBuilder>(
ackResponse_,
getParentForChildren(),
isClean());
ackResponse_ = null;
}
return ackResponseBuilder_;
}
// @@protoc_insertion_point(builder_scope:pmsg.CtrlProtoResponse)
}
static {
defaultInstance = new CtrlProtoResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pmsg.CtrlProtoResponse)
}
public interface AckResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional bool isEndOfStream = 1;
/**
* <code>optional bool isEndOfStream = 1;</code>
*/
boolean hasIsEndOfStream();
/**
* <code>optional bool isEndOfStream = 1;</code>
*/
boolean getIsEndOfStream();
}
/**
* Protobuf type {@code pmsg.AckResponse}
*/
public static final class AckResponse extends
com.google.protobuf.GeneratedMessage
implements AckResponseOrBuilder {
// Use AckResponse.newBuilder() to construct.
private AckResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private AckResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final AckResponse defaultInstance;
public static AckResponse getDefaultInstance() {
return defaultInstance;
}
public AckResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AckResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
isEndOfStream_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_AckResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_AckResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.AckResponse.class, org.voltdb.pmsg.DRAgent.AckResponse.Builder.class);
}
public static com.google.protobuf.Parser<AckResponse> PARSER =
new com.google.protobuf.AbstractParser<AckResponse>() {
public AckResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AckResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<AckResponse> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bool isEndOfStream = 1;
public static final int ISENDOFSTREAM_FIELD_NUMBER = 1;
private boolean isEndOfStream_;
/**
* <code>optional bool isEndOfStream = 1;</code>
*/
public boolean hasIsEndOfStream() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool isEndOfStream = 1;</code>
*/
public boolean getIsEndOfStream() {
return isEndOfStream_;
}
private void initFields() {
isEndOfStream_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBool(1, isEndOfStream_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, isEndOfStream_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.voltdb.pmsg.DRAgent.AckResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.AckResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.AckResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.AckResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.AckResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.AckResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.AckResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.voltdb.pmsg.DRAgent.AckResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.AckResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.AckResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.voltdb.pmsg.DRAgent.AckResponse prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pmsg.AckResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.voltdb.pmsg.DRAgent.AckResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_AckResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_AckResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.AckResponse.class, org.voltdb.pmsg.DRAgent.AckResponse.Builder.class);
}
// Construct using org.voltdb.pmsg.DRAgent.AckResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
isEndOfStream_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_AckResponse_descriptor;
}
public org.voltdb.pmsg.DRAgent.AckResponse getDefaultInstanceForType() {
return org.voltdb.pmsg.DRAgent.AckResponse.getDefaultInstance();
}
public org.voltdb.pmsg.DRAgent.AckResponse build() {
org.voltdb.pmsg.DRAgent.AckResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.voltdb.pmsg.DRAgent.AckResponse buildPartial() {
org.voltdb.pmsg.DRAgent.AckResponse result = new org.voltdb.pmsg.DRAgent.AckResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.isEndOfStream_ = isEndOfStream_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.voltdb.pmsg.DRAgent.AckResponse) {
return mergeFrom((org.voltdb.pmsg.DRAgent.AckResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.voltdb.pmsg.DRAgent.AckResponse other) {
if (other == org.voltdb.pmsg.DRAgent.AckResponse.getDefaultInstance()) return this;
if (other.hasIsEndOfStream()) {
setIsEndOfStream(other.getIsEndOfStream());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.voltdb.pmsg.DRAgent.AckResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.voltdb.pmsg.DRAgent.AckResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bool isEndOfStream = 1;
private boolean isEndOfStream_ ;
/**
* <code>optional bool isEndOfStream = 1;</code>
*/
public boolean hasIsEndOfStream() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool isEndOfStream = 1;</code>
*/
public boolean getIsEndOfStream() {
return isEndOfStream_;
}
/**
* <code>optional bool isEndOfStream = 1;</code>
*/
public Builder setIsEndOfStream(boolean value) {
bitField0_ |= 0x00000001;
isEndOfStream_ = value;
onChanged();
return this;
}
/**
* <code>optional bool isEndOfStream = 1;</code>
*/
public Builder clearIsEndOfStream() {
bitField0_ = (bitField0_ & ~0x00000001);
isEndOfStream_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:pmsg.AckResponse)
}
static {
defaultInstance = new AckResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pmsg.AckResponse)
}
public interface ConnectResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional fixed64 catalogCRC = 1;
/**
* <code>optional fixed64 catalogCRC = 1;</code>
*/
boolean hasCatalogCRC();
/**
* <code>optional fixed64 catalogCRC = 1;</code>
*/
long getCatalogCRC();
// optional string catalogSignature = 2;
/**
* <code>optional string catalogSignature = 2;</code>
*/
boolean hasCatalogSignature();
/**
* <code>optional string catalogSignature = 2;</code>
*/
java.lang.String getCatalogSignature();
/**
* <code>optional string catalogSignature = 2;</code>
*/
com.google.protobuf.ByteString
getCatalogSignatureBytes();
// optional int32 protocolVersion = 3;
/**
* <code>optional int32 protocolVersion = 3;</code>
*/
boolean hasProtocolVersion();
/**
* <code>optional int32 protocolVersion = 3;</code>
*/
int getProtocolVersion();
// repeated .pmsg.ClusterInfo clusterInfo = 4;
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
java.util.List<org.voltdb.pmsg.DRAgent.ClusterInfo>
getClusterInfoList();
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
org.voltdb.pmsg.DRAgent.ClusterInfo getClusterInfo(int index);
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
int getClusterInfoCount();
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
java.util.List<? extends org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder>
getClusterInfoOrBuilderList();
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder getClusterInfoOrBuilder(
int index);
}
/**
* Protobuf type {@code pmsg.ConnectResponse}
*/
public static final class ConnectResponse extends
com.google.protobuf.GeneratedMessage
implements ConnectResponseOrBuilder {
// Use ConnectResponse.newBuilder() to construct.
private ConnectResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ConnectResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ConnectResponse defaultInstance;
public static ConnectResponse getDefaultInstance() {
return defaultInstance;
}
public ConnectResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConnectResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 9: {
bitField0_ |= 0x00000001;
catalogCRC_ = input.readFixed64();
break;
}
case 18: {
bitField0_ |= 0x00000002;
catalogSignature_ = input.readBytes();
break;
}
case 24: {
bitField0_ |= 0x00000004;
protocolVersion_ = input.readInt32();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
clusterInfo_ = new java.util.ArrayList<org.voltdb.pmsg.DRAgent.ClusterInfo>();
mutable_bitField0_ |= 0x00000008;
}
clusterInfo_.add(input.readMessage(org.voltdb.pmsg.DRAgent.ClusterInfo.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
clusterInfo_ = java.util.Collections.unmodifiableList(clusterInfo_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_ConnectResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_ConnectResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.ConnectResponse.class, org.voltdb.pmsg.DRAgent.ConnectResponse.Builder.class);
}
public static com.google.protobuf.Parser<ConnectResponse> PARSER =
new com.google.protobuf.AbstractParser<ConnectResponse>() {
public ConnectResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConnectResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<ConnectResponse> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional fixed64 catalogCRC = 1;
public static final int CATALOGCRC_FIELD_NUMBER = 1;
private long catalogCRC_;
/**
* <code>optional fixed64 catalogCRC = 1;</code>
*/
public boolean hasCatalogCRC() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional fixed64 catalogCRC = 1;</code>
*/
public long getCatalogCRC() {
return catalogCRC_;
}
// optional string catalogSignature = 2;
public static final int CATALOGSIGNATURE_FIELD_NUMBER = 2;
private java.lang.Object catalogSignature_;
/**
* <code>optional string catalogSignature = 2;</code>
*/
public boolean hasCatalogSignature() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string catalogSignature = 2;</code>
*/
public java.lang.String getCatalogSignature() {
java.lang.Object ref = catalogSignature_;
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()) {
catalogSignature_ = s;
}
return s;
}
}
/**
* <code>optional string catalogSignature = 2;</code>
*/
public com.google.protobuf.ByteString
getCatalogSignatureBytes() {
java.lang.Object ref = catalogSignature_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
catalogSignature_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional int32 protocolVersion = 3;
public static final int PROTOCOLVERSION_FIELD_NUMBER = 3;
private int protocolVersion_;
/**
* <code>optional int32 protocolVersion = 3;</code>
*/
public boolean hasProtocolVersion() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int32 protocolVersion = 3;</code>
*/
public int getProtocolVersion() {
return protocolVersion_;
}
// repeated .pmsg.ClusterInfo clusterInfo = 4;
public static final int CLUSTERINFO_FIELD_NUMBER = 4;
private java.util.List<org.voltdb.pmsg.DRAgent.ClusterInfo> clusterInfo_;
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public java.util.List<org.voltdb.pmsg.DRAgent.ClusterInfo> getClusterInfoList() {
return clusterInfo_;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public java.util.List<? extends org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder>
getClusterInfoOrBuilderList() {
return clusterInfo_;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public int getClusterInfoCount() {
return clusterInfo_.size();
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public org.voltdb.pmsg.DRAgent.ClusterInfo getClusterInfo(int index) {
return clusterInfo_.get(index);
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder getClusterInfoOrBuilder(
int index) {
return clusterInfo_.get(index);
}
private void initFields() {
catalogCRC_ = 0L;
catalogSignature_ = "";
protocolVersion_ = 0;
clusterInfo_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
for (int i = 0; i < getClusterInfoCount(); i++) {
if (!getClusterInfo(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeFixed64(1, catalogCRC_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getCatalogSignatureBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, protocolVersion_);
}
for (int i = 0; i < clusterInfo_.size(); i++) {
output.writeMessage(4, clusterInfo_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(1, catalogCRC_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getCatalogSignatureBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, protocolVersion_);
}
for (int i = 0; i < clusterInfo_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, clusterInfo_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.voltdb.pmsg.DRAgent.ConnectResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.ConnectResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.ConnectResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.ConnectResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.ConnectResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.ConnectResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.ConnectResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.voltdb.pmsg.DRAgent.ConnectResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.ConnectResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.ConnectResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.voltdb.pmsg.DRAgent.ConnectResponse prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pmsg.ConnectResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.voltdb.pmsg.DRAgent.ConnectResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_ConnectResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_ConnectResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.ConnectResponse.class, org.voltdb.pmsg.DRAgent.ConnectResponse.Builder.class);
}
// Construct using org.voltdb.pmsg.DRAgent.ConnectResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getClusterInfoFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
catalogCRC_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
catalogSignature_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
protocolVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
if (clusterInfoBuilder_ == null) {
clusterInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
clusterInfoBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_ConnectResponse_descriptor;
}
public org.voltdb.pmsg.DRAgent.ConnectResponse getDefaultInstanceForType() {
return org.voltdb.pmsg.DRAgent.ConnectResponse.getDefaultInstance();
}
public org.voltdb.pmsg.DRAgent.ConnectResponse build() {
org.voltdb.pmsg.DRAgent.ConnectResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.voltdb.pmsg.DRAgent.ConnectResponse buildPartial() {
org.voltdb.pmsg.DRAgent.ConnectResponse result = new org.voltdb.pmsg.DRAgent.ConnectResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.catalogCRC_ = catalogCRC_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.catalogSignature_ = catalogSignature_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.protocolVersion_ = protocolVersion_;
if (clusterInfoBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
clusterInfo_ = java.util.Collections.unmodifiableList(clusterInfo_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.clusterInfo_ = clusterInfo_;
} else {
result.clusterInfo_ = clusterInfoBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.voltdb.pmsg.DRAgent.ConnectResponse) {
return mergeFrom((org.voltdb.pmsg.DRAgent.ConnectResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.voltdb.pmsg.DRAgent.ConnectResponse other) {
if (other == org.voltdb.pmsg.DRAgent.ConnectResponse.getDefaultInstance()) return this;
if (other.hasCatalogCRC()) {
setCatalogCRC(other.getCatalogCRC());
}
if (other.hasCatalogSignature()) {
bitField0_ |= 0x00000002;
catalogSignature_ = other.catalogSignature_;
onChanged();
}
if (other.hasProtocolVersion()) {
setProtocolVersion(other.getProtocolVersion());
}
if (clusterInfoBuilder_ == null) {
if (!other.clusterInfo_.isEmpty()) {
if (clusterInfo_.isEmpty()) {
clusterInfo_ = other.clusterInfo_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureClusterInfoIsMutable();
clusterInfo_.addAll(other.clusterInfo_);
}
onChanged();
}
} else {
if (!other.clusterInfo_.isEmpty()) {
if (clusterInfoBuilder_.isEmpty()) {
clusterInfoBuilder_.dispose();
clusterInfoBuilder_ = null;
clusterInfo_ = other.clusterInfo_;
bitField0_ = (bitField0_ & ~0x00000008);
clusterInfoBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getClusterInfoFieldBuilder() : null;
} else {
clusterInfoBuilder_.addAllMessages(other.clusterInfo_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getClusterInfoCount(); i++) {
if (!getClusterInfo(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.voltdb.pmsg.DRAgent.ConnectResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.voltdb.pmsg.DRAgent.ConnectResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional fixed64 catalogCRC = 1;
private long catalogCRC_ ;
/**
* <code>optional fixed64 catalogCRC = 1;</code>
*/
public boolean hasCatalogCRC() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional fixed64 catalogCRC = 1;</code>
*/
public long getCatalogCRC() {
return catalogCRC_;
}
/**
* <code>optional fixed64 catalogCRC = 1;</code>
*/
public Builder setCatalogCRC(long value) {
bitField0_ |= 0x00000001;
catalogCRC_ = value;
onChanged();
return this;
}
/**
* <code>optional fixed64 catalogCRC = 1;</code>
*/
public Builder clearCatalogCRC() {
bitField0_ = (bitField0_ & ~0x00000001);
catalogCRC_ = 0L;
onChanged();
return this;
}
// optional string catalogSignature = 2;
private java.lang.Object catalogSignature_ = "";
/**
* <code>optional string catalogSignature = 2;</code>
*/
public boolean hasCatalogSignature() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string catalogSignature = 2;</code>
*/
public java.lang.String getCatalogSignature() {
java.lang.Object ref = catalogSignature_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
catalogSignature_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string catalogSignature = 2;</code>
*/
public com.google.protobuf.ByteString
getCatalogSignatureBytes() {
java.lang.Object ref = catalogSignature_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
catalogSignature_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string catalogSignature = 2;</code>
*/
public Builder setCatalogSignature(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
catalogSignature_ = value;
onChanged();
return this;
}
/**
* <code>optional string catalogSignature = 2;</code>
*/
public Builder clearCatalogSignature() {
bitField0_ = (bitField0_ & ~0x00000002);
catalogSignature_ = getDefaultInstance().getCatalogSignature();
onChanged();
return this;
}
/**
* <code>optional string catalogSignature = 2;</code>
*/
public Builder setCatalogSignatureBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
catalogSignature_ = value;
onChanged();
return this;
}
// optional int32 protocolVersion = 3;
private int protocolVersion_ ;
/**
* <code>optional int32 protocolVersion = 3;</code>
*/
public boolean hasProtocolVersion() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int32 protocolVersion = 3;</code>
*/
public int getProtocolVersion() {
return protocolVersion_;
}
/**
* <code>optional int32 protocolVersion = 3;</code>
*/
public Builder setProtocolVersion(int value) {
bitField0_ |= 0x00000004;
protocolVersion_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 protocolVersion = 3;</code>
*/
public Builder clearProtocolVersion() {
bitField0_ = (bitField0_ & ~0x00000004);
protocolVersion_ = 0;
onChanged();
return this;
}
// repeated .pmsg.ClusterInfo clusterInfo = 4;
private java.util.List<org.voltdb.pmsg.DRAgent.ClusterInfo> clusterInfo_ =
java.util.Collections.emptyList();
private void ensureClusterInfoIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
clusterInfo_ = new java.util.ArrayList<org.voltdb.pmsg.DRAgent.ClusterInfo>(clusterInfo_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.voltdb.pmsg.DRAgent.ClusterInfo, org.voltdb.pmsg.DRAgent.ClusterInfo.Builder, org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder> clusterInfoBuilder_;
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public java.util.List<org.voltdb.pmsg.DRAgent.ClusterInfo> getClusterInfoList() {
if (clusterInfoBuilder_ == null) {
return java.util.Collections.unmodifiableList(clusterInfo_);
} else {
return clusterInfoBuilder_.getMessageList();
}
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public int getClusterInfoCount() {
if (clusterInfoBuilder_ == null) {
return clusterInfo_.size();
} else {
return clusterInfoBuilder_.getCount();
}
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public org.voltdb.pmsg.DRAgent.ClusterInfo getClusterInfo(int index) {
if (clusterInfoBuilder_ == null) {
return clusterInfo_.get(index);
} else {
return clusterInfoBuilder_.getMessage(index);
}
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public Builder setClusterInfo(
int index, org.voltdb.pmsg.DRAgent.ClusterInfo value) {
if (clusterInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClusterInfoIsMutable();
clusterInfo_.set(index, value);
onChanged();
} else {
clusterInfoBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public Builder setClusterInfo(
int index, org.voltdb.pmsg.DRAgent.ClusterInfo.Builder builderForValue) {
if (clusterInfoBuilder_ == null) {
ensureClusterInfoIsMutable();
clusterInfo_.set(index, builderForValue.build());
onChanged();
} else {
clusterInfoBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public Builder addClusterInfo(org.voltdb.pmsg.DRAgent.ClusterInfo value) {
if (clusterInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClusterInfoIsMutable();
clusterInfo_.add(value);
onChanged();
} else {
clusterInfoBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public Builder addClusterInfo(
int index, org.voltdb.pmsg.DRAgent.ClusterInfo value) {
if (clusterInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClusterInfoIsMutable();
clusterInfo_.add(index, value);
onChanged();
} else {
clusterInfoBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public Builder addClusterInfo(
org.voltdb.pmsg.DRAgent.ClusterInfo.Builder builderForValue) {
if (clusterInfoBuilder_ == null) {
ensureClusterInfoIsMutable();
clusterInfo_.add(builderForValue.build());
onChanged();
} else {
clusterInfoBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public Builder addClusterInfo(
int index, org.voltdb.pmsg.DRAgent.ClusterInfo.Builder builderForValue) {
if (clusterInfoBuilder_ == null) {
ensureClusterInfoIsMutable();
clusterInfo_.add(index, builderForValue.build());
onChanged();
} else {
clusterInfoBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public Builder addAllClusterInfo(
java.lang.Iterable<? extends org.voltdb.pmsg.DRAgent.ClusterInfo> values) {
if (clusterInfoBuilder_ == null) {
ensureClusterInfoIsMutable();
super.addAll(values, clusterInfo_);
onChanged();
} else {
clusterInfoBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public Builder clearClusterInfo() {
if (clusterInfoBuilder_ == null) {
clusterInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
clusterInfoBuilder_.clear();
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public Builder removeClusterInfo(int index) {
if (clusterInfoBuilder_ == null) {
ensureClusterInfoIsMutable();
clusterInfo_.remove(index);
onChanged();
} else {
clusterInfoBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public org.voltdb.pmsg.DRAgent.ClusterInfo.Builder getClusterInfoBuilder(
int index) {
return getClusterInfoFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder getClusterInfoOrBuilder(
int index) {
if (clusterInfoBuilder_ == null) {
return clusterInfo_.get(index); } else {
return clusterInfoBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public java.util.List<? extends org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder>
getClusterInfoOrBuilderList() {
if (clusterInfoBuilder_ != null) {
return clusterInfoBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(clusterInfo_);
}
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public org.voltdb.pmsg.DRAgent.ClusterInfo.Builder addClusterInfoBuilder() {
return getClusterInfoFieldBuilder().addBuilder(
org.voltdb.pmsg.DRAgent.ClusterInfo.getDefaultInstance());
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public org.voltdb.pmsg.DRAgent.ClusterInfo.Builder addClusterInfoBuilder(
int index) {
return getClusterInfoFieldBuilder().addBuilder(
index, org.voltdb.pmsg.DRAgent.ClusterInfo.getDefaultInstance());
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 4;</code>
*/
public java.util.List<org.voltdb.pmsg.DRAgent.ClusterInfo.Builder>
getClusterInfoBuilderList() {
return getClusterInfoFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.voltdb.pmsg.DRAgent.ClusterInfo, org.voltdb.pmsg.DRAgent.ClusterInfo.Builder, org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder>
getClusterInfoFieldBuilder() {
if (clusterInfoBuilder_ == null) {
clusterInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.voltdb.pmsg.DRAgent.ClusterInfo, org.voltdb.pmsg.DRAgent.ClusterInfo.Builder, org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder>(
clusterInfo_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
clusterInfo_ = null;
}
return clusterInfoBuilder_;
}
// @@protoc_insertion_point(builder_scope:pmsg.ConnectResponse)
}
static {
defaultInstance = new ConnectResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pmsg.ConnectResponse)
}
public interface QueryResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional bool includeMesh = 1 [default = false];
/**
* <code>optional bool includeMesh = 1 [default = false];</code>
*/
boolean hasIncludeMesh();
/**
* <code>optional bool includeMesh = 1 [default = false];</code>
*/
boolean getIncludeMesh();
// repeated .pmsg.ClusterInfo clusterInfo = 2;
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
java.util.List<org.voltdb.pmsg.DRAgent.ClusterInfo>
getClusterInfoList();
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
org.voltdb.pmsg.DRAgent.ClusterInfo getClusterInfo(int index);
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
int getClusterInfoCount();
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
java.util.List<? extends org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder>
getClusterInfoOrBuilderList();
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder getClusterInfoOrBuilder(
int index);
}
/**
* Protobuf type {@code pmsg.QueryResponse}
*/
public static final class QueryResponse extends
com.google.protobuf.GeneratedMessage
implements QueryResponseOrBuilder {
// Use QueryResponse.newBuilder() to construct.
private QueryResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private QueryResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final QueryResponse defaultInstance;
public static QueryResponse getDefaultInstance() {
return defaultInstance;
}
public QueryResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
includeMesh_ = input.readBool();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
clusterInfo_ = new java.util.ArrayList<org.voltdb.pmsg.DRAgent.ClusterInfo>();
mutable_bitField0_ |= 0x00000002;
}
clusterInfo_.add(input.readMessage(org.voltdb.pmsg.DRAgent.ClusterInfo.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
clusterInfo_ = java.util.Collections.unmodifiableList(clusterInfo_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_QueryResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_QueryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.QueryResponse.class, org.voltdb.pmsg.DRAgent.QueryResponse.Builder.class);
}
public static com.google.protobuf.Parser<QueryResponse> PARSER =
new com.google.protobuf.AbstractParser<QueryResponse>() {
public QueryResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<QueryResponse> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bool includeMesh = 1 [default = false];
public static final int INCLUDEMESH_FIELD_NUMBER = 1;
private boolean includeMesh_;
/**
* <code>optional bool includeMesh = 1 [default = false];</code>
*/
public boolean hasIncludeMesh() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool includeMesh = 1 [default = false];</code>
*/
public boolean getIncludeMesh() {
return includeMesh_;
}
// repeated .pmsg.ClusterInfo clusterInfo = 2;
public static final int CLUSTERINFO_FIELD_NUMBER = 2;
private java.util.List<org.voltdb.pmsg.DRAgent.ClusterInfo> clusterInfo_;
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public java.util.List<org.voltdb.pmsg.DRAgent.ClusterInfo> getClusterInfoList() {
return clusterInfo_;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public java.util.List<? extends org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder>
getClusterInfoOrBuilderList() {
return clusterInfo_;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public int getClusterInfoCount() {
return clusterInfo_.size();
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public org.voltdb.pmsg.DRAgent.ClusterInfo getClusterInfo(int index) {
return clusterInfo_.get(index);
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder getClusterInfoOrBuilder(
int index) {
return clusterInfo_.get(index);
}
private void initFields() {
includeMesh_ = false;
clusterInfo_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
for (int i = 0; i < getClusterInfoCount(); i++) {
if (!getClusterInfo(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBool(1, includeMesh_);
}
for (int i = 0; i < clusterInfo_.size(); i++) {
output.writeMessage(2, clusterInfo_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, includeMesh_);
}
for (int i = 0; i < clusterInfo_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, clusterInfo_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.voltdb.pmsg.DRAgent.QueryResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.QueryResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.QueryResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.QueryResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.QueryResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.QueryResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.QueryResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.voltdb.pmsg.DRAgent.QueryResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.QueryResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.QueryResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.voltdb.pmsg.DRAgent.QueryResponse prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pmsg.QueryResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.voltdb.pmsg.DRAgent.QueryResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_QueryResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_QueryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.QueryResponse.class, org.voltdb.pmsg.DRAgent.QueryResponse.Builder.class);
}
// Construct using org.voltdb.pmsg.DRAgent.QueryResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getClusterInfoFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
includeMesh_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
if (clusterInfoBuilder_ == null) {
clusterInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
clusterInfoBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_QueryResponse_descriptor;
}
public org.voltdb.pmsg.DRAgent.QueryResponse getDefaultInstanceForType() {
return org.voltdb.pmsg.DRAgent.QueryResponse.getDefaultInstance();
}
public org.voltdb.pmsg.DRAgent.QueryResponse build() {
org.voltdb.pmsg.DRAgent.QueryResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.voltdb.pmsg.DRAgent.QueryResponse buildPartial() {
org.voltdb.pmsg.DRAgent.QueryResponse result = new org.voltdb.pmsg.DRAgent.QueryResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.includeMesh_ = includeMesh_;
if (clusterInfoBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
clusterInfo_ = java.util.Collections.unmodifiableList(clusterInfo_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.clusterInfo_ = clusterInfo_;
} else {
result.clusterInfo_ = clusterInfoBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.voltdb.pmsg.DRAgent.QueryResponse) {
return mergeFrom((org.voltdb.pmsg.DRAgent.QueryResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.voltdb.pmsg.DRAgent.QueryResponse other) {
if (other == org.voltdb.pmsg.DRAgent.QueryResponse.getDefaultInstance()) return this;
if (other.hasIncludeMesh()) {
setIncludeMesh(other.getIncludeMesh());
}
if (clusterInfoBuilder_ == null) {
if (!other.clusterInfo_.isEmpty()) {
if (clusterInfo_.isEmpty()) {
clusterInfo_ = other.clusterInfo_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureClusterInfoIsMutable();
clusterInfo_.addAll(other.clusterInfo_);
}
onChanged();
}
} else {
if (!other.clusterInfo_.isEmpty()) {
if (clusterInfoBuilder_.isEmpty()) {
clusterInfoBuilder_.dispose();
clusterInfoBuilder_ = null;
clusterInfo_ = other.clusterInfo_;
bitField0_ = (bitField0_ & ~0x00000002);
clusterInfoBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getClusterInfoFieldBuilder() : null;
} else {
clusterInfoBuilder_.addAllMessages(other.clusterInfo_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getClusterInfoCount(); i++) {
if (!getClusterInfo(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.voltdb.pmsg.DRAgent.QueryResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.voltdb.pmsg.DRAgent.QueryResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bool includeMesh = 1 [default = false];
private boolean includeMesh_ ;
/**
* <code>optional bool includeMesh = 1 [default = false];</code>
*/
public boolean hasIncludeMesh() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool includeMesh = 1 [default = false];</code>
*/
public boolean getIncludeMesh() {
return includeMesh_;
}
/**
* <code>optional bool includeMesh = 1 [default = false];</code>
*/
public Builder setIncludeMesh(boolean value) {
bitField0_ |= 0x00000001;
includeMesh_ = value;
onChanged();
return this;
}
/**
* <code>optional bool includeMesh = 1 [default = false];</code>
*/
public Builder clearIncludeMesh() {
bitField0_ = (bitField0_ & ~0x00000001);
includeMesh_ = false;
onChanged();
return this;
}
// repeated .pmsg.ClusterInfo clusterInfo = 2;
private java.util.List<org.voltdb.pmsg.DRAgent.ClusterInfo> clusterInfo_ =
java.util.Collections.emptyList();
private void ensureClusterInfoIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
clusterInfo_ = new java.util.ArrayList<org.voltdb.pmsg.DRAgent.ClusterInfo>(clusterInfo_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.voltdb.pmsg.DRAgent.ClusterInfo, org.voltdb.pmsg.DRAgent.ClusterInfo.Builder, org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder> clusterInfoBuilder_;
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public java.util.List<org.voltdb.pmsg.DRAgent.ClusterInfo> getClusterInfoList() {
if (clusterInfoBuilder_ == null) {
return java.util.Collections.unmodifiableList(clusterInfo_);
} else {
return clusterInfoBuilder_.getMessageList();
}
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public int getClusterInfoCount() {
if (clusterInfoBuilder_ == null) {
return clusterInfo_.size();
} else {
return clusterInfoBuilder_.getCount();
}
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public org.voltdb.pmsg.DRAgent.ClusterInfo getClusterInfo(int index) {
if (clusterInfoBuilder_ == null) {
return clusterInfo_.get(index);
} else {
return clusterInfoBuilder_.getMessage(index);
}
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public Builder setClusterInfo(
int index, org.voltdb.pmsg.DRAgent.ClusterInfo value) {
if (clusterInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClusterInfoIsMutable();
clusterInfo_.set(index, value);
onChanged();
} else {
clusterInfoBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public Builder setClusterInfo(
int index, org.voltdb.pmsg.DRAgent.ClusterInfo.Builder builderForValue) {
if (clusterInfoBuilder_ == null) {
ensureClusterInfoIsMutable();
clusterInfo_.set(index, builderForValue.build());
onChanged();
} else {
clusterInfoBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public Builder addClusterInfo(org.voltdb.pmsg.DRAgent.ClusterInfo value) {
if (clusterInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClusterInfoIsMutable();
clusterInfo_.add(value);
onChanged();
} else {
clusterInfoBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public Builder addClusterInfo(
int index, org.voltdb.pmsg.DRAgent.ClusterInfo value) {
if (clusterInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClusterInfoIsMutable();
clusterInfo_.add(index, value);
onChanged();
} else {
clusterInfoBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public Builder addClusterInfo(
org.voltdb.pmsg.DRAgent.ClusterInfo.Builder builderForValue) {
if (clusterInfoBuilder_ == null) {
ensureClusterInfoIsMutable();
clusterInfo_.add(builderForValue.build());
onChanged();
} else {
clusterInfoBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public Builder addClusterInfo(
int index, org.voltdb.pmsg.DRAgent.ClusterInfo.Builder builderForValue) {
if (clusterInfoBuilder_ == null) {
ensureClusterInfoIsMutable();
clusterInfo_.add(index, builderForValue.build());
onChanged();
} else {
clusterInfoBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public Builder addAllClusterInfo(
java.lang.Iterable<? extends org.voltdb.pmsg.DRAgent.ClusterInfo> values) {
if (clusterInfoBuilder_ == null) {
ensureClusterInfoIsMutable();
super.addAll(values, clusterInfo_);
onChanged();
} else {
clusterInfoBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public Builder clearClusterInfo() {
if (clusterInfoBuilder_ == null) {
clusterInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
clusterInfoBuilder_.clear();
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public Builder removeClusterInfo(int index) {
if (clusterInfoBuilder_ == null) {
ensureClusterInfoIsMutable();
clusterInfo_.remove(index);
onChanged();
} else {
clusterInfoBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public org.voltdb.pmsg.DRAgent.ClusterInfo.Builder getClusterInfoBuilder(
int index) {
return getClusterInfoFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder getClusterInfoOrBuilder(
int index) {
if (clusterInfoBuilder_ == null) {
return clusterInfo_.get(index); } else {
return clusterInfoBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public java.util.List<? extends org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder>
getClusterInfoOrBuilderList() {
if (clusterInfoBuilder_ != null) {
return clusterInfoBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(clusterInfo_);
}
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public org.voltdb.pmsg.DRAgent.ClusterInfo.Builder addClusterInfoBuilder() {
return getClusterInfoFieldBuilder().addBuilder(
org.voltdb.pmsg.DRAgent.ClusterInfo.getDefaultInstance());
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public org.voltdb.pmsg.DRAgent.ClusterInfo.Builder addClusterInfoBuilder(
int index) {
return getClusterInfoFieldBuilder().addBuilder(
index, org.voltdb.pmsg.DRAgent.ClusterInfo.getDefaultInstance());
}
/**
* <code>repeated .pmsg.ClusterInfo clusterInfo = 2;</code>
*/
public java.util.List<org.voltdb.pmsg.DRAgent.ClusterInfo.Builder>
getClusterInfoBuilderList() {
return getClusterInfoFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.voltdb.pmsg.DRAgent.ClusterInfo, org.voltdb.pmsg.DRAgent.ClusterInfo.Builder, org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder>
getClusterInfoFieldBuilder() {
if (clusterInfoBuilder_ == null) {
clusterInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.voltdb.pmsg.DRAgent.ClusterInfo, org.voltdb.pmsg.DRAgent.ClusterInfo.Builder, org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder>(
clusterInfo_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
clusterInfo_ = null;
}
return clusterInfoBuilder_;
}
// @@protoc_insertion_point(builder_scope:pmsg.QueryResponse)
}
static {
defaultInstance = new QueryResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pmsg.QueryResponse)
}
public interface ClusterInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required int32 clusterId = 1;
/**
* <code>required int32 clusterId = 1;</code>
*/
boolean hasClusterId();
/**
* <code>required int32 clusterId = 1;</code>
*/
int getClusterId();
// required fixed64 creationId = 2;
/**
* <code>required fixed64 creationId = 2;</code>
*/
boolean hasCreationId();
/**
* <code>required fixed64 creationId = 2;</code>
*/
long getCreationId();
// optional fixed64 recoveryId = 3;
/**
* <code>optional fixed64 recoveryId = 3;</code>
*/
boolean hasRecoveryId();
/**
* <code>optional fixed64 recoveryId = 3;</code>
*/
long getRecoveryId();
// optional int32 protocolVersion = 4;
/**
* <code>optional int32 protocolVersion = 4;</code>
*/
boolean hasProtocolVersion();
/**
* <code>optional int32 protocolVersion = 4;</code>
*/
int getProtocolVersion();
// optional int32 globalPartitionCount = 5;
/**
* <code>optional int32 globalPartitionCount = 5;</code>
*/
boolean hasGlobalPartitionCount();
/**
* <code>optional int32 globalPartitionCount = 5;</code>
*/
int getGlobalPartitionCount();
// repeated .pmsg.NodeInfo nodeInfo = 6;
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
java.util.List<org.voltdb.pmsg.DRAgent.NodeInfo>
getNodeInfoList();
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
org.voltdb.pmsg.DRAgent.NodeInfo getNodeInfo(int index);
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
int getNodeInfoCount();
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
java.util.List<? extends org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder>
getNodeInfoOrBuilderList();
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder getNodeInfoOrBuilder(
int index);
// repeated .pmsg.PartitionInfo partitionInfo = 7;
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
java.util.List<org.voltdb.pmsg.DRAgent.PartitionInfo>
getPartitionInfoList();
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
org.voltdb.pmsg.DRAgent.PartitionInfo getPartitionInfo(int index);
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
int getPartitionInfoCount();
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
java.util.List<? extends org.voltdb.pmsg.DRAgent.PartitionInfoOrBuilder>
getPartitionInfoOrBuilderList();
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
org.voltdb.pmsg.DRAgent.PartitionInfoOrBuilder getPartitionInfoOrBuilder(
int index);
}
/**
* Protobuf type {@code pmsg.ClusterInfo}
*/
public static final class ClusterInfo extends
com.google.protobuf.GeneratedMessage
implements ClusterInfoOrBuilder {
// Use ClusterInfo.newBuilder() to construct.
private ClusterInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ClusterInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ClusterInfo defaultInstance;
public static ClusterInfo getDefaultInstance() {
return defaultInstance;
}
public ClusterInfo getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClusterInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
clusterId_ = input.readInt32();
break;
}
case 17: {
bitField0_ |= 0x00000002;
creationId_ = input.readFixed64();
break;
}
case 25: {
bitField0_ |= 0x00000004;
recoveryId_ = input.readFixed64();
break;
}
case 32: {
bitField0_ |= 0x00000008;
protocolVersion_ = input.readInt32();
break;
}
case 40: {
bitField0_ |= 0x00000010;
globalPartitionCount_ = input.readInt32();
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
nodeInfo_ = new java.util.ArrayList<org.voltdb.pmsg.DRAgent.NodeInfo>();
mutable_bitField0_ |= 0x00000020;
}
nodeInfo_.add(input.readMessage(org.voltdb.pmsg.DRAgent.NodeInfo.PARSER, extensionRegistry));
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
partitionInfo_ = new java.util.ArrayList<org.voltdb.pmsg.DRAgent.PartitionInfo>();
mutable_bitField0_ |= 0x00000040;
}
partitionInfo_.add(input.readMessage(org.voltdb.pmsg.DRAgent.PartitionInfo.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
nodeInfo_ = java.util.Collections.unmodifiableList(nodeInfo_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
partitionInfo_ = java.util.Collections.unmodifiableList(partitionInfo_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_ClusterInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_ClusterInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.ClusterInfo.class, org.voltdb.pmsg.DRAgent.ClusterInfo.Builder.class);
}
public static com.google.protobuf.Parser<ClusterInfo> PARSER =
new com.google.protobuf.AbstractParser<ClusterInfo>() {
public ClusterInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClusterInfo(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<ClusterInfo> getParserForType() {
return PARSER;
}
private int bitField0_;
// required int32 clusterId = 1;
public static final int CLUSTERID_FIELD_NUMBER = 1;
private int clusterId_;
/**
* <code>required int32 clusterId = 1;</code>
*/
public boolean hasClusterId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required int32 clusterId = 1;</code>
*/
public int getClusterId() {
return clusterId_;
}
// required fixed64 creationId = 2;
public static final int CREATIONID_FIELD_NUMBER = 2;
private long creationId_;
/**
* <code>required fixed64 creationId = 2;</code>
*/
public boolean hasCreationId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required fixed64 creationId = 2;</code>
*/
public long getCreationId() {
return creationId_;
}
// optional fixed64 recoveryId = 3;
public static final int RECOVERYID_FIELD_NUMBER = 3;
private long recoveryId_;
/**
* <code>optional fixed64 recoveryId = 3;</code>
*/
public boolean hasRecoveryId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional fixed64 recoveryId = 3;</code>
*/
public long getRecoveryId() {
return recoveryId_;
}
// optional int32 protocolVersion = 4;
public static final int PROTOCOLVERSION_FIELD_NUMBER = 4;
private int protocolVersion_;
/**
* <code>optional int32 protocolVersion = 4;</code>
*/
public boolean hasProtocolVersion() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional int32 protocolVersion = 4;</code>
*/
public int getProtocolVersion() {
return protocolVersion_;
}
// optional int32 globalPartitionCount = 5;
public static final int GLOBALPARTITIONCOUNT_FIELD_NUMBER = 5;
private int globalPartitionCount_;
/**
* <code>optional int32 globalPartitionCount = 5;</code>
*/
public boolean hasGlobalPartitionCount() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional int32 globalPartitionCount = 5;</code>
*/
public int getGlobalPartitionCount() {
return globalPartitionCount_;
}
// repeated .pmsg.NodeInfo nodeInfo = 6;
public static final int NODEINFO_FIELD_NUMBER = 6;
private java.util.List<org.voltdb.pmsg.DRAgent.NodeInfo> nodeInfo_;
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public java.util.List<org.voltdb.pmsg.DRAgent.NodeInfo> getNodeInfoList() {
return nodeInfo_;
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public java.util.List<? extends org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder>
getNodeInfoOrBuilderList() {
return nodeInfo_;
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public int getNodeInfoCount() {
return nodeInfo_.size();
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public org.voltdb.pmsg.DRAgent.NodeInfo getNodeInfo(int index) {
return nodeInfo_.get(index);
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder getNodeInfoOrBuilder(
int index) {
return nodeInfo_.get(index);
}
// repeated .pmsg.PartitionInfo partitionInfo = 7;
public static final int PARTITIONINFO_FIELD_NUMBER = 7;
private java.util.List<org.voltdb.pmsg.DRAgent.PartitionInfo> partitionInfo_;
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public java.util.List<org.voltdb.pmsg.DRAgent.PartitionInfo> getPartitionInfoList() {
return partitionInfo_;
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public java.util.List<? extends org.voltdb.pmsg.DRAgent.PartitionInfoOrBuilder>
getPartitionInfoOrBuilderList() {
return partitionInfo_;
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public int getPartitionInfoCount() {
return partitionInfo_.size();
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public org.voltdb.pmsg.DRAgent.PartitionInfo getPartitionInfo(int index) {
return partitionInfo_.get(index);
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public org.voltdb.pmsg.DRAgent.PartitionInfoOrBuilder getPartitionInfoOrBuilder(
int index) {
return partitionInfo_.get(index);
}
private void initFields() {
clusterId_ = 0;
creationId_ = 0L;
recoveryId_ = 0L;
protocolVersion_ = 0;
globalPartitionCount_ = 0;
nodeInfo_ = java.util.Collections.emptyList();
partitionInfo_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasClusterId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasCreationId()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, clusterId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeFixed64(2, creationId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeFixed64(3, recoveryId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, protocolVersion_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(5, globalPartitionCount_);
}
for (int i = 0; i < nodeInfo_.size(); i++) {
output.writeMessage(6, nodeInfo_.get(i));
}
for (int i = 0; i < partitionInfo_.size(); i++) {
output.writeMessage(7, partitionInfo_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, clusterId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(2, creationId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(3, recoveryId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, protocolVersion_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, globalPartitionCount_);
}
for (int i = 0; i < nodeInfo_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, nodeInfo_.get(i));
}
for (int i = 0; i < partitionInfo_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, partitionInfo_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.voltdb.pmsg.DRAgent.ClusterInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.ClusterInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.ClusterInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.ClusterInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.ClusterInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.ClusterInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.ClusterInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.voltdb.pmsg.DRAgent.ClusterInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.ClusterInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.ClusterInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.voltdb.pmsg.DRAgent.ClusterInfo prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pmsg.ClusterInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.voltdb.pmsg.DRAgent.ClusterInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_ClusterInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_ClusterInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.ClusterInfo.class, org.voltdb.pmsg.DRAgent.ClusterInfo.Builder.class);
}
// Construct using org.voltdb.pmsg.DRAgent.ClusterInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getNodeInfoFieldBuilder();
getPartitionInfoFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
clusterId_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
creationId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
recoveryId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
protocolVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
globalPartitionCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
if (nodeInfoBuilder_ == null) {
nodeInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
nodeInfoBuilder_.clear();
}
if (partitionInfoBuilder_ == null) {
partitionInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
} else {
partitionInfoBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_ClusterInfo_descriptor;
}
public org.voltdb.pmsg.DRAgent.ClusterInfo getDefaultInstanceForType() {
return org.voltdb.pmsg.DRAgent.ClusterInfo.getDefaultInstance();
}
public org.voltdb.pmsg.DRAgent.ClusterInfo build() {
org.voltdb.pmsg.DRAgent.ClusterInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.voltdb.pmsg.DRAgent.ClusterInfo buildPartial() {
org.voltdb.pmsg.DRAgent.ClusterInfo result = new org.voltdb.pmsg.DRAgent.ClusterInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.clusterId_ = clusterId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.creationId_ = creationId_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.recoveryId_ = recoveryId_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.protocolVersion_ = protocolVersion_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.globalPartitionCount_ = globalPartitionCount_;
if (nodeInfoBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020)) {
nodeInfo_ = java.util.Collections.unmodifiableList(nodeInfo_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.nodeInfo_ = nodeInfo_;
} else {
result.nodeInfo_ = nodeInfoBuilder_.build();
}
if (partitionInfoBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040)) {
partitionInfo_ = java.util.Collections.unmodifiableList(partitionInfo_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.partitionInfo_ = partitionInfo_;
} else {
result.partitionInfo_ = partitionInfoBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.voltdb.pmsg.DRAgent.ClusterInfo) {
return mergeFrom((org.voltdb.pmsg.DRAgent.ClusterInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.voltdb.pmsg.DRAgent.ClusterInfo other) {
if (other == org.voltdb.pmsg.DRAgent.ClusterInfo.getDefaultInstance()) return this;
if (other.hasClusterId()) {
setClusterId(other.getClusterId());
}
if (other.hasCreationId()) {
setCreationId(other.getCreationId());
}
if (other.hasRecoveryId()) {
setRecoveryId(other.getRecoveryId());
}
if (other.hasProtocolVersion()) {
setProtocolVersion(other.getProtocolVersion());
}
if (other.hasGlobalPartitionCount()) {
setGlobalPartitionCount(other.getGlobalPartitionCount());
}
if (nodeInfoBuilder_ == null) {
if (!other.nodeInfo_.isEmpty()) {
if (nodeInfo_.isEmpty()) {
nodeInfo_ = other.nodeInfo_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureNodeInfoIsMutable();
nodeInfo_.addAll(other.nodeInfo_);
}
onChanged();
}
} else {
if (!other.nodeInfo_.isEmpty()) {
if (nodeInfoBuilder_.isEmpty()) {
nodeInfoBuilder_.dispose();
nodeInfoBuilder_ = null;
nodeInfo_ = other.nodeInfo_;
bitField0_ = (bitField0_ & ~0x00000020);
nodeInfoBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getNodeInfoFieldBuilder() : null;
} else {
nodeInfoBuilder_.addAllMessages(other.nodeInfo_);
}
}
}
if (partitionInfoBuilder_ == null) {
if (!other.partitionInfo_.isEmpty()) {
if (partitionInfo_.isEmpty()) {
partitionInfo_ = other.partitionInfo_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensurePartitionInfoIsMutable();
partitionInfo_.addAll(other.partitionInfo_);
}
onChanged();
}
} else {
if (!other.partitionInfo_.isEmpty()) {
if (partitionInfoBuilder_.isEmpty()) {
partitionInfoBuilder_.dispose();
partitionInfoBuilder_ = null;
partitionInfo_ = other.partitionInfo_;
bitField0_ = (bitField0_ & ~0x00000040);
partitionInfoBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getPartitionInfoFieldBuilder() : null;
} else {
partitionInfoBuilder_.addAllMessages(other.partitionInfo_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasClusterId()) {
return false;
}
if (!hasCreationId()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.voltdb.pmsg.DRAgent.ClusterInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.voltdb.pmsg.DRAgent.ClusterInfo) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required int32 clusterId = 1;
private int clusterId_ ;
/**
* <code>required int32 clusterId = 1;</code>
*/
public boolean hasClusterId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required int32 clusterId = 1;</code>
*/
public int getClusterId() {
return clusterId_;
}
/**
* <code>required int32 clusterId = 1;</code>
*/
public Builder setClusterId(int value) {
bitField0_ |= 0x00000001;
clusterId_ = value;
onChanged();
return this;
}
/**
* <code>required int32 clusterId = 1;</code>
*/
public Builder clearClusterId() {
bitField0_ = (bitField0_ & ~0x00000001);
clusterId_ = 0;
onChanged();
return this;
}
// required fixed64 creationId = 2;
private long creationId_ ;
/**
* <code>required fixed64 creationId = 2;</code>
*/
public boolean hasCreationId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required fixed64 creationId = 2;</code>
*/
public long getCreationId() {
return creationId_;
}
/**
* <code>required fixed64 creationId = 2;</code>
*/
public Builder setCreationId(long value) {
bitField0_ |= 0x00000002;
creationId_ = value;
onChanged();
return this;
}
/**
* <code>required fixed64 creationId = 2;</code>
*/
public Builder clearCreationId() {
bitField0_ = (bitField0_ & ~0x00000002);
creationId_ = 0L;
onChanged();
return this;
}
// optional fixed64 recoveryId = 3;
private long recoveryId_ ;
/**
* <code>optional fixed64 recoveryId = 3;</code>
*/
public boolean hasRecoveryId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional fixed64 recoveryId = 3;</code>
*/
public long getRecoveryId() {
return recoveryId_;
}
/**
* <code>optional fixed64 recoveryId = 3;</code>
*/
public Builder setRecoveryId(long value) {
bitField0_ |= 0x00000004;
recoveryId_ = value;
onChanged();
return this;
}
/**
* <code>optional fixed64 recoveryId = 3;</code>
*/
public Builder clearRecoveryId() {
bitField0_ = (bitField0_ & ~0x00000004);
recoveryId_ = 0L;
onChanged();
return this;
}
// optional int32 protocolVersion = 4;
private int protocolVersion_ ;
/**
* <code>optional int32 protocolVersion = 4;</code>
*/
public boolean hasProtocolVersion() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional int32 protocolVersion = 4;</code>
*/
public int getProtocolVersion() {
return protocolVersion_;
}
/**
* <code>optional int32 protocolVersion = 4;</code>
*/
public Builder setProtocolVersion(int value) {
bitField0_ |= 0x00000008;
protocolVersion_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 protocolVersion = 4;</code>
*/
public Builder clearProtocolVersion() {
bitField0_ = (bitField0_ & ~0x00000008);
protocolVersion_ = 0;
onChanged();
return this;
}
// optional int32 globalPartitionCount = 5;
private int globalPartitionCount_ ;
/**
* <code>optional int32 globalPartitionCount = 5;</code>
*/
public boolean hasGlobalPartitionCount() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional int32 globalPartitionCount = 5;</code>
*/
public int getGlobalPartitionCount() {
return globalPartitionCount_;
}
/**
* <code>optional int32 globalPartitionCount = 5;</code>
*/
public Builder setGlobalPartitionCount(int value) {
bitField0_ |= 0x00000010;
globalPartitionCount_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 globalPartitionCount = 5;</code>
*/
public Builder clearGlobalPartitionCount() {
bitField0_ = (bitField0_ & ~0x00000010);
globalPartitionCount_ = 0;
onChanged();
return this;
}
// repeated .pmsg.NodeInfo nodeInfo = 6;
private java.util.List<org.voltdb.pmsg.DRAgent.NodeInfo> nodeInfo_ =
java.util.Collections.emptyList();
private void ensureNodeInfoIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
nodeInfo_ = new java.util.ArrayList<org.voltdb.pmsg.DRAgent.NodeInfo>(nodeInfo_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.voltdb.pmsg.DRAgent.NodeInfo, org.voltdb.pmsg.DRAgent.NodeInfo.Builder, org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder> nodeInfoBuilder_;
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public java.util.List<org.voltdb.pmsg.DRAgent.NodeInfo> getNodeInfoList() {
if (nodeInfoBuilder_ == null) {
return java.util.Collections.unmodifiableList(nodeInfo_);
} else {
return nodeInfoBuilder_.getMessageList();
}
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public int getNodeInfoCount() {
if (nodeInfoBuilder_ == null) {
return nodeInfo_.size();
} else {
return nodeInfoBuilder_.getCount();
}
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public org.voltdb.pmsg.DRAgent.NodeInfo getNodeInfo(int index) {
if (nodeInfoBuilder_ == null) {
return nodeInfo_.get(index);
} else {
return nodeInfoBuilder_.getMessage(index);
}
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public Builder setNodeInfo(
int index, org.voltdb.pmsg.DRAgent.NodeInfo value) {
if (nodeInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeInfoIsMutable();
nodeInfo_.set(index, value);
onChanged();
} else {
nodeInfoBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public Builder setNodeInfo(
int index, org.voltdb.pmsg.DRAgent.NodeInfo.Builder builderForValue) {
if (nodeInfoBuilder_ == null) {
ensureNodeInfoIsMutable();
nodeInfo_.set(index, builderForValue.build());
onChanged();
} else {
nodeInfoBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public Builder addNodeInfo(org.voltdb.pmsg.DRAgent.NodeInfo value) {
if (nodeInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeInfoIsMutable();
nodeInfo_.add(value);
onChanged();
} else {
nodeInfoBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public Builder addNodeInfo(
int index, org.voltdb.pmsg.DRAgent.NodeInfo value) {
if (nodeInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeInfoIsMutable();
nodeInfo_.add(index, value);
onChanged();
} else {
nodeInfoBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public Builder addNodeInfo(
org.voltdb.pmsg.DRAgent.NodeInfo.Builder builderForValue) {
if (nodeInfoBuilder_ == null) {
ensureNodeInfoIsMutable();
nodeInfo_.add(builderForValue.build());
onChanged();
} else {
nodeInfoBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public Builder addNodeInfo(
int index, org.voltdb.pmsg.DRAgent.NodeInfo.Builder builderForValue) {
if (nodeInfoBuilder_ == null) {
ensureNodeInfoIsMutable();
nodeInfo_.add(index, builderForValue.build());
onChanged();
} else {
nodeInfoBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public Builder addAllNodeInfo(
java.lang.Iterable<? extends org.voltdb.pmsg.DRAgent.NodeInfo> values) {
if (nodeInfoBuilder_ == null) {
ensureNodeInfoIsMutable();
super.addAll(values, nodeInfo_);
onChanged();
} else {
nodeInfoBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public Builder clearNodeInfo() {
if (nodeInfoBuilder_ == null) {
nodeInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
nodeInfoBuilder_.clear();
}
return this;
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public Builder removeNodeInfo(int index) {
if (nodeInfoBuilder_ == null) {
ensureNodeInfoIsMutable();
nodeInfo_.remove(index);
onChanged();
} else {
nodeInfoBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public org.voltdb.pmsg.DRAgent.NodeInfo.Builder getNodeInfoBuilder(
int index) {
return getNodeInfoFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder getNodeInfoOrBuilder(
int index) {
if (nodeInfoBuilder_ == null) {
return nodeInfo_.get(index); } else {
return nodeInfoBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public java.util.List<? extends org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder>
getNodeInfoOrBuilderList() {
if (nodeInfoBuilder_ != null) {
return nodeInfoBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(nodeInfo_);
}
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public org.voltdb.pmsg.DRAgent.NodeInfo.Builder addNodeInfoBuilder() {
return getNodeInfoFieldBuilder().addBuilder(
org.voltdb.pmsg.DRAgent.NodeInfo.getDefaultInstance());
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public org.voltdb.pmsg.DRAgent.NodeInfo.Builder addNodeInfoBuilder(
int index) {
return getNodeInfoFieldBuilder().addBuilder(
index, org.voltdb.pmsg.DRAgent.NodeInfo.getDefaultInstance());
}
/**
* <code>repeated .pmsg.NodeInfo nodeInfo = 6;</code>
*/
public java.util.List<org.voltdb.pmsg.DRAgent.NodeInfo.Builder>
getNodeInfoBuilderList() {
return getNodeInfoFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.voltdb.pmsg.DRAgent.NodeInfo, org.voltdb.pmsg.DRAgent.NodeInfo.Builder, org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder>
getNodeInfoFieldBuilder() {
if (nodeInfoBuilder_ == null) {
nodeInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.voltdb.pmsg.DRAgent.NodeInfo, org.voltdb.pmsg.DRAgent.NodeInfo.Builder, org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder>(
nodeInfo_,
((bitField0_ & 0x00000020) == 0x00000020),
getParentForChildren(),
isClean());
nodeInfo_ = null;
}
return nodeInfoBuilder_;
}
// repeated .pmsg.PartitionInfo partitionInfo = 7;
private java.util.List<org.voltdb.pmsg.DRAgent.PartitionInfo> partitionInfo_ =
java.util.Collections.emptyList();
private void ensurePartitionInfoIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
partitionInfo_ = new java.util.ArrayList<org.voltdb.pmsg.DRAgent.PartitionInfo>(partitionInfo_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.voltdb.pmsg.DRAgent.PartitionInfo, org.voltdb.pmsg.DRAgent.PartitionInfo.Builder, org.voltdb.pmsg.DRAgent.PartitionInfoOrBuilder> partitionInfoBuilder_;
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public java.util.List<org.voltdb.pmsg.DRAgent.PartitionInfo> getPartitionInfoList() {
if (partitionInfoBuilder_ == null) {
return java.util.Collections.unmodifiableList(partitionInfo_);
} else {
return partitionInfoBuilder_.getMessageList();
}
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public int getPartitionInfoCount() {
if (partitionInfoBuilder_ == null) {
return partitionInfo_.size();
} else {
return partitionInfoBuilder_.getCount();
}
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public org.voltdb.pmsg.DRAgent.PartitionInfo getPartitionInfo(int index) {
if (partitionInfoBuilder_ == null) {
return partitionInfo_.get(index);
} else {
return partitionInfoBuilder_.getMessage(index);
}
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public Builder setPartitionInfo(
int index, org.voltdb.pmsg.DRAgent.PartitionInfo value) {
if (partitionInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartitionInfoIsMutable();
partitionInfo_.set(index, value);
onChanged();
} else {
partitionInfoBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public Builder setPartitionInfo(
int index, org.voltdb.pmsg.DRAgent.PartitionInfo.Builder builderForValue) {
if (partitionInfoBuilder_ == null) {
ensurePartitionInfoIsMutable();
partitionInfo_.set(index, builderForValue.build());
onChanged();
} else {
partitionInfoBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public Builder addPartitionInfo(org.voltdb.pmsg.DRAgent.PartitionInfo value) {
if (partitionInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartitionInfoIsMutable();
partitionInfo_.add(value);
onChanged();
} else {
partitionInfoBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public Builder addPartitionInfo(
int index, org.voltdb.pmsg.DRAgent.PartitionInfo value) {
if (partitionInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartitionInfoIsMutable();
partitionInfo_.add(index, value);
onChanged();
} else {
partitionInfoBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public Builder addPartitionInfo(
org.voltdb.pmsg.DRAgent.PartitionInfo.Builder builderForValue) {
if (partitionInfoBuilder_ == null) {
ensurePartitionInfoIsMutable();
partitionInfo_.add(builderForValue.build());
onChanged();
} else {
partitionInfoBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public Builder addPartitionInfo(
int index, org.voltdb.pmsg.DRAgent.PartitionInfo.Builder builderForValue) {
if (partitionInfoBuilder_ == null) {
ensurePartitionInfoIsMutable();
partitionInfo_.add(index, builderForValue.build());
onChanged();
} else {
partitionInfoBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public Builder addAllPartitionInfo(
java.lang.Iterable<? extends org.voltdb.pmsg.DRAgent.PartitionInfo> values) {
if (partitionInfoBuilder_ == null) {
ensurePartitionInfoIsMutable();
super.addAll(values, partitionInfo_);
onChanged();
} else {
partitionInfoBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public Builder clearPartitionInfo() {
if (partitionInfoBuilder_ == null) {
partitionInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
partitionInfoBuilder_.clear();
}
return this;
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public Builder removePartitionInfo(int index) {
if (partitionInfoBuilder_ == null) {
ensurePartitionInfoIsMutable();
partitionInfo_.remove(index);
onChanged();
} else {
partitionInfoBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public org.voltdb.pmsg.DRAgent.PartitionInfo.Builder getPartitionInfoBuilder(
int index) {
return getPartitionInfoFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public org.voltdb.pmsg.DRAgent.PartitionInfoOrBuilder getPartitionInfoOrBuilder(
int index) {
if (partitionInfoBuilder_ == null) {
return partitionInfo_.get(index); } else {
return partitionInfoBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public java.util.List<? extends org.voltdb.pmsg.DRAgent.PartitionInfoOrBuilder>
getPartitionInfoOrBuilderList() {
if (partitionInfoBuilder_ != null) {
return partitionInfoBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(partitionInfo_);
}
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public org.voltdb.pmsg.DRAgent.PartitionInfo.Builder addPartitionInfoBuilder() {
return getPartitionInfoFieldBuilder().addBuilder(
org.voltdb.pmsg.DRAgent.PartitionInfo.getDefaultInstance());
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public org.voltdb.pmsg.DRAgent.PartitionInfo.Builder addPartitionInfoBuilder(
int index) {
return getPartitionInfoFieldBuilder().addBuilder(
index, org.voltdb.pmsg.DRAgent.PartitionInfo.getDefaultInstance());
}
/**
* <code>repeated .pmsg.PartitionInfo partitionInfo = 7;</code>
*/
public java.util.List<org.voltdb.pmsg.DRAgent.PartitionInfo.Builder>
getPartitionInfoBuilderList() {
return getPartitionInfoFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.voltdb.pmsg.DRAgent.PartitionInfo, org.voltdb.pmsg.DRAgent.PartitionInfo.Builder, org.voltdb.pmsg.DRAgent.PartitionInfoOrBuilder>
getPartitionInfoFieldBuilder() {
if (partitionInfoBuilder_ == null) {
partitionInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.voltdb.pmsg.DRAgent.PartitionInfo, org.voltdb.pmsg.DRAgent.PartitionInfo.Builder, org.voltdb.pmsg.DRAgent.PartitionInfoOrBuilder>(
partitionInfo_,
((bitField0_ & 0x00000040) == 0x00000040),
getParentForChildren(),
isClean());
partitionInfo_ = null;
}
return partitionInfoBuilder_;
}
// @@protoc_insertion_point(builder_scope:pmsg.ClusterInfo)
}
static {
defaultInstance = new ClusterInfo(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pmsg.ClusterInfo)
}
public interface NodeInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string hostname = 1;
/**
* <code>optional string hostname = 1;</code>
*/
boolean hasHostname();
/**
* <code>optional string hostname = 1;</code>
*/
java.lang.String getHostname();
/**
* <code>optional string hostname = 1;</code>
*/
com.google.protobuf.ByteString
getHostnameBytes();
// optional int32 drport = 2;
/**
* <code>optional int32 drport = 2;</code>
*
* <pre>
* can be combined with hostname
* </pre>
*/
boolean hasDrport();
/**
* <code>optional int32 drport = 2;</code>
*
* <pre>
* can be combined with hostname
* </pre>
*/
int getDrport();
// optional bool isUp = 3;
/**
* <code>optional bool isUp = 3;</code>
*/
boolean hasIsUp();
/**
* <code>optional bool isUp = 3;</code>
*/
boolean getIsUp();
}
/**
* Protobuf type {@code pmsg.NodeInfo}
*/
public static final class NodeInfo extends
com.google.protobuf.GeneratedMessage
implements NodeInfoOrBuilder {
// Use NodeInfo.newBuilder() to construct.
private NodeInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private NodeInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final NodeInfo defaultInstance;
public static NodeInfo getDefaultInstance() {
return defaultInstance;
}
public NodeInfo getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
hostname_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
drport_ = input.readInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
isUp_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_NodeInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_NodeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.NodeInfo.class, org.voltdb.pmsg.DRAgent.NodeInfo.Builder.class);
}
public static com.google.protobuf.Parser<NodeInfo> PARSER =
new com.google.protobuf.AbstractParser<NodeInfo>() {
public NodeInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NodeInfo(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<NodeInfo> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string hostname = 1;
public static final int HOSTNAME_FIELD_NUMBER = 1;
private java.lang.Object hostname_;
/**
* <code>optional string hostname = 1;</code>
*/
public boolean hasHostname() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string hostname = 1;</code>
*/
public java.lang.String getHostname() {
java.lang.Object ref = hostname_;
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()) {
hostname_ = s;
}
return s;
}
}
/**
* <code>optional string hostname = 1;</code>
*/
public com.google.protobuf.ByteString
getHostnameBytes() {
java.lang.Object ref = hostname_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional int32 drport = 2;
public static final int DRPORT_FIELD_NUMBER = 2;
private int drport_;
/**
* <code>optional int32 drport = 2;</code>
*
* <pre>
* can be combined with hostname
* </pre>
*/
public boolean hasDrport() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int32 drport = 2;</code>
*
* <pre>
* can be combined with hostname
* </pre>
*/
public int getDrport() {
return drport_;
}
// optional bool isUp = 3;
public static final int ISUP_FIELD_NUMBER = 3;
private boolean isUp_;
/**
* <code>optional bool isUp = 3;</code>
*/
public boolean hasIsUp() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bool isUp = 3;</code>
*/
public boolean getIsUp() {
return isUp_;
}
private void initFields() {
hostname_ = "";
drport_ = 0;
isUp_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getHostnameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, drport_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(3, isUp_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getHostnameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, drport_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, isUp_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.voltdb.pmsg.DRAgent.NodeInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.NodeInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.NodeInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.NodeInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.NodeInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.NodeInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.NodeInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.voltdb.pmsg.DRAgent.NodeInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.NodeInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.NodeInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.voltdb.pmsg.DRAgent.NodeInfo prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pmsg.NodeInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.voltdb.pmsg.DRAgent.NodeInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_NodeInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_NodeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.NodeInfo.class, org.voltdb.pmsg.DRAgent.NodeInfo.Builder.class);
}
// Construct using org.voltdb.pmsg.DRAgent.NodeInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
hostname_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
drport_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
isUp_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_NodeInfo_descriptor;
}
public org.voltdb.pmsg.DRAgent.NodeInfo getDefaultInstanceForType() {
return org.voltdb.pmsg.DRAgent.NodeInfo.getDefaultInstance();
}
public org.voltdb.pmsg.DRAgent.NodeInfo build() {
org.voltdb.pmsg.DRAgent.NodeInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.voltdb.pmsg.DRAgent.NodeInfo buildPartial() {
org.voltdb.pmsg.DRAgent.NodeInfo result = new org.voltdb.pmsg.DRAgent.NodeInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.hostname_ = hostname_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.drport_ = drport_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.isUp_ = isUp_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.voltdb.pmsg.DRAgent.NodeInfo) {
return mergeFrom((org.voltdb.pmsg.DRAgent.NodeInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.voltdb.pmsg.DRAgent.NodeInfo other) {
if (other == org.voltdb.pmsg.DRAgent.NodeInfo.getDefaultInstance()) return this;
if (other.hasHostname()) {
bitField0_ |= 0x00000001;
hostname_ = other.hostname_;
onChanged();
}
if (other.hasDrport()) {
setDrport(other.getDrport());
}
if (other.hasIsUp()) {
setIsUp(other.getIsUp());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.voltdb.pmsg.DRAgent.NodeInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.voltdb.pmsg.DRAgent.NodeInfo) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string hostname = 1;
private java.lang.Object hostname_ = "";
/**
* <code>optional string hostname = 1;</code>
*/
public boolean hasHostname() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string hostname = 1;</code>
*/
public java.lang.String getHostname() {
java.lang.Object ref = hostname_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
hostname_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string hostname = 1;</code>
*/
public com.google.protobuf.ByteString
getHostnameBytes() {
java.lang.Object ref = hostname_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string hostname = 1;</code>
*/
public Builder setHostname(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
hostname_ = value;
onChanged();
return this;
}
/**
* <code>optional string hostname = 1;</code>
*/
public Builder clearHostname() {
bitField0_ = (bitField0_ & ~0x00000001);
hostname_ = getDefaultInstance().getHostname();
onChanged();
return this;
}
/**
* <code>optional string hostname = 1;</code>
*/
public Builder setHostnameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
hostname_ = value;
onChanged();
return this;
}
// optional int32 drport = 2;
private int drport_ ;
/**
* <code>optional int32 drport = 2;</code>
*
* <pre>
* can be combined with hostname
* </pre>
*/
public boolean hasDrport() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int32 drport = 2;</code>
*
* <pre>
* can be combined with hostname
* </pre>
*/
public int getDrport() {
return drport_;
}
/**
* <code>optional int32 drport = 2;</code>
*
* <pre>
* can be combined with hostname
* </pre>
*/
public Builder setDrport(int value) {
bitField0_ |= 0x00000002;
drport_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 drport = 2;</code>
*
* <pre>
* can be combined with hostname
* </pre>
*/
public Builder clearDrport() {
bitField0_ = (bitField0_ & ~0x00000002);
drport_ = 0;
onChanged();
return this;
}
// optional bool isUp = 3;
private boolean isUp_ ;
/**
* <code>optional bool isUp = 3;</code>
*/
public boolean hasIsUp() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bool isUp = 3;</code>
*/
public boolean getIsUp() {
return isUp_;
}
/**
* <code>optional bool isUp = 3;</code>
*/
public Builder setIsUp(boolean value) {
bitField0_ |= 0x00000004;
isUp_ = value;
onChanged();
return this;
}
/**
* <code>optional bool isUp = 3;</code>
*/
public Builder clearIsUp() {
bitField0_ = (bitField0_ & ~0x00000004);
isUp_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:pmsg.NodeInfo)
}
static {
defaultInstance = new NodeInfo(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pmsg.NodeInfo)
}
public interface PartitionInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int32 partitionId = 1;
/**
* <code>optional int32 partitionId = 1;</code>
*
* <pre>
* should be required
* </pre>
*/
boolean hasPartitionId();
/**
* <code>optional int32 partitionId = 1;</code>
*
* <pre>
* should be required
* </pre>
*/
int getPartitionId();
// optional int64 nextUniqueId = 10;
/**
* <code>optional int64 nextUniqueId = 10;</code>
*
* <pre>
* info for event synchronization
* </pre>
*/
boolean hasNextUniqueId();
/**
* <code>optional int64 nextUniqueId = 10;</code>
*
* <pre>
* info for event synchronization
* </pre>
*/
long getNextUniqueId();
// optional bool isSynced = 9 [default = true];
/**
* <code>optional bool isSynced = 9 [default = true];</code>
*
* <pre>
* for backward compatibility only
* </pre>
*/
boolean hasIsSynced();
/**
* <code>optional bool isSynced = 9 [default = true];</code>
*
* <pre>
* for backward compatibility only
* </pre>
*/
boolean getIsSynced();
}
/**
* Protobuf type {@code pmsg.PartitionInfo}
*/
public static final class PartitionInfo extends
com.google.protobuf.GeneratedMessage
implements PartitionInfoOrBuilder {
// Use PartitionInfo.newBuilder() to construct.
private PartitionInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private PartitionInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final PartitionInfo defaultInstance;
public static PartitionInfo getDefaultInstance() {
return defaultInstance;
}
public PartitionInfo getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PartitionInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
partitionId_ = input.readInt32();
break;
}
case 72: {
bitField0_ |= 0x00000004;
isSynced_ = input.readBool();
break;
}
case 80: {
bitField0_ |= 0x00000002;
nextUniqueId_ = input.readInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_PartitionInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_PartitionInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.PartitionInfo.class, org.voltdb.pmsg.DRAgent.PartitionInfo.Builder.class);
}
public static com.google.protobuf.Parser<PartitionInfo> PARSER =
new com.google.protobuf.AbstractParser<PartitionInfo>() {
public PartitionInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PartitionInfo(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<PartitionInfo> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int32 partitionId = 1;
public static final int PARTITIONID_FIELD_NUMBER = 1;
private int partitionId_;
/**
* <code>optional int32 partitionId = 1;</code>
*
* <pre>
* should be required
* </pre>
*/
public boolean hasPartitionId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 partitionId = 1;</code>
*
* <pre>
* should be required
* </pre>
*/
public int getPartitionId() {
return partitionId_;
}
// optional int64 nextUniqueId = 10;
public static final int NEXTUNIQUEID_FIELD_NUMBER = 10;
private long nextUniqueId_;
/**
* <code>optional int64 nextUniqueId = 10;</code>
*
* <pre>
* info for event synchronization
* </pre>
*/
public boolean hasNextUniqueId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int64 nextUniqueId = 10;</code>
*
* <pre>
* info for event synchronization
* </pre>
*/
public long getNextUniqueId() {
return nextUniqueId_;
}
// optional bool isSynced = 9 [default = true];
public static final int ISSYNCED_FIELD_NUMBER = 9;
private boolean isSynced_;
/**
* <code>optional bool isSynced = 9 [default = true];</code>
*
* <pre>
* for backward compatibility only
* </pre>
*/
public boolean hasIsSynced() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bool isSynced = 9 [default = true];</code>
*
* <pre>
* for backward compatibility only
* </pre>
*/
public boolean getIsSynced() {
return isSynced_;
}
private void initFields() {
partitionId_ = 0;
nextUniqueId_ = 0L;
isSynced_ = true;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, partitionId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(9, isSynced_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt64(10, nextUniqueId_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, partitionId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, isSynced_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(10, nextUniqueId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.voltdb.pmsg.DRAgent.PartitionInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.PartitionInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.PartitionInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.PartitionInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.PartitionInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.PartitionInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.PartitionInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.voltdb.pmsg.DRAgent.PartitionInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.PartitionInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.PartitionInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.voltdb.pmsg.DRAgent.PartitionInfo prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pmsg.PartitionInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.voltdb.pmsg.DRAgent.PartitionInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_PartitionInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_PartitionInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.PartitionInfo.class, org.voltdb.pmsg.DRAgent.PartitionInfo.Builder.class);
}
// Construct using org.voltdb.pmsg.DRAgent.PartitionInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
partitionId_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
nextUniqueId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
isSynced_ = true;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_PartitionInfo_descriptor;
}
public org.voltdb.pmsg.DRAgent.PartitionInfo getDefaultInstanceForType() {
return org.voltdb.pmsg.DRAgent.PartitionInfo.getDefaultInstance();
}
public org.voltdb.pmsg.DRAgent.PartitionInfo build() {
org.voltdb.pmsg.DRAgent.PartitionInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.voltdb.pmsg.DRAgent.PartitionInfo buildPartial() {
org.voltdb.pmsg.DRAgent.PartitionInfo result = new org.voltdb.pmsg.DRAgent.PartitionInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.partitionId_ = partitionId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.nextUniqueId_ = nextUniqueId_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.isSynced_ = isSynced_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.voltdb.pmsg.DRAgent.PartitionInfo) {
return mergeFrom((org.voltdb.pmsg.DRAgent.PartitionInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.voltdb.pmsg.DRAgent.PartitionInfo other) {
if (other == org.voltdb.pmsg.DRAgent.PartitionInfo.getDefaultInstance()) return this;
if (other.hasPartitionId()) {
setPartitionId(other.getPartitionId());
}
if (other.hasNextUniqueId()) {
setNextUniqueId(other.getNextUniqueId());
}
if (other.hasIsSynced()) {
setIsSynced(other.getIsSynced());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.voltdb.pmsg.DRAgent.PartitionInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.voltdb.pmsg.DRAgent.PartitionInfo) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int32 partitionId = 1;
private int partitionId_ ;
/**
* <code>optional int32 partitionId = 1;</code>
*
* <pre>
* should be required
* </pre>
*/
public boolean hasPartitionId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 partitionId = 1;</code>
*
* <pre>
* should be required
* </pre>
*/
public int getPartitionId() {
return partitionId_;
}
/**
* <code>optional int32 partitionId = 1;</code>
*
* <pre>
* should be required
* </pre>
*/
public Builder setPartitionId(int value) {
bitField0_ |= 0x00000001;
partitionId_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 partitionId = 1;</code>
*
* <pre>
* should be required
* </pre>
*/
public Builder clearPartitionId() {
bitField0_ = (bitField0_ & ~0x00000001);
partitionId_ = 0;
onChanged();
return this;
}
// optional int64 nextUniqueId = 10;
private long nextUniqueId_ ;
/**
* <code>optional int64 nextUniqueId = 10;</code>
*
* <pre>
* info for event synchronization
* </pre>
*/
public boolean hasNextUniqueId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int64 nextUniqueId = 10;</code>
*
* <pre>
* info for event synchronization
* </pre>
*/
public long getNextUniqueId() {
return nextUniqueId_;
}
/**
* <code>optional int64 nextUniqueId = 10;</code>
*
* <pre>
* info for event synchronization
* </pre>
*/
public Builder setNextUniqueId(long value) {
bitField0_ |= 0x00000002;
nextUniqueId_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 nextUniqueId = 10;</code>
*
* <pre>
* info for event synchronization
* </pre>
*/
public Builder clearNextUniqueId() {
bitField0_ = (bitField0_ & ~0x00000002);
nextUniqueId_ = 0L;
onChanged();
return this;
}
// optional bool isSynced = 9 [default = true];
private boolean isSynced_ = true;
/**
* <code>optional bool isSynced = 9 [default = true];</code>
*
* <pre>
* for backward compatibility only
* </pre>
*/
public boolean hasIsSynced() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bool isSynced = 9 [default = true];</code>
*
* <pre>
* for backward compatibility only
* </pre>
*/
public boolean getIsSynced() {
return isSynced_;
}
/**
* <code>optional bool isSynced = 9 [default = true];</code>
*
* <pre>
* for backward compatibility only
* </pre>
*/
public Builder setIsSynced(boolean value) {
bitField0_ |= 0x00000004;
isSynced_ = value;
onChanged();
return this;
}
/**
* <code>optional bool isSynced = 9 [default = true];</code>
*
* <pre>
* for backward compatibility only
* </pre>
*/
public Builder clearIsSynced() {
bitField0_ = (bitField0_ & ~0x00000004);
isSynced_ = true;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:pmsg.PartitionInfo)
}
static {
defaultInstance = new PartitionInfo(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pmsg.PartitionInfo)
}
public interface CtrlEnvelopeOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .pmsg.CtrlEnvelope.Type type = 1;
/**
* <code>required .pmsg.CtrlEnvelope.Type type = 1;</code>
*/
boolean hasType();
/**
* <code>required .pmsg.CtrlEnvelope.Type type = 1;</code>
*/
org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type getType();
// required .pmsg.UUID id = 2;
/**
* <code>required .pmsg.UUID id = 2;</code>
*/
boolean hasId();
/**
* <code>required .pmsg.UUID id = 2;</code>
*/
org.voltdb.pmsg.DRAgent.UUID getId();
/**
* <code>required .pmsg.UUID id = 2;</code>
*/
org.voltdb.pmsg.DRAgent.UUIDOrBuilder getIdOrBuilder();
// optional .pmsg.Ack ack = 3;
/**
* <code>optional .pmsg.Ack ack = 3;</code>
*/
boolean hasAck();
/**
* <code>optional .pmsg.Ack ack = 3;</code>
*/
org.voltdb.pmsg.DRAgent.Ack getAck();
/**
* <code>optional .pmsg.Ack ack = 3;</code>
*/
org.voltdb.pmsg.DRAgent.AckOrBuilder getAckOrBuilder();
// optional .pmsg.Reset reset = 4;
/**
* <code>optional .pmsg.Reset reset = 4;</code>
*/
boolean hasReset();
/**
* <code>optional .pmsg.Reset reset = 4;</code>
*/
org.voltdb.pmsg.DRAgent.Reset getReset();
/**
* <code>optional .pmsg.Reset reset = 4;</code>
*/
org.voltdb.pmsg.DRAgent.ResetOrBuilder getResetOrBuilder();
// optional .pmsg.Pause pause = 5;
/**
* <code>optional .pmsg.Pause pause = 5;</code>
*/
boolean hasPause();
/**
* <code>optional .pmsg.Pause pause = 5;</code>
*/
org.voltdb.pmsg.DRAgent.Pause getPause();
/**
* <code>optional .pmsg.Pause pause = 5;</code>
*/
org.voltdb.pmsg.DRAgent.PauseOrBuilder getPauseOrBuilder();
// optional .pmsg.Response response = 6;
/**
* <code>optional .pmsg.Response response = 6;</code>
*/
boolean hasResponse();
/**
* <code>optional .pmsg.Response response = 6;</code>
*/
org.voltdb.pmsg.DRAgent.Response getResponse();
/**
* <code>optional .pmsg.Response response = 6;</code>
*/
org.voltdb.pmsg.DRAgent.ResponseOrBuilder getResponseOrBuilder();
// optional .pmsg.SnapshotReq snapshotReq = 7;
/**
* <code>optional .pmsg.SnapshotReq snapshotReq = 7;</code>
*/
boolean hasSnapshotReq();
/**
* <code>optional .pmsg.SnapshotReq snapshotReq = 7;</code>
*/
org.voltdb.pmsg.DRAgent.SnapshotReq getSnapshotReq();
/**
* <code>optional .pmsg.SnapshotReq snapshotReq = 7;</code>
*/
org.voltdb.pmsg.DRAgent.SnapshotReqOrBuilder getSnapshotReqOrBuilder();
// optional .pmsg.Subscribe subscribe = 8;
/**
* <code>optional .pmsg.Subscribe subscribe = 8;</code>
*/
boolean hasSubscribe();
/**
* <code>optional .pmsg.Subscribe subscribe = 8;</code>
*/
org.voltdb.pmsg.DRAgent.Subscribe getSubscribe();
/**
* <code>optional .pmsg.Subscribe subscribe = 8;</code>
*/
org.voltdb.pmsg.DRAgent.SubscribeOrBuilder getSubscribeOrBuilder();
// optional .pmsg.Connect connect = 10;
/**
* <code>optional .pmsg.Connect connect = 10;</code>
*
* <pre>
* Intentionally skip field 9 -- deprecated message type
* </pre>
*/
boolean hasConnect();
/**
* <code>optional .pmsg.Connect connect = 10;</code>
*
* <pre>
* Intentionally skip field 9 -- deprecated message type
* </pre>
*/
org.voltdb.pmsg.DRAgent.Connect getConnect();
/**
* <code>optional .pmsg.Connect connect = 10;</code>
*
* <pre>
* Intentionally skip field 9 -- deprecated message type
* </pre>
*/
org.voltdb.pmsg.DRAgent.ConnectOrBuilder getConnectOrBuilder();
// optional .pmsg.Query query = 11;
/**
* <code>optional .pmsg.Query query = 11;</code>
*/
boolean hasQuery();
/**
* <code>optional .pmsg.Query query = 11;</code>
*/
org.voltdb.pmsg.DRAgent.Query getQuery();
/**
* <code>optional .pmsg.Query query = 11;</code>
*/
org.voltdb.pmsg.DRAgent.QueryOrBuilder getQueryOrBuilder();
// optional .pmsg.StartCursor startCursor = 12;
/**
* <code>optional .pmsg.StartCursor startCursor = 12;</code>
*/
boolean hasStartCursor();
/**
* <code>optional .pmsg.StartCursor startCursor = 12;</code>
*/
org.voltdb.pmsg.DRAgent.StartCursor getStartCursor();
/**
* <code>optional .pmsg.StartCursor startCursor = 12;</code>
*/
org.voltdb.pmsg.DRAgent.StartCursorOrBuilder getStartCursorOrBuilder();
}
/**
* Protobuf type {@code pmsg.CtrlEnvelope}
*/
public static final class CtrlEnvelope extends
com.google.protobuf.GeneratedMessage
implements CtrlEnvelopeOrBuilder {
// Use CtrlEnvelope.newBuilder() to construct.
private CtrlEnvelope(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CtrlEnvelope(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CtrlEnvelope defaultInstance;
public static CtrlEnvelope getDefaultInstance() {
return defaultInstance;
}
public CtrlEnvelope getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CtrlEnvelope(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type value = org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
type_ = value;
}
break;
}
case 18: {
org.voltdb.pmsg.DRAgent.UUID.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.voltdb.pmsg.DRAgent.UUID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
org.voltdb.pmsg.DRAgent.Ack.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = ack_.toBuilder();
}
ack_ = input.readMessage(org.voltdb.pmsg.DRAgent.Ack.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ack_);
ack_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
org.voltdb.pmsg.DRAgent.Reset.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = reset_.toBuilder();
}
reset_ = input.readMessage(org.voltdb.pmsg.DRAgent.Reset.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(reset_);
reset_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 42: {
org.voltdb.pmsg.DRAgent.Pause.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = pause_.toBuilder();
}
pause_ = input.readMessage(org.voltdb.pmsg.DRAgent.Pause.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pause_);
pause_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 50: {
org.voltdb.pmsg.DRAgent.Response.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
subBuilder = response_.toBuilder();
}
response_ = input.readMessage(org.voltdb.pmsg.DRAgent.Response.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(response_);
response_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
case 58: {
org.voltdb.pmsg.DRAgent.SnapshotReq.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
subBuilder = snapshotReq_.toBuilder();
}
snapshotReq_ = input.readMessage(org.voltdb.pmsg.DRAgent.SnapshotReq.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(snapshotReq_);
snapshotReq_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
case 66: {
org.voltdb.pmsg.DRAgent.Subscribe.Builder subBuilder = null;
if (((bitField0_ & 0x00000080) == 0x00000080)) {
subBuilder = subscribe_.toBuilder();
}
subscribe_ = input.readMessage(org.voltdb.pmsg.DRAgent.Subscribe.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(subscribe_);
subscribe_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000080;
break;
}
case 82: {
org.voltdb.pmsg.DRAgent.Connect.Builder subBuilder = null;
if (((bitField0_ & 0x00000100) == 0x00000100)) {
subBuilder = connect_.toBuilder();
}
connect_ = input.readMessage(org.voltdb.pmsg.DRAgent.Connect.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(connect_);
connect_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000100;
break;
}
case 90: {
org.voltdb.pmsg.DRAgent.Query.Builder subBuilder = null;
if (((bitField0_ & 0x00000200) == 0x00000200)) {
subBuilder = query_.toBuilder();
}
query_ = input.readMessage(org.voltdb.pmsg.DRAgent.Query.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(query_);
query_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000200;
break;
}
case 98: {
org.voltdb.pmsg.DRAgent.StartCursor.Builder subBuilder = null;
if (((bitField0_ & 0x00000400) == 0x00000400)) {
subBuilder = startCursor_.toBuilder();
}
startCursor_ = input.readMessage(org.voltdb.pmsg.DRAgent.StartCursor.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(startCursor_);
startCursor_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000400;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_CtrlEnvelope_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_CtrlEnvelope_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.CtrlEnvelope.class, org.voltdb.pmsg.DRAgent.CtrlEnvelope.Builder.class);
}
public static com.google.protobuf.Parser<CtrlEnvelope> PARSER =
new com.google.protobuf.AbstractParser<CtrlEnvelope>() {
public CtrlEnvelope parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CtrlEnvelope(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CtrlEnvelope> getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code pmsg.CtrlEnvelope.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>ACK = 1;</code>
*/
ACK(0, 1),
/**
* <code>RESET = 2;</code>
*/
RESET(1, 2),
/**
* <code>PAUSE = 3;</code>
*/
PAUSE(2, 3),
/**
* <code>QUERY = 4;</code>
*/
QUERY(3, 4),
/**
* <code>RESPONSE = 5;</code>
*/
RESPONSE(4, 5),
/**
* <code>SNAPSHOT_REQ = 6;</code>
*/
SNAPSHOT_REQ(5, 6),
/**
* <code>SNAPSHOT_TERM = 7;</code>
*/
SNAPSHOT_TERM(6, 7),
/**
* <code>STOP_SYNC = 8;</code>
*/
STOP_SYNC(7, 8),
/**
* <code>CONNECT = 9;</code>
*/
CONNECT(8, 9),
/**
* <code>SUBSCRIBE = 10;</code>
*/
SUBSCRIBE(9, 10),
/**
* <code>START_CURSOR = 11;</code>
*/
START_CURSOR(10, 11),
;
/**
* <code>ACK = 1;</code>
*/
public static final int ACK_VALUE = 1;
/**
* <code>RESET = 2;</code>
*/
public static final int RESET_VALUE = 2;
/**
* <code>PAUSE = 3;</code>
*/
public static final int PAUSE_VALUE = 3;
/**
* <code>QUERY = 4;</code>
*/
public static final int QUERY_VALUE = 4;
/**
* <code>RESPONSE = 5;</code>
*/
public static final int RESPONSE_VALUE = 5;
/**
* <code>SNAPSHOT_REQ = 6;</code>
*/
public static final int SNAPSHOT_REQ_VALUE = 6;
/**
* <code>SNAPSHOT_TERM = 7;</code>
*/
public static final int SNAPSHOT_TERM_VALUE = 7;
/**
* <code>STOP_SYNC = 8;</code>
*/
public static final int STOP_SYNC_VALUE = 8;
/**
* <code>CONNECT = 9;</code>
*/
public static final int CONNECT_VALUE = 9;
/**
* <code>SUBSCRIBE = 10;</code>
*/
public static final int SUBSCRIBE_VALUE = 10;
/**
* <code>START_CURSOR = 11;</code>
*/
public static final int START_CURSOR_VALUE = 11;
public final int getNumber() { return value; }
public static Type valueOf(int value) {
switch (value) {
case 1: return ACK;
case 2: return RESET;
case 3: return PAUSE;
case 4: return QUERY;
case 5: return RESPONSE;
case 6: return SNAPSHOT_REQ;
case 7: return SNAPSHOT_TERM;
case 8: return STOP_SYNC;
case 9: return CONNECT;
case 10: return SUBSCRIBE;
case 11: return START_CURSOR;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<Type>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<Type>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<Type>() {
public Type findValueByNumber(int number) {
return Type.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.CtrlEnvelope.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private Type(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:pmsg.CtrlEnvelope.Type)
}
private int bitField0_;
// required .pmsg.CtrlEnvelope.Type type = 1;
public static final int TYPE_FIELD_NUMBER = 1;
private org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type type_;
/**
* <code>required .pmsg.CtrlEnvelope.Type type = 1;</code>
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required .pmsg.CtrlEnvelope.Type type = 1;</code>
*/
public org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type getType() {
return type_;
}
// required .pmsg.UUID id = 2;
public static final int ID_FIELD_NUMBER = 2;
private org.voltdb.pmsg.DRAgent.UUID id_;
/**
* <code>required .pmsg.UUID id = 2;</code>
*/
public boolean hasId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required .pmsg.UUID id = 2;</code>
*/
public org.voltdb.pmsg.DRAgent.UUID getId() {
return id_;
}
/**
* <code>required .pmsg.UUID id = 2;</code>
*/
public org.voltdb.pmsg.DRAgent.UUIDOrBuilder getIdOrBuilder() {
return id_;
}
// optional .pmsg.Ack ack = 3;
public static final int ACK_FIELD_NUMBER = 3;
private org.voltdb.pmsg.DRAgent.Ack ack_;
/**
* <code>optional .pmsg.Ack ack = 3;</code>
*/
public boolean hasAck() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .pmsg.Ack ack = 3;</code>
*/
public org.voltdb.pmsg.DRAgent.Ack getAck() {
return ack_;
}
/**
* <code>optional .pmsg.Ack ack = 3;</code>
*/
public org.voltdb.pmsg.DRAgent.AckOrBuilder getAckOrBuilder() {
return ack_;
}
// optional .pmsg.Reset reset = 4;
public static final int RESET_FIELD_NUMBER = 4;
private org.voltdb.pmsg.DRAgent.Reset reset_;
/**
* <code>optional .pmsg.Reset reset = 4;</code>
*/
public boolean hasReset() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .pmsg.Reset reset = 4;</code>
*/
public org.voltdb.pmsg.DRAgent.Reset getReset() {
return reset_;
}
/**
* <code>optional .pmsg.Reset reset = 4;</code>
*/
public org.voltdb.pmsg.DRAgent.ResetOrBuilder getResetOrBuilder() {
return reset_;
}
// optional .pmsg.Pause pause = 5;
public static final int PAUSE_FIELD_NUMBER = 5;
private org.voltdb.pmsg.DRAgent.Pause pause_;
/**
* <code>optional .pmsg.Pause pause = 5;</code>
*/
public boolean hasPause() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .pmsg.Pause pause = 5;</code>
*/
public org.voltdb.pmsg.DRAgent.Pause getPause() {
return pause_;
}
/**
* <code>optional .pmsg.Pause pause = 5;</code>
*/
public org.voltdb.pmsg.DRAgent.PauseOrBuilder getPauseOrBuilder() {
return pause_;
}
// optional .pmsg.Response response = 6;
public static final int RESPONSE_FIELD_NUMBER = 6;
private org.voltdb.pmsg.DRAgent.Response response_;
/**
* <code>optional .pmsg.Response response = 6;</code>
*/
public boolean hasResponse() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional .pmsg.Response response = 6;</code>
*/
public org.voltdb.pmsg.DRAgent.Response getResponse() {
return response_;
}
/**
* <code>optional .pmsg.Response response = 6;</code>
*/
public org.voltdb.pmsg.DRAgent.ResponseOrBuilder getResponseOrBuilder() {
return response_;
}
// optional .pmsg.SnapshotReq snapshotReq = 7;
public static final int SNAPSHOTREQ_FIELD_NUMBER = 7;
private org.voltdb.pmsg.DRAgent.SnapshotReq snapshotReq_;
/**
* <code>optional .pmsg.SnapshotReq snapshotReq = 7;</code>
*/
public boolean hasSnapshotReq() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional .pmsg.SnapshotReq snapshotReq = 7;</code>
*/
public org.voltdb.pmsg.DRAgent.SnapshotReq getSnapshotReq() {
return snapshotReq_;
}
/**
* <code>optional .pmsg.SnapshotReq snapshotReq = 7;</code>
*/
public org.voltdb.pmsg.DRAgent.SnapshotReqOrBuilder getSnapshotReqOrBuilder() {
return snapshotReq_;
}
// optional .pmsg.Subscribe subscribe = 8;
public static final int SUBSCRIBE_FIELD_NUMBER = 8;
private org.voltdb.pmsg.DRAgent.Subscribe subscribe_;
/**
* <code>optional .pmsg.Subscribe subscribe = 8;</code>
*/
public boolean hasSubscribe() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional .pmsg.Subscribe subscribe = 8;</code>
*/
public org.voltdb.pmsg.DRAgent.Subscribe getSubscribe() {
return subscribe_;
}
/**
* <code>optional .pmsg.Subscribe subscribe = 8;</code>
*/
public org.voltdb.pmsg.DRAgent.SubscribeOrBuilder getSubscribeOrBuilder() {
return subscribe_;
}
// optional .pmsg.Connect connect = 10;
public static final int CONNECT_FIELD_NUMBER = 10;
private org.voltdb.pmsg.DRAgent.Connect connect_;
/**
* <code>optional .pmsg.Connect connect = 10;</code>
*
* <pre>
* Intentionally skip field 9 -- deprecated message type
* </pre>
*/
public boolean hasConnect() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional .pmsg.Connect connect = 10;</code>
*
* <pre>
* Intentionally skip field 9 -- deprecated message type
* </pre>
*/
public org.voltdb.pmsg.DRAgent.Connect getConnect() {
return connect_;
}
/**
* <code>optional .pmsg.Connect connect = 10;</code>
*
* <pre>
* Intentionally skip field 9 -- deprecated message type
* </pre>
*/
public org.voltdb.pmsg.DRAgent.ConnectOrBuilder getConnectOrBuilder() {
return connect_;
}
// optional .pmsg.Query query = 11;
public static final int QUERY_FIELD_NUMBER = 11;
private org.voltdb.pmsg.DRAgent.Query query_;
/**
* <code>optional .pmsg.Query query = 11;</code>
*/
public boolean hasQuery() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* <code>optional .pmsg.Query query = 11;</code>
*/
public org.voltdb.pmsg.DRAgent.Query getQuery() {
return query_;
}
/**
* <code>optional .pmsg.Query query = 11;</code>
*/
public org.voltdb.pmsg.DRAgent.QueryOrBuilder getQueryOrBuilder() {
return query_;
}
// optional .pmsg.StartCursor startCursor = 12;
public static final int STARTCURSOR_FIELD_NUMBER = 12;
private org.voltdb.pmsg.DRAgent.StartCursor startCursor_;
/**
* <code>optional .pmsg.StartCursor startCursor = 12;</code>
*/
public boolean hasStartCursor() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* <code>optional .pmsg.StartCursor startCursor = 12;</code>
*/
public org.voltdb.pmsg.DRAgent.StartCursor getStartCursor() {
return startCursor_;
}
/**
* <code>optional .pmsg.StartCursor startCursor = 12;</code>
*/
public org.voltdb.pmsg.DRAgent.StartCursorOrBuilder getStartCursorOrBuilder() {
return startCursor_;
}
private void initFields() {
type_ = org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type.ACK;
id_ = org.voltdb.pmsg.DRAgent.UUID.getDefaultInstance();
ack_ = org.voltdb.pmsg.DRAgent.Ack.getDefaultInstance();
reset_ = org.voltdb.pmsg.DRAgent.Reset.getDefaultInstance();
pause_ = org.voltdb.pmsg.DRAgent.Pause.getDefaultInstance();
response_ = org.voltdb.pmsg.DRAgent.Response.getDefaultInstance();
snapshotReq_ = org.voltdb.pmsg.DRAgent.SnapshotReq.getDefaultInstance();
subscribe_ = org.voltdb.pmsg.DRAgent.Subscribe.getDefaultInstance();
connect_ = org.voltdb.pmsg.DRAgent.Connect.getDefaultInstance();
query_ = org.voltdb.pmsg.DRAgent.Query.getDefaultInstance();
startCursor_ = org.voltdb.pmsg.DRAgent.StartCursor.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasType()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasId()) {
memoizedIsInitialized = 0;
return false;
}
if (!getId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (hasResponse()) {
if (!getResponse().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasStartCursor()) {
if (!getStartCursor().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, type_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, id_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, ack_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, reset_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(5, pause_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeMessage(6, response_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeMessage(7, snapshotReq_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeMessage(8, subscribe_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeMessage(10, connect_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeMessage(11, query_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeMessage(12, startCursor_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, id_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, ack_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, reset_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, pause_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, response_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, snapshotReq_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, subscribe_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, connect_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, query_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, startCursor_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.voltdb.pmsg.DRAgent.CtrlEnvelope parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.CtrlEnvelope parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.CtrlEnvelope parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.voltdb.pmsg.DRAgent.CtrlEnvelope parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.CtrlEnvelope parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.CtrlEnvelope parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.CtrlEnvelope parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.voltdb.pmsg.DRAgent.CtrlEnvelope parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.voltdb.pmsg.DRAgent.CtrlEnvelope parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.voltdb.pmsg.DRAgent.CtrlEnvelope parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.voltdb.pmsg.DRAgent.CtrlEnvelope prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pmsg.CtrlEnvelope}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.voltdb.pmsg.DRAgent.CtrlEnvelopeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_CtrlEnvelope_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_CtrlEnvelope_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.voltdb.pmsg.DRAgent.CtrlEnvelope.class, org.voltdb.pmsg.DRAgent.CtrlEnvelope.Builder.class);
}
// Construct using org.voltdb.pmsg.DRAgent.CtrlEnvelope.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getIdFieldBuilder();
getAckFieldBuilder();
getResetFieldBuilder();
getPauseFieldBuilder();
getResponseFieldBuilder();
getSnapshotReqFieldBuilder();
getSubscribeFieldBuilder();
getConnectFieldBuilder();
getQueryFieldBuilder();
getStartCursorFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
type_ = org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type.ACK;
bitField0_ = (bitField0_ & ~0x00000001);
if (idBuilder_ == null) {
id_ = org.voltdb.pmsg.DRAgent.UUID.getDefaultInstance();
} else {
idBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (ackBuilder_ == null) {
ack_ = org.voltdb.pmsg.DRAgent.Ack.getDefaultInstance();
} else {
ackBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (resetBuilder_ == null) {
reset_ = org.voltdb.pmsg.DRAgent.Reset.getDefaultInstance();
} else {
resetBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (pauseBuilder_ == null) {
pause_ = org.voltdb.pmsg.DRAgent.Pause.getDefaultInstance();
} else {
pauseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (responseBuilder_ == null) {
response_ = org.voltdb.pmsg.DRAgent.Response.getDefaultInstance();
} else {
responseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
if (snapshotReqBuilder_ == null) {
snapshotReq_ = org.voltdb.pmsg.DRAgent.SnapshotReq.getDefaultInstance();
} else {
snapshotReqBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
if (subscribeBuilder_ == null) {
subscribe_ = org.voltdb.pmsg.DRAgent.Subscribe.getDefaultInstance();
} else {
subscribeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
if (connectBuilder_ == null) {
connect_ = org.voltdb.pmsg.DRAgent.Connect.getDefaultInstance();
} else {
connectBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
if (queryBuilder_ == null) {
query_ = org.voltdb.pmsg.DRAgent.Query.getDefaultInstance();
} else {
queryBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
if (startCursorBuilder_ == null) {
startCursor_ = org.voltdb.pmsg.DRAgent.StartCursor.getDefaultInstance();
} else {
startCursorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.voltdb.pmsg.DRAgent.internal_static_pmsg_CtrlEnvelope_descriptor;
}
public org.voltdb.pmsg.DRAgent.CtrlEnvelope getDefaultInstanceForType() {
return org.voltdb.pmsg.DRAgent.CtrlEnvelope.getDefaultInstance();
}
public org.voltdb.pmsg.DRAgent.CtrlEnvelope build() {
org.voltdb.pmsg.DRAgent.CtrlEnvelope result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.voltdb.pmsg.DRAgent.CtrlEnvelope buildPartial() {
org.voltdb.pmsg.DRAgent.CtrlEnvelope result = new org.voltdb.pmsg.DRAgent.CtrlEnvelope(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (ackBuilder_ == null) {
result.ack_ = ack_;
} else {
result.ack_ = ackBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (resetBuilder_ == null) {
result.reset_ = reset_;
} else {
result.reset_ = resetBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
if (pauseBuilder_ == null) {
result.pause_ = pause_;
} else {
result.pause_ = pauseBuilder_.build();
}
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
if (responseBuilder_ == null) {
result.response_ = response_;
} else {
result.response_ = responseBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
if (snapshotReqBuilder_ == null) {
result.snapshotReq_ = snapshotReq_;
} else {
result.snapshotReq_ = snapshotReqBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
if (subscribeBuilder_ == null) {
result.subscribe_ = subscribe_;
} else {
result.subscribe_ = subscribeBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
if (connectBuilder_ == null) {
result.connect_ = connect_;
} else {
result.connect_ = connectBuilder_.build();
}
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
if (queryBuilder_ == null) {
result.query_ = query_;
} else {
result.query_ = queryBuilder_.build();
}
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
if (startCursorBuilder_ == null) {
result.startCursor_ = startCursor_;
} else {
result.startCursor_ = startCursorBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.voltdb.pmsg.DRAgent.CtrlEnvelope) {
return mergeFrom((org.voltdb.pmsg.DRAgent.CtrlEnvelope)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.voltdb.pmsg.DRAgent.CtrlEnvelope other) {
if (other == org.voltdb.pmsg.DRAgent.CtrlEnvelope.getDefaultInstance()) return this;
if (other.hasType()) {
setType(other.getType());
}
if (other.hasId()) {
mergeId(other.getId());
}
if (other.hasAck()) {
mergeAck(other.getAck());
}
if (other.hasReset()) {
mergeReset(other.getReset());
}
if (other.hasPause()) {
mergePause(other.getPause());
}
if (other.hasResponse()) {
mergeResponse(other.getResponse());
}
if (other.hasSnapshotReq()) {
mergeSnapshotReq(other.getSnapshotReq());
}
if (other.hasSubscribe()) {
mergeSubscribe(other.getSubscribe());
}
if (other.hasConnect()) {
mergeConnect(other.getConnect());
}
if (other.hasQuery()) {
mergeQuery(other.getQuery());
}
if (other.hasStartCursor()) {
mergeStartCursor(other.getStartCursor());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasType()) {
return false;
}
if (!hasId()) {
return false;
}
if (!getId().isInitialized()) {
return false;
}
if (hasResponse()) {
if (!getResponse().isInitialized()) {
return false;
}
}
if (hasStartCursor()) {
if (!getStartCursor().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.voltdb.pmsg.DRAgent.CtrlEnvelope parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.voltdb.pmsg.DRAgent.CtrlEnvelope) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .pmsg.CtrlEnvelope.Type type = 1;
private org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type type_ = org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type.ACK;
/**
* <code>required .pmsg.CtrlEnvelope.Type type = 1;</code>
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required .pmsg.CtrlEnvelope.Type type = 1;</code>
*/
public org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type getType() {
return type_;
}
/**
* <code>required .pmsg.CtrlEnvelope.Type type = 1;</code>
*/
public Builder setType(org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value;
onChanged();
return this;
}
/**
* <code>required .pmsg.CtrlEnvelope.Type type = 1;</code>
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
type_ = org.voltdb.pmsg.DRAgent.CtrlEnvelope.Type.ACK;
onChanged();
return this;
}
// required .pmsg.UUID id = 2;
private org.voltdb.pmsg.DRAgent.UUID id_ = org.voltdb.pmsg.DRAgent.UUID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.UUID, org.voltdb.pmsg.DRAgent.UUID.Builder, org.voltdb.pmsg.DRAgent.UUIDOrBuilder> idBuilder_;
/**
* <code>required .pmsg.UUID id = 2;</code>
*/
public boolean hasId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required .pmsg.UUID id = 2;</code>
*/
public org.voltdb.pmsg.DRAgent.UUID getId() {
if (idBuilder_ == null) {
return id_;
} else {
return idBuilder_.getMessage();
}
}
/**
* <code>required .pmsg.UUID id = 2;</code>
*/
public Builder setId(org.voltdb.pmsg.DRAgent.UUID value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>required .pmsg.UUID id = 2;</code>
*/
public Builder setId(
org.voltdb.pmsg.DRAgent.UUID.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>required .pmsg.UUID id = 2;</code>
*/
public Builder mergeId(org.voltdb.pmsg.DRAgent.UUID value) {
if (idBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
id_ != org.voltdb.pmsg.DRAgent.UUID.getDefaultInstance()) {
id_ =
org.voltdb.pmsg.DRAgent.UUID.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>required .pmsg.UUID id = 2;</code>
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = org.voltdb.pmsg.DRAgent.UUID.getDefaultInstance();
onChanged();
} else {
idBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* <code>required .pmsg.UUID id = 2;</code>
*/
public org.voltdb.pmsg.DRAgent.UUID.Builder getIdBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
* <code>required .pmsg.UUID id = 2;</code>
*/
public org.voltdb.pmsg.DRAgent.UUIDOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_;
}
}
/**
* <code>required .pmsg.UUID id = 2;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.UUID, org.voltdb.pmsg.DRAgent.UUID.Builder, org.voltdb.pmsg.DRAgent.UUIDOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.UUID, org.voltdb.pmsg.DRAgent.UUID.Builder, org.voltdb.pmsg.DRAgent.UUIDOrBuilder>(
id_,
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
// optional .pmsg.Ack ack = 3;
private org.voltdb.pmsg.DRAgent.Ack ack_ = org.voltdb.pmsg.DRAgent.Ack.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.Ack, org.voltdb.pmsg.DRAgent.Ack.Builder, org.voltdb.pmsg.DRAgent.AckOrBuilder> ackBuilder_;
/**
* <code>optional .pmsg.Ack ack = 3;</code>
*/
public boolean hasAck() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .pmsg.Ack ack = 3;</code>
*/
public org.voltdb.pmsg.DRAgent.Ack getAck() {
if (ackBuilder_ == null) {
return ack_;
} else {
return ackBuilder_.getMessage();
}
}
/**
* <code>optional .pmsg.Ack ack = 3;</code>
*/
public Builder setAck(org.voltdb.pmsg.DRAgent.Ack value) {
if (ackBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ack_ = value;
onChanged();
} else {
ackBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .pmsg.Ack ack = 3;</code>
*/
public Builder setAck(
org.voltdb.pmsg.DRAgent.Ack.Builder builderForValue) {
if (ackBuilder_ == null) {
ack_ = builderForValue.build();
onChanged();
} else {
ackBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .pmsg.Ack ack = 3;</code>
*/
public Builder mergeAck(org.voltdb.pmsg.DRAgent.Ack value) {
if (ackBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
ack_ != org.voltdb.pmsg.DRAgent.Ack.getDefaultInstance()) {
ack_ =
org.voltdb.pmsg.DRAgent.Ack.newBuilder(ack_).mergeFrom(value).buildPartial();
} else {
ack_ = value;
}
onChanged();
} else {
ackBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .pmsg.Ack ack = 3;</code>
*/
public Builder clearAck() {
if (ackBuilder_ == null) {
ack_ = org.voltdb.pmsg.DRAgent.Ack.getDefaultInstance();
onChanged();
} else {
ackBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* <code>optional .pmsg.Ack ack = 3;</code>
*/
public org.voltdb.pmsg.DRAgent.Ack.Builder getAckBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getAckFieldBuilder().getBuilder();
}
/**
* <code>optional .pmsg.Ack ack = 3;</code>
*/
public org.voltdb.pmsg.DRAgent.AckOrBuilder getAckOrBuilder() {
if (ackBuilder_ != null) {
return ackBuilder_.getMessageOrBuilder();
} else {
return ack_;
}
}
/**
* <code>optional .pmsg.Ack ack = 3;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.Ack, org.voltdb.pmsg.DRAgent.Ack.Builder, org.voltdb.pmsg.DRAgent.AckOrBuilder>
getAckFieldBuilder() {
if (ackBuilder_ == null) {
ackBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.Ack, org.voltdb.pmsg.DRAgent.Ack.Builder, org.voltdb.pmsg.DRAgent.AckOrBuilder>(
ack_,
getParentForChildren(),
isClean());
ack_ = null;
}
return ackBuilder_;
}
// optional .pmsg.Reset reset = 4;
private org.voltdb.pmsg.DRAgent.Reset reset_ = org.voltdb.pmsg.DRAgent.Reset.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.Reset, org.voltdb.pmsg.DRAgent.Reset.Builder, org.voltdb.pmsg.DRAgent.ResetOrBuilder> resetBuilder_;
/**
* <code>optional .pmsg.Reset reset = 4;</code>
*/
public boolean hasReset() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .pmsg.Reset reset = 4;</code>
*/
public org.voltdb.pmsg.DRAgent.Reset getReset() {
if (resetBuilder_ == null) {
return reset_;
} else {
return resetBuilder_.getMessage();
}
}
/**
* <code>optional .pmsg.Reset reset = 4;</code>
*/
public Builder setReset(org.voltdb.pmsg.DRAgent.Reset value) {
if (resetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
reset_ = value;
onChanged();
} else {
resetBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .pmsg.Reset reset = 4;</code>
*/
public Builder setReset(
org.voltdb.pmsg.DRAgent.Reset.Builder builderForValue) {
if (resetBuilder_ == null) {
reset_ = builderForValue.build();
onChanged();
} else {
resetBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .pmsg.Reset reset = 4;</code>
*/
public Builder mergeReset(org.voltdb.pmsg.DRAgent.Reset value) {
if (resetBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
reset_ != org.voltdb.pmsg.DRAgent.Reset.getDefaultInstance()) {
reset_ =
org.voltdb.pmsg.DRAgent.Reset.newBuilder(reset_).mergeFrom(value).buildPartial();
} else {
reset_ = value;
}
onChanged();
} else {
resetBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .pmsg.Reset reset = 4;</code>
*/
public Builder clearReset() {
if (resetBuilder_ == null) {
reset_ = org.voltdb.pmsg.DRAgent.Reset.getDefaultInstance();
onChanged();
} else {
resetBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* <code>optional .pmsg.Reset reset = 4;</code>
*/
public org.voltdb.pmsg.DRAgent.Reset.Builder getResetBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getResetFieldBuilder().getBuilder();
}
/**
* <code>optional .pmsg.Reset reset = 4;</code>
*/
public org.voltdb.pmsg.DRAgent.ResetOrBuilder getResetOrBuilder() {
if (resetBuilder_ != null) {
return resetBuilder_.getMessageOrBuilder();
} else {
return reset_;
}
}
/**
* <code>optional .pmsg.Reset reset = 4;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.Reset, org.voltdb.pmsg.DRAgent.Reset.Builder, org.voltdb.pmsg.DRAgent.ResetOrBuilder>
getResetFieldBuilder() {
if (resetBuilder_ == null) {
resetBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.Reset, org.voltdb.pmsg.DRAgent.Reset.Builder, org.voltdb.pmsg.DRAgent.ResetOrBuilder>(
reset_,
getParentForChildren(),
isClean());
reset_ = null;
}
return resetBuilder_;
}
// optional .pmsg.Pause pause = 5;
private org.voltdb.pmsg.DRAgent.Pause pause_ = org.voltdb.pmsg.DRAgent.Pause.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.Pause, org.voltdb.pmsg.DRAgent.Pause.Builder, org.voltdb.pmsg.DRAgent.PauseOrBuilder> pauseBuilder_;
/**
* <code>optional .pmsg.Pause pause = 5;</code>
*/
public boolean hasPause() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .pmsg.Pause pause = 5;</code>
*/
public org.voltdb.pmsg.DRAgent.Pause getPause() {
if (pauseBuilder_ == null) {
return pause_;
} else {
return pauseBuilder_.getMessage();
}
}
/**
* <code>optional .pmsg.Pause pause = 5;</code>
*/
public Builder setPause(org.voltdb.pmsg.DRAgent.Pause value) {
if (pauseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pause_ = value;
onChanged();
} else {
pauseBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .pmsg.Pause pause = 5;</code>
*/
public Builder setPause(
org.voltdb.pmsg.DRAgent.Pause.Builder builderForValue) {
if (pauseBuilder_ == null) {
pause_ = builderForValue.build();
onChanged();
} else {
pauseBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .pmsg.Pause pause = 5;</code>
*/
public Builder mergePause(org.voltdb.pmsg.DRAgent.Pause value) {
if (pauseBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
pause_ != org.voltdb.pmsg.DRAgent.Pause.getDefaultInstance()) {
pause_ =
org.voltdb.pmsg.DRAgent.Pause.newBuilder(pause_).mergeFrom(value).buildPartial();
} else {
pause_ = value;
}
onChanged();
} else {
pauseBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .pmsg.Pause pause = 5;</code>
*/
public Builder clearPause() {
if (pauseBuilder_ == null) {
pause_ = org.voltdb.pmsg.DRAgent.Pause.getDefaultInstance();
onChanged();
} else {
pauseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* <code>optional .pmsg.Pause pause = 5;</code>
*/
public org.voltdb.pmsg.DRAgent.Pause.Builder getPauseBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getPauseFieldBuilder().getBuilder();
}
/**
* <code>optional .pmsg.Pause pause = 5;</code>
*/
public org.voltdb.pmsg.DRAgent.PauseOrBuilder getPauseOrBuilder() {
if (pauseBuilder_ != null) {
return pauseBuilder_.getMessageOrBuilder();
} else {
return pause_;
}
}
/**
* <code>optional .pmsg.Pause pause = 5;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.Pause, org.voltdb.pmsg.DRAgent.Pause.Builder, org.voltdb.pmsg.DRAgent.PauseOrBuilder>
getPauseFieldBuilder() {
if (pauseBuilder_ == null) {
pauseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.Pause, org.voltdb.pmsg.DRAgent.Pause.Builder, org.voltdb.pmsg.DRAgent.PauseOrBuilder>(
pause_,
getParentForChildren(),
isClean());
pause_ = null;
}
return pauseBuilder_;
}
// optional .pmsg.Response response = 6;
private org.voltdb.pmsg.DRAgent.Response response_ = org.voltdb.pmsg.DRAgent.Response.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.Response, org.voltdb.pmsg.DRAgent.Response.Builder, org.voltdb.pmsg.DRAgent.ResponseOrBuilder> responseBuilder_;
/**
* <code>optional .pmsg.Response response = 6;</code>
*/
public boolean hasResponse() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional .pmsg.Response response = 6;</code>
*/
public org.voltdb.pmsg.DRAgent.Response getResponse() {
if (responseBuilder_ == null) {
return response_;
} else {
return responseBuilder_.getMessage();
}
}
/**
* <code>optional .pmsg.Response response = 6;</code>
*/
public Builder setResponse(org.voltdb.pmsg.DRAgent.Response value) {
if (responseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
response_ = value;
onChanged();
} else {
responseBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* <code>optional .pmsg.Response response = 6;</code>
*/
public Builder setResponse(
org.voltdb.pmsg.DRAgent.Response.Builder builderForValue) {
if (responseBuilder_ == null) {
response_ = builderForValue.build();
onChanged();
} else {
responseBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
return this;
}
/**
* <code>optional .pmsg.Response response = 6;</code>
*/
public Builder mergeResponse(org.voltdb.pmsg.DRAgent.Response value) {
if (responseBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020) &&
response_ != org.voltdb.pmsg.DRAgent.Response.getDefaultInstance()) {
response_ =
org.voltdb.pmsg.DRAgent.Response.newBuilder(response_).mergeFrom(value).buildPartial();
} else {
response_ = value;
}
onChanged();
} else {
responseBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* <code>optional .pmsg.Response response = 6;</code>
*/
public Builder clearResponse() {
if (responseBuilder_ == null) {
response_ = org.voltdb.pmsg.DRAgent.Response.getDefaultInstance();
onChanged();
} else {
responseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
* <code>optional .pmsg.Response response = 6;</code>
*/
public org.voltdb.pmsg.DRAgent.Response.Builder getResponseBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getResponseFieldBuilder().getBuilder();
}
/**
* <code>optional .pmsg.Response response = 6;</code>
*/
public org.voltdb.pmsg.DRAgent.ResponseOrBuilder getResponseOrBuilder() {
if (responseBuilder_ != null) {
return responseBuilder_.getMessageOrBuilder();
} else {
return response_;
}
}
/**
* <code>optional .pmsg.Response response = 6;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.Response, org.voltdb.pmsg.DRAgent.Response.Builder, org.voltdb.pmsg.DRAgent.ResponseOrBuilder>
getResponseFieldBuilder() {
if (responseBuilder_ == null) {
responseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.Response, org.voltdb.pmsg.DRAgent.Response.Builder, org.voltdb.pmsg.DRAgent.ResponseOrBuilder>(
response_,
getParentForChildren(),
isClean());
response_ = null;
}
return responseBuilder_;
}
// optional .pmsg.SnapshotReq snapshotReq = 7;
private org.voltdb.pmsg.DRAgent.SnapshotReq snapshotReq_ = org.voltdb.pmsg.DRAgent.SnapshotReq.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.SnapshotReq, org.voltdb.pmsg.DRAgent.SnapshotReq.Builder, org.voltdb.pmsg.DRAgent.SnapshotReqOrBuilder> snapshotReqBuilder_;
/**
* <code>optional .pmsg.SnapshotReq snapshotReq = 7;</code>
*/
public boolean hasSnapshotReq() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional .pmsg.SnapshotReq snapshotReq = 7;</code>
*/
public org.voltdb.pmsg.DRAgent.SnapshotReq getSnapshotReq() {
if (snapshotReqBuilder_ == null) {
return snapshotReq_;
} else {
return snapshotReqBuilder_.getMessage();
}
}
/**
* <code>optional .pmsg.SnapshotReq snapshotReq = 7;</code>
*/
public Builder setSnapshotReq(org.voltdb.pmsg.DRAgent.SnapshotReq value) {
if (snapshotReqBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
snapshotReq_ = value;
onChanged();
} else {
snapshotReqBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .pmsg.SnapshotReq snapshotReq = 7;</code>
*/
public Builder setSnapshotReq(
org.voltdb.pmsg.DRAgent.SnapshotReq.Builder builderForValue) {
if (snapshotReqBuilder_ == null) {
snapshotReq_ = builderForValue.build();
onChanged();
} else {
snapshotReqBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .pmsg.SnapshotReq snapshotReq = 7;</code>
*/
public Builder mergeSnapshotReq(org.voltdb.pmsg.DRAgent.SnapshotReq value) {
if (snapshotReqBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040) &&
snapshotReq_ != org.voltdb.pmsg.DRAgent.SnapshotReq.getDefaultInstance()) {
snapshotReq_ =
org.voltdb.pmsg.DRAgent.SnapshotReq.newBuilder(snapshotReq_).mergeFrom(value).buildPartial();
} else {
snapshotReq_ = value;
}
onChanged();
} else {
snapshotReqBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .pmsg.SnapshotReq snapshotReq = 7;</code>
*/
public Builder clearSnapshotReq() {
if (snapshotReqBuilder_ == null) {
snapshotReq_ = org.voltdb.pmsg.DRAgent.SnapshotReq.getDefaultInstance();
onChanged();
} else {
snapshotReqBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
* <code>optional .pmsg.SnapshotReq snapshotReq = 7;</code>
*/
public org.voltdb.pmsg.DRAgent.SnapshotReq.Builder getSnapshotReqBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getSnapshotReqFieldBuilder().getBuilder();
}
/**
* <code>optional .pmsg.SnapshotReq snapshotReq = 7;</code>
*/
public org.voltdb.pmsg.DRAgent.SnapshotReqOrBuilder getSnapshotReqOrBuilder() {
if (snapshotReqBuilder_ != null) {
return snapshotReqBuilder_.getMessageOrBuilder();
} else {
return snapshotReq_;
}
}
/**
* <code>optional .pmsg.SnapshotReq snapshotReq = 7;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.SnapshotReq, org.voltdb.pmsg.DRAgent.SnapshotReq.Builder, org.voltdb.pmsg.DRAgent.SnapshotReqOrBuilder>
getSnapshotReqFieldBuilder() {
if (snapshotReqBuilder_ == null) {
snapshotReqBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.SnapshotReq, org.voltdb.pmsg.DRAgent.SnapshotReq.Builder, org.voltdb.pmsg.DRAgent.SnapshotReqOrBuilder>(
snapshotReq_,
getParentForChildren(),
isClean());
snapshotReq_ = null;
}
return snapshotReqBuilder_;
}
// optional .pmsg.Subscribe subscribe = 8;
private org.voltdb.pmsg.DRAgent.Subscribe subscribe_ = org.voltdb.pmsg.DRAgent.Subscribe.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.Subscribe, org.voltdb.pmsg.DRAgent.Subscribe.Builder, org.voltdb.pmsg.DRAgent.SubscribeOrBuilder> subscribeBuilder_;
/**
* <code>optional .pmsg.Subscribe subscribe = 8;</code>
*/
public boolean hasSubscribe() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional .pmsg.Subscribe subscribe = 8;</code>
*/
public org.voltdb.pmsg.DRAgent.Subscribe getSubscribe() {
if (subscribeBuilder_ == null) {
return subscribe_;
} else {
return subscribeBuilder_.getMessage();
}
}
/**
* <code>optional .pmsg.Subscribe subscribe = 8;</code>
*/
public Builder setSubscribe(org.voltdb.pmsg.DRAgent.Subscribe value) {
if (subscribeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
subscribe_ = value;
onChanged();
} else {
subscribeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* <code>optional .pmsg.Subscribe subscribe = 8;</code>
*/
public Builder setSubscribe(
org.voltdb.pmsg.DRAgent.Subscribe.Builder builderForValue) {
if (subscribeBuilder_ == null) {
subscribe_ = builderForValue.build();
onChanged();
} else {
subscribeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
return this;
}
/**
* <code>optional .pmsg.Subscribe subscribe = 8;</code>
*/
public Builder mergeSubscribe(org.voltdb.pmsg.DRAgent.Subscribe value) {
if (subscribeBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080) &&
subscribe_ != org.voltdb.pmsg.DRAgent.Subscribe.getDefaultInstance()) {
subscribe_ =
org.voltdb.pmsg.DRAgent.Subscribe.newBuilder(subscribe_).mergeFrom(value).buildPartial();
} else {
subscribe_ = value;
}
onChanged();
} else {
subscribeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* <code>optional .pmsg.Subscribe subscribe = 8;</code>
*/
public Builder clearSubscribe() {
if (subscribeBuilder_ == null) {
subscribe_ = org.voltdb.pmsg.DRAgent.Subscribe.getDefaultInstance();
onChanged();
} else {
subscribeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
/**
* <code>optional .pmsg.Subscribe subscribe = 8;</code>
*/
public org.voltdb.pmsg.DRAgent.Subscribe.Builder getSubscribeBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getSubscribeFieldBuilder().getBuilder();
}
/**
* <code>optional .pmsg.Subscribe subscribe = 8;</code>
*/
public org.voltdb.pmsg.DRAgent.SubscribeOrBuilder getSubscribeOrBuilder() {
if (subscribeBuilder_ != null) {
return subscribeBuilder_.getMessageOrBuilder();
} else {
return subscribe_;
}
}
/**
* <code>optional .pmsg.Subscribe subscribe = 8;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.Subscribe, org.voltdb.pmsg.DRAgent.Subscribe.Builder, org.voltdb.pmsg.DRAgent.SubscribeOrBuilder>
getSubscribeFieldBuilder() {
if (subscribeBuilder_ == null) {
subscribeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.Subscribe, org.voltdb.pmsg.DRAgent.Subscribe.Builder, org.voltdb.pmsg.DRAgent.SubscribeOrBuilder>(
subscribe_,
getParentForChildren(),
isClean());
subscribe_ = null;
}
return subscribeBuilder_;
}
// optional .pmsg.Connect connect = 10;
private org.voltdb.pmsg.DRAgent.Connect connect_ = org.voltdb.pmsg.DRAgent.Connect.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.Connect, org.voltdb.pmsg.DRAgent.Connect.Builder, org.voltdb.pmsg.DRAgent.ConnectOrBuilder> connectBuilder_;
/**
* <code>optional .pmsg.Connect connect = 10;</code>
*
* <pre>
* Intentionally skip field 9 -- deprecated message type
* </pre>
*/
public boolean hasConnect() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional .pmsg.Connect connect = 10;</code>
*
* <pre>
* Intentionally skip field 9 -- deprecated message type
* </pre>
*/
public org.voltdb.pmsg.DRAgent.Connect getConnect() {
if (connectBuilder_ == null) {
return connect_;
} else {
return connectBuilder_.getMessage();
}
}
/**
* <code>optional .pmsg.Connect connect = 10;</code>
*
* <pre>
* Intentionally skip field 9 -- deprecated message type
* </pre>
*/
public Builder setConnect(org.voltdb.pmsg.DRAgent.Connect value) {
if (connectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
connect_ = value;
onChanged();
} else {
connectBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
* <code>optional .pmsg.Connect connect = 10;</code>
*
* <pre>
* Intentionally skip field 9 -- deprecated message type
* </pre>
*/
public Builder setConnect(
org.voltdb.pmsg.DRAgent.Connect.Builder builderForValue) {
if (connectBuilder_ == null) {
connect_ = builderForValue.build();
onChanged();
} else {
connectBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
return this;
}
/**
* <code>optional .pmsg.Connect connect = 10;</code>
*
* <pre>
* Intentionally skip field 9 -- deprecated message type
* </pre>
*/
public Builder mergeConnect(org.voltdb.pmsg.DRAgent.Connect value) {
if (connectBuilder_ == null) {
if (((bitField0_ & 0x00000100) == 0x00000100) &&
connect_ != org.voltdb.pmsg.DRAgent.Connect.getDefaultInstance()) {
connect_ =
org.voltdb.pmsg.DRAgent.Connect.newBuilder(connect_).mergeFrom(value).buildPartial();
} else {
connect_ = value;
}
onChanged();
} else {
connectBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
* <code>optional .pmsg.Connect connect = 10;</code>
*
* <pre>
* Intentionally skip field 9 -- deprecated message type
* </pre>
*/
public Builder clearConnect() {
if (connectBuilder_ == null) {
connect_ = org.voltdb.pmsg.DRAgent.Connect.getDefaultInstance();
onChanged();
} else {
connectBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
/**
* <code>optional .pmsg.Connect connect = 10;</code>
*
* <pre>
* Intentionally skip field 9 -- deprecated message type
* </pre>
*/
public org.voltdb.pmsg.DRAgent.Connect.Builder getConnectBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getConnectFieldBuilder().getBuilder();
}
/**
* <code>optional .pmsg.Connect connect = 10;</code>
*
* <pre>
* Intentionally skip field 9 -- deprecated message type
* </pre>
*/
public org.voltdb.pmsg.DRAgent.ConnectOrBuilder getConnectOrBuilder() {
if (connectBuilder_ != null) {
return connectBuilder_.getMessageOrBuilder();
} else {
return connect_;
}
}
/**
* <code>optional .pmsg.Connect connect = 10;</code>
*
* <pre>
* Intentionally skip field 9 -- deprecated message type
* </pre>
*/
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.Connect, org.voltdb.pmsg.DRAgent.Connect.Builder, org.voltdb.pmsg.DRAgent.ConnectOrBuilder>
getConnectFieldBuilder() {
if (connectBuilder_ == null) {
connectBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.Connect, org.voltdb.pmsg.DRAgent.Connect.Builder, org.voltdb.pmsg.DRAgent.ConnectOrBuilder>(
connect_,
getParentForChildren(),
isClean());
connect_ = null;
}
return connectBuilder_;
}
// optional .pmsg.Query query = 11;
private org.voltdb.pmsg.DRAgent.Query query_ = org.voltdb.pmsg.DRAgent.Query.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.Query, org.voltdb.pmsg.DRAgent.Query.Builder, org.voltdb.pmsg.DRAgent.QueryOrBuilder> queryBuilder_;
/**
* <code>optional .pmsg.Query query = 11;</code>
*/
public boolean hasQuery() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* <code>optional .pmsg.Query query = 11;</code>
*/
public org.voltdb.pmsg.DRAgent.Query getQuery() {
if (queryBuilder_ == null) {
return query_;
} else {
return queryBuilder_.getMessage();
}
}
/**
* <code>optional .pmsg.Query query = 11;</code>
*/
public Builder setQuery(org.voltdb.pmsg.DRAgent.Query value) {
if (queryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
query_ = value;
onChanged();
} else {
queryBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* <code>optional .pmsg.Query query = 11;</code>
*/
public Builder setQuery(
org.voltdb.pmsg.DRAgent.Query.Builder builderForValue) {
if (queryBuilder_ == null) {
query_ = builderForValue.build();
onChanged();
} else {
queryBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
return this;
}
/**
* <code>optional .pmsg.Query query = 11;</code>
*/
public Builder mergeQuery(org.voltdb.pmsg.DRAgent.Query value) {
if (queryBuilder_ == null) {
if (((bitField0_ & 0x00000200) == 0x00000200) &&
query_ != org.voltdb.pmsg.DRAgent.Query.getDefaultInstance()) {
query_ =
org.voltdb.pmsg.DRAgent.Query.newBuilder(query_).mergeFrom(value).buildPartial();
} else {
query_ = value;
}
onChanged();
} else {
queryBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* <code>optional .pmsg.Query query = 11;</code>
*/
public Builder clearQuery() {
if (queryBuilder_ == null) {
query_ = org.voltdb.pmsg.DRAgent.Query.getDefaultInstance();
onChanged();
} else {
queryBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
/**
* <code>optional .pmsg.Query query = 11;</code>
*/
public org.voltdb.pmsg.DRAgent.Query.Builder getQueryBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getQueryFieldBuilder().getBuilder();
}
/**
* <code>optional .pmsg.Query query = 11;</code>
*/
public org.voltdb.pmsg.DRAgent.QueryOrBuilder getQueryOrBuilder() {
if (queryBuilder_ != null) {
return queryBuilder_.getMessageOrBuilder();
} else {
return query_;
}
}
/**
* <code>optional .pmsg.Query query = 11;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.Query, org.voltdb.pmsg.DRAgent.Query.Builder, org.voltdb.pmsg.DRAgent.QueryOrBuilder>
getQueryFieldBuilder() {
if (queryBuilder_ == null) {
queryBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.Query, org.voltdb.pmsg.DRAgent.Query.Builder, org.voltdb.pmsg.DRAgent.QueryOrBuilder>(
query_,
getParentForChildren(),
isClean());
query_ = null;
}
return queryBuilder_;
}
// optional .pmsg.StartCursor startCursor = 12;
private org.voltdb.pmsg.DRAgent.StartCursor startCursor_ = org.voltdb.pmsg.DRAgent.StartCursor.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.StartCursor, org.voltdb.pmsg.DRAgent.StartCursor.Builder, org.voltdb.pmsg.DRAgent.StartCursorOrBuilder> startCursorBuilder_;
/**
* <code>optional .pmsg.StartCursor startCursor = 12;</code>
*/
public boolean hasStartCursor() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* <code>optional .pmsg.StartCursor startCursor = 12;</code>
*/
public org.voltdb.pmsg.DRAgent.StartCursor getStartCursor() {
if (startCursorBuilder_ == null) {
return startCursor_;
} else {
return startCursorBuilder_.getMessage();
}
}
/**
* <code>optional .pmsg.StartCursor startCursor = 12;</code>
*/
public Builder setStartCursor(org.voltdb.pmsg.DRAgent.StartCursor value) {
if (startCursorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startCursor_ = value;
onChanged();
} else {
startCursorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
return this;
}
/**
* <code>optional .pmsg.StartCursor startCursor = 12;</code>
*/
public Builder setStartCursor(
org.voltdb.pmsg.DRAgent.StartCursor.Builder builderForValue) {
if (startCursorBuilder_ == null) {
startCursor_ = builderForValue.build();
onChanged();
} else {
startCursorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
return this;
}
/**
* <code>optional .pmsg.StartCursor startCursor = 12;</code>
*/
public Builder mergeStartCursor(org.voltdb.pmsg.DRAgent.StartCursor value) {
if (startCursorBuilder_ == null) {
if (((bitField0_ & 0x00000400) == 0x00000400) &&
startCursor_ != org.voltdb.pmsg.DRAgent.StartCursor.getDefaultInstance()) {
startCursor_ =
org.voltdb.pmsg.DRAgent.StartCursor.newBuilder(startCursor_).mergeFrom(value).buildPartial();
} else {
startCursor_ = value;
}
onChanged();
} else {
startCursorBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000400;
return this;
}
/**
* <code>optional .pmsg.StartCursor startCursor = 12;</code>
*/
public Builder clearStartCursor() {
if (startCursorBuilder_ == null) {
startCursor_ = org.voltdb.pmsg.DRAgent.StartCursor.getDefaultInstance();
onChanged();
} else {
startCursorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
return this;
}
/**
* <code>optional .pmsg.StartCursor startCursor = 12;</code>
*/
public org.voltdb.pmsg.DRAgent.StartCursor.Builder getStartCursorBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getStartCursorFieldBuilder().getBuilder();
}
/**
* <code>optional .pmsg.StartCursor startCursor = 12;</code>
*/
public org.voltdb.pmsg.DRAgent.StartCursorOrBuilder getStartCursorOrBuilder() {
if (startCursorBuilder_ != null) {
return startCursorBuilder_.getMessageOrBuilder();
} else {
return startCursor_;
}
}
/**
* <code>optional .pmsg.StartCursor startCursor = 12;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.StartCursor, org.voltdb.pmsg.DRAgent.StartCursor.Builder, org.voltdb.pmsg.DRAgent.StartCursorOrBuilder>
getStartCursorFieldBuilder() {
if (startCursorBuilder_ == null) {
startCursorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.voltdb.pmsg.DRAgent.StartCursor, org.voltdb.pmsg.DRAgent.StartCursor.Builder, org.voltdb.pmsg.DRAgent.StartCursorOrBuilder>(
startCursor_,
getParentForChildren(),
isClean());
startCursor_ = null;
}
return startCursorBuilder_;
}
// @@protoc_insertion_point(builder_scope:pmsg.CtrlEnvelope)
}
static {
defaultInstance = new CtrlEnvelope(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pmsg.CtrlEnvelope)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pmsg_UUID_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pmsg_UUID_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pmsg_Ack_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pmsg_Ack_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pmsg_SnapshotReq_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pmsg_SnapshotReq_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pmsg_Reset_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pmsg_Reset_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pmsg_Pause_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pmsg_Pause_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pmsg_Connect_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pmsg_Connect_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pmsg_Subscribe_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pmsg_Subscribe_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pmsg_Query_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pmsg_Query_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pmsg_StartCursor_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pmsg_StartCursor_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pmsg_Response_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pmsg_Response_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pmsg_CtrlProtoResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pmsg_CtrlProtoResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pmsg_AckResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pmsg_AckResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pmsg_ConnectResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pmsg_ConnectResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pmsg_QueryResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pmsg_QueryResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pmsg_ClusterInfo_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pmsg_ClusterInfo_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pmsg_NodeInfo_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pmsg_NodeInfo_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pmsg_PartitionInfo_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pmsg_PartitionInfo_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pmsg_CtrlEnvelope_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pmsg_CtrlEnvelope_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\rdragent.proto\022\004pmsg\"\'\n\004UUID\022\020\n\010instanc" +
"e\030\001 \002(\006\022\r\n\005count\030\002 \002(\006\"M\n\003Ack\022\023\n\013partiti" +
"onId\030\001 \001(\005\022\021\n\ttimestamp\030\002 \001(\006\022\036\n\026average" +
"RowLatencyNanos\030\003 \001(\006\":\n\013SnapshotReq\022\r\n\005" +
"nonce\030\001 \001(\t\022\034\n\024globalPartitionCount\030\002 \001(" +
"\005\"/\n\005Reset\022\023\n\013partitionId\030\001 \001(\005\022\021\n\ttimes" +
"tamp\030\002 \001(\006\"\034\n\005Pause\022\023\n\013partitionId\030\001 \001(\005" +
"\"\215\001\n\007Connect\022\021\n\tclusterId\030\001 \001(\005\022\031\n\021clust" +
"erCreationId\030\002 \001(\006\022\027\n\017protocolVersion\030\003 " +
"\001(\005\022\031\n\021clusterRecoveryId\030\004 \001(\006\022 \n\010nodeIn",
"fo\030\005 \001(\0132\016.pmsg.NodeInfo\"t\n\tSubscribe\022\023\n" +
"\013partitionId\030\001 \001(\005\022\021\n\ttimestamp\030\002 \001(\006\022\022\n" +
"\nisCovering\030\003 \001(\010\022\030\n\020rewindToUniqueId\030\004 " +
"\001(\006\022\021\n\tisSyncing\030\005 \001(\010\"#\n\005Query\022\032\n\013inclu" +
"deMesh\030\001 \001(\010:\005false\"5\n\013StartCursor\022&\n\013cl" +
"usterInfo\030\001 \003(\0132\021.pmsg.ClusterInfo\"\231\004\n\010R" +
"esponse\022\026\n\002id\030\001 \002(\0132\n.pmsg.UUID\022,\n\004mode\030" +
"\002 \001(\0162\036.pmsg.Response.ReplicationMode\022\031\n" +
"\021snapshotTimestamp\030\003 \001(\006\022\026\n\016instanceIdHa" +
"sh\030\004 \001(\006\022\017\n\007version\030\005 \001(\t\022 \n\010nodeInfo\030\006 ",
"\003(\0132\016.pmsg.NodeInfo\022\034\n\024globalPartitionCo" +
"unt\030\007 \001(\005\022*\n\rpartitionInfo\030\010 \003(\0132\023.pmsg." +
"PartitionInfo\022\021\n\006status\030\t \001(\005:\0010\022%\n\004type" +
"\030\n \001(\0162\027.pmsg.CtrlEnvelope.Type\022\022\n\ncatal" +
"ogCRC\030\013 \001(\006\022\030\n\020catalogSignature\030\014 \001(\t\022\024\n" +
"\014failureCause\030\r \001(\t\022\025\n\risEndOfStream\030\016 \001" +
"(\010\022\027\n\017protocolVersion\030\017 \001(\005\"i\n\017Replicati" +
"onMode\022\010\n\004IDLE\020\001\022\026\n\022SYNCING_REPLICATED\020\002" +
"\022\027\n\023SYNCING_PARTITIONED\020\003\022\n\n\006ACTIVE\020\004\022\017\n" +
"\013UNAVAILABLE\020\005\"\377\001\n\021CtrlProtoResponse\022\026\n\002",
"id\030\001 \002(\0132\n.pmsg.UUID\022%\n\004type\030\002 \001(\0162\027.pms" +
"g.CtrlEnvelope.Type\022\021\n\006status\030\003 \001(\005:\0010\022\024" +
"\n\014failureCause\030\004 \001(\t\022.\n\017connectResponse\030" +
"\005 \001(\0132\025.pmsg.ConnectResponse\022*\n\rqueryRes" +
"ponse\030\006 \001(\0132\023.pmsg.QueryResponse\022&\n\013ackR" +
"esponse\030\007 \001(\0132\021.pmsg.AckResponse\"$\n\013AckR" +
"esponse\022\025\n\risEndOfStream\030\001 \001(\010\"\200\001\n\017Conne" +
"ctResponse\022\022\n\ncatalogCRC\030\001 \001(\006\022\030\n\020catalo" +
"gSignature\030\002 \001(\t\022\027\n\017protocolVersion\030\003 \001(" +
"\005\022&\n\013clusterInfo\030\004 \003(\0132\021.pmsg.ClusterInf",
"o\"S\n\rQueryResponse\022\032\n\013includeMesh\030\001 \001(\010:" +
"\005false\022&\n\013clusterInfo\030\002 \003(\0132\021.pmsg.Clust" +
"erInfo\"\315\001\n\013ClusterInfo\022\021\n\tclusterId\030\001 \002(" +
"\005\022\022\n\ncreationId\030\002 \002(\006\022\022\n\nrecoveryId\030\003 \001(" +
"\006\022\027\n\017protocolVersion\030\004 \001(\005\022\034\n\024globalPart" +
"itionCount\030\005 \001(\005\022 \n\010nodeInfo\030\006 \003(\0132\016.pms" +
"g.NodeInfo\022*\n\rpartitionInfo\030\007 \003(\0132\023.pmsg" +
".PartitionInfo\":\n\010NodeInfo\022\020\n\010hostname\030\001" +
" \001(\t\022\016\n\006drport\030\002 \001(\005\022\014\n\004isUp\030\003 \001(\010\"R\n\rPa" +
"rtitionInfo\022\023\n\013partitionId\030\001 \001(\005\022\024\n\014next",
"UniqueId\030\n \001(\003\022\026\n\010isSynced\030\t \001(\010:\004true\"\222" +
"\004\n\014CtrlEnvelope\022%\n\004type\030\001 \002(\0162\027.pmsg.Ctr" +
"lEnvelope.Type\022\026\n\002id\030\002 \002(\0132\n.pmsg.UUID\022\026" +
"\n\003ack\030\003 \001(\0132\t.pmsg.Ack\022\032\n\005reset\030\004 \001(\0132\013." +
"pmsg.Reset\022\032\n\005pause\030\005 \001(\0132\013.pmsg.Pause\022 " +
"\n\010response\030\006 \001(\0132\016.pmsg.Response\022&\n\013snap" +
"shotReq\030\007 \001(\0132\021.pmsg.SnapshotReq\022\"\n\tsubs" +
"cribe\030\010 \001(\0132\017.pmsg.Subscribe\022\036\n\007connect\030" +
"\n \001(\0132\r.pmsg.Connect\022\032\n\005query\030\013 \001(\0132\013.pm" +
"sg.Query\022&\n\013startCursor\030\014 \001(\0132\021.pmsg.Sta",
"rtCursor\"\240\001\n\004Type\022\007\n\003ACK\020\001\022\t\n\005RESET\020\002\022\t\n" +
"\005PAUSE\020\003\022\t\n\005QUERY\020\004\022\014\n\010RESPONSE\020\005\022\020\n\014SNA" +
"PSHOT_REQ\020\006\022\021\n\rSNAPSHOT_TERM\020\007\022\r\n\tSTOP_S" +
"YNC\020\010\022\013\n\007CONNECT\020\t\022\r\n\tSUBSCRIBE\020\n\022\020\n\014STA" +
"RT_CURSOR\020\013B\032\n\017org.voltdb.pmsgB\007DRAgent"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_pmsg_UUID_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_pmsg_UUID_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pmsg_UUID_descriptor,
new java.lang.String[] { "Instance", "Count", });
internal_static_pmsg_Ack_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_pmsg_Ack_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pmsg_Ack_descriptor,
new java.lang.String[] { "PartitionId", "Timestamp", "AverageRowLatencyNanos", });
internal_static_pmsg_SnapshotReq_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_pmsg_SnapshotReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pmsg_SnapshotReq_descriptor,
new java.lang.String[] { "Nonce", "GlobalPartitionCount", });
internal_static_pmsg_Reset_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_pmsg_Reset_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pmsg_Reset_descriptor,
new java.lang.String[] { "PartitionId", "Timestamp", });
internal_static_pmsg_Pause_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_pmsg_Pause_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pmsg_Pause_descriptor,
new java.lang.String[] { "PartitionId", });
internal_static_pmsg_Connect_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_pmsg_Connect_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pmsg_Connect_descriptor,
new java.lang.String[] { "ClusterId", "ClusterCreationId", "ProtocolVersion", "ClusterRecoveryId", "NodeInfo", });
internal_static_pmsg_Subscribe_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_pmsg_Subscribe_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pmsg_Subscribe_descriptor,
new java.lang.String[] { "PartitionId", "Timestamp", "IsCovering", "RewindToUniqueId", "IsSyncing", });
internal_static_pmsg_Query_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_pmsg_Query_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pmsg_Query_descriptor,
new java.lang.String[] { "IncludeMesh", });
internal_static_pmsg_StartCursor_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_pmsg_StartCursor_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pmsg_StartCursor_descriptor,
new java.lang.String[] { "ClusterInfo", });
internal_static_pmsg_Response_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_pmsg_Response_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pmsg_Response_descriptor,
new java.lang.String[] { "Id", "Mode", "SnapshotTimestamp", "InstanceIdHash", "Version", "NodeInfo", "GlobalPartitionCount", "PartitionInfo", "Status", "Type", "CatalogCRC", "CatalogSignature", "FailureCause", "IsEndOfStream", "ProtocolVersion", });
internal_static_pmsg_CtrlProtoResponse_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_pmsg_CtrlProtoResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pmsg_CtrlProtoResponse_descriptor,
new java.lang.String[] { "Id", "Type", "Status", "FailureCause", "ConnectResponse", "QueryResponse", "AckResponse", });
internal_static_pmsg_AckResponse_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_pmsg_AckResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pmsg_AckResponse_descriptor,
new java.lang.String[] { "IsEndOfStream", });
internal_static_pmsg_ConnectResponse_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_pmsg_ConnectResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pmsg_ConnectResponse_descriptor,
new java.lang.String[] { "CatalogCRC", "CatalogSignature", "ProtocolVersion", "ClusterInfo", });
internal_static_pmsg_QueryResponse_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_pmsg_QueryResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pmsg_QueryResponse_descriptor,
new java.lang.String[] { "IncludeMesh", "ClusterInfo", });
internal_static_pmsg_ClusterInfo_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_pmsg_ClusterInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pmsg_ClusterInfo_descriptor,
new java.lang.String[] { "ClusterId", "CreationId", "RecoveryId", "ProtocolVersion", "GlobalPartitionCount", "NodeInfo", "PartitionInfo", });
internal_static_pmsg_NodeInfo_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_pmsg_NodeInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pmsg_NodeInfo_descriptor,
new java.lang.String[] { "Hostname", "Drport", "IsUp", });
internal_static_pmsg_PartitionInfo_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_pmsg_PartitionInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pmsg_PartitionInfo_descriptor,
new java.lang.String[] { "PartitionId", "NextUniqueId", "IsSynced", });
internal_static_pmsg_CtrlEnvelope_descriptor =
getDescriptor().getMessageTypes().get(17);
internal_static_pmsg_CtrlEnvelope_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pmsg_CtrlEnvelope_descriptor,
new java.lang.String[] { "Type", "Id", "Ack", "Reset", "Pause", "Response", "SnapshotReq", "Subscribe", "Connect", "Query", "StartCursor", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}