/replicator/src/java/com/continuent/tungsten/replicator/thl/protobuf/TungstenProtos.java
http://tungsten-replicator.googlecode.com/ · Java · 7304 lines · 6548 code · 566 blank · 190 comment · 758 complexity · 8b1b5a89f180cbaf10eb3d1b5d7b198a MD5 · raw file
Large files are truncated click here to view the full file
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: TungstenProtobufMessage
- package com.continuent.tungsten.replicator.thl.protobuf;
- public final class TungstenProtos {
- private TungstenProtos() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- }
- public static final class Header extends
- com.google.protobuf.GeneratedMessage {
- // Use Header.newBuilder() to construct.
- private Header() {
- initFields();
- }
- private Header(boolean noInit) {}
-
- private static final Header defaultInstance;
- public static Header getDefaultInstance() {
- return defaultInstance;
- }
-
- public Header getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.internal_static_TungstenProtobuf_Header_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.internal_static_TungstenProtobuf_Header_fieldAccessorTable;
- }
-
- // required int64 seqno = 1;
- public static final int SEQNO_FIELD_NUMBER = 1;
- private boolean hasSeqno;
- private long seqno_ = 0L;
- public boolean hasSeqno() { return hasSeqno; }
- public long getSeqno() { return seqno_; }
-
- // required int32 fragno = 2;
- public static final int FRAGNO_FIELD_NUMBER = 2;
- private boolean hasFragno;
- private int fragno_ = 0;
- public boolean hasFragno() { return hasFragno; }
- public int getFragno() { return fragno_; }
-
- // required bool lastFrag = 3;
- public static final int LASTFRAG_FIELD_NUMBER = 3;
- private boolean hasLastFrag;
- private boolean lastFrag_ = false;
- public boolean hasLastFrag() { return hasLastFrag; }
- public boolean getLastFrag() { return lastFrag_; }
-
- // required int64 sourceTstamp = 4;
- public static final int SOURCETSTAMP_FIELD_NUMBER = 4;
- private boolean hasSourceTstamp;
- private long sourceTstamp_ = 0L;
- public boolean hasSourceTstamp() { return hasSourceTstamp; }
- public long getSourceTstamp() { return sourceTstamp_; }
-
- // required int64 extractedTstamp = 5;
- public static final int EXTRACTEDTSTAMP_FIELD_NUMBER = 5;
- private boolean hasExtractedTstamp;
- private long extractedTstamp_ = 0L;
- public boolean hasExtractedTstamp() { return hasExtractedTstamp; }
- public long getExtractedTstamp() { return extractedTstamp_; }
-
- // required string sourceId = 6;
- public static final int SOURCEID_FIELD_NUMBER = 6;
- private boolean hasSourceId;
- private java.lang.String sourceId_ = "";
- public boolean hasSourceId() { return hasSourceId; }
- public java.lang.String getSourceId() { return sourceId_; }
-
- // required int64 epochNumber = 7;
- public static final int EPOCHNUMBER_FIELD_NUMBER = 7;
- private boolean hasEpochNumber;
- private long epochNumber_ = 0L;
- public boolean hasEpochNumber() { return hasEpochNumber; }
- public long getEpochNumber() { return epochNumber_; }
-
- // required string eventId = 8;
- public static final int EVENTID_FIELD_NUMBER = 8;
- private boolean hasEventId;
- private java.lang.String eventId_ = "";
- public boolean hasEventId() { return hasEventId; }
- public java.lang.String getEventId() { return eventId_; }
-
- // required string shardId = 9;
- public static final int SHARDID_FIELD_NUMBER = 9;
- private boolean hasShardId;
- private java.lang.String shardId_ = "";
- public boolean hasShardId() { return hasShardId; }
- public java.lang.String getShardId() { return shardId_; }
-
- // required bool filteredEvent = 10;
- public static final int FILTEREDEVENT_FIELD_NUMBER = 10;
- private boolean hasFilteredEvent;
- private boolean filteredEvent_ = false;
- public boolean hasFilteredEvent() { return hasFilteredEvent; }
- public boolean getFilteredEvent() { return filteredEvent_; }
-
- // optional int64 seqnoEnd = 11;
- public static final int SEQNOEND_FIELD_NUMBER = 11;
- private boolean hasSeqnoEnd;
- private long seqnoEnd_ = 0L;
- public boolean hasSeqnoEnd() { return hasSeqnoEnd; }
- public long getSeqnoEnd() { return seqnoEnd_; }
-
- // optional int32 fragnoEnd = 12;
- public static final int FRAGNOEND_FIELD_NUMBER = 12;
- private boolean hasFragnoEnd;
- private int fragnoEnd_ = 0;
- public boolean hasFragnoEnd() { return hasFragnoEnd; }
- public int getFragnoEnd() { return fragnoEnd_; }
-
- private void initFields() {
- }
- public final boolean isInitialized() {
- if (!hasSeqno) return false;
- if (!hasFragno) return false;
- if (!hasLastFrag) return false;
- if (!hasSourceTstamp) return false;
- if (!hasExtractedTstamp) return false;
- if (!hasSourceId) return false;
- if (!hasEpochNumber) return false;
- if (!hasEventId) return false;
- if (!hasShardId) return false;
- if (!hasFilteredEvent) return false;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (hasSeqno()) {
- output.writeInt64(1, getSeqno());
- }
- if (hasFragno()) {
- output.writeInt32(2, getFragno());
- }
- if (hasLastFrag()) {
- output.writeBool(3, getLastFrag());
- }
- if (hasSourceTstamp()) {
- output.writeInt64(4, getSourceTstamp());
- }
- if (hasExtractedTstamp()) {
- output.writeInt64(5, getExtractedTstamp());
- }
- if (hasSourceId()) {
- output.writeString(6, getSourceId());
- }
- if (hasEpochNumber()) {
- output.writeInt64(7, getEpochNumber());
- }
- if (hasEventId()) {
- output.writeString(8, getEventId());
- }
- if (hasShardId()) {
- output.writeString(9, getShardId());
- }
- if (hasFilteredEvent()) {
- output.writeBool(10, getFilteredEvent());
- }
- if (hasSeqnoEnd()) {
- output.writeInt64(11, getSeqnoEnd());
- }
- if (hasFragnoEnd()) {
- output.writeInt32(12, getFragnoEnd());
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasSeqno()) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(1, getSeqno());
- }
- if (hasFragno()) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(2, getFragno());
- }
- if (hasLastFrag()) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(3, getLastFrag());
- }
- if (hasSourceTstamp()) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(4, getSourceTstamp());
- }
- if (hasExtractedTstamp()) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(5, getExtractedTstamp());
- }
- if (hasSourceId()) {
- size += com.google.protobuf.CodedOutputStream
- .computeStringSize(6, getSourceId());
- }
- if (hasEpochNumber()) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(7, getEpochNumber());
- }
- if (hasEventId()) {
- size += com.google.protobuf.CodedOutputStream
- .computeStringSize(8, getEventId());
- }
- if (hasShardId()) {
- size += com.google.protobuf.CodedOutputStream
- .computeStringSize(9, getShardId());
- }
- if (hasFilteredEvent()) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(10, getFilteredEvent());
- }
- if (hasSeqnoEnd()) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(11, getSeqnoEnd());
- }
- if (hasFragnoEnd()) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(12, getFragnoEnd());
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- public static com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
-
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> {
- private com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header result;
-
- // Construct using com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header();
- return builder;
- }
-
- protected com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header internalGetResult() {
- return result;
- }
-
- public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
- }
- result = new com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header();
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(result);
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header.getDescriptor();
- }
-
- public com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header getDefaultInstanceForType() {
- return com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header.getDefaultInstance();
- }
-
- public boolean isInitialized() {
- return result.isInitialized();
- }
- public com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header build() {
- if (result != null && !isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return buildPartial();
- }
-
- private com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return buildPartial();
- }
-
- public com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
- }
- com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header returnMe = result;
- result = null;
- return returnMe;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header) {
- return mergeFrom((com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header other) {
- if (other == com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.Header.getDefaultInstance()) return this;
- if (other.hasSeqno()) {
- setSeqno(other.getSeqno());
- }
- if (other.hasFragno()) {
- setFragno(other.getFragno());
- }
- if (other.hasLastFrag()) {
- setLastFrag(other.getLastFrag());
- }
- if (other.hasSourceTstamp()) {
- setSourceTstamp(other.getSourceTstamp());
- }
- if (other.hasExtractedTstamp()) {
- setExtractedTstamp(other.getExtractedTstamp());
- }
- if (other.hasSourceId()) {
- setSourceId(other.getSourceId());
- }
- if (other.hasEpochNumber()) {
- setEpochNumber(other.getEpochNumber());
- }
- if (other.hasEventId()) {
- setEventId(other.getEventId());
- }
- if (other.hasShardId()) {
- setShardId(other.getShardId());
- }
- if (other.hasFilteredEvent()) {
- setFilteredEvent(other.getFilteredEvent());
- }
- if (other.hasSeqnoEnd()) {
- setSeqnoEnd(other.getSeqnoEnd());
- }
- if (other.hasFragnoEnd()) {
- setFragnoEnd(other.getFragnoEnd());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- this.setUnknownFields(unknownFields.build());
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- return this;
- }
- break;
- }
- case 8: {
- setSeqno(input.readInt64());
- break;
- }
- case 16: {
- setFragno(input.readInt32());
- break;
- }
- case 24: {
- setLastFrag(input.readBool());
- break;
- }
- case 32: {
- setSourceTstamp(input.readInt64());
- break;
- }
- case 40: {
- setExtractedTstamp(input.readInt64());
- break;
- }
- case 50: {
- setSourceId(input.readString());
- break;
- }
- case 56: {
- setEpochNumber(input.readInt64());
- break;
- }
- case 66: {
- setEventId(input.readString());
- break;
- }
- case 74: {
- setShardId(input.readString());
- break;
- }
- case 80: {
- setFilteredEvent(input.readBool());
- break;
- }
- case 88: {
- setSeqnoEnd(input.readInt64());
- break;
- }
- case 96: {
- setFragnoEnd(input.readInt32());
- break;
- }
- }
- }
- }
-
-
- // required int64 seqno = 1;
- public boolean hasSeqno() {
- return result.hasSeqno();
- }
- public long getSeqno() {
- return result.getSeqno();
- }
- public Builder setSeqno(long value) {
- result.hasSeqno = true;
- result.seqno_ = value;
- return this;
- }
- public Builder clearSeqno() {
- result.hasSeqno = false;
- result.seqno_ = 0L;
- return this;
- }
-
- // required int32 fragno = 2;
- public boolean hasFragno() {
- return result.hasFragno();
- }
- public int getFragno() {
- return result.getFragno();
- }
- public Builder setFragno(int value) {
- result.hasFragno = true;
- result.fragno_ = value;
- return this;
- }
- public Builder clearFragno() {
- result.hasFragno = false;
- result.fragno_ = 0;
- return this;
- }
-
- // required bool lastFrag = 3;
- public boolean hasLastFrag() {
- return result.hasLastFrag();
- }
- public boolean getLastFrag() {
- return result.getLastFrag();
- }
- public Builder setLastFrag(boolean value) {
- result.hasLastFrag = true;
- result.lastFrag_ = value;
- return this;
- }
- public Builder clearLastFrag() {
- result.hasLastFrag = false;
- result.lastFrag_ = false;
- return this;
- }
-
- // required int64 sourceTstamp = 4;
- public boolean hasSourceTstamp() {
- return result.hasSourceTstamp();
- }
- public long getSourceTstamp() {
- return result.getSourceTstamp();
- }
- public Builder setSourceTstamp(long value) {
- result.hasSourceTstamp = true;
- result.sourceTstamp_ = value;
- return this;
- }
- public Builder clearSourceTstamp() {
- result.hasSourceTstamp = false;
- result.sourceTstamp_ = 0L;
- return this;
- }
-
- // required int64 extractedTstamp = 5;
- public boolean hasExtractedTstamp() {
- return result.hasExtractedTstamp();
- }
- public long getExtractedTstamp() {
- return result.getExtractedTstamp();
- }
- public Builder setExtractedTstamp(long value) {
- result.hasExtractedTstamp = true;
- result.extractedTstamp_ = value;
- return this;
- }
- public Builder clearExtractedTstamp() {
- result.hasExtractedTstamp = false;
- result.extractedTstamp_ = 0L;
- return this;
- }
-
- // required string sourceId = 6;
- public boolean hasSourceId() {
- return result.hasSourceId();
- }
- public java.lang.String getSourceId() {
- return result.getSourceId();
- }
- public Builder setSourceId(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.hasSourceId = true;
- result.sourceId_ = value;
- return this;
- }
- public Builder clearSourceId() {
- result.hasSourceId = false;
- result.sourceId_ = getDefaultInstance().getSourceId();
- return this;
- }
-
- // required int64 epochNumber = 7;
- public boolean hasEpochNumber() {
- return result.hasEpochNumber();
- }
- public long getEpochNumber() {
- return result.getEpochNumber();
- }
- public Builder setEpochNumber(long value) {
- result.hasEpochNumber = true;
- result.epochNumber_ = value;
- return this;
- }
- public Builder clearEpochNumber() {
- result.hasEpochNumber = false;
- result.epochNumber_ = 0L;
- return this;
- }
-
- // required string eventId = 8;
- public boolean hasEventId() {
- return result.hasEventId();
- }
- public java.lang.String getEventId() {
- return result.getEventId();
- }
- public Builder setEventId(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.hasEventId = true;
- result.eventId_ = value;
- return this;
- }
- public Builder clearEventId() {
- result.hasEventId = false;
- result.eventId_ = getDefaultInstance().getEventId();
- return this;
- }
-
- // required string shardId = 9;
- public boolean hasShardId() {
- return result.hasShardId();
- }
- public java.lang.String getShardId() {
- return result.getShardId();
- }
- public Builder setShardId(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.hasShardId = true;
- result.shardId_ = value;
- return this;
- }
- public Builder clearShardId() {
- result.hasShardId = false;
- result.shardId_ = getDefaultInstance().getShardId();
- return this;
- }
-
- // required bool filteredEvent = 10;
- public boolean hasFilteredEvent() {
- return result.hasFilteredEvent();
- }
- public boolean getFilteredEvent() {
- return result.getFilteredEvent();
- }
- public Builder setFilteredEvent(boolean value) {
- result.hasFilteredEvent = true;
- result.filteredEvent_ = value;
- return this;
- }
- public Builder clearFilteredEvent() {
- result.hasFilteredEvent = false;
- result.filteredEvent_ = false;
- return this;
- }
-
- // optional int64 seqnoEnd = 11;
- public boolean hasSeqnoEnd() {
- return result.hasSeqnoEnd();
- }
- public long getSeqnoEnd() {
- return result.getSeqnoEnd();
- }
- public Builder setSeqnoEnd(long value) {
- result.hasSeqnoEnd = true;
- result.seqnoEnd_ = value;
- return this;
- }
- public Builder clearSeqnoEnd() {
- result.hasSeqnoEnd = false;
- result.seqnoEnd_ = 0L;
- return this;
- }
-
- // optional int32 fragnoEnd = 12;
- public boolean hasFragnoEnd() {
- return result.hasFragnoEnd();
- }
- public int getFragnoEnd() {
- return result.getFragnoEnd();
- }
- public Builder setFragnoEnd(int value) {
- result.hasFragnoEnd = true;
- result.fragnoEnd_ = value;
- return this;
- }
- public Builder clearFragnoEnd() {
- result.hasFragnoEnd = false;
- result.fragnoEnd_ = 0;
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:TungstenProtobuf.Header)
- }
-
- static {
- defaultInstance = new Header(true);
- com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.internalForceInit();
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:TungstenProtobuf.Header)
- }
-
- public static final class ProtobufOneRowChange extends
- com.google.protobuf.GeneratedMessage {
- // Use ProtobufOneRowChange.newBuilder() to construct.
- private ProtobufOneRowChange() {
- initFields();
- }
- private ProtobufOneRowChange(boolean noInit) {}
-
- private static final ProtobufOneRowChange defaultInstance;
- public static ProtobufOneRowChange getDefaultInstance() {
- return defaultInstance;
- }
-
- public ProtobufOneRowChange getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.internal_static_TungstenProtobuf_ProtobufOneRowChange_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.internal_static_TungstenProtobuf_ProtobufOneRowChange_fieldAccessorTable;
- }
-
- public enum ActionType
- implements com.google.protobuf.ProtocolMessageEnum {
- INSERT(0, 1),
- DELETE(1, 2),
- UPDATE(2, 3),
- ;
-
-
- public final int getNumber() { return value; }
-
- public static ActionType valueOf(int value) {
- switch (value) {
- case 1: return INSERT;
- case 2: return DELETE;
- case 3: return UPDATE;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap<ActionType>
- internalGetValueMap() {
- return internalValueMap;
- }
- private static com.google.protobuf.Internal.EnumLiteMap<ActionType>
- internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap<ActionType>() {
- public ActionType findValueByNumber(int number) {
- return ActionType.valueOf(number)
- ; }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
- getValueDescriptor() {
- return getDescriptor().getValues().get(index);
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptor() {
- return com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.getDescriptor().getEnumTypes().get(0);
- }
-
- private static final ActionType[] VALUES = {
- INSERT, DELETE, UPDATE,
- };
- public static ActionType valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
- private final int index;
- private final int value;
- private ActionType(int index, int value) {
- this.index = index;
- this.value = value;
- }
-
- static {
- com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.getDescriptor();
- }
-
- // @@protoc_insertion_point(enum_scope:TungstenProtobuf.ProtobufOneRowChange.ActionType)
- }
-
- public static final class ProtobufColumnSpec extends
- com.google.protobuf.GeneratedMessage {
- // Use ProtobufColumnSpec.newBuilder() to construct.
- private ProtobufColumnSpec() {
- initFields();
- }
- private ProtobufColumnSpec(boolean noInit) {}
-
- private static final ProtobufColumnSpec defaultInstance;
- public static ProtobufColumnSpec getDefaultInstance() {
- return defaultInstance;
- }
-
- public ProtobufColumnSpec getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.internal_static_TungstenProtobuf_ProtobufOneRowChange_ProtobufColumnSpec_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.internal_static_TungstenProtobuf_ProtobufOneRowChange_ProtobufColumnSpec_fieldAccessorTable;
- }
-
- // required int32 index = 1;
- public static final int INDEX_FIELD_NUMBER = 1;
- private boolean hasIndex;
- private int index_ = 0;
- public boolean hasIndex() { return hasIndex; }
- public int getIndex() { return index_; }
-
- // optional string name = 2;
- public static final int NAME_FIELD_NUMBER = 2;
- private boolean hasName;
- private java.lang.String name_ = "";
- public boolean hasName() { return hasName; }
- public java.lang.String getName() { return name_; }
-
- // required int32 type = 3;
- public static final int TYPE_FIELD_NUMBER = 3;
- private boolean hasType;
- private int type_ = 0;
- public boolean hasType() { return hasType; }
- public int getType() { return type_; }
-
- // required bool signed = 4;
- public static final int SIGNED_FIELD_NUMBER = 4;
- private boolean hasSigned;
- private boolean signed_ = false;
- public boolean hasSigned() { return hasSigned; }
- public boolean getSigned() { return signed_; }
-
- // required int32 length = 5;
- public static final int LENGTH_FIELD_NUMBER = 5;
- private boolean hasLength;
- private int length_ = 0;
- public boolean hasLength() { return hasLength; }
- public int getLength() { return length_; }
-
- // required bool notNull = 6;
- public static final int NOTNULL_FIELD_NUMBER = 6;
- private boolean hasNotNull;
- private boolean notNull_ = false;
- public boolean hasNotNull() { return hasNotNull; }
- public boolean getNotNull() { return notNull_; }
-
- private void initFields() {
- }
- public final boolean isInitialized() {
- if (!hasIndex) return false;
- if (!hasType) return false;
- if (!hasSigned) return false;
- if (!hasLength) return false;
- if (!hasNotNull) return false;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (hasIndex()) {
- output.writeInt32(1, getIndex());
- }
- if (hasName()) {
- output.writeString(2, getName());
- }
- if (hasType()) {
- output.writeInt32(3, getType());
- }
- if (hasSigned()) {
- output.writeBool(4, getSigned());
- }
- if (hasLength()) {
- output.writeInt32(5, getLength());
- }
- if (hasNotNull()) {
- output.writeBool(6, getNotNull());
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasIndex()) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(1, getIndex());
- }
- if (hasName()) {
- size += com.google.protobuf.CodedOutputStream
- .computeStringSize(2, getName());
- }
- if (hasType()) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(3, getType());
- }
- if (hasSigned()) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(4, getSigned());
- }
- if (hasLength()) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(5, getLength());
- }
- if (hasNotNull()) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(6, getNotNull());
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- public static com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
-
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> {
- private com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec result;
-
- // Construct using com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec();
- return builder;
- }
-
- protected com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec internalGetResult() {
- return result;
- }
-
- public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
- }
- result = new com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec();
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(result);
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec.getDescriptor();
- }
-
- public com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec getDefaultInstanceForType() {
- return com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec.getDefaultInstance();
- }
-
- public boolean isInitialized() {
- return result.isInitialized();
- }
- public com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec build() {
- if (result != null && !isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return buildPartial();
- }
-
- private com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return buildPartial();
- }
-
- public com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
- }
- com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec returnMe = result;
- result = null;
- return returnMe;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec) {
- return mergeFrom((com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec other) {
- if (other == com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.ProtobufOneRowChange.ProtobufColumnSpec.getDefaultInstance()) return this;
- if (other.hasIndex()) {
- setIndex(other.getIndex());
- }
- if (other.hasName()) {
- setName(other.getName());
- }
- if (other.hasType()) {
- setType(other.getType());
- }
- if (other.hasSigned()) {
- setSigned(other.getSigned());
- }
- if (other.hasLength()) {
- setLength(other.getLength());
- }
- if (other.hasNotNull()) {
- setNotNull(other.getNotNull());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- this.setUnknownFields(unknownFields.build());
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- return this;
- }
- break;
- }
- case 8: {
- setIndex(input.readInt32());
- break;
- }
- case 18: {
- setName(input.readString());
- break;
- }
- case 24: {
- setType(input.readInt32());
- break;
- }
- case 32: {
- setSigned(input.readBool());
- break;
- }
- case 40: {
- setLength(input.readInt32());
- break;
- }
- case 48: {
- setNotNull(input.readBool());
- break;
- }
- }
- }
- }
-
-
- // required int32 index = 1;
- public boolean hasIndex() {
- return result.hasIndex();
- }
- public int getIndex() {
- return result.getIndex();
- }
- public Builder setIndex(int value) {
- result.hasIndex = true;
- result.index_ = value;
- return this;
- }
- public Builder clearIndex() {
- result.hasIndex = false;
- result.index_ = 0;
- return this;
- }
-
- // optional string name = 2;
- public boolean hasName() {
- return result.hasName();
- }
- public java.lang.String getName() {
- return result.getName();
- }
- public Builder setName(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.hasName = true;
- result.name_ = value;
- return this;
- }
- public Builder clearName() {
- result.hasName = false;
- result.name_ = getDefaultInstance().getName();
- return this;
- }
-
- // required int32 type = 3;
- public boolean hasType() {
- return result.hasType();
- }
- public int getType() {
- return result.getType();
- }
- public Builder setType(int value) {
- result.hasType = true;
- result.type_ = value;
- return this;
- }
- public Builder clearType() {
- result.hasType = false;
- result.type_ = 0;
- return this;
- }
-
- // required bool signed = 4;
- public boolean hasSigned() {
- return result.hasSigned();
- }
- public boolean getSigned() {
- return result.getSigned();
- }
- public Builder setSigned(boolean value) {
- result.hasSigned = true;
- result.signed_ = value;
- return this;
- }
- public Builder clearSigned() {
- result.hasSigned = false;
- result.signed_ = false;
- return this;
- }
-
- // required int32 length = 5;
- public boolean hasLength() {
- return result.hasLength();
- }
- public int getLength() {
- return result.getLength();
- }
- public Builder setLength(int value) {
- result.hasLength = true;
- result.length_ = value;
- return this;
- }
- public Builder clearLength() {
- result.hasLength = false;
- result.length_ = 0;
- return this;
- }
-
- // required bool notNull = 6;
- public boolean hasNotNull() {
- return result.hasNotNull();
- }
- public boolean getNotNull() {
- return result.getNotNull();
- }
- public Builder setNotNull(boolean value) {
- result.hasNotNull = true;
- result.notNull_ = value;
- return this;
- }
- public Builder clearNotNull() {
- result.hasNotNull = false;
- result.notNull_ = false;
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:TungstenProtobuf.ProtobufOneRowChange.ProtobufColumnSpec)
- }
-
- static {
- defaultInstance = new ProtobufColumnSpec(true);
- com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.internalForceInit();
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:TungstenProtobuf.ProtobufOneRowChange.ProtobufColumnSpec)
- }
-
- public static final class ProtobufRowValue extends
- com.google.protobuf.GeneratedMessage {
- // Use ProtobufRowValue.newBuilder() to construct.
- private ProtobufRowValue() {
- initFields();
- }
- private ProtobufRowValue(boolean noInit) {}
-
- private static final ProtobufRowValue defaultInstance;
- public static ProtobufRowValue getDefaultInstance() {
- return defaultInstance;
- }
-
- public ProtobufRowValue getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.internal_static_TungstenProtobuf_ProtobufOneRowChange_ProtobufRowValue_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.internal_static_TungstenProtobuf_ProtobufOneRowChange_ProtobufRowValue_fieldAccessorTable;
- }
-
- public static final class ProtobufColumnVal extends
- com.google.protobuf.GeneratedMessage {
- // Use ProtobufColumnVal.newBuilder() to construct.
- private ProtobufColumnVal() {
- initFields();
- }
- private ProtobufColumnVal(boolean noInit) {}
-
- private static final ProtobufColumnVal defaultInstance;
- public static ProtobufColumnVal getDefaultInstance() {
- return defaultInstance;
- }
-
- public ProtobufColumnVal getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.internal_static_TungstenProtobuf_ProtobufOneRowChange_ProtobufRowValue_ProtobufColumnVal_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.continuent.tungsten.replicator.thl.protobuf.TungstenProtos.internal_static_TungstenProtobuf_ProtobufOneRowChange_ProtobufRowValue_ProtobufColumnVal_fieldAccessorTable;
- }
-
- public enum Type
- implements com.google.protobuf.ProtocolMessageEnum {
- INT(0, 1),
- LONG(1, 2),
- FLOAT(2, 3),
- DOUBLE(3, 4),
- STRING(4, 5),
- TIMESTAMP(5, 6),…