All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.adgear.anoa.test.simple.SimpleProtobuf Maven / Gradle / Ivy

There is a newer version: 3.1.2
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: com/adgear/anoa/test/simple/simple_protobuf.proto

package com.adgear.anoa.test.simple;

public final class SimpleProtobuf {
  private SimpleProtobuf() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface SimpleOrBuilder extends
      // @@protoc_insertion_point(interface_extends:com.adgear.anoa.test.simple.Simple)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional sint64 foo = 1;
     *
     * 
     ** field #1 
     * 
*/ boolean hasFoo(); /** * optional sint64 foo = 1; * *
     ** field #1 
     * 
*/ long getFoo(); /** * optional bytes bar = 2; * *
     ** field #2 
     * 
*/ boolean hasBar(); /** * optional bytes bar = 2; * *
     ** field #2 
     * 
*/ com.google.protobuf.ByteString getBar(); /** * optional double baz = 3; * *
     ** field #3 
     * 
*/ boolean hasBaz(); /** * optional double baz = 3; * *
     ** field #3 
     * 
*/ double getBaz(); } /** * Protobuf type {@code com.adgear.anoa.test.simple.Simple} */ public static final class Simple extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:com.adgear.anoa.test.simple.Simple) SimpleOrBuilder { // Use Simple.newBuilder() to construct. private Simple(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Simple() { foo_ = 0L; bar_ = com.google.protobuf.ByteString.EMPTY; baz_ = 0D; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Simple( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; foo_ = input.readSInt64(); break; } case 18: { bitField0_ |= 0x00000002; bar_ = input.readBytes(); break; } case 25: { bitField0_ |= 0x00000004; baz_ = input.readDouble(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.adgear.anoa.test.simple.SimpleProtobuf.internal_static_com_adgear_anoa_test_simple_Simple_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.adgear.anoa.test.simple.SimpleProtobuf.internal_static_com_adgear_anoa_test_simple_Simple_fieldAccessorTable .ensureFieldAccessorsInitialized( com.adgear.anoa.test.simple.SimpleProtobuf.Simple.class, com.adgear.anoa.test.simple.SimpleProtobuf.Simple.Builder.class); } private int bitField0_; public static final int FOO_FIELD_NUMBER = 1; private long foo_; /** * optional sint64 foo = 1; * *
     ** field #1 
     * 
*/ public boolean hasFoo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional sint64 foo = 1; * *
     ** field #1 
     * 
*/ public long getFoo() { return foo_; } public static final int BAR_FIELD_NUMBER = 2; private com.google.protobuf.ByteString bar_; /** * optional bytes bar = 2; * *
     ** field #2 
     * 
*/ public boolean hasBar() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes bar = 2; * *
     ** field #2 
     * 
*/ public com.google.protobuf.ByteString getBar() { return bar_; } public static final int BAZ_FIELD_NUMBER = 3; private double baz_; /** * optional double baz = 3; * *
     ** field #3 
     * 
*/ public boolean hasBaz() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional double baz = 3; * *
     ** field #3 
     * 
*/ public double getBaz() { return baz_; } 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 (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeSInt64(1, foo_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, bar_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeDouble(3, baz_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(1, foo_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, bar_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, baz_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static com.adgear.anoa.test.simple.SimpleProtobuf.Simple parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.adgear.anoa.test.simple.SimpleProtobuf.Simple parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.adgear.anoa.test.simple.SimpleProtobuf.Simple parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.adgear.anoa.test.simple.SimpleProtobuf.Simple parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.adgear.anoa.test.simple.SimpleProtobuf.Simple parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.adgear.anoa.test.simple.SimpleProtobuf.Simple parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.adgear.anoa.test.simple.SimpleProtobuf.Simple parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.adgear.anoa.test.simple.SimpleProtobuf.Simple parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.adgear.anoa.test.simple.SimpleProtobuf.Simple parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.adgear.anoa.test.simple.SimpleProtobuf.Simple parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.adgear.anoa.test.simple.SimpleProtobuf.Simple 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.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code com.adgear.anoa.test.simple.Simple} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:com.adgear.anoa.test.simple.Simple) com.adgear.anoa.test.simple.SimpleProtobuf.SimpleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.adgear.anoa.test.simple.SimpleProtobuf.internal_static_com_adgear_anoa_test_simple_Simple_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.adgear.anoa.test.simple.SimpleProtobuf.internal_static_com_adgear_anoa_test_simple_Simple_fieldAccessorTable .ensureFieldAccessorsInitialized( com.adgear.anoa.test.simple.SimpleProtobuf.Simple.class, com.adgear.anoa.test.simple.SimpleProtobuf.Simple.Builder.class); } // Construct using com.adgear.anoa.test.simple.SimpleProtobuf.Simple.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); foo_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); bar_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); baz_ = 0D; bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.adgear.anoa.test.simple.SimpleProtobuf.internal_static_com_adgear_anoa_test_simple_Simple_descriptor; } public com.adgear.anoa.test.simple.SimpleProtobuf.Simple getDefaultInstanceForType() { return com.adgear.anoa.test.simple.SimpleProtobuf.Simple.getDefaultInstance(); } public com.adgear.anoa.test.simple.SimpleProtobuf.Simple build() { com.adgear.anoa.test.simple.SimpleProtobuf.Simple result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.adgear.anoa.test.simple.SimpleProtobuf.Simple buildPartial() { com.adgear.anoa.test.simple.SimpleProtobuf.Simple result = new com.adgear.anoa.test.simple.SimpleProtobuf.Simple(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.foo_ = foo_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.bar_ = bar_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.baz_ = baz_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.adgear.anoa.test.simple.SimpleProtobuf.Simple) { return mergeFrom((com.adgear.anoa.test.simple.SimpleProtobuf.Simple)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.adgear.anoa.test.simple.SimpleProtobuf.Simple other) { if (other == com.adgear.anoa.test.simple.SimpleProtobuf.Simple.getDefaultInstance()) return this; if (other.hasFoo()) { setFoo(other.getFoo()); } if (other.hasBar()) { setBar(other.getBar()); } if (other.hasBaz()) { setBaz(other.getBaz()); } 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 { com.adgear.anoa.test.simple.SimpleProtobuf.Simple parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.adgear.anoa.test.simple.SimpleProtobuf.Simple) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long foo_ ; /** * optional sint64 foo = 1; * *
       ** field #1 
       * 
*/ public boolean hasFoo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional sint64 foo = 1; * *
       ** field #1 
       * 
*/ public long getFoo() { return foo_; } /** * optional sint64 foo = 1; * *
       ** field #1 
       * 
*/ public Builder setFoo(long value) { bitField0_ |= 0x00000001; foo_ = value; onChanged(); return this; } /** * optional sint64 foo = 1; * *
       ** field #1 
       * 
*/ public Builder clearFoo() { bitField0_ = (bitField0_ & ~0x00000001); foo_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString bar_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes bar = 2; * *
       ** field #2 
       * 
*/ public boolean hasBar() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes bar = 2; * *
       ** field #2 
       * 
*/ public com.google.protobuf.ByteString getBar() { return bar_; } /** * optional bytes bar = 2; * *
       ** field #2 
       * 
*/ public Builder setBar(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; bar_ = value; onChanged(); return this; } /** * optional bytes bar = 2; * *
       ** field #2 
       * 
*/ public Builder clearBar() { bitField0_ = (bitField0_ & ~0x00000002); bar_ = getDefaultInstance().getBar(); onChanged(); return this; } private double baz_ ; /** * optional double baz = 3; * *
       ** field #3 
       * 
*/ public boolean hasBaz() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional double baz = 3; * *
       ** field #3 
       * 
*/ public double getBaz() { return baz_; } /** * optional double baz = 3; * *
       ** field #3 
       * 
*/ public Builder setBaz(double value) { bitField0_ |= 0x00000004; baz_ = value; onChanged(); return this; } /** * optional double baz = 3; * *
       ** field #3 
       * 
*/ public Builder clearBaz() { bitField0_ = (bitField0_ & ~0x00000004); baz_ = 0D; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.adgear.anoa.test.simple.Simple) } // @@protoc_insertion_point(class_scope:com.adgear.anoa.test.simple.Simple) private static final com.adgear.anoa.test.simple.SimpleProtobuf.Simple DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.adgear.anoa.test.simple.SimpleProtobuf.Simple(); } public static com.adgear.anoa.test.simple.SimpleProtobuf.Simple getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Simple parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new Simple(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.adgear.anoa.test.simple.SimpleProtobuf.Simple getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static com.google.protobuf.Descriptors.Descriptor internal_static_com_adgear_anoa_test_simple_Simple_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_adgear_anoa_test_simple_Simple_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n1com/adgear/anoa/test/simple/simple_pro" + "tobuf.proto\022\033com.adgear.anoa.test.simple" + "\"/\n\006Simple\022\013\n\003foo\030\001 \001(\022\022\013\n\003bar\030\002 \001(\014\022\013\n\003" + "baz\030\003 \001(\001" }; 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[] { }, assigner); internal_static_com_adgear_anoa_test_simple_Simple_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_com_adgear_anoa_test_simple_Simple_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_adgear_anoa_test_simple_Simple_descriptor, new java.lang.String[] { "Foo", "Bar", "Baz", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy