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

protobuf_unittest.OuterClassNameTest2OuterClass Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: com/google/protobuf/outer_class_name_test2.proto

package protobuf_unittest;

public final class OuterClassNameTest2OuterClass {
  private OuterClassNameTest2OuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface TestMessage2OrBuilder extends
      // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestMessage2)
      com.google.protobuf.MessageOrBuilder {
  }
  /**
   * Protobuf type {@code protobuf_unittest.TestMessage2}
   */
  public static final class TestMessage2 extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:protobuf_unittest.TestMessage2)
      TestMessage2OrBuilder {
    // Use TestMessage2.newBuilder() to construct.
    private TestMessage2(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private TestMessage2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final TestMessage2 defaultInstance;
    public static TestMessage2 getDefaultInstance() {
      return defaultInstance;
    }

    public TestMessage2 getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private TestMessage2(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      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;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw 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 protobuf_unittest.OuterClassNameTest2OuterClass.internal_static_protobuf_unittest_TestMessage2_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return protobuf_unittest.OuterClassNameTest2OuterClass.internal_static_protobuf_unittest_TestMessage2_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.class, protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.Builder.class);
    }

    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public TestMessage2 parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new TestMessage2(input, extensionRegistry);
      }
    };

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    public interface NestedMessageOrBuilder extends
        // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestMessage2.NestedMessage)
        com.google.protobuf.MessageOrBuilder {
    }
    /**
     * Protobuf type {@code protobuf_unittest.TestMessage2.NestedMessage}
     */
    public static final class NestedMessage extends
        com.google.protobuf.GeneratedMessage implements
        // @@protoc_insertion_point(message_implements:protobuf_unittest.TestMessage2.NestedMessage)
        NestedMessageOrBuilder {
      // Use NestedMessage.newBuilder() to construct.
      private NestedMessage(com.google.protobuf.GeneratedMessage.Builder builder) {
        super(builder);
        this.unknownFields = builder.getUnknownFields();
      }
      private NestedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

      private static final NestedMessage defaultInstance;
      public static NestedMessage getDefaultInstance() {
        return defaultInstance;
      }

      public NestedMessage getDefaultInstanceForType() {
        return defaultInstance;
      }

      private final com.google.protobuf.UnknownFieldSet unknownFields;
      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
          getUnknownFields() {
        return this.unknownFields;
      }
      private NestedMessage(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        initFields();
        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;
              }
            }
          }
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(this);
        } catch (java.io.IOException e) {
          throw 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 protobuf_unittest.OuterClassNameTest2OuterClass.internal_static_protobuf_unittest_TestMessage2_NestedMessage_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return protobuf_unittest.OuterClassNameTest2OuterClass.internal_static_protobuf_unittest_TestMessage2_NestedMessage_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.class, protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.Builder.class);
      }

      public static com.google.protobuf.Parser PARSER =
          new com.google.protobuf.AbstractParser() {
        public NestedMessage parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new NestedMessage(input, extensionRegistry);
        }
      };

      @java.lang.Override
      public com.google.protobuf.Parser getParserForType() {
        return PARSER;
      }

      public interface OuterClassNameTest2OrBuilder extends
          // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestMessage2.NestedMessage.OuterClassNameTest2)
          com.google.protobuf.MessageOrBuilder {
      }
      /**
       * Protobuf type {@code protobuf_unittest.TestMessage2.NestedMessage.OuterClassNameTest2}
       *
       * 
       * This message's name is the same with the default outer class name of this
       * proto file. It's used to test if the compiler can avoid this conflict
       * correctly.
       * 
*/ public static final class OuterClassNameTest2 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestMessage2.NestedMessage.OuterClassNameTest2) OuterClassNameTest2OrBuilder { // Use OuterClassNameTest2.newBuilder() to construct. private OuterClassNameTest2(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OuterClassNameTest2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OuterClassNameTest2 defaultInstance; public static OuterClassNameTest2 getDefaultInstance() { return defaultInstance; } public OuterClassNameTest2 getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OuterClassNameTest2( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw 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 protobuf_unittest.OuterClassNameTest2OuterClass.internal_static_protobuf_unittest_TestMessage2_NestedMessage_OuterClassNameTest2_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.OuterClassNameTest2OuterClass.internal_static_protobuf_unittest_TestMessage2_NestedMessage_OuterClassNameTest2_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2.class, protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OuterClassNameTest2 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OuterClassNameTest2(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private void initFields() { } 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 { getSerializedSize(); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; 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 protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2 parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2 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; } /** * Protobuf type {@code protobuf_unittest.TestMessage2.NestedMessage.OuterClassNameTest2} * *
         * This message's name is the same with the default outer class name of this
         * proto file. It's used to test if the compiler can avoid this conflict
         * correctly.
         * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestMessage2.NestedMessage.OuterClassNameTest2) protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.OuterClassNameTest2OuterClass.internal_static_protobuf_unittest_TestMessage2_NestedMessage_OuterClassNameTest2_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.OuterClassNameTest2OuterClass.internal_static_protobuf_unittest_TestMessage2_NestedMessage_OuterClassNameTest2_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2.class, protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2.Builder.class); } // Construct using protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.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(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.OuterClassNameTest2OuterClass.internal_static_protobuf_unittest_TestMessage2_NestedMessage_OuterClassNameTest2_descriptor; } public protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2 getDefaultInstanceForType() { return protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2.getDefaultInstance(); } public protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2 build() { protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2 buildPartial() { protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2 result = new protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2) { return mergeFrom((protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2 other) { if (other == protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); 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 { protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.OuterClassNameTest2) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestMessage2.NestedMessage.OuterClassNameTest2) } static { defaultInstance = new OuterClassNameTest2(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMessage2.NestedMessage.OuterClassNameTest2) } private void initFields() { } 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 { getSerializedSize(); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; 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 protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage 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; } /** * Protobuf type {@code protobuf_unittest.TestMessage2.NestedMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestMessage2.NestedMessage) protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.OuterClassNameTest2OuterClass.internal_static_protobuf_unittest_TestMessage2_NestedMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.OuterClassNameTest2OuterClass.internal_static_protobuf_unittest_TestMessage2_NestedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.class, protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.Builder.class); } // Construct using protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.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(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.OuterClassNameTest2OuterClass.internal_static_protobuf_unittest_TestMessage2_NestedMessage_descriptor; } public protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage getDefaultInstanceForType() { return protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.getDefaultInstance(); } public protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage build() { protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage buildPartial() { protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage result = new protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage) { return mergeFrom((protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage other) { if (other == protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); 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 { protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.NestedMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestMessage2.NestedMessage) } static { defaultInstance = new NestedMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMessage2.NestedMessage) } private void initFields() { } 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 { getSerializedSize(); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; 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 protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2 parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2 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; } /** * Protobuf type {@code protobuf_unittest.TestMessage2} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestMessage2) protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.OuterClassNameTest2OuterClass.internal_static_protobuf_unittest_TestMessage2_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.OuterClassNameTest2OuterClass.internal_static_protobuf_unittest_TestMessage2_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.class, protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.Builder.class); } // Construct using protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.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(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.OuterClassNameTest2OuterClass.internal_static_protobuf_unittest_TestMessage2_descriptor; } public protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2 getDefaultInstanceForType() { return protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.getDefaultInstance(); } public protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2 build() { protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2 buildPartial() { protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2 result = new protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2) { return mergeFrom((protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2 other) { if (other == protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); 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 { protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.OuterClassNameTest2OuterClass.TestMessage2) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestMessage2) } static { defaultInstance = new TestMessage2(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMessage2) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestMessage2_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestMessage2_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestMessage2_NestedMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestMessage2_NestedMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestMessage2_NestedMessage_OuterClassNameTest2_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestMessage2_NestedMessage_OuterClassNameTest2_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n0com/google/protobuf/outer_class_name_t" + "est2.proto\022\021protobuf_unittest\"6\n\014TestMes" + "sage2\032&\n\rNestedMessage\032\025\n\023OuterClassName" + "Test2" }; 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_protobuf_unittest_TestMessage2_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_protobuf_unittest_TestMessage2_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestMessage2_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_TestMessage2_NestedMessage_descriptor = internal_static_protobuf_unittest_TestMessage2_descriptor.getNestedTypes().get(0); internal_static_protobuf_unittest_TestMessage2_NestedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestMessage2_NestedMessage_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_TestMessage2_NestedMessage_OuterClassNameTest2_descriptor = internal_static_protobuf_unittest_TestMessage2_NestedMessage_descriptor.getNestedTypes().get(0); internal_static_protobuf_unittest_TestMessage2_NestedMessage_OuterClassNameTest2_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestMessage2_NestedMessage_OuterClassNameTest2_descriptor, new java.lang.String[] { }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy