binlog.PumpOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: binlog/pump.proto
package binlog;
public final class PumpOuterClass {
private PumpOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface WriteBinlogReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:binlog.WriteBinlogReq)
com.google.protobuf.MessageOrBuilder {
/**
*
* The identifier of tidb-cluster, which is given at tidb startup.
* Must specify the clusterID for each binlog to write.
*
*
* uint64 clusterID = 1;
*/
long getClusterID();
/**
*
* Payload bytes can be decoded back to binlog struct by the protobuf.
*
*
* bytes payload = 2;
*/
com.google.protobuf.ByteString getPayload();
}
/**
* Protobuf type {@code binlog.WriteBinlogReq}
*/
public static final class WriteBinlogReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:binlog.WriteBinlogReq)
WriteBinlogReqOrBuilder {
private static final long serialVersionUID = 0L;
// Use WriteBinlogReq.newBuilder() to construct.
private WriteBinlogReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WriteBinlogReq() {
clusterID_ = 0L;
payload_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WriteBinlogReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
clusterID_ = input.readUInt64();
break;
}
case 18: {
payload_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return binlog.PumpOuterClass.internal_static_binlog_WriteBinlogReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return binlog.PumpOuterClass.internal_static_binlog_WriteBinlogReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
binlog.PumpOuterClass.WriteBinlogReq.class, binlog.PumpOuterClass.WriteBinlogReq.Builder.class);
}
public static final int CLUSTERID_FIELD_NUMBER = 1;
private long clusterID_;
/**
*
* The identifier of tidb-cluster, which is given at tidb startup.
* Must specify the clusterID for each binlog to write.
*
*
* uint64 clusterID = 1;
*/
public long getClusterID() {
return clusterID_;
}
public static final int PAYLOAD_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString payload_;
/**
*
* Payload bytes can be decoded back to binlog struct by the protobuf.
*
*
* bytes payload = 2;
*/
public com.google.protobuf.ByteString getPayload() {
return payload_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (clusterID_ != 0L) {
output.writeUInt64(1, clusterID_);
}
if (!payload_.isEmpty()) {
output.writeBytes(2, payload_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (clusterID_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, clusterID_);
}
if (!payload_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, payload_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof binlog.PumpOuterClass.WriteBinlogReq)) {
return super.equals(obj);
}
binlog.PumpOuterClass.WriteBinlogReq other = (binlog.PumpOuterClass.WriteBinlogReq) obj;
boolean result = true;
result = result && (getClusterID()
== other.getClusterID());
result = result && getPayload()
.equals(other.getPayload());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CLUSTERID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getClusterID());
hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
hash = (53 * hash) + getPayload().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static binlog.PumpOuterClass.WriteBinlogReq parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static binlog.PumpOuterClass.WriteBinlogReq parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static binlog.PumpOuterClass.WriteBinlogReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static binlog.PumpOuterClass.WriteBinlogReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static binlog.PumpOuterClass.WriteBinlogReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static binlog.PumpOuterClass.WriteBinlogReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static binlog.PumpOuterClass.WriteBinlogReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static binlog.PumpOuterClass.WriteBinlogReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static binlog.PumpOuterClass.WriteBinlogReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static binlog.PumpOuterClass.WriteBinlogReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static binlog.PumpOuterClass.WriteBinlogReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static binlog.PumpOuterClass.WriteBinlogReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(binlog.PumpOuterClass.WriteBinlogReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code binlog.WriteBinlogReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:binlog.WriteBinlogReq)
binlog.PumpOuterClass.WriteBinlogReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return binlog.PumpOuterClass.internal_static_binlog_WriteBinlogReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return binlog.PumpOuterClass.internal_static_binlog_WriteBinlogReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
binlog.PumpOuterClass.WriteBinlogReq.class, binlog.PumpOuterClass.WriteBinlogReq.Builder.class);
}
// Construct using binlog.PumpOuterClass.WriteBinlogReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
clusterID_ = 0L;
payload_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return binlog.PumpOuterClass.internal_static_binlog_WriteBinlogReq_descriptor;
}
public binlog.PumpOuterClass.WriteBinlogReq getDefaultInstanceForType() {
return binlog.PumpOuterClass.WriteBinlogReq.getDefaultInstance();
}
public binlog.PumpOuterClass.WriteBinlogReq build() {
binlog.PumpOuterClass.WriteBinlogReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public binlog.PumpOuterClass.WriteBinlogReq buildPartial() {
binlog.PumpOuterClass.WriteBinlogReq result = new binlog.PumpOuterClass.WriteBinlogReq(this);
result.clusterID_ = clusterID_;
result.payload_ = payload_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof binlog.PumpOuterClass.WriteBinlogReq) {
return mergeFrom((binlog.PumpOuterClass.WriteBinlogReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(binlog.PumpOuterClass.WriteBinlogReq other) {
if (other == binlog.PumpOuterClass.WriteBinlogReq.getDefaultInstance()) return this;
if (other.getClusterID() != 0L) {
setClusterID(other.getClusterID());
}
if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) {
setPayload(other.getPayload());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
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 {
binlog.PumpOuterClass.WriteBinlogReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (binlog.PumpOuterClass.WriteBinlogReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long clusterID_ ;
/**
*
* The identifier of tidb-cluster, which is given at tidb startup.
* Must specify the clusterID for each binlog to write.
*
*
* uint64 clusterID = 1;
*/
public long getClusterID() {
return clusterID_;
}
/**
*
* The identifier of tidb-cluster, which is given at tidb startup.
* Must specify the clusterID for each binlog to write.
*
*
* uint64 clusterID = 1;
*/
public Builder setClusterID(long value) {
clusterID_ = value;
onChanged();
return this;
}
/**
*
* The identifier of tidb-cluster, which is given at tidb startup.
* Must specify the clusterID for each binlog to write.
*
*
* uint64 clusterID = 1;
*/
public Builder clearClusterID() {
clusterID_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Payload bytes can be decoded back to binlog struct by the protobuf.
*
*
* bytes payload = 2;
*/
public com.google.protobuf.ByteString getPayload() {
return payload_;
}
/**
*
* Payload bytes can be decoded back to binlog struct by the protobuf.
*
*
* bytes payload = 2;
*/
public Builder setPayload(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
payload_ = value;
onChanged();
return this;
}
/**
*
* Payload bytes can be decoded back to binlog struct by the protobuf.
*
*
* bytes payload = 2;
*/
public Builder clearPayload() {
payload_ = getDefaultInstance().getPayload();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:binlog.WriteBinlogReq)
}
// @@protoc_insertion_point(class_scope:binlog.WriteBinlogReq)
private static final binlog.PumpOuterClass.WriteBinlogReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new binlog.PumpOuterClass.WriteBinlogReq();
}
public static binlog.PumpOuterClass.WriteBinlogReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public WriteBinlogReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new WriteBinlogReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public binlog.PumpOuterClass.WriteBinlogReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WriteBinlogRespOrBuilder extends
// @@protoc_insertion_point(interface_extends:binlog.WriteBinlogResp)
com.google.protobuf.MessageOrBuilder {
/**
*
* An empty errmsg returned means a successful write.
* Otherwise return the error description.
*
*
* string errmsg = 1;
*/
java.lang.String getErrmsg();
/**
*
* An empty errmsg returned means a successful write.
* Otherwise return the error description.
*
*
* string errmsg = 1;
*/
com.google.protobuf.ByteString
getErrmsgBytes();
}
/**
* Protobuf type {@code binlog.WriteBinlogResp}
*/
public static final class WriteBinlogResp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:binlog.WriteBinlogResp)
WriteBinlogRespOrBuilder {
private static final long serialVersionUID = 0L;
// Use WriteBinlogResp.newBuilder() to construct.
private WriteBinlogResp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WriteBinlogResp() {
errmsg_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WriteBinlogResp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
errmsg_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return binlog.PumpOuterClass.internal_static_binlog_WriteBinlogResp_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return binlog.PumpOuterClass.internal_static_binlog_WriteBinlogResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
binlog.PumpOuterClass.WriteBinlogResp.class, binlog.PumpOuterClass.WriteBinlogResp.Builder.class);
}
public static final int ERRMSG_FIELD_NUMBER = 1;
private volatile java.lang.Object errmsg_;
/**
*
* An empty errmsg returned means a successful write.
* Otherwise return the error description.
*
*
* string errmsg = 1;
*/
public java.lang.String getErrmsg() {
java.lang.Object ref = errmsg_;
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();
errmsg_ = s;
return s;
}
}
/**
*
* An empty errmsg returned means a successful write.
* Otherwise return the error description.
*
*
* string errmsg = 1;
*/
public com.google.protobuf.ByteString
getErrmsgBytes() {
java.lang.Object ref = errmsg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errmsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getErrmsgBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, errmsg_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getErrmsgBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, errmsg_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof binlog.PumpOuterClass.WriteBinlogResp)) {
return super.equals(obj);
}
binlog.PumpOuterClass.WriteBinlogResp other = (binlog.PumpOuterClass.WriteBinlogResp) obj;
boolean result = true;
result = result && getErrmsg()
.equals(other.getErrmsg());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ERRMSG_FIELD_NUMBER;
hash = (53 * hash) + getErrmsg().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static binlog.PumpOuterClass.WriteBinlogResp parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static binlog.PumpOuterClass.WriteBinlogResp parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static binlog.PumpOuterClass.WriteBinlogResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static binlog.PumpOuterClass.WriteBinlogResp parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static binlog.PumpOuterClass.WriteBinlogResp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static binlog.PumpOuterClass.WriteBinlogResp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static binlog.PumpOuterClass.WriteBinlogResp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static binlog.PumpOuterClass.WriteBinlogResp parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static binlog.PumpOuterClass.WriteBinlogResp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static binlog.PumpOuterClass.WriteBinlogResp parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static binlog.PumpOuterClass.WriteBinlogResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static binlog.PumpOuterClass.WriteBinlogResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(binlog.PumpOuterClass.WriteBinlogResp prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code binlog.WriteBinlogResp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:binlog.WriteBinlogResp)
binlog.PumpOuterClass.WriteBinlogRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return binlog.PumpOuterClass.internal_static_binlog_WriteBinlogResp_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return binlog.PumpOuterClass.internal_static_binlog_WriteBinlogResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
binlog.PumpOuterClass.WriteBinlogResp.class, binlog.PumpOuterClass.WriteBinlogResp.Builder.class);
}
// Construct using binlog.PumpOuterClass.WriteBinlogResp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
errmsg_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return binlog.PumpOuterClass.internal_static_binlog_WriteBinlogResp_descriptor;
}
public binlog.PumpOuterClass.WriteBinlogResp getDefaultInstanceForType() {
return binlog.PumpOuterClass.WriteBinlogResp.getDefaultInstance();
}
public binlog.PumpOuterClass.WriteBinlogResp build() {
binlog.PumpOuterClass.WriteBinlogResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public binlog.PumpOuterClass.WriteBinlogResp buildPartial() {
binlog.PumpOuterClass.WriteBinlogResp result = new binlog.PumpOuterClass.WriteBinlogResp(this);
result.errmsg_ = errmsg_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof binlog.PumpOuterClass.WriteBinlogResp) {
return mergeFrom((binlog.PumpOuterClass.WriteBinlogResp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(binlog.PumpOuterClass.WriteBinlogResp other) {
if (other == binlog.PumpOuterClass.WriteBinlogResp.getDefaultInstance()) return this;
if (!other.getErrmsg().isEmpty()) {
errmsg_ = other.errmsg_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
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 {
binlog.PumpOuterClass.WriteBinlogResp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (binlog.PumpOuterClass.WriteBinlogResp) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object errmsg_ = "";
/**
*
* An empty errmsg returned means a successful write.
* Otherwise return the error description.
*
*
* string errmsg = 1;
*/
public java.lang.String getErrmsg() {
java.lang.Object ref = errmsg_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errmsg_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* An empty errmsg returned means a successful write.
* Otherwise return the error description.
*
*
* string errmsg = 1;
*/
public com.google.protobuf.ByteString
getErrmsgBytes() {
java.lang.Object ref = errmsg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errmsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* An empty errmsg returned means a successful write.
* Otherwise return the error description.
*
*
* string errmsg = 1;
*/
public Builder setErrmsg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
errmsg_ = value;
onChanged();
return this;
}
/**
*
* An empty errmsg returned means a successful write.
* Otherwise return the error description.
*
*
* string errmsg = 1;
*/
public Builder clearErrmsg() {
errmsg_ = getDefaultInstance().getErrmsg();
onChanged();
return this;
}
/**
*
* An empty errmsg returned means a successful write.
* Otherwise return the error description.
*
*
* string errmsg = 1;
*/
public Builder setErrmsgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
errmsg_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:binlog.WriteBinlogResp)
}
// @@protoc_insertion_point(class_scope:binlog.WriteBinlogResp)
private static final binlog.PumpOuterClass.WriteBinlogResp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new binlog.PumpOuterClass.WriteBinlogResp();
}
public static binlog.PumpOuterClass.WriteBinlogResp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public WriteBinlogResp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new WriteBinlogResp(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public binlog.PumpOuterClass.WriteBinlogResp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PullBinlogReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:binlog.PullBinlogReq)
com.google.protobuf.MessageOrBuilder {
/**
*
* Specifies which clusterID of binlog to pull.
*
*
* uint64 clusterID = 1;
*/
long getClusterID();
/**
*
* The position from which the binlog will be sent.
*
*
* .binlog.Pos startFrom = 2 [(.gogoproto.nullable) = false];
*/
boolean hasStartFrom();
/**
*
* The position from which the binlog will be sent.
*
*
* .binlog.Pos startFrom = 2 [(.gogoproto.nullable) = false];
*/
binlog.PumpOuterClass.Pos getStartFrom();
/**
*
* The position from which the binlog will be sent.
*
*
* .binlog.Pos startFrom = 2 [(.gogoproto.nullable) = false];
*/
binlog.PumpOuterClass.PosOrBuilder getStartFromOrBuilder();
}
/**
* Protobuf type {@code binlog.PullBinlogReq}
*/
public static final class PullBinlogReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:binlog.PullBinlogReq)
PullBinlogReqOrBuilder {
private static final long serialVersionUID = 0L;
// Use PullBinlogReq.newBuilder() to construct.
private PullBinlogReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PullBinlogReq() {
clusterID_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PullBinlogReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
clusterID_ = input.readUInt64();
break;
}
case 18: {
binlog.PumpOuterClass.Pos.Builder subBuilder = null;
if (startFrom_ != null) {
subBuilder = startFrom_.toBuilder();
}
startFrom_ = input.readMessage(binlog.PumpOuterClass.Pos.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(startFrom_);
startFrom_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return binlog.PumpOuterClass.internal_static_binlog_PullBinlogReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return binlog.PumpOuterClass.internal_static_binlog_PullBinlogReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
binlog.PumpOuterClass.PullBinlogReq.class, binlog.PumpOuterClass.PullBinlogReq.Builder.class);
}
public static final int CLUSTERID_FIELD_NUMBER = 1;
private long clusterID_;
/**
*
* Specifies which clusterID of binlog to pull.
*
*
* uint64 clusterID = 1;
*/
public long getClusterID() {
return clusterID_;
}
public static final int STARTFROM_FIELD_NUMBER = 2;
private binlog.PumpOuterClass.Pos startFrom_;
/**
*
* The position from which the binlog will be sent.
*
*
* .binlog.Pos startFrom = 2 [(.gogoproto.nullable) = false];
*/
public boolean hasStartFrom() {
return startFrom_ != null;
}
/**
*
* The position from which the binlog will be sent.
*
*
* .binlog.Pos startFrom = 2 [(.gogoproto.nullable) = false];
*/
public binlog.PumpOuterClass.Pos getStartFrom() {
return startFrom_ == null ? binlog.PumpOuterClass.Pos.getDefaultInstance() : startFrom_;
}
/**
*
* The position from which the binlog will be sent.
*
*
* .binlog.Pos startFrom = 2 [(.gogoproto.nullable) = false];
*/
public binlog.PumpOuterClass.PosOrBuilder getStartFromOrBuilder() {
return getStartFrom();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (clusterID_ != 0L) {
output.writeUInt64(1, clusterID_);
}
if (startFrom_ != null) {
output.writeMessage(2, getStartFrom());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (clusterID_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, clusterID_);
}
if (startFrom_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getStartFrom());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof binlog.PumpOuterClass.PullBinlogReq)) {
return super.equals(obj);
}
binlog.PumpOuterClass.PullBinlogReq other = (binlog.PumpOuterClass.PullBinlogReq) obj;
boolean result = true;
result = result && (getClusterID()
== other.getClusterID());
result = result && (hasStartFrom() == other.hasStartFrom());
if (hasStartFrom()) {
result = result && getStartFrom()
.equals(other.getStartFrom());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CLUSTERID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getClusterID());
if (hasStartFrom()) {
hash = (37 * hash) + STARTFROM_FIELD_NUMBER;
hash = (53 * hash) + getStartFrom().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static binlog.PumpOuterClass.PullBinlogReq parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static binlog.PumpOuterClass.PullBinlogReq parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static binlog.PumpOuterClass.PullBinlogReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static binlog.PumpOuterClass.PullBinlogReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static binlog.PumpOuterClass.PullBinlogReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static binlog.PumpOuterClass.PullBinlogReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static binlog.PumpOuterClass.PullBinlogReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static binlog.PumpOuterClass.PullBinlogReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static binlog.PumpOuterClass.PullBinlogReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static binlog.PumpOuterClass.PullBinlogReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static binlog.PumpOuterClass.PullBinlogReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static binlog.PumpOuterClass.PullBinlogReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(binlog.PumpOuterClass.PullBinlogReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code binlog.PullBinlogReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:binlog.PullBinlogReq)
binlog.PumpOuterClass.PullBinlogReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return binlog.PumpOuterClass.internal_static_binlog_PullBinlogReq_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return binlog.PumpOuterClass.internal_static_binlog_PullBinlogReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
binlog.PumpOuterClass.PullBinlogReq.class, binlog.PumpOuterClass.PullBinlogReq.Builder.class);
}
// Construct using binlog.PumpOuterClass.PullBinlogReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
clusterID_ = 0L;
if (startFromBuilder_ == null) {
startFrom_ = null;
} else {
startFrom_ = null;
startFromBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return binlog.PumpOuterClass.internal_static_binlog_PullBinlogReq_descriptor;
}
public binlog.PumpOuterClass.PullBinlogReq getDefaultInstanceForType() {
return binlog.PumpOuterClass.PullBinlogReq.getDefaultInstance();
}
public binlog.PumpOuterClass.PullBinlogReq build() {
binlog.PumpOuterClass.PullBinlogReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public binlog.PumpOuterClass.PullBinlogReq buildPartial() {
binlog.PumpOuterClass.PullBinlogReq result = new binlog.PumpOuterClass.PullBinlogReq(this);
result.clusterID_ = clusterID_;
if (startFromBuilder_ == null) {
result.startFrom_ = startFrom_;
} else {
result.startFrom_ = startFromBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof binlog.PumpOuterClass.PullBinlogReq) {
return mergeFrom((binlog.PumpOuterClass.PullBinlogReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(binlog.PumpOuterClass.PullBinlogReq other) {
if (other == binlog.PumpOuterClass.PullBinlogReq.getDefaultInstance()) return this;
if (other.getClusterID() != 0L) {
setClusterID(other.getClusterID());
}
if (other.hasStartFrom()) {
mergeStartFrom(other.getStartFrom());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
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 {
binlog.PumpOuterClass.PullBinlogReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (binlog.PumpOuterClass.PullBinlogReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long clusterID_ ;
/**
*
* Specifies which clusterID of binlog to pull.
*
*
* uint64 clusterID = 1;
*/
public long getClusterID() {
return clusterID_;
}
/**
*
* Specifies which clusterID of binlog to pull.
*
*
* uint64 clusterID = 1;
*/
public Builder setClusterID(long value) {
clusterID_ = value;
onChanged();
return this;
}
/**
*
* Specifies which clusterID of binlog to pull.
*
*
* uint64 clusterID = 1;
*/
public Builder clearClusterID() {
clusterID_ = 0L;
onChanged();
return this;
}
private binlog.PumpOuterClass.Pos startFrom_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
binlog.PumpOuterClass.Pos, binlog.PumpOuterClass.Pos.Builder, binlog.PumpOuterClass.PosOrBuilder> startFromBuilder_;
/**
*
* The position from which the binlog will be sent.
*
*
* .binlog.Pos startFrom = 2 [(.gogoproto.nullable) = false];
*/
public boolean hasStartFrom() {
return startFromBuilder_ != null || startFrom_ != null;
}
/**
*
* The position from which the binlog will be sent.
*
*
* .binlog.Pos startFrom = 2 [(.gogoproto.nullable) = false];
*/
public binlog.PumpOuterClass.Pos getStartFrom() {
if (startFromBuilder_ == null) {
return startFrom_ == null ? binlog.PumpOuterClass.Pos.getDefaultInstance() : startFrom_;
} else {
return startFromBuilder_.getMessage();
}
}
/**
*
* The position from which the binlog will be sent.
*
*
* .binlog.Pos startFrom = 2 [(.gogoproto.nullable) = false];
*/
public Builder setStartFrom(binlog.PumpOuterClass.Pos value) {
if (startFromBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startFrom_ = value;
onChanged();
} else {
startFromBuilder_.setMessage(value);
}
return this;
}
/**
*
* The position from which the binlog will be sent.
*
*
* .binlog.Pos startFrom = 2 [(.gogoproto.nullable) = false];
*/
public Builder setStartFrom(
binlog.PumpOuterClass.Pos.Builder builderForValue) {
if (startFromBuilder_ == null) {
startFrom_ = builderForValue.build();
onChanged();
} else {
startFromBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The position from which the binlog will be sent.
*
*
* .binlog.Pos startFrom = 2 [(.gogoproto.nullable) = false];
*/
public Builder mergeStartFrom(binlog.PumpOuterClass.Pos value) {
if (startFromBuilder_ == null) {
if (startFrom_ != null) {
startFrom_ =
binlog.PumpOuterClass.Pos.newBuilder(startFrom_).mergeFrom(value).buildPartial();
} else {
startFrom_ = value;
}
onChanged();
} else {
startFromBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The position from which the binlog will be sent.
*
*
* .binlog.Pos startFrom = 2 [(.gogoproto.nullable) = false];
*/
public Builder clearStartFrom() {
if (startFromBuilder_ == null) {
startFrom_ = null;
onChanged();
} else {
startFrom_ = null;
startFromBuilder_ = null;
}
return this;
}
/**
*
* The position from which the binlog will be sent.
*
*
* .binlog.Pos startFrom = 2 [(.gogoproto.nullable) = false];
*/
public binlog.PumpOuterClass.Pos.Builder getStartFromBuilder() {
onChanged();
return getStartFromFieldBuilder().getBuilder();
}
/**
*
* The position from which the binlog will be sent.
*
*
* .binlog.Pos startFrom = 2 [(.gogoproto.nullable) = false];
*/
public binlog.PumpOuterClass.PosOrBuilder getStartFromOrBuilder() {
if (startFromBuilder_ != null) {
return startFromBuilder_.getMessageOrBuilder();
} else {
return startFrom_ == null ?
binlog.PumpOuterClass.Pos.getDefaultInstance() : startFrom_;
}
}
/**
*
* The position from which the binlog will be sent.
*
*
* .binlog.Pos startFrom = 2 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
binlog.PumpOuterClass.Pos, binlog.PumpOuterClass.Pos.Builder, binlog.PumpOuterClass.PosOrBuilder>
getStartFromFieldBuilder() {
if (startFromBuilder_ == null) {
startFromBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
binlog.PumpOuterClass.Pos, binlog.PumpOuterClass.Pos.Builder, binlog.PumpOuterClass.PosOrBuilder>(
getStartFrom(),
getParentForChildren(),
isClean());
startFrom_ = null;
}
return startFromBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:binlog.PullBinlogReq)
}
// @@protoc_insertion_point(class_scope:binlog.PullBinlogReq)
private static final binlog.PumpOuterClass.PullBinlogReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new binlog.PumpOuterClass.PullBinlogReq();
}
public static binlog.PumpOuterClass.PullBinlogReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PullBinlogReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PullBinlogReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public binlog.PumpOuterClass.PullBinlogReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PullBinlogRespOrBuilder extends
// @@protoc_insertion_point(interface_extends:binlog.PullBinlogResp)
com.google.protobuf.MessageOrBuilder {
/**
*
* The binlog entity that send in a stream
*
*
* .binlog.Entity entity = 1 [(.gogoproto.nullable) = false];
*/
boolean hasEntity();
/**
*
* The binlog entity that send in a stream
*
*
* .binlog.Entity entity = 1 [(.gogoproto.nullable) = false];
*/
binlog.PumpOuterClass.Entity getEntity();
/**
*
* The binlog entity that send in a stream
*
*
* .binlog.Entity entity = 1 [(.gogoproto.nullable) = false];
*/
binlog.PumpOuterClass.EntityOrBuilder getEntityOrBuilder();
}
/**
* Protobuf type {@code binlog.PullBinlogResp}
*/
public static final class PullBinlogResp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:binlog.PullBinlogResp)
PullBinlogRespOrBuilder {
private static final long serialVersionUID = 0L;
// Use PullBinlogResp.newBuilder() to construct.
private PullBinlogResp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PullBinlogResp() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PullBinlogResp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
binlog.PumpOuterClass.Entity.Builder subBuilder = null;
if (entity_ != null) {
subBuilder = entity_.toBuilder();
}
entity_ = input.readMessage(binlog.PumpOuterClass.Entity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(entity_);
entity_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return binlog.PumpOuterClass.internal_static_binlog_PullBinlogResp_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return binlog.PumpOuterClass.internal_static_binlog_PullBinlogResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
binlog.PumpOuterClass.PullBinlogResp.class, binlog.PumpOuterClass.PullBinlogResp.Builder.class);
}
public static final int ENTITY_FIELD_NUMBER = 1;
private binlog.PumpOuterClass.Entity entity_;
/**
*
* The binlog entity that send in a stream
*
*
* .binlog.Entity entity = 1 [(.gogoproto.nullable) = false];
*/
public boolean hasEntity() {
return entity_ != null;
}
/**
*
* The binlog entity that send in a stream
*
*
* .binlog.Entity entity = 1 [(.gogoproto.nullable) = false];
*/
public binlog.PumpOuterClass.Entity getEntity() {
return entity_ == null ? binlog.PumpOuterClass.Entity.getDefaultInstance() : entity_;
}
/**
*
* The binlog entity that send in a stream
*
*
* .binlog.Entity entity = 1 [(.gogoproto.nullable) = false];
*/
public binlog.PumpOuterClass.EntityOrBuilder getEntityOrBuilder() {
return getEntity();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (entity_ != null) {
output.writeMessage(1, getEntity());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (entity_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getEntity());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof binlog.PumpOuterClass.PullBinlogResp)) {
return super.equals(obj);
}
binlog.PumpOuterClass.PullBinlogResp other = (binlog.PumpOuterClass.PullBinlogResp) obj;
boolean result = true;
result = result && (hasEntity() == other.hasEntity());
if (hasEntity()) {
result = result && getEntity()
.equals(other.getEntity());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasEntity()) {
hash = (37 * hash) + ENTITY_FIELD_NUMBER;
hash = (53 * hash) + getEntity().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static binlog.PumpOuterClass.PullBinlogResp parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static binlog.PumpOuterClass.PullBinlogResp parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static binlog.PumpOuterClass.PullBinlogResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static binlog.PumpOuterClass.PullBinlogResp parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static binlog.PumpOuterClass.PullBinlogResp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static binlog.PumpOuterClass.PullBinlogResp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static binlog.PumpOuterClass.PullBinlogResp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static binlog.PumpOuterClass.PullBinlogResp parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static binlog.PumpOuterClass.PullBinlogResp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static binlog.PumpOuterClass.PullBinlogResp parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static binlog.PumpOuterClass.PullBinlogResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static binlog.PumpOuterClass.PullBinlogResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(binlog.PumpOuterClass.PullBinlogResp prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code binlog.PullBinlogResp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:binlog.PullBinlogResp)
binlog.PumpOuterClass.PullBinlogRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return binlog.PumpOuterClass.internal_static_binlog_PullBinlogResp_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return binlog.PumpOuterClass.internal_static_binlog_PullBinlogResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
binlog.PumpOuterClass.PullBinlogResp.class, binlog.PumpOuterClass.PullBinlogResp.Builder.class);
}
// Construct using binlog.PumpOuterClass.PullBinlogResp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (entityBuilder_ == null) {
entity_ = null;
} else {
entity_ = null;
entityBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return binlog.PumpOuterClass.internal_static_binlog_PullBinlogResp_descriptor;
}
public binlog.PumpOuterClass.PullBinlogResp getDefaultInstanceForType() {
return binlog.PumpOuterClass.PullBinlogResp.getDefaultInstance();
}
public binlog.PumpOuterClass.PullBinlogResp build() {
binlog.PumpOuterClass.PullBinlogResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public binlog.PumpOuterClass.PullBinlogResp buildPartial() {
binlog.PumpOuterClass.PullBinlogResp result = new binlog.PumpOuterClass.PullBinlogResp(this);
if (entityBuilder_ == null) {
result.entity_ = entity_;
} else {
result.entity_ = entityBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof binlog.PumpOuterClass.PullBinlogResp) {
return mergeFrom((binlog.PumpOuterClass.PullBinlogResp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(binlog.PumpOuterClass.PullBinlogResp other) {
if (other == binlog.PumpOuterClass.PullBinlogResp.getDefaultInstance()) return this;
if (other.hasEntity()) {
mergeEntity(other.getEntity());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
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 {
binlog.PumpOuterClass.PullBinlogResp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (binlog.PumpOuterClass.PullBinlogResp) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private binlog.PumpOuterClass.Entity entity_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
binlog.PumpOuterClass.Entity, binlog.PumpOuterClass.Entity.Builder, binlog.PumpOuterClass.EntityOrBuilder> entityBuilder_;
/**
*
* The binlog entity that send in a stream
*
*
* .binlog.Entity entity = 1 [(.gogoproto.nullable) = false];
*/
public boolean hasEntity() {
return entityBuilder_ != null || entity_ != null;
}
/**
*
* The binlog entity that send in a stream
*
*
* .binlog.Entity entity = 1 [(.gogoproto.nullable) = false];
*/
public binlog.PumpOuterClass.Entity getEntity() {
if (entityBuilder_ == null) {
return entity_ == null ? binlog.PumpOuterClass.Entity.getDefaultInstance() : entity_;
} else {
return entityBuilder_.getMessage();
}
}
/**
*
* The binlog entity that send in a stream
*
*
* .binlog.Entity entity = 1 [(.gogoproto.nullable) = false];
*/
public Builder setEntity(binlog.PumpOuterClass.Entity value) {
if (entityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
entity_ = value;
onChanged();
} else {
entityBuilder_.setMessage(value);
}
return this;
}
/**
*
* The binlog entity that send in a stream
*
*
* .binlog.Entity entity = 1 [(.gogoproto.nullable) = false];
*/
public Builder setEntity(
binlog.PumpOuterClass.Entity.Builder builderForValue) {
if (entityBuilder_ == null) {
entity_ = builderForValue.build();
onChanged();
} else {
entityBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The binlog entity that send in a stream
*
*
* .binlog.Entity entity = 1 [(.gogoproto.nullable) = false];
*/
public Builder mergeEntity(binlog.PumpOuterClass.Entity value) {
if (entityBuilder_ == null) {
if (entity_ != null) {
entity_ =
binlog.PumpOuterClass.Entity.newBuilder(entity_).mergeFrom(value).buildPartial();
} else {
entity_ = value;
}
onChanged();
} else {
entityBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The binlog entity that send in a stream
*
*
* .binlog.Entity entity = 1 [(.gogoproto.nullable) = false];
*/
public Builder clearEntity() {
if (entityBuilder_ == null) {
entity_ = null;
onChanged();
} else {
entity_ = null;
entityBuilder_ = null;
}
return this;
}
/**
*
* The binlog entity that send in a stream
*
*
* .binlog.Entity entity = 1 [(.gogoproto.nullable) = false];
*/
public binlog.PumpOuterClass.Entity.Builder getEntityBuilder() {
onChanged();
return getEntityFieldBuilder().getBuilder();
}
/**
*
* The binlog entity that send in a stream
*
*
* .binlog.Entity entity = 1 [(.gogoproto.nullable) = false];
*/
public binlog.PumpOuterClass.EntityOrBuilder getEntityOrBuilder() {
if (entityBuilder_ != null) {
return entityBuilder_.getMessageOrBuilder();
} else {
return entity_ == null ?
binlog.PumpOuterClass.Entity.getDefaultInstance() : entity_;
}
}
/**
*
* The binlog entity that send in a stream
*
*
* .binlog.Entity entity = 1 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
binlog.PumpOuterClass.Entity, binlog.PumpOuterClass.Entity.Builder, binlog.PumpOuterClass.EntityOrBuilder>
getEntityFieldBuilder() {
if (entityBuilder_ == null) {
entityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
binlog.PumpOuterClass.Entity, binlog.PumpOuterClass.Entity.Builder, binlog.PumpOuterClass.EntityOrBuilder>(
getEntity(),
getParentForChildren(),
isClean());
entity_ = null;
}
return entityBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:binlog.PullBinlogResp)
}
// @@protoc_insertion_point(class_scope:binlog.PullBinlogResp)
private static final binlog.PumpOuterClass.PullBinlogResp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new binlog.PumpOuterClass.PullBinlogResp();
}
public static binlog.PumpOuterClass.PullBinlogResp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PullBinlogResp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PullBinlogResp(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public binlog.PumpOuterClass.PullBinlogResp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PosOrBuilder extends
// @@protoc_insertion_point(interface_extends:binlog.Pos)
com.google.protobuf.MessageOrBuilder {
/**
*
* The suffix of binlog file, like .000001 .000002
*
*
* uint64 suffix = 1;
*/
long getSuffix();
/**
*
* The binlog offset in a file.
*
*
* int64 offset = 2;
*/
long getOffset();
}
/**
*
* Binlogs are stored in a number of sequential files in a directory.
* The Pos describes the position of a binlog.
*
*
* Protobuf type {@code binlog.Pos}
*/
public static final class Pos extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:binlog.Pos)
PosOrBuilder {
private static final long serialVersionUID = 0L;
// Use Pos.newBuilder() to construct.
private Pos(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Pos() {
suffix_ = 0L;
offset_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Pos(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
suffix_ = input.readUInt64();
break;
}
case 16: {
offset_ = 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).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return binlog.PumpOuterClass.internal_static_binlog_Pos_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return binlog.PumpOuterClass.internal_static_binlog_Pos_fieldAccessorTable
.ensureFieldAccessorsInitialized(
binlog.PumpOuterClass.Pos.class, binlog.PumpOuterClass.Pos.Builder.class);
}
public static final int SUFFIX_FIELD_NUMBER = 1;
private long suffix_;
/**
*
* The suffix of binlog file, like .000001 .000002
*
*
* uint64 suffix = 1;
*/
public long getSuffix() {
return suffix_;
}
public static final int OFFSET_FIELD_NUMBER = 2;
private long offset_;
/**
*
* The binlog offset in a file.
*
*
* int64 offset = 2;
*/
public long getOffset() {
return offset_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (suffix_ != 0L) {
output.writeUInt64(1, suffix_);
}
if (offset_ != 0L) {
output.writeInt64(2, offset_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (suffix_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, suffix_);
}
if (offset_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, offset_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof binlog.PumpOuterClass.Pos)) {
return super.equals(obj);
}
binlog.PumpOuterClass.Pos other = (binlog.PumpOuterClass.Pos) obj;
boolean result = true;
result = result && (getSuffix()
== other.getSuffix());
result = result && (getOffset()
== other.getOffset());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SUFFIX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSuffix());
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOffset());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static binlog.PumpOuterClass.Pos parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static binlog.PumpOuterClass.Pos parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static binlog.PumpOuterClass.Pos parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static binlog.PumpOuterClass.Pos parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static binlog.PumpOuterClass.Pos parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static binlog.PumpOuterClass.Pos parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static binlog.PumpOuterClass.Pos parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static binlog.PumpOuterClass.Pos parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static binlog.PumpOuterClass.Pos parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static binlog.PumpOuterClass.Pos parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static binlog.PumpOuterClass.Pos parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static binlog.PumpOuterClass.Pos parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(binlog.PumpOuterClass.Pos prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Binlogs are stored in a number of sequential files in a directory.
* The Pos describes the position of a binlog.
*
*
* Protobuf type {@code binlog.Pos}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:binlog.Pos)
binlog.PumpOuterClass.PosOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return binlog.PumpOuterClass.internal_static_binlog_Pos_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return binlog.PumpOuterClass.internal_static_binlog_Pos_fieldAccessorTable
.ensureFieldAccessorsInitialized(
binlog.PumpOuterClass.Pos.class, binlog.PumpOuterClass.Pos.Builder.class);
}
// Construct using binlog.PumpOuterClass.Pos.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
suffix_ = 0L;
offset_ = 0L;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return binlog.PumpOuterClass.internal_static_binlog_Pos_descriptor;
}
public binlog.PumpOuterClass.Pos getDefaultInstanceForType() {
return binlog.PumpOuterClass.Pos.getDefaultInstance();
}
public binlog.PumpOuterClass.Pos build() {
binlog.PumpOuterClass.Pos result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public binlog.PumpOuterClass.Pos buildPartial() {
binlog.PumpOuterClass.Pos result = new binlog.PumpOuterClass.Pos(this);
result.suffix_ = suffix_;
result.offset_ = offset_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof binlog.PumpOuterClass.Pos) {
return mergeFrom((binlog.PumpOuterClass.Pos)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(binlog.PumpOuterClass.Pos other) {
if (other == binlog.PumpOuterClass.Pos.getDefaultInstance()) return this;
if (other.getSuffix() != 0L) {
setSuffix(other.getSuffix());
}
if (other.getOffset() != 0L) {
setOffset(other.getOffset());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
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 {
binlog.PumpOuterClass.Pos parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (binlog.PumpOuterClass.Pos) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long suffix_ ;
/**
*
* The suffix of binlog file, like .000001 .000002
*
*
* uint64 suffix = 1;
*/
public long getSuffix() {
return suffix_;
}
/**
*
* The suffix of binlog file, like .000001 .000002
*
*
* uint64 suffix = 1;
*/
public Builder setSuffix(long value) {
suffix_ = value;
onChanged();
return this;
}
/**
*
* The suffix of binlog file, like .000001 .000002
*
*
* uint64 suffix = 1;
*/
public Builder clearSuffix() {
suffix_ = 0L;
onChanged();
return this;
}
private long offset_ ;
/**
*
* The binlog offset in a file.
*
*
* int64 offset = 2;
*/
public long getOffset() {
return offset_;
}
/**
*
* The binlog offset in a file.
*
*
* int64 offset = 2;
*/
public Builder setOffset(long value) {
offset_ = value;
onChanged();
return this;
}
/**
*
* The binlog offset in a file.
*
*
* int64 offset = 2;
*/
public Builder clearOffset() {
offset_ = 0L;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:binlog.Pos)
}
// @@protoc_insertion_point(class_scope:binlog.Pos)
private static final binlog.PumpOuterClass.Pos DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new binlog.PumpOuterClass.Pos();
}
public static binlog.PumpOuterClass.Pos getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Pos parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Pos(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public binlog.PumpOuterClass.Pos getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MetaOrBuilder extends
// @@protoc_insertion_point(interface_extends:binlog.Meta)
com.google.protobuf.MessageOrBuilder {
/**
*
* The binlog's start ts, used in Prewrite, Commit and Rollback type binlog.
*
*
* int64 startTs = 1;
*/
long getStartTs();
/**
*
* The binlog's commit ts, used only in Commit type binlog.
*
*
* int64 commitTs = 2;
*/
long getCommitTs();
}
/**
*
* Meta saves the binlog's meta information.
*
*
* Protobuf type {@code binlog.Meta}
*/
public static final class Meta extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:binlog.Meta)
MetaOrBuilder {
private static final long serialVersionUID = 0L;
// Use Meta.newBuilder() to construct.
private Meta(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Meta() {
startTs_ = 0L;
commitTs_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Meta(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
startTs_ = input.readInt64();
break;
}
case 16: {
commitTs_ = 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).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return binlog.PumpOuterClass.internal_static_binlog_Meta_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return binlog.PumpOuterClass.internal_static_binlog_Meta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
binlog.PumpOuterClass.Meta.class, binlog.PumpOuterClass.Meta.Builder.class);
}
public static final int STARTTS_FIELD_NUMBER = 1;
private long startTs_;
/**
*
* The binlog's start ts, used in Prewrite, Commit and Rollback type binlog.
*
*
* int64 startTs = 1;
*/
public long getStartTs() {
return startTs_;
}
public static final int COMMITTS_FIELD_NUMBER = 2;
private long commitTs_;
/**
*
* The binlog's commit ts, used only in Commit type binlog.
*
*
* int64 commitTs = 2;
*/
public long getCommitTs() {
return commitTs_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (startTs_ != 0L) {
output.writeInt64(1, startTs_);
}
if (commitTs_ != 0L) {
output.writeInt64(2, commitTs_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (startTs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, startTs_);
}
if (commitTs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, commitTs_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof binlog.PumpOuterClass.Meta)) {
return super.equals(obj);
}
binlog.PumpOuterClass.Meta other = (binlog.PumpOuterClass.Meta) obj;
boolean result = true;
result = result && (getStartTs()
== other.getStartTs());
result = result && (getCommitTs()
== other.getCommitTs());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + STARTTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartTs());
hash = (37 * hash) + COMMITTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCommitTs());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static binlog.PumpOuterClass.Meta parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static binlog.PumpOuterClass.Meta parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static binlog.PumpOuterClass.Meta parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static binlog.PumpOuterClass.Meta parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static binlog.PumpOuterClass.Meta parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static binlog.PumpOuterClass.Meta parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static binlog.PumpOuterClass.Meta parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static binlog.PumpOuterClass.Meta parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static binlog.PumpOuterClass.Meta parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static binlog.PumpOuterClass.Meta parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static binlog.PumpOuterClass.Meta parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static binlog.PumpOuterClass.Meta parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(binlog.PumpOuterClass.Meta prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Meta saves the binlog's meta information.
*
*
* Protobuf type {@code binlog.Meta}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:binlog.Meta)
binlog.PumpOuterClass.MetaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return binlog.PumpOuterClass.internal_static_binlog_Meta_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return binlog.PumpOuterClass.internal_static_binlog_Meta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
binlog.PumpOuterClass.Meta.class, binlog.PumpOuterClass.Meta.Builder.class);
}
// Construct using binlog.PumpOuterClass.Meta.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
startTs_ = 0L;
commitTs_ = 0L;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return binlog.PumpOuterClass.internal_static_binlog_Meta_descriptor;
}
public binlog.PumpOuterClass.Meta getDefaultInstanceForType() {
return binlog.PumpOuterClass.Meta.getDefaultInstance();
}
public binlog.PumpOuterClass.Meta build() {
binlog.PumpOuterClass.Meta result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public binlog.PumpOuterClass.Meta buildPartial() {
binlog.PumpOuterClass.Meta result = new binlog.PumpOuterClass.Meta(this);
result.startTs_ = startTs_;
result.commitTs_ = commitTs_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof binlog.PumpOuterClass.Meta) {
return mergeFrom((binlog.PumpOuterClass.Meta)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(binlog.PumpOuterClass.Meta other) {
if (other == binlog.PumpOuterClass.Meta.getDefaultInstance()) return this;
if (other.getStartTs() != 0L) {
setStartTs(other.getStartTs());
}
if (other.getCommitTs() != 0L) {
setCommitTs(other.getCommitTs());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
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 {
binlog.PumpOuterClass.Meta parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (binlog.PumpOuterClass.Meta) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long startTs_ ;
/**
*
* The binlog's start ts, used in Prewrite, Commit and Rollback type binlog.
*
*
* int64 startTs = 1;
*/
public long getStartTs() {
return startTs_;
}
/**
*
* The binlog's start ts, used in Prewrite, Commit and Rollback type binlog.
*
*
* int64 startTs = 1;
*/
public Builder setStartTs(long value) {
startTs_ = value;
onChanged();
return this;
}
/**
*
* The binlog's start ts, used in Prewrite, Commit and Rollback type binlog.
*
*
* int64 startTs = 1;
*/
public Builder clearStartTs() {
startTs_ = 0L;
onChanged();
return this;
}
private long commitTs_ ;
/**
*
* The binlog's commit ts, used only in Commit type binlog.
*
*
* int64 commitTs = 2;
*/
public long getCommitTs() {
return commitTs_;
}
/**
*
* The binlog's commit ts, used only in Commit type binlog.
*
*
* int64 commitTs = 2;
*/
public Builder setCommitTs(long value) {
commitTs_ = value;
onChanged();
return this;
}
/**
*
* The binlog's commit ts, used only in Commit type binlog.
*
*
* int64 commitTs = 2;
*/
public Builder clearCommitTs() {
commitTs_ = 0L;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:binlog.Meta)
}
// @@protoc_insertion_point(class_scope:binlog.Meta)
private static final binlog.PumpOuterClass.Meta DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new binlog.PumpOuterClass.Meta();
}
public static binlog.PumpOuterClass.Meta getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Meta parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Meta(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public binlog.PumpOuterClass.Meta getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EntityOrBuilder extends
// @@protoc_insertion_point(interface_extends:binlog.Entity)
com.google.protobuf.MessageOrBuilder {
/**
*
* The position of the binlog entity.
*
*
* .binlog.Pos pos = 1 [(.gogoproto.nullable) = false];
*/
boolean hasPos();
/**
*
* The position of the binlog entity.
*
*
* .binlog.Pos pos = 1 [(.gogoproto.nullable) = false];
*/
binlog.PumpOuterClass.Pos getPos();
/**
*
* The position of the binlog entity.
*
*
* .binlog.Pos pos = 1 [(.gogoproto.nullable) = false];
*/
binlog.PumpOuterClass.PosOrBuilder getPosOrBuilder();
/**
*
* The payload of binlog entity.
*
*
* bytes payload = 2;
*/
com.google.protobuf.ByteString getPayload();
/**
*
* checksum of binlog payload.
*
*
* bytes checksum = 3;
*/
com.google.protobuf.ByteString getChecksum();
/**
*
* The meta information of the binlog entity.
*
*
* .binlog.Meta meta = 4 [(.gogoproto.nullable) = false];
*/
boolean hasMeta();
/**
*
* The meta information of the binlog entity.
*
*
* .binlog.Meta meta = 4 [(.gogoproto.nullable) = false];
*/
binlog.PumpOuterClass.Meta getMeta();
/**
*
* The meta information of the binlog entity.
*
*
* .binlog.Meta meta = 4 [(.gogoproto.nullable) = false];
*/
binlog.PumpOuterClass.MetaOrBuilder getMetaOrBuilder();
}
/**
* Protobuf type {@code binlog.Entity}
*/
public static final class Entity extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:binlog.Entity)
EntityOrBuilder {
private static final long serialVersionUID = 0L;
// Use Entity.newBuilder() to construct.
private Entity(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Entity() {
payload_ = com.google.protobuf.ByteString.EMPTY;
checksum_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Entity(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
binlog.PumpOuterClass.Pos.Builder subBuilder = null;
if (pos_ != null) {
subBuilder = pos_.toBuilder();
}
pos_ = input.readMessage(binlog.PumpOuterClass.Pos.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pos_);
pos_ = subBuilder.buildPartial();
}
break;
}
case 18: {
payload_ = input.readBytes();
break;
}
case 26: {
checksum_ = input.readBytes();
break;
}
case 34: {
binlog.PumpOuterClass.Meta.Builder subBuilder = null;
if (meta_ != null) {
subBuilder = meta_.toBuilder();
}
meta_ = input.readMessage(binlog.PumpOuterClass.Meta.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(meta_);
meta_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return binlog.PumpOuterClass.internal_static_binlog_Entity_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return binlog.PumpOuterClass.internal_static_binlog_Entity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
binlog.PumpOuterClass.Entity.class, binlog.PumpOuterClass.Entity.Builder.class);
}
public static final int POS_FIELD_NUMBER = 1;
private binlog.PumpOuterClass.Pos pos_;
/**
*
* The position of the binlog entity.
*
*
* .binlog.Pos pos = 1 [(.gogoproto.nullable) = false];
*/
public boolean hasPos() {
return pos_ != null;
}
/**
*
* The position of the binlog entity.
*
*
* .binlog.Pos pos = 1 [(.gogoproto.nullable) = false];
*/
public binlog.PumpOuterClass.Pos getPos() {
return pos_ == null ? binlog.PumpOuterClass.Pos.getDefaultInstance() : pos_;
}
/**
*
* The position of the binlog entity.
*
*
* .binlog.Pos pos = 1 [(.gogoproto.nullable) = false];
*/
public binlog.PumpOuterClass.PosOrBuilder getPosOrBuilder() {
return getPos();
}
public static final int PAYLOAD_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString payload_;
/**
*
* The payload of binlog entity.
*
*
* bytes payload = 2;
*/
public com.google.protobuf.ByteString getPayload() {
return payload_;
}
public static final int CHECKSUM_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString checksum_;
/**
*
* checksum of binlog payload.
*
*
* bytes checksum = 3;
*/
public com.google.protobuf.ByteString getChecksum() {
return checksum_;
}
public static final int META_FIELD_NUMBER = 4;
private binlog.PumpOuterClass.Meta meta_;
/**
*
* The meta information of the binlog entity.
*
*
* .binlog.Meta meta = 4 [(.gogoproto.nullable) = false];
*/
public boolean hasMeta() {
return meta_ != null;
}
/**
*
* The meta information of the binlog entity.
*
*
* .binlog.Meta meta = 4 [(.gogoproto.nullable) = false];
*/
public binlog.PumpOuterClass.Meta getMeta() {
return meta_ == null ? binlog.PumpOuterClass.Meta.getDefaultInstance() : meta_;
}
/**
*
* The meta information of the binlog entity.
*
*
* .binlog.Meta meta = 4 [(.gogoproto.nullable) = false];
*/
public binlog.PumpOuterClass.MetaOrBuilder getMetaOrBuilder() {
return getMeta();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (pos_ != null) {
output.writeMessage(1, getPos());
}
if (!payload_.isEmpty()) {
output.writeBytes(2, payload_);
}
if (!checksum_.isEmpty()) {
output.writeBytes(3, checksum_);
}
if (meta_ != null) {
output.writeMessage(4, getMeta());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (pos_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getPos());
}
if (!payload_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, payload_);
}
if (!checksum_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, checksum_);
}
if (meta_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getMeta());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof binlog.PumpOuterClass.Entity)) {
return super.equals(obj);
}
binlog.PumpOuterClass.Entity other = (binlog.PumpOuterClass.Entity) obj;
boolean result = true;
result = result && (hasPos() == other.hasPos());
if (hasPos()) {
result = result && getPos()
.equals(other.getPos());
}
result = result && getPayload()
.equals(other.getPayload());
result = result && getChecksum()
.equals(other.getChecksum());
result = result && (hasMeta() == other.hasMeta());
if (hasMeta()) {
result = result && getMeta()
.equals(other.getMeta());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasPos()) {
hash = (37 * hash) + POS_FIELD_NUMBER;
hash = (53 * hash) + getPos().hashCode();
}
hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
hash = (53 * hash) + getPayload().hashCode();
hash = (37 * hash) + CHECKSUM_FIELD_NUMBER;
hash = (53 * hash) + getChecksum().hashCode();
if (hasMeta()) {
hash = (37 * hash) + META_FIELD_NUMBER;
hash = (53 * hash) + getMeta().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static binlog.PumpOuterClass.Entity parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static binlog.PumpOuterClass.Entity parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static binlog.PumpOuterClass.Entity parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static binlog.PumpOuterClass.Entity parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static binlog.PumpOuterClass.Entity parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static binlog.PumpOuterClass.Entity parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static binlog.PumpOuterClass.Entity parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static binlog.PumpOuterClass.Entity parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static binlog.PumpOuterClass.Entity parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static binlog.PumpOuterClass.Entity parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static binlog.PumpOuterClass.Entity parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static binlog.PumpOuterClass.Entity parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(binlog.PumpOuterClass.Entity prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code binlog.Entity}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:binlog.Entity)
binlog.PumpOuterClass.EntityOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return binlog.PumpOuterClass.internal_static_binlog_Entity_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return binlog.PumpOuterClass.internal_static_binlog_Entity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
binlog.PumpOuterClass.Entity.class, binlog.PumpOuterClass.Entity.Builder.class);
}
// Construct using binlog.PumpOuterClass.Entity.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (posBuilder_ == null) {
pos_ = null;
} else {
pos_ = null;
posBuilder_ = null;
}
payload_ = com.google.protobuf.ByteString.EMPTY;
checksum_ = com.google.protobuf.ByteString.EMPTY;
if (metaBuilder_ == null) {
meta_ = null;
} else {
meta_ = null;
metaBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return binlog.PumpOuterClass.internal_static_binlog_Entity_descriptor;
}
public binlog.PumpOuterClass.Entity getDefaultInstanceForType() {
return binlog.PumpOuterClass.Entity.getDefaultInstance();
}
public binlog.PumpOuterClass.Entity build() {
binlog.PumpOuterClass.Entity result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public binlog.PumpOuterClass.Entity buildPartial() {
binlog.PumpOuterClass.Entity result = new binlog.PumpOuterClass.Entity(this);
if (posBuilder_ == null) {
result.pos_ = pos_;
} else {
result.pos_ = posBuilder_.build();
}
result.payload_ = payload_;
result.checksum_ = checksum_;
if (metaBuilder_ == null) {
result.meta_ = meta_;
} else {
result.meta_ = metaBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof binlog.PumpOuterClass.Entity) {
return mergeFrom((binlog.PumpOuterClass.Entity)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(binlog.PumpOuterClass.Entity other) {
if (other == binlog.PumpOuterClass.Entity.getDefaultInstance()) return this;
if (other.hasPos()) {
mergePos(other.getPos());
}
if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) {
setPayload(other.getPayload());
}
if (other.getChecksum() != com.google.protobuf.ByteString.EMPTY) {
setChecksum(other.getChecksum());
}
if (other.hasMeta()) {
mergeMeta(other.getMeta());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
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 {
binlog.PumpOuterClass.Entity parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (binlog.PumpOuterClass.Entity) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private binlog.PumpOuterClass.Pos pos_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
binlog.PumpOuterClass.Pos, binlog.PumpOuterClass.Pos.Builder, binlog.PumpOuterClass.PosOrBuilder> posBuilder_;
/**
*
* The position of the binlog entity.
*
*
* .binlog.Pos pos = 1 [(.gogoproto.nullable) = false];
*/
public boolean hasPos() {
return posBuilder_ != null || pos_ != null;
}
/**
*
* The position of the binlog entity.
*
*
* .binlog.Pos pos = 1 [(.gogoproto.nullable) = false];
*/
public binlog.PumpOuterClass.Pos getPos() {
if (posBuilder_ == null) {
return pos_ == null ? binlog.PumpOuterClass.Pos.getDefaultInstance() : pos_;
} else {
return posBuilder_.getMessage();
}
}
/**
*
* The position of the binlog entity.
*
*
* .binlog.Pos pos = 1 [(.gogoproto.nullable) = false];
*/
public Builder setPos(binlog.PumpOuterClass.Pos value) {
if (posBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pos_ = value;
onChanged();
} else {
posBuilder_.setMessage(value);
}
return this;
}
/**
*
* The position of the binlog entity.
*
*
* .binlog.Pos pos = 1 [(.gogoproto.nullable) = false];
*/
public Builder setPos(
binlog.PumpOuterClass.Pos.Builder builderForValue) {
if (posBuilder_ == null) {
pos_ = builderForValue.build();
onChanged();
} else {
posBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The position of the binlog entity.
*
*
* .binlog.Pos pos = 1 [(.gogoproto.nullable) = false];
*/
public Builder mergePos(binlog.PumpOuterClass.Pos value) {
if (posBuilder_ == null) {
if (pos_ != null) {
pos_ =
binlog.PumpOuterClass.Pos.newBuilder(pos_).mergeFrom(value).buildPartial();
} else {
pos_ = value;
}
onChanged();
} else {
posBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The position of the binlog entity.
*
*
* .binlog.Pos pos = 1 [(.gogoproto.nullable) = false];
*/
public Builder clearPos() {
if (posBuilder_ == null) {
pos_ = null;
onChanged();
} else {
pos_ = null;
posBuilder_ = null;
}
return this;
}
/**
*
* The position of the binlog entity.
*
*
* .binlog.Pos pos = 1 [(.gogoproto.nullable) = false];
*/
public binlog.PumpOuterClass.Pos.Builder getPosBuilder() {
onChanged();
return getPosFieldBuilder().getBuilder();
}
/**
*
* The position of the binlog entity.
*
*
* .binlog.Pos pos = 1 [(.gogoproto.nullable) = false];
*/
public binlog.PumpOuterClass.PosOrBuilder getPosOrBuilder() {
if (posBuilder_ != null) {
return posBuilder_.getMessageOrBuilder();
} else {
return pos_ == null ?
binlog.PumpOuterClass.Pos.getDefaultInstance() : pos_;
}
}
/**
*
* The position of the binlog entity.
*
*
* .binlog.Pos pos = 1 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
binlog.PumpOuterClass.Pos, binlog.PumpOuterClass.Pos.Builder, binlog.PumpOuterClass.PosOrBuilder>
getPosFieldBuilder() {
if (posBuilder_ == null) {
posBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
binlog.PumpOuterClass.Pos, binlog.PumpOuterClass.Pos.Builder, binlog.PumpOuterClass.PosOrBuilder>(
getPos(),
getParentForChildren(),
isClean());
pos_ = null;
}
return posBuilder_;
}
private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* The payload of binlog entity.
*
*
* bytes payload = 2;
*/
public com.google.protobuf.ByteString getPayload() {
return payload_;
}
/**
*
* The payload of binlog entity.
*
*
* bytes payload = 2;
*/
public Builder setPayload(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
payload_ = value;
onChanged();
return this;
}
/**
*
* The payload of binlog entity.
*
*
* bytes payload = 2;
*/
public Builder clearPayload() {
payload_ = getDefaultInstance().getPayload();
onChanged();
return this;
}
private com.google.protobuf.ByteString checksum_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* checksum of binlog payload.
*
*
* bytes checksum = 3;
*/
public com.google.protobuf.ByteString getChecksum() {
return checksum_;
}
/**
*
* checksum of binlog payload.
*
*
* bytes checksum = 3;
*/
public Builder setChecksum(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checksum_ = value;
onChanged();
return this;
}
/**
*
* checksum of binlog payload.
*
*
* bytes checksum = 3;
*/
public Builder clearChecksum() {
checksum_ = getDefaultInstance().getChecksum();
onChanged();
return this;
}
private binlog.PumpOuterClass.Meta meta_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
binlog.PumpOuterClass.Meta, binlog.PumpOuterClass.Meta.Builder, binlog.PumpOuterClass.MetaOrBuilder> metaBuilder_;
/**
*
* The meta information of the binlog entity.
*
*
* .binlog.Meta meta = 4 [(.gogoproto.nullable) = false];
*/
public boolean hasMeta() {
return metaBuilder_ != null || meta_ != null;
}
/**
*
* The meta information of the binlog entity.
*
*
* .binlog.Meta meta = 4 [(.gogoproto.nullable) = false];
*/
public binlog.PumpOuterClass.Meta getMeta() {
if (metaBuilder_ == null) {
return meta_ == null ? binlog.PumpOuterClass.Meta.getDefaultInstance() : meta_;
} else {
return metaBuilder_.getMessage();
}
}
/**
*
* The meta information of the binlog entity.
*
*
* .binlog.Meta meta = 4 [(.gogoproto.nullable) = false];
*/
public Builder setMeta(binlog.PumpOuterClass.Meta value) {
if (metaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
meta_ = value;
onChanged();
} else {
metaBuilder_.setMessage(value);
}
return this;
}
/**
*
* The meta information of the binlog entity.
*
*
* .binlog.Meta meta = 4 [(.gogoproto.nullable) = false];
*/
public Builder setMeta(
binlog.PumpOuterClass.Meta.Builder builderForValue) {
if (metaBuilder_ == null) {
meta_ = builderForValue.build();
onChanged();
} else {
metaBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The meta information of the binlog entity.
*
*
* .binlog.Meta meta = 4 [(.gogoproto.nullable) = false];
*/
public Builder mergeMeta(binlog.PumpOuterClass.Meta value) {
if (metaBuilder_ == null) {
if (meta_ != null) {
meta_ =
binlog.PumpOuterClass.Meta.newBuilder(meta_).mergeFrom(value).buildPartial();
} else {
meta_ = value;
}
onChanged();
} else {
metaBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The meta information of the binlog entity.
*
*
* .binlog.Meta meta = 4 [(.gogoproto.nullable) = false];
*/
public Builder clearMeta() {
if (metaBuilder_ == null) {
meta_ = null;
onChanged();
} else {
meta_ = null;
metaBuilder_ = null;
}
return this;
}
/**
*
* The meta information of the binlog entity.
*
*
* .binlog.Meta meta = 4 [(.gogoproto.nullable) = false];
*/
public binlog.PumpOuterClass.Meta.Builder getMetaBuilder() {
onChanged();
return getMetaFieldBuilder().getBuilder();
}
/**
*
* The meta information of the binlog entity.
*
*
* .binlog.Meta meta = 4 [(.gogoproto.nullable) = false];
*/
public binlog.PumpOuterClass.MetaOrBuilder getMetaOrBuilder() {
if (metaBuilder_ != null) {
return metaBuilder_.getMessageOrBuilder();
} else {
return meta_ == null ?
binlog.PumpOuterClass.Meta.getDefaultInstance() : meta_;
}
}
/**
*
* The meta information of the binlog entity.
*
*
* .binlog.Meta meta = 4 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
binlog.PumpOuterClass.Meta, binlog.PumpOuterClass.Meta.Builder, binlog.PumpOuterClass.MetaOrBuilder>
getMetaFieldBuilder() {
if (metaBuilder_ == null) {
metaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
binlog.PumpOuterClass.Meta, binlog.PumpOuterClass.Meta.Builder, binlog.PumpOuterClass.MetaOrBuilder>(
getMeta(),
getParentForChildren(),
isClean());
meta_ = null;
}
return metaBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:binlog.Entity)
}
// @@protoc_insertion_point(class_scope:binlog.Entity)
private static final binlog.PumpOuterClass.Entity DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new binlog.PumpOuterClass.Entity();
}
public static binlog.PumpOuterClass.Entity getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Entity parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Entity(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public binlog.PumpOuterClass.Entity getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_binlog_WriteBinlogReq_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_binlog_WriteBinlogReq_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_binlog_WriteBinlogResp_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_binlog_WriteBinlogResp_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_binlog_PullBinlogReq_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_binlog_PullBinlogReq_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_binlog_PullBinlogResp_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_binlog_PullBinlogResp_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_binlog_Pos_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_binlog_Pos_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_binlog_Meta_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_binlog_Meta_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_binlog_Entity_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_binlog_Entity_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\021binlog/pump.proto\022\006binlog\032\024gogoproto/g" +
"ogo.proto\"4\n\016WriteBinlogReq\022\021\n\tclusterID" +
"\030\001 \001(\004\022\017\n\007payload\030\002 \001(\014\"!\n\017WriteBinlogRe" +
"sp\022\016\n\006errmsg\030\001 \001(\t\"H\n\rPullBinlogReq\022\021\n\tc" +
"lusterID\030\001 \001(\004\022$\n\tstartFrom\030\002 \001(\0132\013.binl" +
"og.PosB\004\310\336\037\000\"6\n\016PullBinlogResp\022$\n\006entity" +
"\030\001 \001(\0132\016.binlog.EntityB\004\310\336\037\000\"%\n\003Pos\022\016\n\006s" +
"uffix\030\001 \001(\004\022\016\n\006offset\030\002 \001(\003\")\n\004Meta\022\017\n\007s" +
"tartTs\030\001 \001(\003\022\020\n\010commitTs\030\002 \001(\003\"m\n\006Entity" +
"\022\036\n\003pos\030\001 \001(\0132\013.binlog.PosB\004\310\336\037\000\022\017\n\007payl" +
"oad\030\002 \001(\014\022\020\n\010checksum\030\003 \001(\014\022 \n\004meta\030\004 \001(" +
"\0132\014.binlog.MetaB\004\310\336\037\0002\212\001\n\004Pump\022@\n\013WriteB" +
"inlog\022\026.binlog.WriteBinlogReq\032\027.binlog.W" +
"riteBinlogResp\"\000\022@\n\013PullBinlogs\022\025.binlog" +
".PullBinlogReq\032\026.binlog.PullBinlogResp\"\000" +
"0\001B\014\310\342\036\001\320\342\036\001\340\342\036\001b\006proto3"
};
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;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.GoGoProtos.getDescriptor(),
}, assigner);
internal_static_binlog_WriteBinlogReq_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_binlog_WriteBinlogReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_binlog_WriteBinlogReq_descriptor,
new java.lang.String[] { "ClusterID", "Payload", });
internal_static_binlog_WriteBinlogResp_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_binlog_WriteBinlogResp_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_binlog_WriteBinlogResp_descriptor,
new java.lang.String[] { "Errmsg", });
internal_static_binlog_PullBinlogReq_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_binlog_PullBinlogReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_binlog_PullBinlogReq_descriptor,
new java.lang.String[] { "ClusterID", "StartFrom", });
internal_static_binlog_PullBinlogResp_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_binlog_PullBinlogResp_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_binlog_PullBinlogResp_descriptor,
new java.lang.String[] { "Entity", });
internal_static_binlog_Pos_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_binlog_Pos_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_binlog_Pos_descriptor,
new java.lang.String[] { "Suffix", "Offset", });
internal_static_binlog_Meta_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_binlog_Meta_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_binlog_Meta_descriptor,
new java.lang.String[] { "StartTs", "CommitTs", });
internal_static_binlog_Entity_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_binlog_Entity_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_binlog_Entity_descriptor,
new java.lang.String[] { "Pos", "Payload", "Checksum", "Meta", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.marshalerAll);
registry.add(com.google.protobuf.GoGoProtos.nullable);
registry.add(com.google.protobuf.GoGoProtos.sizerAll);
registry.add(com.google.protobuf.GoGoProtos.unmarshalerAll);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.GoGoProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy