/traces/TwitterTracer/src/ProtoTrace.java
https://code.google.com/p/synoptic/ · Java · 1939 lines · 1573 code · 320 blank · 46 comment · 146 complexity · 4cce7a6379a8e16ab51e527bf76172a8 MD5 · raw file
Large files are truncated click here to view the full file
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: proto_trace.proto
- public final class ProtoTrace {
- private ProtoTrace() {
- }
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- }
- public static final class GenericMessage extends
- com.google.protobuf.GeneratedMessage {
- // Use GenericMessage.newBuilder() to construct.
- private GenericMessage() {
- initFields();
- }
- private GenericMessage(boolean noInit) {
- }
- private static final GenericMessage defaultInstance;
- public static GenericMessage getDefaultInstance() {
- return defaultInstance;
- }
- public GenericMessage getDefaultInstanceForType() {
- return defaultInstance;
- }
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return ProtoTrace.internal_static_trace_GenericMessage_descriptor;
- }
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
- return ProtoTrace.internal_static_trace_GenericMessage_fieldAccessorTable;
- }
- // optional fixed32 src = 1;
- public static final int SRC_FIELD_NUMBER = 1;
- private boolean hasSrc;
- private int src_ = 0;
- public boolean hasSrc() {
- return hasSrc;
- }
- public int getSrc() {
- return src_;
- }
- // optional fixed32 dst = 2;
- public static final int DST_FIELD_NUMBER = 2;
- private boolean hasDst;
- private int dst_ = 0;
- public boolean hasDst() {
- return hasDst;
- }
- public int getDst() {
- return dst_;
- }
- // optional int64 timestamp = 3;
- public static final int TIMESTAMP_FIELD_NUMBER = 3;
- private boolean hasTimestamp;
- private long timestamp_ = 0L;
- public boolean hasTimestamp() {
- return hasTimestamp;
- }
- public long getTimestamp() {
- return timestamp_;
- }
- // optional bytes payload = 4;
- public static final int PAYLOAD_FIELD_NUMBER = 4;
- private boolean hasPayload;
- private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
- public boolean hasPayload() {
- return hasPayload;
- }
- public com.google.protobuf.ByteString getPayload() {
- return payload_;
- }
- private void initFields() {
- }
- public final boolean isInitialized() {
- return true;
- }
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (hasSrc()) {
- output.writeFixed32(1, getSrc());
- }
- if (hasDst()) {
- output.writeFixed32(2, getDst());
- }
- if (hasTimestamp()) {
- output.writeInt64(3, getTimestamp());
- }
- if (hasPayload()) {
- output.writeBytes(4, getPayload());
- }
- getUnknownFields().writeTo(output);
- }
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1)
- return size;
- size = 0;
- if (hasSrc()) {
- size += com.google.protobuf.CodedOutputStream
- .computeFixed32Size(1, getSrc());
- }
- if (hasDst()) {
- size += com.google.protobuf.CodedOutputStream
- .computeFixed32Size(2, getDst());
- }
- if (hasTimestamp()) {
- size += com.google.protobuf.CodedOutputStream.computeInt64Size(
- 3, getTimestamp());
- }
- if (hasPayload()) {
- size += com.google.protobuf.CodedOutputStream.computeBytesSize(
- 4, getPayload());
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
- public static ProtoTrace.GenericMessage parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static ProtoTrace.GenericMessage parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static ProtoTrace.GenericMessage parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static ProtoTrace.GenericMessage parseFrom(byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static ProtoTrace.GenericMessage parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static ProtoTrace.GenericMessage parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static ProtoTrace.GenericMessage parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static ProtoTrace.GenericMessage 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 ProtoTrace.GenericMessage parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static ProtoTrace.GenericMessage 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(ProtoTrace.GenericMessage prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return newBuilder(this);
- }
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> {
- private ProtoTrace.GenericMessage result;
- // Construct using ProtoTrace.GenericMessage.newBuilder()
- private Builder() {
- }
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new ProtoTrace.GenericMessage();
- return builder;
- }
- protected ProtoTrace.GenericMessage internalGetResult() {
- return result;
- }
- public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
- }
- result = new ProtoTrace.GenericMessage();
- return this;
- }
- public Builder clone() {
- return create().mergeFrom(result);
- }
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return ProtoTrace.GenericMessage.getDescriptor();
- }
- public ProtoTrace.GenericMessage getDefaultInstanceForType() {
- return ProtoTrace.GenericMessage.getDefaultInstance();
- }
- public boolean isInitialized() {
- return result.isInitialized();
- }
- public ProtoTrace.GenericMessage build() {
- if (result != null && !isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return buildPartial();
- }
- private ProtoTrace.GenericMessage buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
- throw newUninitializedMessageException(result)
- .asInvalidProtocolBufferException();
- }
- return buildPartial();
- }
- public ProtoTrace.GenericMessage buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
- }
- ProtoTrace.GenericMessage returnMe = result;
- result = null;
- return returnMe;
- }
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof ProtoTrace.GenericMessage) {
- return mergeFrom((ProtoTrace.GenericMessage) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
- public Builder mergeFrom(ProtoTrace.GenericMessage other) {
- if (other == ProtoTrace.GenericMessage.getDefaultInstance())
- return this;
- if (other.hasSrc()) {
- setSrc(other.getSrc());
- }
- if (other.hasDst()) {
- setDst(other.getDst());
- }
- if (other.hasTimestamp()) {
- setTimestamp(other.getTimestamp());
- }
- if (other.hasPayload()) {
- setPayload(other.getPayload());
- }
- 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 13: {
- setSrc(input.readFixed32());
- break;
- }
- case 21: {
- setDst(input.readFixed32());
- break;
- }
- case 24: {
- setTimestamp(input.readInt64());
- break;
- }
- case 34: {
- setPayload(input.readBytes());
- break;
- }
- }
- }
- }
- // optional fixed32 src = 1;
- public boolean hasSrc() {
- return result.hasSrc();
- }
- public int getSrc() {
- return result.getSrc();
- }
- public Builder setSrc(int value) {
- result.hasSrc = true;
- result.src_ = value;
- return this;
- }
- public Builder clearSrc() {
- result.hasSrc = false;
- result.src_ = 0;
- return this;
- }
- // optional fixed32 dst = 2;
- public boolean hasDst() {
- return result.hasDst();
- }
- public int getDst() {
- return result.getDst();
- }
- public Builder setDst(int value) {
- result.hasDst = true;
- result.dst_ = value;
- return this;
- }
- public Builder clearDst() {
- result.hasDst = false;
- result.dst_ = 0;
- return this;
- }
- // optional int64 timestamp = 3;
- public boolean hasTimestamp() {
- return result.hasTimestamp();
- }
- public long getTimestamp() {
- return result.getTimestamp();
- }
- public Builder setTimestamp(long value) {
- result.hasTimestamp = true;
- result.timestamp_ = value;
- return this;
- }
- public Builder clearTimestamp() {
- result.hasTimestamp = false;
- result.timestamp_ = 0L;
- return this;
- }
- // optional bytes payload = 4;
- public boolean hasPayload() {
- return result.hasPayload();
- }
- public com.google.protobuf.ByteString getPayload() {
- return result.getPayload();
- }
- public Builder setPayload(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.hasPayload = true;
- result.payload_ = value;
- return this;
- }
- public Builder clearPayload() {
- result.hasPayload = false;
- result.payload_ = getDefaultInstance().getPayload();
- return this;
- }
- // @@protoc_insertion_point(builder_scope:GenericMessage)
- }
- static {
- defaultInstance = new GenericMessage(true);
- ProtoTrace.internalForceInit();
- defaultInstance.initFields();
- }
- // @@protoc_insertion_point(class_scope:trace.GenericMessage)
- }
- public static final class PingPongMessage extends
- com.google.protobuf.GeneratedMessage {
- // Use PingPongMessage.newBuilder() to construct.
- private PingPongMessage() {
- initFields();
- }
- private PingPongMessage(boolean noInit) {
- }
- private static final PingPongMessage defaultInstance;
- public static PingPongMessage getDefaultInstance() {
- return defaultInstance;
- }
- public PingPongMessage getDefaultInstanceForType() {
- return defaultInstance;
- }
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return ProtoTrace.internal_static_trace_PingPongMessage_descriptor;
- }
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
- return ProtoTrace.internal_static_trace_PingPongMessage_fieldAccessorTable;
- }
- // optional fixed32 src = 1;
- public static final int SRC_FIELD_NUMBER = 1;
- private boolean hasSrc;
- private int src_ = 0;
- public boolean hasSrc() {
- return hasSrc;
- }
- public int getSrc() {
- return src_;
- }
- // optional fixed32 dst = 2;
- public static final int DST_FIELD_NUMBER = 2;
- private boolean hasDst;
- private int dst_ = 0;
- public boolean hasDst() {
- return hasDst;
- }
- public int getDst() {
- return dst_;
- }
- // optional int64 timestamp = 3;
- public static final int TIMESTAMP_FIELD_NUMBER = 3;
- private boolean hasTimestamp;
- private long timestamp_ = 0L;
- public boolean hasTimestamp() {
- return hasTimestamp;
- }
- public long getTimestamp() {
- return timestamp_;
- }
- // optional string type = 4;
- public static final int TYPE_FIELD_NUMBER = 4;
- private boolean hasType;
- private java.lang.String type_ = "";
- public boolean hasType() {
- return hasType;
- }
- public java.lang.String getType() {
- return type_;
- }
- private void initFields() {
- }
- public final boolean isInitialized() {
- return true;
- }
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (hasSrc()) {
- output.writeFixed32(1, getSrc());
- }
- if (hasDst()) {
- output.writeFixed32(2, getDst());
- }
- if (hasTimestamp()) {
- output.writeInt64(3, getTimestamp());
- }
- if (hasType()) {
- output.writeString(4, getType());
- }
- getUnknownFields().writeTo(output);
- }
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1)
- return size;
- size = 0;
- if (hasSrc()) {
- size += com.google.protobuf.CodedOutputStream
- .computeFixed32Size(1, getSrc());
- }
- if (hasDst()) {
- size += com.google.protobuf.CodedOutputStream
- .computeFixed32Size(2, getDst());
- }
- if (hasTimestamp()) {
- size += com.google.protobuf.CodedOutputStream.computeInt64Size(
- 3, getTimestamp());
- }
- if (hasType()) {
- size += com.google.protobuf.CodedOutputStream
- .computeStringSize(4, getType());
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
- public static ProtoTrace.PingPongMessage parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static ProtoTrace.PingPongMessage parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static ProtoTrace.PingPongMessage parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static ProtoTrace.PingPongMessage parseFrom(byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static ProtoTrace.PingPongMessage parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static ProtoTrace.PingPongMessage parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static ProtoTrace.PingPongMessage parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static ProtoTrace.PingPongMessage 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 ProtoTrace.PingPongMessage parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static ProtoTrace.PingPongMessage 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(ProtoTrace.PingPongMessage prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return newBuilder(this);
- }
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> {
- private ProtoTrace.PingPongMessage result;
- // Construct using ProtoTrace.PingPongMessage.newBuilder()
- private Builder() {
- }
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new ProtoTrace.PingPongMessage();
- return builder;
- }
- protected ProtoTrace.PingPongMessage internalGetResult() {
- return result;
- }
- public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
- }
- result = new ProtoTrace.PingPongMessage();
- return this;
- }
- public Builder clone() {
- return create().mergeFrom(result);
- }
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return ProtoTrace.PingPongMessage.getDescriptor();
- }
- public ProtoTrace.PingPongMessage getDefaultInstanceForType() {
- return ProtoTrace.PingPongMessage.getDefaultInstance();
- }
- public boolean isInitialized() {
- return result.isInitialized();
- }
- public ProtoTrace.PingPongMessage build() {
- if (result != null && !isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return buildPartial();
- }
- private ProtoTrace.PingPongMessage buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
- throw newUninitializedMessageException(result)
- .asInvalidProtocolBufferException();
- }
- return buildPartial();
- }
- public ProtoTrace.PingPongMessage buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
- }
- ProtoTrace.PingPongMessage returnMe = result;
- result = null;
- return returnMe;
- }
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof ProtoTrace.PingPongMessage) {
- return mergeFrom((ProtoTrace.PingPongMessage) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
- public Builder mergeFrom(ProtoTrace.PingPongMessage other) {
- if (other == ProtoTrace.PingPongMessage.getDefaultInstance())
- return this;
- if (other.hasSrc()) {
- setSrc(other.getSrc());
- }
- if (other.hasDst()) {
- setDst(other.getDst());
- }
- if (other.hasTimestamp()) {
- setTimestamp(other.getTimestamp());
- }
- if (other.hasType()) {
- setType(other.getType());
- }
- 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 13: {
- setSrc(input.readFixed32());
- break;
- }
- case 21: {
- setDst(input.readFixed32());
- break;
- }
- case 24: {
- setTimestamp(input.readInt64());
- break;
- }
- case 34: {
- setType(input.readString());
- break;
- }
- }
- }
- }
- // optional fixed32 src = 1;
- public boolean hasSrc() {
- return result.hasSrc();
- }
- public int getSrc() {
- return result.getSrc();
- }
- public Builder setSrc(int value) {
- result.hasSrc = true;
- result.src_ = value;
- return this;
- }
- public Builder clearSrc() {
- result.hasSrc = false;
- result.src_ = 0;
- return this;
- }
- // optional fixed32 dst = 2;
- public boolean hasDst() {
- return result.hasDst();
- }
- public int getDst() {
- return result.getDst();
- }
- public Builder setDst(int value) {
- result.hasDst = true;
- result.dst_ = value;
- return this;
- }
- public Builder clearDst() {
- result.hasDst = false;
- result.dst_ = 0;
- return this;
- }
- // optional int64 timestamp = 3;
- public boolean hasTimestamp() {
- return result.hasTimestamp();
- }
- public long getTimestamp() {
- return result.getTimestamp();
- }
- public Builder setTimestamp(long value) {
- result.hasTimestamp = true;
- result.timestamp_ = value;
- return this;
- }
- public Builder clearTimestamp() {
- result.hasTimestamp = false;
- result.timestamp_ = 0L;
- return this;
- }
- // optional string type = 4;
- public boolean hasType() {
- return result.hasType();
- }
- public java.lang.String getType() {
- return result.getType();
- }
- public Builder setType(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.hasType = true;
- result.type_ = value;
- return this;
- }
- public Builder clearType() {
- result.hasType = false;
- result.type_ = getDefaultInstance().getType();
- return this;
- }
- // @@protoc_insertion_point(builder_scope:trace.PingPongMessage)
- }
- static {
- defaultInstance = new PingPongMessage(true);
- ProtoTrace.internalForceInit();
- defaultInstance.initFields();
- }
- // @@protoc_insertion_point(class_scope:trace.PingPongMessage)
- }
- public static final class Prepare extends
- com.google.protobuf.GeneratedMessage {
- // Use Prepare.newBuilder() to construct.
- private Prepare() {
- initFields();
- }
- private Prepare(boolean noInit) {
- }
- private static final Prepare defaultInstance;
- public static Prepare getDefaultInstance() {
- return defaultInstance;
- }
- public Prepare getDefaultInstanceForType() {
- return defaultInstance;
- }
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return ProtoTrace.internal_static_trace_Prepare_descriptor;
- }
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
- return ProtoTrace.internal_static_trace_Prepare_fieldAccessorTable;
- }
- // optional int32 num = 1;
- public static final int NUM_FIELD_NUMBER = 1;
- private boolean hasNum;
- private int num_ = 0;
- public boolean hasNum() {
- return hasNum;
- }
- public int getNum() {
- return num_;
- }
- private void initFields() {
- }
- public final boolean isInitialized() {
- return true;
- }
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (hasNum()) {
- output.writeInt32(1, getNum());
- }
- getUnknownFields().writeTo(output);
- }
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1)
- return size;
- size = 0;
- if (hasNum()) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(
- 1, getNum());
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
- public static ProtoTrace.Prepare parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static ProtoTrace.Prepare parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static ProtoTrace.Prepare parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static ProtoTrace.Prepare parseFrom(byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static ProtoTrace.Prepare parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static ProtoTrace.Prepare parseFrom(java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static ProtoTrace.Prepare parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static ProtoTrace.Prepare 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 ProtoTrace.Prepare parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static ProtoTrace.Prepare 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(ProtoTrace.Prepare prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return newBuilder(this);
- }
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> {
- private ProtoTrace.Prepare result;
- // Construct using ProtoTrace.Prepare.newBuilder()
- private Builder() {
- }
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new ProtoTrace.Prepare();
- return builder;
- }
- protected ProtoTrace.Prepare internalGetResult() {
- return result;
- }
- public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
- }
- result = new ProtoTrace.Prepare();
- return this;
- }
- public Builder clone() {
- return create().mergeFrom(result);
- }
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return ProtoTrace.Prepare.getDescriptor();
- }
- public ProtoTrace.Prepare getDefaultInstanceForType() {
- return ProtoTrace.Prepare.getDefaultInstance();
- }
- public boolean isInitialized() {
- return result.isInitialized();
- }
- public ProtoTrace.Prepare build() {
- if (result != null && !isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return buildPartial();
- }
- private ProtoTrace.Prepare buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
- throw newUninitializedMessageException(result)
- .asInvalidProtocolBufferException();
- }
- return buildPartial();
- }
- public ProtoTrace.Prepare buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
- }
- ProtoTrace.Prepare returnMe = result;
- result = null;
- return returnMe;
- }
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof ProtoTrace.Prepare) {
- return mergeFrom((ProtoTrace.Prepare) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
- public Builder mergeFrom(ProtoTrace.Prepare other) {
- if (other == ProtoTrace.Prepare.getDefaultInstance())
- return this;
- if (other.hasNum()) {
- setNum(other.getNum());
- }
- 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: {
- setNum(input.readInt32());
- break;
- }
- }
- }
- }
- // optional int32 num = 1;
- public boolean hasNum() {
- return result.hasNum();
- }
- public int getNum() {
- return result.getNum();
- }
- public Builder setNum(int value) {
- result.hasNum = true;
- result.num_ = value;
- return this;
- }
- public Builder clearNum() {
- result.hasNum = false;
- result.num_ = 0;
- return this;
- }
- // @@protoc_insertion_point(builder_scope:trace.Prepare)
- }
- static {
- defaultInstance = new Prepare(true);
- ProtoTrace.internalForceInit();
- defaultInstance.initFields();
- }
- // @@protoc_insertion_point(class_scope:trace.Prepare)
- }
- public static final class Commit extends
- com.google.protobuf.GeneratedMessage {
- // Use Commit.newBuilder() to construct.
- private Commit() {
- initFields();
- }
- private Commit(boolean noInit) {
- }
- private static final Commit defaultInstance;
- public static Commit getDefaultInstance() {
- return defaultInstance;
- }
- public Commit getDefaultInstanceForType() {
- return defaultInstance;
- }
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return ProtoTrace.internal_static_trace_Commit_descriptor;
- }
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
- return ProtoTrace.internal_static_trace_Commit_fieldAccessorTable;
- }
- // optional int32 num = 1;
- public static final int NUM_FIELD_NUMBER = 1;
- private boolean hasNum;
- private int num_ = 0;
- public boolean hasNum() {
- return hasNum;
- }
- public int getNum() {
- return num_;
- }
- private void initFields() {
- }
- public final boolean isInitialized() {
- return true;
- }
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (hasNum()) {
- output.writeInt32(1, getNum());
- }
- getUnknownFields().writeTo(output);
- }
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1)
- return size;
- size = 0;
- if (hasNum()) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(
- 1, getNum());
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
- public static ProtoTrace.Commit parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static ProtoTrace.Commit parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static ProtoTrace.Commit parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static ProtoTrace.Commit parseFrom(byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static ProtoTrace.Commit parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static ProtoTrace.Commit parseFrom(java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static ProtoTrace.Commit parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static ProtoTrace.Commit 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 ProtoTrace.Commit parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static ProtoTrace.Commit 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(ProtoTrace.Commit prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return newBuilder(this);
- }
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> {
- private ProtoTrace.Commit result;
- // Construct using ProtoTrace.Commit.newBuilder()
- private Builder() {
- }
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new ProtoTrace.Commit();
- return builder;
- }
- protected ProtoTrace.Commit internalGetResult() {
- return result;
- }
- public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
- }
- result = new ProtoTrace.Commit();
- return this;
- }
- public Builder clone() {
- return create().mergeFrom(result);
- }
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return ProtoTrace.Commit.getDescriptor();
- }
- public ProtoTrace.Commit getDefaultInstanceForType() {
- return ProtoTrace.Commit.getDefaultInstance();
- }
- public boolean isInitialized() {
- return result.isInitialized();
- }
- public ProtoTrace.Commit build() {
- if (result != null && !isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return buildPartial();
- }
- private ProtoTrace.Commit buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
- throw newUninitializedMessageException(result)
- .asInvalidProtocolBufferException();
- }
- return buildPartial();
- }
- public ProtoTrace.Commit buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been call…