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

protobuf_unittest.NestedExtensionLite Maven / Gradle / Ivy

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

package protobuf_unittest;

public final class NestedExtensionLite {
  private NestedExtensionLite() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
    registry.add(protobuf_unittest.NestedExtensionLite.MyNestedExtensionLite.recursiveExtensionLite);
  }
  public interface MyNestedExtensionLiteOrBuilder extends
      // @@protoc_insertion_point(interface_extends:protobuf_unittest.MyNestedExtensionLite)
      com.google.protobuf.MessageLiteOrBuilder {
  }
  /**
   * Protobuf type {@code protobuf_unittest.MyNestedExtensionLite}
   */
  public static final class MyNestedExtensionLite extends
      com.google.protobuf.GeneratedMessageLite implements
      // @@protoc_insertion_point(message_implements:protobuf_unittest.MyNestedExtensionLite)
      MyNestedExtensionLiteOrBuilder {
    // Use MyNestedExtensionLite.newBuilder() to construct.
    private MyNestedExtensionLite(com.google.protobuf.GeneratedMessageLite.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private MyNestedExtensionLite(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;}

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

    public MyNestedExtensionLite getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.ByteString unknownFields;
    private MyNestedExtensionLite(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      com.google.protobuf.ByteString.Output unknownFieldsOutput =
          com.google.protobuf.ByteString.newOutput();
      com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput =
          com.google.protobuf.CodedOutputStream.newInstance(
              unknownFieldsOutput);
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFieldsCodedOutput,
                                     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 {
        try {
          unknownFieldsCodedOutput.flush();
        } catch (java.io.IOException e) {
        // Should not happen
        } finally {
          unknownFields = unknownFieldsOutput.toByteString();
        }
        makeExtensionsImmutable();
      }
    }
    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public MyNestedExtensionLite parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new MyNestedExtensionLite(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();
      output.writeRawBytes(unknownFields);
    }

    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      size += unknownFields.size();
      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.NestedExtensionLite.MyNestedExtensionLite parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static protobuf_unittest.NestedExtensionLite.MyNestedExtensionLite 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.NestedExtensionLite.MyNestedExtensionLite parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static protobuf_unittest.NestedExtensionLite.MyNestedExtensionLite parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static protobuf_unittest.NestedExtensionLite.MyNestedExtensionLite parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static protobuf_unittest.NestedExtensionLite.MyNestedExtensionLite parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static protobuf_unittest.NestedExtensionLite.MyNestedExtensionLite parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static protobuf_unittest.NestedExtensionLite.MyNestedExtensionLite parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static protobuf_unittest.NestedExtensionLite.MyNestedExtensionLite parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static protobuf_unittest.NestedExtensionLite.MyNestedExtensionLite 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.NestedExtensionLite.MyNestedExtensionLite prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    /**
     * Protobuf type {@code protobuf_unittest.MyNestedExtensionLite}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          protobuf_unittest.NestedExtensionLite.MyNestedExtensionLite, Builder>
        implements
        // @@protoc_insertion_point(builder_implements:protobuf_unittest.MyNestedExtensionLite)
        protobuf_unittest.NestedExtensionLite.MyNestedExtensionLiteOrBuilder {
      // Construct using protobuf_unittest.NestedExtensionLite.MyNestedExtensionLite.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private void maybeForceBuilderInitialization() {
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public protobuf_unittest.NestedExtensionLite.MyNestedExtensionLite getDefaultInstanceForType() {
        return protobuf_unittest.NestedExtensionLite.MyNestedExtensionLite.getDefaultInstance();
      }

      public protobuf_unittest.NestedExtensionLite.MyNestedExtensionLite build() {
        protobuf_unittest.NestedExtensionLite.MyNestedExtensionLite result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public protobuf_unittest.NestedExtensionLite.MyNestedExtensionLite buildPartial() {
        protobuf_unittest.NestedExtensionLite.MyNestedExtensionLite result = new protobuf_unittest.NestedExtensionLite.MyNestedExtensionLite(this);
        return result;
      }

      public Builder mergeFrom(protobuf_unittest.NestedExtensionLite.MyNestedExtensionLite other) {
        if (other == protobuf_unittest.NestedExtensionLite.MyNestedExtensionLite.getDefaultInstance()) return this;
        setUnknownFields(
            getUnknownFields().concat(other.unknownFields));
        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.NestedExtensionLite.MyNestedExtensionLite parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (protobuf_unittest.NestedExtensionLite.MyNestedExtensionLite) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      // @@protoc_insertion_point(builder_scope:protobuf_unittest.MyNestedExtensionLite)
    }

    static {
      defaultInstance = new MyNestedExtensionLite(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:protobuf_unittest.MyNestedExtensionLite)
    public static final int RECURSIVEEXTENSIONLITE_FIELD_NUMBER = 3;
    /**
     * extend .protobuf_unittest.MessageLiteToBeExtended { ... }
     */
    public static final
      com.google.protobuf.GeneratedMessageLite.GeneratedExtension<
        protobuf_unittest.NonNestedExtensionLite.MessageLiteToBeExtended,
        protobuf_unittest.NonNestedExtensionLite.MessageLiteToBeExtended> recursiveExtensionLite = com.google.protobuf.GeneratedMessageLite
            .newSingularGeneratedExtension(
          protobuf_unittest.NonNestedExtensionLite.MessageLiteToBeExtended.getDefaultInstance(),
          protobuf_unittest.NonNestedExtensionLite.MessageLiteToBeExtended.getDefaultInstance(),
          protobuf_unittest.NonNestedExtensionLite.MessageLiteToBeExtended.getDefaultInstance(),
          null,
          3,
          com.google.protobuf.WireFormat.FieldType.MESSAGE,
          protobuf_unittest.NonNestedExtensionLite.MessageLiteToBeExtended.class);
  }


  static {
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy