// Generated by the protocol buffer compiler. DO NOT EDIT! // source: proto/CountRec.proto package tap.sample; public final class Protos { private Protos() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface CountRecOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string word = 1; boolean hasWord(); String getWord(); // required int32 count = 2; boolean hasCount(); int getCount(); } public static final class CountRec extends com.google.protobuf.GeneratedMessage implements CountRecOrBuilder { // Use CountRec.newBuilder() to construct. private CountRec(Builder builder) { super(builder); } private CountRec(boolean noInit) {} private static final CountRec defaultInstance; public static CountRec getDefaultInstance() { return defaultInstance; } public CountRec getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tap.sample.Protos.internal_static_tap_sample_CountRec_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return tap.sample.Protos.internal_static_tap_sample_CountRec_fieldAccessorTable; } private int bitField0_; // required string word = 1; public static final int WORD_FIELD_NUMBER = 1; private java.lang.Object word_; public boolean hasWord() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getWord() { java.lang.Object ref = word_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { word_ = s; } return s; } } private com.google.protobuf.ByteString getWordBytes() { java.lang.Object ref = word_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); word_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int32 count = 2; public static final int COUNT_FIELD_NUMBER = 2; private int count_; public boolean hasCount() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getCount() { return count_; } private void initFields() { word_ = ""; count_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasWord()) { memoizedIsInitialized = 0; return false; } if (!hasCount()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getWordBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, count_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getWordBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, count_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static tap.sample.Protos.CountRec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static tap.sample.Protos.CountRec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static tap.sample.Protos.CountRec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static tap.sample.Protos.CountRec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static tap.sample.Protos.CountRec parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static tap.sample.Protos.CountRec parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static tap.sample.Protos.CountRec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static tap.sample.Protos.CountRec 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 tap.sample.Protos.CountRec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static tap.sample.Protos.CountRec 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(tap.sample.Protos.CountRec prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements tap.sample.Protos.CountRecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tap.sample.Protos.internal_static_tap_sample_CountRec_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return tap.sample.Protos.internal_static_tap_sample_CountRec_fieldAccessorTable; } // Construct using tap.sample.Protos.CountRec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); word_ = ""; bitField0_ = (bitField0_ & ~0x00000001); count_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tap.sample.Protos.CountRec.getDescriptor(); } public tap.sample.Protos.CountRec getDefaultInstanceForType() { return tap.sample.Protos.CountRec.getDefaultInstance(); } public tap.sample.Protos.CountRec build() { tap.sample.Protos.CountRec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private tap.sample.Protos.CountRec buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { tap.sample.Protos.CountRec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public tap.sample.Protos.CountRec buildPartial() { tap.sample.Protos.CountRec result = new tap.sample.Protos.CountRec(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.word_ = word_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.count_ = count_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tap.sample.Protos.CountRec) { return mergeFrom((tap.sample.Protos.CountRec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tap.sample.Protos.CountRec other) { if (other == tap.sample.Protos.CountRec.getDefaultInstance()) return this; if (other.hasWord()) { setWord(other.getWord()); } if (other.hasCount()) { setCount(other.getCount()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasWord()) { return false; } if (!hasCount()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; word_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; count_ = input.readInt32(); break; } } } } private int bitField0_; // required string word = 1; private java.lang.Object word_ = ""; public boolean hasWord() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getWord() { java.lang.Object ref = word_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); word_ = s; return s; } else { return (String) ref; } } public Builder setWord(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; word_ = value; onChanged(); return this; } public Builder clearWord() { bitField0_ = (bitField0_ & ~0x00000001); word_ = getDefaultInstance().getWord(); onChanged(); return this; } void setWord(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; word_ = value; onChanged(); } // required int32 count = 2; private int count_ ; public boolean hasCount() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getCount() { return count_; } public Builder setCount(int value) { bitField0_ |= 0x00000002; count_ = value; onChanged(); return this; } public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000002); count_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:tap.sample.CountRec) } static { defaultInstance = new CountRec(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:tap.sample.CountRec) } private static com.google.protobuf.Descriptors.Descriptor internal_static_tap_sample_CountRec_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_tap_sample_CountRec_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\024proto/CountRec.proto\022\ntap.sample\"\'\n\010Co" + "untRec\022\014\n\004word\030\001 \002(\t\022\r\n\005count\030\002 \002(\005B\010B\006P" + "rotos" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; internal_static_tap_sample_CountRec_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_tap_sample_CountRec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_tap_sample_CountRec_descriptor, new java.lang.String[] { "Word", "Count", }, tap.sample.Protos.CountRec.class, tap.sample.Protos.CountRec.Builder.class); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }