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

com.google.protobuf.DescriptorProtos Maven / Gradle / Ivy

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

package com.google.protobuf;

public final class DescriptorProtos {
  private DescriptorProtos() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface FileDescriptorSetOrBuilder extends
      // @@protoc_insertion_point(interface_extends:google.protobuf.FileDescriptorSet)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated .google.protobuf.FileDescriptorProto file = 1;
     */
    java.util.List 
        getFileList();
    /**
     * repeated .google.protobuf.FileDescriptorProto file = 1;
     */
    com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index);
    /**
     * repeated .google.protobuf.FileDescriptorProto file = 1;
     */
    int getFileCount();
    /**
     * repeated .google.protobuf.FileDescriptorProto file = 1;
     */
    java.util.List 
        getFileOrBuilderList();
    /**
     * repeated .google.protobuf.FileDescriptorProto file = 1;
     */
    com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code google.protobuf.FileDescriptorSet}
   *
   * 
   * The protocol compiler can output a FileDescriptorSet containing the .proto
   * files it parses.
   * 
*/ public static final class FileDescriptorSet extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.protobuf.FileDescriptorSet) FileDescriptorSetOrBuilder { // Use FileDescriptorSet.newBuilder() to construct. private FileDescriptorSet(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private FileDescriptorSet(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final FileDescriptorSet defaultInstance; public static FileDescriptorSet getDefaultInstance() { return defaultInstance; } public FileDescriptorSet getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FileDescriptorSet( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { file_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } file_.add(input.readMessage(com.google.protobuf.DescriptorProtos.FileDescriptorProto.PARSER, extensionRegistry)); 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 { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { file_ = java.util.Collections.unmodifiableList(file_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.FileDescriptorSet.class, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FileDescriptorSet parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FileDescriptorSet(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public static final int FILE_FIELD_NUMBER = 1; private java.util.List file_; /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public java.util.List getFileList() { return file_; } /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public java.util.List getFileOrBuilderList() { return file_; } /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public int getFileCount() { return file_.size(); } /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index) { return file_.get(index); } /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder( int index) { return file_.get(index); } private void initFields() { file_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getFileCount(); i++) { if (!getFile(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < file_.size(); i++) { output.writeMessage(1, file_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < file_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, file_.get(i)); } 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 com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.FileDescriptorSet 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(com.google.protobuf.DescriptorProtos.FileDescriptorSet 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 google.protobuf.FileDescriptorSet} * *
     * The protocol compiler can output a FileDescriptorSet containing the .proto
     * files it parses.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.protobuf.FileDescriptorSet) com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.FileDescriptorSet.class, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.FileDescriptorSet.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getFileFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (fileBuilder_ == null) { file_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { fileBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_descriptor; } public com.google.protobuf.DescriptorProtos.FileDescriptorSet getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance(); } public com.google.protobuf.DescriptorProtos.FileDescriptorSet build() { com.google.protobuf.DescriptorProtos.FileDescriptorSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protobuf.DescriptorProtos.FileDescriptorSet buildPartial() { com.google.protobuf.DescriptorProtos.FileDescriptorSet result = new com.google.protobuf.DescriptorProtos.FileDescriptorSet(this); int from_bitField0_ = bitField0_; if (fileBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { file_ = java.util.Collections.unmodifiableList(file_); bitField0_ = (bitField0_ & ~0x00000001); } result.file_ = file_; } else { result.file_ = fileBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.FileDescriptorSet) { return mergeFrom((com.google.protobuf.DescriptorProtos.FileDescriptorSet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.FileDescriptorSet other) { if (other == com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance()) return this; if (fileBuilder_ == null) { if (!other.file_.isEmpty()) { if (file_.isEmpty()) { file_ = other.file_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFileIsMutable(); file_.addAll(other.file_); } onChanged(); } } else { if (!other.file_.isEmpty()) { if (fileBuilder_.isEmpty()) { fileBuilder_.dispose(); fileBuilder_ = null; file_ = other.file_; bitField0_ = (bitField0_ & ~0x00000001); fileBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getFileFieldBuilder() : null; } else { fileBuilder_.addAllMessages(other.file_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getFileCount(); i++) { if (!getFile(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.FileDescriptorSet parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.FileDescriptorSet) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List file_ = java.util.Collections.emptyList(); private void ensureFileIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { file_ = new java.util.ArrayList(file_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.FileDescriptorProto, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> fileBuilder_; /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public java.util.List getFileList() { if (fileBuilder_ == null) { return java.util.Collections.unmodifiableList(file_); } else { return fileBuilder_.getMessageList(); } } /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public int getFileCount() { if (fileBuilder_ == null) { return file_.size(); } else { return fileBuilder_.getCount(); } } /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index) { if (fileBuilder_ == null) { return file_.get(index); } else { return fileBuilder_.getMessage(index); } } /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public Builder setFile( int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto value) { if (fileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFileIsMutable(); file_.set(index, value); onChanged(); } else { fileBuilder_.setMessage(index, value); } return this; } /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public Builder setFile( int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder builderForValue) { if (fileBuilder_ == null) { ensureFileIsMutable(); file_.set(index, builderForValue.build()); onChanged(); } else { fileBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public Builder addFile(com.google.protobuf.DescriptorProtos.FileDescriptorProto value) { if (fileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFileIsMutable(); file_.add(value); onChanged(); } else { fileBuilder_.addMessage(value); } return this; } /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public Builder addFile( int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto value) { if (fileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFileIsMutable(); file_.add(index, value); onChanged(); } else { fileBuilder_.addMessage(index, value); } return this; } /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public Builder addFile( com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder builderForValue) { if (fileBuilder_ == null) { ensureFileIsMutable(); file_.add(builderForValue.build()); onChanged(); } else { fileBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public Builder addFile( int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder builderForValue) { if (fileBuilder_ == null) { ensureFileIsMutable(); file_.add(index, builderForValue.build()); onChanged(); } else { fileBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public Builder addAllFile( java.lang.Iterable values) { if (fileBuilder_ == null) { ensureFileIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, file_); onChanged(); } else { fileBuilder_.addAllMessages(values); } return this; } /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public Builder clearFile() { if (fileBuilder_ == null) { file_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { fileBuilder_.clear(); } return this; } /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public Builder removeFile(int index) { if (fileBuilder_ == null) { ensureFileIsMutable(); file_.remove(index); onChanged(); } else { fileBuilder_.remove(index); } return this; } /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder getFileBuilder( int index) { return getFileFieldBuilder().getBuilder(index); } /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder( int index) { if (fileBuilder_ == null) { return file_.get(index); } else { return fileBuilder_.getMessageOrBuilder(index); } } /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public java.util.List getFileOrBuilderList() { if (fileBuilder_ != null) { return fileBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(file_); } } /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder addFileBuilder() { return getFileFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDefaultInstance()); } /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder addFileBuilder( int index) { return getFileFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDefaultInstance()); } /** * repeated .google.protobuf.FileDescriptorProto file = 1; */ public java.util.List getFileBuilderList() { return getFileFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.FileDescriptorProto, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> getFileFieldBuilder() { if (fileBuilder_ == null) { fileBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.FileDescriptorProto, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder>( file_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); file_ = null; } return fileBuilder_; } // @@protoc_insertion_point(builder_scope:google.protobuf.FileDescriptorSet) } static { defaultInstance = new FileDescriptorSet(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet) } public interface FileDescriptorProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.FileDescriptorProto) com.google.protobuf.MessageOrBuilder { /** * optional string name = 1; * *
     * file name, relative to root of source tree
     * 
*/ boolean hasName(); /** * optional string name = 1; * *
     * file name, relative to root of source tree
     * 
*/ java.lang.String getName(); /** * optional string name = 1; * *
     * file name, relative to root of source tree
     * 
*/ com.google.protobuf.ByteString getNameBytes(); /** * optional string package = 2; * *
     * e.g. "foo", "foo.bar", etc.
     * 
*/ boolean hasPackage(); /** * optional string package = 2; * *
     * e.g. "foo", "foo.bar", etc.
     * 
*/ java.lang.String getPackage(); /** * optional string package = 2; * *
     * e.g. "foo", "foo.bar", etc.
     * 
*/ com.google.protobuf.ByteString getPackageBytes(); /** * repeated string dependency = 3; * *
     * Names of files imported by this file.
     * 
*/ com.google.protobuf.ProtocolStringList getDependencyList(); /** * repeated string dependency = 3; * *
     * Names of files imported by this file.
     * 
*/ int getDependencyCount(); /** * repeated string dependency = 3; * *
     * Names of files imported by this file.
     * 
*/ java.lang.String getDependency(int index); /** * repeated string dependency = 3; * *
     * Names of files imported by this file.
     * 
*/ com.google.protobuf.ByteString getDependencyBytes(int index); /** * repeated int32 public_dependency = 10; * *
     * Indexes of the public imported files in the dependency list above.
     * 
*/ java.util.List getPublicDependencyList(); /** * repeated int32 public_dependency = 10; * *
     * Indexes of the public imported files in the dependency list above.
     * 
*/ int getPublicDependencyCount(); /** * repeated int32 public_dependency = 10; * *
     * Indexes of the public imported files in the dependency list above.
     * 
*/ int getPublicDependency(int index); /** * repeated int32 weak_dependency = 11; * *
     * Indexes of the weak imported files in the dependency list.
     * For Google-internal migration only. Do not use.
     * 
*/ java.util.List getWeakDependencyList(); /** * repeated int32 weak_dependency = 11; * *
     * Indexes of the weak imported files in the dependency list.
     * For Google-internal migration only. Do not use.
     * 
*/ int getWeakDependencyCount(); /** * repeated int32 weak_dependency = 11; * *
     * Indexes of the weak imported files in the dependency list.
     * For Google-internal migration only. Do not use.
     * 
*/ int getWeakDependency(int index); /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
     * All top-level definitions in this file.
     * 
*/ java.util.List getMessageTypeList(); /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
     * All top-level definitions in this file.
     * 
*/ com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index); /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
     * All top-level definitions in this file.
     * 
*/ int getMessageTypeCount(); /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
     * All top-level definitions in this file.
     * 
*/ java.util.List getMessageTypeOrBuilderList(); /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
     * All top-level definitions in this file.
     * 
*/ com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder( int index); /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ java.util.List getEnumTypeList(); /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index); /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ int getEnumTypeCount(); /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ java.util.List getEnumTypeOrBuilderList(); /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( int index); /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ java.util.List getServiceList(); /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getService(int index); /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ int getServiceCount(); /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ java.util.List getServiceOrBuilderList(); /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder( int index); /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ java.util.List getExtensionList(); /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index); /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ int getExtensionCount(); /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ java.util.List getExtensionOrBuilderList(); /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( int index); /** * optional .google.protobuf.FileOptions options = 8; */ boolean hasOptions(); /** * optional .google.protobuf.FileOptions options = 8; */ com.google.protobuf.DescriptorProtos.FileOptions getOptions(); /** * optional .google.protobuf.FileOptions options = 8; */ com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder(); /** * optional .google.protobuf.SourceCodeInfo source_code_info = 9; * *
     * This field contains optional information about the original source code.
     * You may safely remove this entire field whithout harming runtime
     * functionality of the descriptors -- the information is needed only by
     * development tools.
     * 
*/ boolean hasSourceCodeInfo(); /** * optional .google.protobuf.SourceCodeInfo source_code_info = 9; * *
     * This field contains optional information about the original source code.
     * You may safely remove this entire field whithout harming runtime
     * functionality of the descriptors -- the information is needed only by
     * development tools.
     * 
*/ com.google.protobuf.DescriptorProtos.SourceCodeInfo getSourceCodeInfo(); /** * optional .google.protobuf.SourceCodeInfo source_code_info = 9; * *
     * This field contains optional information about the original source code.
     * You may safely remove this entire field whithout harming runtime
     * functionality of the descriptors -- the information is needed only by
     * development tools.
     * 
*/ com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder(); } /** * Protobuf type {@code google.protobuf.FileDescriptorProto} * *
   * Describes a complete .proto file.
   * 
*/ public static final class FileDescriptorProto extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.protobuf.FileDescriptorProto) FileDescriptorProtoOrBuilder { // Use FileDescriptorProto.newBuilder() to construct. private FileDescriptorProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private FileDescriptorProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final FileDescriptorProto defaultInstance; public static FileDescriptorProto getDefaultInstance() { return defaultInstance; } public FileDescriptorProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FileDescriptorProto( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; package_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { dependency_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } dependency_.add(bs); break; } case 34: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { messageType_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } messageType_.add(input.readMessage(com.google.protobuf.DescriptorProtos.DescriptorProto.PARSER, extensionRegistry)); break; } case 42: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { enumType_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } enumType_.add(input.readMessage(com.google.protobuf.DescriptorProtos.EnumDescriptorProto.PARSER, extensionRegistry)); break; } case 50: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { service_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } service_.add(input.readMessage(com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.PARSER, extensionRegistry)); break; } case 58: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { extension_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } extension_.add(input.readMessage(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.PARSER, extensionRegistry)); break; } case 66: { com.google.protobuf.DescriptorProtos.FileOptions.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = options_.toBuilder(); } options_ = input.readMessage(com.google.protobuf.DescriptorProtos.FileOptions.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(options_); options_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 74: { com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = sourceCodeInfo_.toBuilder(); } sourceCodeInfo_ = input.readMessage(com.google.protobuf.DescriptorProtos.SourceCodeInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sourceCodeInfo_); sourceCodeInfo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 80: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { publicDependency_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } publicDependency_.add(input.readInt32()); break; } case 82: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { publicDependency_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { publicDependency_.add(input.readInt32()); } input.popLimit(limit); break; } case 88: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { weakDependency_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } weakDependency_.add(input.readInt32()); break; } case 90: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { weakDependency_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } while (input.getBytesUntilLimit() > 0) { weakDependency_.add(input.readInt32()); } input.popLimit(limit); 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 { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { dependency_ = dependency_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { messageType_ = java.util.Collections.unmodifiableList(messageType_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { enumType_ = java.util.Collections.unmodifiableList(enumType_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { service_ = java.util.Collections.unmodifiableList(service_); } if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { extension_ = java.util.Collections.unmodifiableList(extension_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { publicDependency_ = java.util.Collections.unmodifiableList(publicDependency_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { weakDependency_ = java.util.Collections.unmodifiableList(weakDependency_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.FileDescriptorProto.class, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FileDescriptorProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FileDescriptorProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; /** * optional string name = 1; * *
     * file name, relative to root of source tree
     * 
*/ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string name = 1; * *
     * file name, relative to root of source tree
     * 
*/ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * optional string name = 1; * *
     * file name, relative to root of source tree
     * 
*/ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PACKAGE_FIELD_NUMBER = 2; private java.lang.Object package_; /** * optional string package = 2; * *
     * e.g. "foo", "foo.bar", etc.
     * 
*/ public boolean hasPackage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string package = 2; * *
     * e.g. "foo", "foo.bar", etc.
     * 
*/ public java.lang.String getPackage() { java.lang.Object ref = package_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { package_ = s; } return s; } } /** * optional string package = 2; * *
     * e.g. "foo", "foo.bar", etc.
     * 
*/ public com.google.protobuf.ByteString getPackageBytes() { java.lang.Object ref = package_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); package_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEPENDENCY_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList dependency_; /** * repeated string dependency = 3; * *
     * Names of files imported by this file.
     * 
*/ public com.google.protobuf.ProtocolStringList getDependencyList() { return dependency_; } /** * repeated string dependency = 3; * *
     * Names of files imported by this file.
     * 
*/ public int getDependencyCount() { return dependency_.size(); } /** * repeated string dependency = 3; * *
     * Names of files imported by this file.
     * 
*/ public java.lang.String getDependency(int index) { return dependency_.get(index); } /** * repeated string dependency = 3; * *
     * Names of files imported by this file.
     * 
*/ public com.google.protobuf.ByteString getDependencyBytes(int index) { return dependency_.getByteString(index); } public static final int PUBLIC_DEPENDENCY_FIELD_NUMBER = 10; private java.util.List publicDependency_; /** * repeated int32 public_dependency = 10; * *
     * Indexes of the public imported files in the dependency list above.
     * 
*/ public java.util.List getPublicDependencyList() { return publicDependency_; } /** * repeated int32 public_dependency = 10; * *
     * Indexes of the public imported files in the dependency list above.
     * 
*/ public int getPublicDependencyCount() { return publicDependency_.size(); } /** * repeated int32 public_dependency = 10; * *
     * Indexes of the public imported files in the dependency list above.
     * 
*/ public int getPublicDependency(int index) { return publicDependency_.get(index); } public static final int WEAK_DEPENDENCY_FIELD_NUMBER = 11; private java.util.List weakDependency_; /** * repeated int32 weak_dependency = 11; * *
     * Indexes of the weak imported files in the dependency list.
     * For Google-internal migration only. Do not use.
     * 
*/ public java.util.List getWeakDependencyList() { return weakDependency_; } /** * repeated int32 weak_dependency = 11; * *
     * Indexes of the weak imported files in the dependency list.
     * For Google-internal migration only. Do not use.
     * 
*/ public int getWeakDependencyCount() { return weakDependency_.size(); } /** * repeated int32 weak_dependency = 11; * *
     * Indexes of the weak imported files in the dependency list.
     * For Google-internal migration only. Do not use.
     * 
*/ public int getWeakDependency(int index) { return weakDependency_.get(index); } public static final int MESSAGE_TYPE_FIELD_NUMBER = 4; private java.util.List messageType_; /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
     * All top-level definitions in this file.
     * 
*/ public java.util.List getMessageTypeList() { return messageType_; } /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
     * All top-level definitions in this file.
     * 
*/ public java.util.List getMessageTypeOrBuilderList() { return messageType_; } /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
     * All top-level definitions in this file.
     * 
*/ public int getMessageTypeCount() { return messageType_.size(); } /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
     * All top-level definitions in this file.
     * 
*/ public com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index) { return messageType_.get(index); } /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
     * All top-level definitions in this file.
     * 
*/ public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder( int index) { return messageType_.get(index); } public static final int ENUM_TYPE_FIELD_NUMBER = 5; private java.util.List enumType_; /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public java.util.List getEnumTypeList() { return enumType_; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public java.util.List getEnumTypeOrBuilderList() { return enumType_; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public int getEnumTypeCount() { return enumType_.size(); } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { return enumType_.get(index); } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( int index) { return enumType_.get(index); } public static final int SERVICE_FIELD_NUMBER = 6; private java.util.List service_; /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public java.util.List getServiceList() { return service_; } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public java.util.List getServiceOrBuilderList() { return service_; } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public int getServiceCount() { return service_.size(); } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getService(int index) { return service_.get(index); } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder( int index) { return service_.get(index); } public static final int EXTENSION_FIELD_NUMBER = 7; private java.util.List extension_; /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public java.util.List getExtensionList() { return extension_; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public java.util.List getExtensionOrBuilderList() { return extension_; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public int getExtensionCount() { return extension_.size(); } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { return extension_.get(index); } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( int index) { return extension_.get(index); } public static final int OPTIONS_FIELD_NUMBER = 8; private com.google.protobuf.DescriptorProtos.FileOptions options_; /** * optional .google.protobuf.FileOptions options = 8; */ public boolean hasOptions() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .google.protobuf.FileOptions options = 8; */ public com.google.protobuf.DescriptorProtos.FileOptions getOptions() { return options_; } /** * optional .google.protobuf.FileOptions options = 8; */ public com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder() { return options_; } public static final int SOURCE_CODE_INFO_FIELD_NUMBER = 9; private com.google.protobuf.DescriptorProtos.SourceCodeInfo sourceCodeInfo_; /** * optional .google.protobuf.SourceCodeInfo source_code_info = 9; * *
     * This field contains optional information about the original source code.
     * You may safely remove this entire field whithout harming runtime
     * functionality of the descriptors -- the information is needed only by
     * development tools.
     * 
*/ public boolean hasSourceCodeInfo() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .google.protobuf.SourceCodeInfo source_code_info = 9; * *
     * This field contains optional information about the original source code.
     * You may safely remove this entire field whithout harming runtime
     * functionality of the descriptors -- the information is needed only by
     * development tools.
     * 
*/ public com.google.protobuf.DescriptorProtos.SourceCodeInfo getSourceCodeInfo() { return sourceCodeInfo_; } /** * optional .google.protobuf.SourceCodeInfo source_code_info = 9; * *
     * This field contains optional information about the original source code.
     * You may safely remove this entire field whithout harming runtime
     * functionality of the descriptors -- the information is needed only by
     * development tools.
     * 
*/ public com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder() { return sourceCodeInfo_; } private void initFields() { name_ = ""; package_ = ""; dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; publicDependency_ = java.util.Collections.emptyList(); weakDependency_ = java.util.Collections.emptyList(); messageType_ = java.util.Collections.emptyList(); enumType_ = java.util.Collections.emptyList(); service_ = java.util.Collections.emptyList(); extension_ = java.util.Collections.emptyList(); options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); sourceCodeInfo_ = com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getMessageTypeCount(); i++) { if (!getMessageType(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getEnumTypeCount(); i++) { if (!getEnumType(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getServiceCount(); i++) { if (!getService(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getExtensionCount(); i++) { if (!getExtension(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasOptions()) { if (!getOptions().isInitialized()) { 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, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getPackageBytes()); } for (int i = 0; i < dependency_.size(); i++) { output.writeBytes(3, dependency_.getByteString(i)); } for (int i = 0; i < messageType_.size(); i++) { output.writeMessage(4, messageType_.get(i)); } for (int i = 0; i < enumType_.size(); i++) { output.writeMessage(5, enumType_.get(i)); } for (int i = 0; i < service_.size(); i++) { output.writeMessage(6, service_.get(i)); } for (int i = 0; i < extension_.size(); i++) { output.writeMessage(7, extension_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(8, options_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(9, sourceCodeInfo_); } for (int i = 0; i < publicDependency_.size(); i++) { output.writeInt32(10, publicDependency_.get(i)); } for (int i = 0; i < weakDependency_.size(); i++) { output.writeInt32(11, weakDependency_.get(i)); } 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, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getPackageBytes()); } { int dataSize = 0; for (int i = 0; i < dependency_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(dependency_.getByteString(i)); } size += dataSize; size += 1 * getDependencyList().size(); } for (int i = 0; i < messageType_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, messageType_.get(i)); } for (int i = 0; i < enumType_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, enumType_.get(i)); } for (int i = 0; i < service_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, service_.get(i)); } for (int i = 0; i < extension_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, extension_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, options_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, sourceCodeInfo_); } { int dataSize = 0; for (int i = 0; i < publicDependency_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(publicDependency_.get(i)); } size += dataSize; size += 1 * getPublicDependencyList().size(); } { int dataSize = 0; for (int i = 0; i < weakDependency_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(weakDependency_.get(i)); } size += dataSize; size += 1 * getWeakDependencyList().size(); } 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 com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.FileDescriptorProto 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(com.google.protobuf.DescriptorProtos.FileDescriptorProto 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 google.protobuf.FileDescriptorProto} * *
     * Describes a complete .proto file.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.protobuf.FileDescriptorProto) com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.FileDescriptorProto.class, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.FileDescriptorProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getMessageTypeFieldBuilder(); getEnumTypeFieldBuilder(); getServiceFieldBuilder(); getExtensionFieldBuilder(); getOptionsFieldBuilder(); getSourceCodeInfoFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); package_ = ""; bitField0_ = (bitField0_ & ~0x00000002); dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); publicDependency_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); weakDependency_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); if (messageTypeBuilder_ == null) { messageType_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { messageTypeBuilder_.clear(); } if (enumTypeBuilder_ == null) { enumType_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { enumTypeBuilder_.clear(); } if (serviceBuilder_ == null) { service_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { serviceBuilder_.clear(); } if (extensionBuilder_ == null) { extension_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); } else { extensionBuilder_.clear(); } if (optionsBuilder_ == null) { options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); if (sourceCodeInfoBuilder_ == null) { sourceCodeInfo_ = com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance(); } else { sourceCodeInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_descriptor; } public com.google.protobuf.DescriptorProtos.FileDescriptorProto getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDefaultInstance(); } public com.google.protobuf.DescriptorProtos.FileDescriptorProto build() { com.google.protobuf.DescriptorProtos.FileDescriptorProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protobuf.DescriptorProtos.FileDescriptorProto buildPartial() { com.google.protobuf.DescriptorProtos.FileDescriptorProto result = new com.google.protobuf.DescriptorProtos.FileDescriptorProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.package_ = package_; if (((bitField0_ & 0x00000004) == 0x00000004)) { dependency_ = dependency_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.dependency_ = dependency_; if (((bitField0_ & 0x00000008) == 0x00000008)) { publicDependency_ = java.util.Collections.unmodifiableList(publicDependency_); bitField0_ = (bitField0_ & ~0x00000008); } result.publicDependency_ = publicDependency_; if (((bitField0_ & 0x00000010) == 0x00000010)) { weakDependency_ = java.util.Collections.unmodifiableList(weakDependency_); bitField0_ = (bitField0_ & ~0x00000010); } result.weakDependency_ = weakDependency_; if (messageTypeBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { messageType_ = java.util.Collections.unmodifiableList(messageType_); bitField0_ = (bitField0_ & ~0x00000020); } result.messageType_ = messageType_; } else { result.messageType_ = messageTypeBuilder_.build(); } if (enumTypeBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { enumType_ = java.util.Collections.unmodifiableList(enumType_); bitField0_ = (bitField0_ & ~0x00000040); } result.enumType_ = enumType_; } else { result.enumType_ = enumTypeBuilder_.build(); } if (serviceBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { service_ = java.util.Collections.unmodifiableList(service_); bitField0_ = (bitField0_ & ~0x00000080); } result.service_ = service_; } else { result.service_ = serviceBuilder_.build(); } if (extensionBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100)) { extension_ = java.util.Collections.unmodifiableList(extension_); bitField0_ = (bitField0_ & ~0x00000100); } result.extension_ = extension_; } else { result.extension_ = extensionBuilder_.build(); } if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000004; } if (optionsBuilder_ == null) { result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000008; } if (sourceCodeInfoBuilder_ == null) { result.sourceCodeInfo_ = sourceCodeInfo_; } else { result.sourceCodeInfo_ = sourceCodeInfoBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.FileDescriptorProto) { return mergeFrom((com.google.protobuf.DescriptorProtos.FileDescriptorProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.FileDescriptorProto other) { if (other == com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasPackage()) { bitField0_ |= 0x00000002; package_ = other.package_; onChanged(); } if (!other.dependency_.isEmpty()) { if (dependency_.isEmpty()) { dependency_ = other.dependency_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDependencyIsMutable(); dependency_.addAll(other.dependency_); } onChanged(); } if (!other.publicDependency_.isEmpty()) { if (publicDependency_.isEmpty()) { publicDependency_ = other.publicDependency_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePublicDependencyIsMutable(); publicDependency_.addAll(other.publicDependency_); } onChanged(); } if (!other.weakDependency_.isEmpty()) { if (weakDependency_.isEmpty()) { weakDependency_ = other.weakDependency_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureWeakDependencyIsMutable(); weakDependency_.addAll(other.weakDependency_); } onChanged(); } if (messageTypeBuilder_ == null) { if (!other.messageType_.isEmpty()) { if (messageType_.isEmpty()) { messageType_ = other.messageType_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureMessageTypeIsMutable(); messageType_.addAll(other.messageType_); } onChanged(); } } else { if (!other.messageType_.isEmpty()) { if (messageTypeBuilder_.isEmpty()) { messageTypeBuilder_.dispose(); messageTypeBuilder_ = null; messageType_ = other.messageType_; bitField0_ = (bitField0_ & ~0x00000020); messageTypeBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getMessageTypeFieldBuilder() : null; } else { messageTypeBuilder_.addAllMessages(other.messageType_); } } } if (enumTypeBuilder_ == null) { if (!other.enumType_.isEmpty()) { if (enumType_.isEmpty()) { enumType_ = other.enumType_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureEnumTypeIsMutable(); enumType_.addAll(other.enumType_); } onChanged(); } } else { if (!other.enumType_.isEmpty()) { if (enumTypeBuilder_.isEmpty()) { enumTypeBuilder_.dispose(); enumTypeBuilder_ = null; enumType_ = other.enumType_; bitField0_ = (bitField0_ & ~0x00000040); enumTypeBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getEnumTypeFieldBuilder() : null; } else { enumTypeBuilder_.addAllMessages(other.enumType_); } } } if (serviceBuilder_ == null) { if (!other.service_.isEmpty()) { if (service_.isEmpty()) { service_ = other.service_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureServiceIsMutable(); service_.addAll(other.service_); } onChanged(); } } else { if (!other.service_.isEmpty()) { if (serviceBuilder_.isEmpty()) { serviceBuilder_.dispose(); serviceBuilder_ = null; service_ = other.service_; bitField0_ = (bitField0_ & ~0x00000080); serviceBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getServiceFieldBuilder() : null; } else { serviceBuilder_.addAllMessages(other.service_); } } } if (extensionBuilder_ == null) { if (!other.extension_.isEmpty()) { if (extension_.isEmpty()) { extension_ = other.extension_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureExtensionIsMutable(); extension_.addAll(other.extension_); } onChanged(); } } else { if (!other.extension_.isEmpty()) { if (extensionBuilder_.isEmpty()) { extensionBuilder_.dispose(); extensionBuilder_ = null; extension_ = other.extension_; bitField0_ = (bitField0_ & ~0x00000100); extensionBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getExtensionFieldBuilder() : null; } else { extensionBuilder_.addAllMessages(other.extension_); } } } if (other.hasOptions()) { mergeOptions(other.getOptions()); } if (other.hasSourceCodeInfo()) { mergeSourceCodeInfo(other.getSourceCodeInfo()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getMessageTypeCount(); i++) { if (!getMessageType(i).isInitialized()) { return false; } } for (int i = 0; i < getEnumTypeCount(); i++) { if (!getEnumType(i).isInitialized()) { return false; } } for (int i = 0; i < getServiceCount(); i++) { if (!getService(i).isInitialized()) { return false; } } for (int i = 0; i < getExtensionCount(); i++) { if (!getExtension(i).isInitialized()) { return false; } } if (hasOptions()) { if (!getOptions().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.FileDescriptorProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.FileDescriptorProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * optional string name = 1; * *
       * file name, relative to root of source tree
       * 
*/ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string name = 1; * *
       * file name, relative to root of source tree
       * 
*/ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string name = 1; * *
       * file name, relative to root of source tree
       * 
*/ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name = 1; * *
       * file name, relative to root of source tree
       * 
*/ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * optional string name = 1; * *
       * file name, relative to root of source tree
       * 
*/ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 1; * *
       * file name, relative to root of source tree
       * 
*/ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private java.lang.Object package_ = ""; /** * optional string package = 2; * *
       * e.g. "foo", "foo.bar", etc.
       * 
*/ public boolean hasPackage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string package = 2; * *
       * e.g. "foo", "foo.bar", etc.
       * 
*/ public java.lang.String getPackage() { java.lang.Object ref = package_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { package_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string package = 2; * *
       * e.g. "foo", "foo.bar", etc.
       * 
*/ public com.google.protobuf.ByteString getPackageBytes() { java.lang.Object ref = package_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); package_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string package = 2; * *
       * e.g. "foo", "foo.bar", etc.
       * 
*/ public Builder setPackage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; package_ = value; onChanged(); return this; } /** * optional string package = 2; * *
       * e.g. "foo", "foo.bar", etc.
       * 
*/ public Builder clearPackage() { bitField0_ = (bitField0_ & ~0x00000002); package_ = getDefaultInstance().getPackage(); onChanged(); return this; } /** * optional string package = 2; * *
       * e.g. "foo", "foo.bar", etc.
       * 
*/ public Builder setPackageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; package_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDependencyIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { dependency_ = new com.google.protobuf.LazyStringArrayList(dependency_); bitField0_ |= 0x00000004; } } /** * repeated string dependency = 3; * *
       * Names of files imported by this file.
       * 
*/ public com.google.protobuf.ProtocolStringList getDependencyList() { return dependency_.getUnmodifiableView(); } /** * repeated string dependency = 3; * *
       * Names of files imported by this file.
       * 
*/ public int getDependencyCount() { return dependency_.size(); } /** * repeated string dependency = 3; * *
       * Names of files imported by this file.
       * 
*/ public java.lang.String getDependency(int index) { return dependency_.get(index); } /** * repeated string dependency = 3; * *
       * Names of files imported by this file.
       * 
*/ public com.google.protobuf.ByteString getDependencyBytes(int index) { return dependency_.getByteString(index); } /** * repeated string dependency = 3; * *
       * Names of files imported by this file.
       * 
*/ public Builder setDependency( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDependencyIsMutable(); dependency_.set(index, value); onChanged(); return this; } /** * repeated string dependency = 3; * *
       * Names of files imported by this file.
       * 
*/ public Builder addDependency( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDependencyIsMutable(); dependency_.add(value); onChanged(); return this; } /** * repeated string dependency = 3; * *
       * Names of files imported by this file.
       * 
*/ public Builder addAllDependency( java.lang.Iterable values) { ensureDependencyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dependency_); onChanged(); return this; } /** * repeated string dependency = 3; * *
       * Names of files imported by this file.
       * 
*/ public Builder clearDependency() { dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * repeated string dependency = 3; * *
       * Names of files imported by this file.
       * 
*/ public Builder addDependencyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureDependencyIsMutable(); dependency_.add(value); onChanged(); return this; } private java.util.List publicDependency_ = java.util.Collections.emptyList(); private void ensurePublicDependencyIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { publicDependency_ = new java.util.ArrayList(publicDependency_); bitField0_ |= 0x00000008; } } /** * repeated int32 public_dependency = 10; * *
       * Indexes of the public imported files in the dependency list above.
       * 
*/ public java.util.List getPublicDependencyList() { return java.util.Collections.unmodifiableList(publicDependency_); } /** * repeated int32 public_dependency = 10; * *
       * Indexes of the public imported files in the dependency list above.
       * 
*/ public int getPublicDependencyCount() { return publicDependency_.size(); } /** * repeated int32 public_dependency = 10; * *
       * Indexes of the public imported files in the dependency list above.
       * 
*/ public int getPublicDependency(int index) { return publicDependency_.get(index); } /** * repeated int32 public_dependency = 10; * *
       * Indexes of the public imported files in the dependency list above.
       * 
*/ public Builder setPublicDependency( int index, int value) { ensurePublicDependencyIsMutable(); publicDependency_.set(index, value); onChanged(); return this; } /** * repeated int32 public_dependency = 10; * *
       * Indexes of the public imported files in the dependency list above.
       * 
*/ public Builder addPublicDependency(int value) { ensurePublicDependencyIsMutable(); publicDependency_.add(value); onChanged(); return this; } /** * repeated int32 public_dependency = 10; * *
       * Indexes of the public imported files in the dependency list above.
       * 
*/ public Builder addAllPublicDependency( java.lang.Iterable values) { ensurePublicDependencyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, publicDependency_); onChanged(); return this; } /** * repeated int32 public_dependency = 10; * *
       * Indexes of the public imported files in the dependency list above.
       * 
*/ public Builder clearPublicDependency() { publicDependency_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } private java.util.List weakDependency_ = java.util.Collections.emptyList(); private void ensureWeakDependencyIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { weakDependency_ = new java.util.ArrayList(weakDependency_); bitField0_ |= 0x00000010; } } /** * repeated int32 weak_dependency = 11; * *
       * Indexes of the weak imported files in the dependency list.
       * For Google-internal migration only. Do not use.
       * 
*/ public java.util.List getWeakDependencyList() { return java.util.Collections.unmodifiableList(weakDependency_); } /** * repeated int32 weak_dependency = 11; * *
       * Indexes of the weak imported files in the dependency list.
       * For Google-internal migration only. Do not use.
       * 
*/ public int getWeakDependencyCount() { return weakDependency_.size(); } /** * repeated int32 weak_dependency = 11; * *
       * Indexes of the weak imported files in the dependency list.
       * For Google-internal migration only. Do not use.
       * 
*/ public int getWeakDependency(int index) { return weakDependency_.get(index); } /** * repeated int32 weak_dependency = 11; * *
       * Indexes of the weak imported files in the dependency list.
       * For Google-internal migration only. Do not use.
       * 
*/ public Builder setWeakDependency( int index, int value) { ensureWeakDependencyIsMutable(); weakDependency_.set(index, value); onChanged(); return this; } /** * repeated int32 weak_dependency = 11; * *
       * Indexes of the weak imported files in the dependency list.
       * For Google-internal migration only. Do not use.
       * 
*/ public Builder addWeakDependency(int value) { ensureWeakDependencyIsMutable(); weakDependency_.add(value); onChanged(); return this; } /** * repeated int32 weak_dependency = 11; * *
       * Indexes of the weak imported files in the dependency list.
       * For Google-internal migration only. Do not use.
       * 
*/ public Builder addAllWeakDependency( java.lang.Iterable values) { ensureWeakDependencyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, weakDependency_); onChanged(); return this; } /** * repeated int32 weak_dependency = 11; * *
       * Indexes of the weak imported files in the dependency list.
       * For Google-internal migration only. Do not use.
       * 
*/ public Builder clearWeakDependency() { weakDependency_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } private java.util.List messageType_ = java.util.Collections.emptyList(); private void ensureMessageTypeIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { messageType_ = new java.util.ArrayList(messageType_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> messageTypeBuilder_; /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
       * All top-level definitions in this file.
       * 
*/ public java.util.List getMessageTypeList() { if (messageTypeBuilder_ == null) { return java.util.Collections.unmodifiableList(messageType_); } else { return messageTypeBuilder_.getMessageList(); } } /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
       * All top-level definitions in this file.
       * 
*/ public int getMessageTypeCount() { if (messageTypeBuilder_ == null) { return messageType_.size(); } else { return messageTypeBuilder_.getCount(); } } /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
       * All top-level definitions in this file.
       * 
*/ public com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index) { if (messageTypeBuilder_ == null) { return messageType_.get(index); } else { return messageTypeBuilder_.getMessage(index); } } /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
       * All top-level definitions in this file.
       * 
*/ public Builder setMessageType( int index, com.google.protobuf.DescriptorProtos.DescriptorProto value) { if (messageTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessageTypeIsMutable(); messageType_.set(index, value); onChanged(); } else { messageTypeBuilder_.setMessage(index, value); } return this; } /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
       * All top-level definitions in this file.
       * 
*/ public Builder setMessageType( int index, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) { if (messageTypeBuilder_ == null) { ensureMessageTypeIsMutable(); messageType_.set(index, builderForValue.build()); onChanged(); } else { messageTypeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
       * All top-level definitions in this file.
       * 
*/ public Builder addMessageType(com.google.protobuf.DescriptorProtos.DescriptorProto value) { if (messageTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessageTypeIsMutable(); messageType_.add(value); onChanged(); } else { messageTypeBuilder_.addMessage(value); } return this; } /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
       * All top-level definitions in this file.
       * 
*/ public Builder addMessageType( int index, com.google.protobuf.DescriptorProtos.DescriptorProto value) { if (messageTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessageTypeIsMutable(); messageType_.add(index, value); onChanged(); } else { messageTypeBuilder_.addMessage(index, value); } return this; } /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
       * All top-level definitions in this file.
       * 
*/ public Builder addMessageType( com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) { if (messageTypeBuilder_ == null) { ensureMessageTypeIsMutable(); messageType_.add(builderForValue.build()); onChanged(); } else { messageTypeBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
       * All top-level definitions in this file.
       * 
*/ public Builder addMessageType( int index, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) { if (messageTypeBuilder_ == null) { ensureMessageTypeIsMutable(); messageType_.add(index, builderForValue.build()); onChanged(); } else { messageTypeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
       * All top-level definitions in this file.
       * 
*/ public Builder addAllMessageType( java.lang.Iterable values) { if (messageTypeBuilder_ == null) { ensureMessageTypeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, messageType_); onChanged(); } else { messageTypeBuilder_.addAllMessages(values); } return this; } /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
       * All top-level definitions in this file.
       * 
*/ public Builder clearMessageType() { if (messageTypeBuilder_ == null) { messageType_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { messageTypeBuilder_.clear(); } return this; } /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
       * All top-level definitions in this file.
       * 
*/ public Builder removeMessageType(int index) { if (messageTypeBuilder_ == null) { ensureMessageTypeIsMutable(); messageType_.remove(index); onChanged(); } else { messageTypeBuilder_.remove(index); } return this; } /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
       * All top-level definitions in this file.
       * 
*/ public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder getMessageTypeBuilder( int index) { return getMessageTypeFieldBuilder().getBuilder(index); } /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
       * All top-level definitions in this file.
       * 
*/ public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder( int index) { if (messageTypeBuilder_ == null) { return messageType_.get(index); } else { return messageTypeBuilder_.getMessageOrBuilder(index); } } /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
       * All top-level definitions in this file.
       * 
*/ public java.util.List getMessageTypeOrBuilderList() { if (messageTypeBuilder_ != null) { return messageTypeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(messageType_); } } /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
       * All top-level definitions in this file.
       * 
*/ public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder addMessageTypeBuilder() { return getMessageTypeFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()); } /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
       * All top-level definitions in this file.
       * 
*/ public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder addMessageTypeBuilder( int index) { return getMessageTypeFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()); } /** * repeated .google.protobuf.DescriptorProto message_type = 4; * *
       * All top-level definitions in this file.
       * 
*/ public java.util.List getMessageTypeBuilderList() { return getMessageTypeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> getMessageTypeFieldBuilder() { if (messageTypeBuilder_ == null) { messageTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>( messageType_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); messageType_ = null; } return messageTypeBuilder_; } private java.util.List enumType_ = java.util.Collections.emptyList(); private void ensureEnumTypeIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { enumType_ = new java.util.ArrayList(enumType_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> enumTypeBuilder_; /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public java.util.List getEnumTypeList() { if (enumTypeBuilder_ == null) { return java.util.Collections.unmodifiableList(enumType_); } else { return enumTypeBuilder_.getMessageList(); } } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public int getEnumTypeCount() { if (enumTypeBuilder_ == null) { return enumType_.size(); } else { return enumTypeBuilder_.getCount(); } } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { if (enumTypeBuilder_ == null) { return enumType_.get(index); } else { return enumTypeBuilder_.getMessage(index); } } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public Builder setEnumType( int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto value) { if (enumTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnumTypeIsMutable(); enumType_.set(index, value); onChanged(); } else { enumTypeBuilder_.setMessage(index, value); } return this; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public Builder setEnumType( int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { if (enumTypeBuilder_ == null) { ensureEnumTypeIsMutable(); enumType_.set(index, builderForValue.build()); onChanged(); } else { enumTypeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public Builder addEnumType(com.google.protobuf.DescriptorProtos.EnumDescriptorProto value) { if (enumTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnumTypeIsMutable(); enumType_.add(value); onChanged(); } else { enumTypeBuilder_.addMessage(value); } return this; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public Builder addEnumType( int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto value) { if (enumTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnumTypeIsMutable(); enumType_.add(index, value); onChanged(); } else { enumTypeBuilder_.addMessage(index, value); } return this; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public Builder addEnumType( com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { if (enumTypeBuilder_ == null) { ensureEnumTypeIsMutable(); enumType_.add(builderForValue.build()); onChanged(); } else { enumTypeBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public Builder addEnumType( int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { if (enumTypeBuilder_ == null) { ensureEnumTypeIsMutable(); enumType_.add(index, builderForValue.build()); onChanged(); } else { enumTypeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public Builder addAllEnumType( java.lang.Iterable values) { if (enumTypeBuilder_ == null) { ensureEnumTypeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, enumType_); onChanged(); } else { enumTypeBuilder_.addAllMessages(values); } return this; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public Builder clearEnumType() { if (enumTypeBuilder_ == null) { enumType_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { enumTypeBuilder_.clear(); } return this; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public Builder removeEnumType(int index) { if (enumTypeBuilder_ == null) { ensureEnumTypeIsMutable(); enumType_.remove(index); onChanged(); } else { enumTypeBuilder_.remove(index); } return this; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder getEnumTypeBuilder( int index) { return getEnumTypeFieldBuilder().getBuilder(index); } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( int index) { if (enumTypeBuilder_ == null) { return enumType_.get(index); } else { return enumTypeBuilder_.getMessageOrBuilder(index); } } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public java.util.List getEnumTypeOrBuilderList() { if (enumTypeBuilder_ != null) { return enumTypeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(enumType_); } } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder() { return getEnumTypeFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.EnumDescriptorProto.getDefaultInstance()); } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder( int index) { return getEnumTypeFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.getDefaultInstance()); } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public java.util.List getEnumTypeBuilderList() { return getEnumTypeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> getEnumTypeFieldBuilder() { if (enumTypeBuilder_ == null) { enumTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder>( enumType_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); enumType_ = null; } return enumTypeBuilder_; } private java.util.List service_ = java.util.Collections.emptyList(); private void ensureServiceIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { service_ = new java.util.ArrayList(service_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.ServiceDescriptorProto, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> serviceBuilder_; /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public java.util.List getServiceList() { if (serviceBuilder_ == null) { return java.util.Collections.unmodifiableList(service_); } else { return serviceBuilder_.getMessageList(); } } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public int getServiceCount() { if (serviceBuilder_ == null) { return service_.size(); } else { return serviceBuilder_.getCount(); } } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getService(int index) { if (serviceBuilder_ == null) { return service_.get(index); } else { return serviceBuilder_.getMessage(index); } } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public Builder setService( int index, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto value) { if (serviceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureServiceIsMutable(); service_.set(index, value); onChanged(); } else { serviceBuilder_.setMessage(index, value); } return this; } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public Builder setService( int index, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) { if (serviceBuilder_ == null) { ensureServiceIsMutable(); service_.set(index, builderForValue.build()); onChanged(); } else { serviceBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public Builder addService(com.google.protobuf.DescriptorProtos.ServiceDescriptorProto value) { if (serviceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureServiceIsMutable(); service_.add(value); onChanged(); } else { serviceBuilder_.addMessage(value); } return this; } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public Builder addService( int index, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto value) { if (serviceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureServiceIsMutable(); service_.add(index, value); onChanged(); } else { serviceBuilder_.addMessage(index, value); } return this; } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public Builder addService( com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) { if (serviceBuilder_ == null) { ensureServiceIsMutable(); service_.add(builderForValue.build()); onChanged(); } else { serviceBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public Builder addService( int index, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) { if (serviceBuilder_ == null) { ensureServiceIsMutable(); service_.add(index, builderForValue.build()); onChanged(); } else { serviceBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public Builder addAllService( java.lang.Iterable values) { if (serviceBuilder_ == null) { ensureServiceIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, service_); onChanged(); } else { serviceBuilder_.addAllMessages(values); } return this; } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public Builder clearService() { if (serviceBuilder_ == null) { service_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { serviceBuilder_.clear(); } return this; } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public Builder removeService(int index) { if (serviceBuilder_ == null) { ensureServiceIsMutable(); service_.remove(index); onChanged(); } else { serviceBuilder_.remove(index); } return this; } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder getServiceBuilder( int index) { return getServiceFieldBuilder().getBuilder(index); } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder( int index) { if (serviceBuilder_ == null) { return service_.get(index); } else { return serviceBuilder_.getMessageOrBuilder(index); } } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public java.util.List getServiceOrBuilderList() { if (serviceBuilder_ != null) { return serviceBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(service_); } } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder addServiceBuilder() { return getServiceFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.getDefaultInstance()); } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder addServiceBuilder( int index) { return getServiceFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.getDefaultInstance()); } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public java.util.List getServiceBuilderList() { return getServiceFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.ServiceDescriptorProto, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> getServiceFieldBuilder() { if (serviceBuilder_ == null) { serviceBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.ServiceDescriptorProto, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder>( service_, ((bitField0_ & 0x00000080) == 0x00000080), getParentForChildren(), isClean()); service_ = null; } return serviceBuilder_; } private java.util.List extension_ = java.util.Collections.emptyList(); private void ensureExtensionIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { extension_ = new java.util.ArrayList(extension_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> extensionBuilder_; /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public java.util.List getExtensionList() { if (extensionBuilder_ == null) { return java.util.Collections.unmodifiableList(extension_); } else { return extensionBuilder_.getMessageList(); } } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public int getExtensionCount() { if (extensionBuilder_ == null) { return extension_.size(); } else { return extensionBuilder_.getCount(); } } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { if (extensionBuilder_ == null) { return extension_.get(index); } else { return extensionBuilder_.getMessage(index); } } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public Builder setExtension( int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { if (extensionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExtensionIsMutable(); extension_.set(index, value); onChanged(); } else { extensionBuilder_.setMessage(index, value); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public Builder setExtension( int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { if (extensionBuilder_ == null) { ensureExtensionIsMutable(); extension_.set(index, builderForValue.build()); onChanged(); } else { extensionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public Builder addExtension(com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { if (extensionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExtensionIsMutable(); extension_.add(value); onChanged(); } else { extensionBuilder_.addMessage(value); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public Builder addExtension( int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { if (extensionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExtensionIsMutable(); extension_.add(index, value); onChanged(); } else { extensionBuilder_.addMessage(index, value); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public Builder addExtension( com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { if (extensionBuilder_ == null) { ensureExtensionIsMutable(); extension_.add(builderForValue.build()); onChanged(); } else { extensionBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public Builder addExtension( int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { if (extensionBuilder_ == null) { ensureExtensionIsMutable(); extension_.add(index, builderForValue.build()); onChanged(); } else { extensionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public Builder addAllExtension( java.lang.Iterable values) { if (extensionBuilder_ == null) { ensureExtensionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, extension_); onChanged(); } else { extensionBuilder_.addAllMessages(values); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public Builder clearExtension() { if (extensionBuilder_ == null) { extension_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { extensionBuilder_.clear(); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public Builder removeExtension(int index) { if (extensionBuilder_ == null) { ensureExtensionIsMutable(); extension_.remove(index); onChanged(); } else { extensionBuilder_.remove(index); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder getExtensionBuilder( int index) { return getExtensionFieldBuilder().getBuilder(index); } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( int index) { if (extensionBuilder_ == null) { return extension_.get(index); } else { return extensionBuilder_.getMessageOrBuilder(index); } } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public java.util.List getExtensionOrBuilderList() { if (extensionBuilder_ != null) { return extensionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(extension_); } } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder() { return getExtensionFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder( int index) { return getExtensionFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public java.util.List getExtensionBuilderList() { return getExtensionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> getExtensionFieldBuilder() { if (extensionBuilder_ == null) { extensionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder>( extension_, ((bitField0_ & 0x00000100) == 0x00000100), getParentForChildren(), isClean()); extension_ = null; } return extensionBuilder_; } private com.google.protobuf.DescriptorProtos.FileOptions options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.DescriptorProtos.FileOptions, com.google.protobuf.DescriptorProtos.FileOptions.Builder, com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder> optionsBuilder_; /** * optional .google.protobuf.FileOptions options = 8; */ public boolean hasOptions() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional .google.protobuf.FileOptions options = 8; */ public com.google.protobuf.DescriptorProtos.FileOptions getOptions() { if (optionsBuilder_ == null) { return options_; } else { return optionsBuilder_.getMessage(); } } /** * optional .google.protobuf.FileOptions options = 8; */ public Builder setOptions(com.google.protobuf.DescriptorProtos.FileOptions value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } options_ = value; onChanged(); } else { optionsBuilder_.setMessage(value); } bitField0_ |= 0x00000200; return this; } /** * optional .google.protobuf.FileOptions options = 8; */ public Builder setOptions( com.google.protobuf.DescriptorProtos.FileOptions.Builder builderForValue) { if (optionsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); } else { optionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; } /** * optional .google.protobuf.FileOptions options = 8; */ public Builder mergeOptions(com.google.protobuf.DescriptorProtos.FileOptions value) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200) && options_ != com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance()) { options_ = com.google.protobuf.DescriptorProtos.FileOptions.newBuilder(options_).mergeFrom(value).buildPartial(); } else { options_ = value; } onChanged(); } else { optionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; return this; } /** * optional .google.protobuf.FileOptions options = 8; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); onChanged(); } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } /** * optional .google.protobuf.FileOptions options = 8; */ public com.google.protobuf.DescriptorProtos.FileOptions.Builder getOptionsBuilder() { bitField0_ |= 0x00000200; onChanged(); return getOptionsFieldBuilder().getBuilder(); } /** * optional .google.protobuf.FileOptions options = 8; */ public com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { return options_; } } /** * optional .google.protobuf.FileOptions options = 8; */ private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.DescriptorProtos.FileOptions, com.google.protobuf.DescriptorProtos.FileOptions.Builder, com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.DescriptorProtos.FileOptions, com.google.protobuf.DescriptorProtos.FileOptions.Builder, com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder>( getOptions(), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } private com.google.protobuf.DescriptorProtos.SourceCodeInfo sourceCodeInfo_ = com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.DescriptorProtos.SourceCodeInfo, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder> sourceCodeInfoBuilder_; /** * optional .google.protobuf.SourceCodeInfo source_code_info = 9; * *
       * This field contains optional information about the original source code.
       * You may safely remove this entire field whithout harming runtime
       * functionality of the descriptors -- the information is needed only by
       * development tools.
       * 
*/ public boolean hasSourceCodeInfo() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional .google.protobuf.SourceCodeInfo source_code_info = 9; * *
       * This field contains optional information about the original source code.
       * You may safely remove this entire field whithout harming runtime
       * functionality of the descriptors -- the information is needed only by
       * development tools.
       * 
*/ public com.google.protobuf.DescriptorProtos.SourceCodeInfo getSourceCodeInfo() { if (sourceCodeInfoBuilder_ == null) { return sourceCodeInfo_; } else { return sourceCodeInfoBuilder_.getMessage(); } } /** * optional .google.protobuf.SourceCodeInfo source_code_info = 9; * *
       * This field contains optional information about the original source code.
       * You may safely remove this entire field whithout harming runtime
       * functionality of the descriptors -- the information is needed only by
       * development tools.
       * 
*/ public Builder setSourceCodeInfo(com.google.protobuf.DescriptorProtos.SourceCodeInfo value) { if (sourceCodeInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sourceCodeInfo_ = value; onChanged(); } else { sourceCodeInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000400; return this; } /** * optional .google.protobuf.SourceCodeInfo source_code_info = 9; * *
       * This field contains optional information about the original source code.
       * You may safely remove this entire field whithout harming runtime
       * functionality of the descriptors -- the information is needed only by
       * development tools.
       * 
*/ public Builder setSourceCodeInfo( com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder builderForValue) { if (sourceCodeInfoBuilder_ == null) { sourceCodeInfo_ = builderForValue.build(); onChanged(); } else { sourceCodeInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; return this; } /** * optional .google.protobuf.SourceCodeInfo source_code_info = 9; * *
       * This field contains optional information about the original source code.
       * You may safely remove this entire field whithout harming runtime
       * functionality of the descriptors -- the information is needed only by
       * development tools.
       * 
*/ public Builder mergeSourceCodeInfo(com.google.protobuf.DescriptorProtos.SourceCodeInfo value) { if (sourceCodeInfoBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400) && sourceCodeInfo_ != com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance()) { sourceCodeInfo_ = com.google.protobuf.DescriptorProtos.SourceCodeInfo.newBuilder(sourceCodeInfo_).mergeFrom(value).buildPartial(); } else { sourceCodeInfo_ = value; } onChanged(); } else { sourceCodeInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000400; return this; } /** * optional .google.protobuf.SourceCodeInfo source_code_info = 9; * *
       * This field contains optional information about the original source code.
       * You may safely remove this entire field whithout harming runtime
       * functionality of the descriptors -- the information is needed only by
       * development tools.
       * 
*/ public Builder clearSourceCodeInfo() { if (sourceCodeInfoBuilder_ == null) { sourceCodeInfo_ = com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance(); onChanged(); } else { sourceCodeInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } /** * optional .google.protobuf.SourceCodeInfo source_code_info = 9; * *
       * This field contains optional information about the original source code.
       * You may safely remove this entire field whithout harming runtime
       * functionality of the descriptors -- the information is needed only by
       * development tools.
       * 
*/ public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder getSourceCodeInfoBuilder() { bitField0_ |= 0x00000400; onChanged(); return getSourceCodeInfoFieldBuilder().getBuilder(); } /** * optional .google.protobuf.SourceCodeInfo source_code_info = 9; * *
       * This field contains optional information about the original source code.
       * You may safely remove this entire field whithout harming runtime
       * functionality of the descriptors -- the information is needed only by
       * development tools.
       * 
*/ public com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder() { if (sourceCodeInfoBuilder_ != null) { return sourceCodeInfoBuilder_.getMessageOrBuilder(); } else { return sourceCodeInfo_; } } /** * optional .google.protobuf.SourceCodeInfo source_code_info = 9; * *
       * This field contains optional information about the original source code.
       * You may safely remove this entire field whithout harming runtime
       * functionality of the descriptors -- the information is needed only by
       * development tools.
       * 
*/ private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.DescriptorProtos.SourceCodeInfo, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder> getSourceCodeInfoFieldBuilder() { if (sourceCodeInfoBuilder_ == null) { sourceCodeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.DescriptorProtos.SourceCodeInfo, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder>( getSourceCodeInfo(), getParentForChildren(), isClean()); sourceCodeInfo_ = null; } return sourceCodeInfoBuilder_; } // @@protoc_insertion_point(builder_scope:google.protobuf.FileDescriptorProto) } static { defaultInstance = new FileDescriptorProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto) } public interface DescriptorProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.DescriptorProto) com.google.protobuf.MessageOrBuilder { /** * optional string name = 1; */ boolean hasName(); /** * optional string name = 1; */ java.lang.String getName(); /** * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ java.util.List getFieldList(); /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ com.google.protobuf.DescriptorProtos.FieldDescriptorProto getField(int index); /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ int getFieldCount(); /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ java.util.List getFieldOrBuilderList(); /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder( int index); /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ java.util.List getExtensionList(); /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index); /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ int getExtensionCount(); /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ java.util.List getExtensionOrBuilderList(); /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( int index); /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ java.util.List getNestedTypeList(); /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ com.google.protobuf.DescriptorProtos.DescriptorProto getNestedType(int index); /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ int getNestedTypeCount(); /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ java.util.List getNestedTypeOrBuilderList(); /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder( int index); /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ java.util.List getEnumTypeList(); /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index); /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ int getEnumTypeCount(); /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ java.util.List getEnumTypeOrBuilderList(); /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( int index); /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ java.util.List getExtensionRangeList(); /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index); /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ int getExtensionRangeCount(); /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ java.util.List getExtensionRangeOrBuilderList(); /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder( int index); /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ java.util.List getOneofDeclList(); /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ com.google.protobuf.DescriptorProtos.OneofDescriptorProto getOneofDecl(int index); /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ int getOneofDeclCount(); /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ java.util.List getOneofDeclOrBuilderList(); /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder getOneofDeclOrBuilder( int index); /** * optional .google.protobuf.MessageOptions options = 7; */ boolean hasOptions(); /** * optional .google.protobuf.MessageOptions options = 7; */ com.google.protobuf.DescriptorProtos.MessageOptions getOptions(); /** * optional .google.protobuf.MessageOptions options = 7; */ com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder(); } /** * Protobuf type {@code google.protobuf.DescriptorProto} * *
   * Describes a message type.
   * 
*/ public static final class DescriptorProto extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.protobuf.DescriptorProto) DescriptorProtoOrBuilder { // Use DescriptorProto.newBuilder() to construct. private DescriptorProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private DescriptorProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final DescriptorProto defaultInstance; public static DescriptorProto getDefaultInstance() { return defaultInstance; } public DescriptorProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DescriptorProto( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { field_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } field_.add(input.readMessage(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.PARSER, extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { nestedType_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } nestedType_.add(input.readMessage(com.google.protobuf.DescriptorProtos.DescriptorProto.PARSER, extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { enumType_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } enumType_.add(input.readMessage(com.google.protobuf.DescriptorProtos.EnumDescriptorProto.PARSER, extensionRegistry)); break; } case 42: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { extensionRange_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } extensionRange_.add(input.readMessage(com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.PARSER, extensionRegistry)); break; } case 50: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { extension_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } extension_.add(input.readMessage(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.PARSER, extensionRegistry)); break; } case 58: { com.google.protobuf.DescriptorProtos.MessageOptions.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = options_.toBuilder(); } options_ = input.readMessage(com.google.protobuf.DescriptorProtos.MessageOptions.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(options_); options_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 66: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { oneofDecl_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } oneofDecl_.add(input.readMessage(com.google.protobuf.DescriptorProtos.OneofDescriptorProto.PARSER, extensionRegistry)); 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 { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { field_ = java.util.Collections.unmodifiableList(field_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { nestedType_ = java.util.Collections.unmodifiableList(nestedType_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { enumType_ = java.util.Collections.unmodifiableList(enumType_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { extensionRange_ = java.util.Collections.unmodifiableList(extensionRange_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { extension_ = java.util.Collections.unmodifiableList(extension_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { oneofDecl_ = java.util.Collections.unmodifiableList(oneofDecl_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.DescriptorProto.class, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DescriptorProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DescriptorProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public interface ExtensionRangeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.DescriptorProto.ExtensionRange) com.google.protobuf.MessageOrBuilder { /** * optional int32 start = 1; */ boolean hasStart(); /** * optional int32 start = 1; */ int getStart(); /** * optional int32 end = 2; */ boolean hasEnd(); /** * optional int32 end = 2; */ int getEnd(); } /** * Protobuf type {@code google.protobuf.DescriptorProto.ExtensionRange} */ public static final class ExtensionRange extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.protobuf.DescriptorProto.ExtensionRange) ExtensionRangeOrBuilder { // Use ExtensionRange.newBuilder() to construct. private ExtensionRange(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ExtensionRange(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ExtensionRange defaultInstance; public static ExtensionRange getDefaultInstance() { return defaultInstance; } public ExtensionRange getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExtensionRange( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; start_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; end_ = input.readInt32(); 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 com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.class, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ExtensionRange parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExtensionRange(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int START_FIELD_NUMBER = 1; private int start_; /** * optional int32 start = 1; */ public boolean hasStart() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 start = 1; */ public int getStart() { return start_; } public static final int END_FIELD_NUMBER = 2; private int end_; /** * optional int32 end = 2; */ public boolean hasEnd() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 end = 2; */ public int getEnd() { return end_; } private void initFields() { start_ = 0; end_ = 0; } 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(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, start_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, end_); } 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 .computeInt32Size(1, start_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, end_); } 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 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange 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(com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange 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 google.protobuf.DescriptorProto.ExtensionRange} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.protobuf.DescriptorProto.ExtensionRange) com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.class, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.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(); start_ = 0; bitField0_ = (bitField0_ & ~0x00000001); end_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor; } public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.getDefaultInstance(); } public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange build() { com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange buildPartial() { com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange result = new com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.start_ = start_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.end_ = end_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange) { return mergeFrom((com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange other) { if (other == com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.getDefaultInstance()) return this; if (other.hasStart()) { setStart(other.getStart()); } if (other.hasEnd()) { setEnd(other.getEnd()); } 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 { com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int start_ ; /** * optional int32 start = 1; */ public boolean hasStart() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 start = 1; */ public int getStart() { return start_; } /** * optional int32 start = 1; */ public Builder setStart(int value) { bitField0_ |= 0x00000001; start_ = value; onChanged(); return this; } /** * optional int32 start = 1; */ public Builder clearStart() { bitField0_ = (bitField0_ & ~0x00000001); start_ = 0; onChanged(); return this; } private int end_ ; /** * optional int32 end = 2; */ public boolean hasEnd() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 end = 2; */ public int getEnd() { return end_; } /** * optional int32 end = 2; */ public Builder setEnd(int value) { bitField0_ |= 0x00000002; end_ = value; onChanged(); return this; } /** * optional int32 end = 2; */ public Builder clearEnd() { bitField0_ = (bitField0_ & ~0x00000002); end_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:google.protobuf.DescriptorProto.ExtensionRange) } static { defaultInstance = new ExtensionRange(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ExtensionRange) } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; /** * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FIELD_FIELD_NUMBER = 2; private java.util.List field_; /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public java.util.List getFieldList() { return field_; } /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public java.util.List getFieldOrBuilderList() { return field_; } /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public int getFieldCount() { return field_.size(); } /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getField(int index) { return field_.get(index); } /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder( int index) { return field_.get(index); } public static final int EXTENSION_FIELD_NUMBER = 6; private java.util.List extension_; /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public java.util.List getExtensionList() { return extension_; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public java.util.List getExtensionOrBuilderList() { return extension_; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public int getExtensionCount() { return extension_.size(); } /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { return extension_.get(index); } /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( int index) { return extension_.get(index); } public static final int NESTED_TYPE_FIELD_NUMBER = 3; private java.util.List nestedType_; /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public java.util.List getNestedTypeList() { return nestedType_; } /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public java.util.List getNestedTypeOrBuilderList() { return nestedType_; } /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public int getNestedTypeCount() { return nestedType_.size(); } /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public com.google.protobuf.DescriptorProtos.DescriptorProto getNestedType(int index) { return nestedType_.get(index); } /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder( int index) { return nestedType_.get(index); } public static final int ENUM_TYPE_FIELD_NUMBER = 4; private java.util.List enumType_; /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public java.util.List getEnumTypeList() { return enumType_; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public java.util.List getEnumTypeOrBuilderList() { return enumType_; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public int getEnumTypeCount() { return enumType_.size(); } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { return enumType_.get(index); } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( int index) { return enumType_.get(index); } public static final int EXTENSION_RANGE_FIELD_NUMBER = 5; private java.util.List extensionRange_; /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public java.util.List getExtensionRangeList() { return extensionRange_; } /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public java.util.List getExtensionRangeOrBuilderList() { return extensionRange_; } /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public int getExtensionRangeCount() { return extensionRange_.size(); } /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index) { return extensionRange_.get(index); } /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder( int index) { return extensionRange_.get(index); } public static final int ONEOF_DECL_FIELD_NUMBER = 8; private java.util.List oneofDecl_; /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public java.util.List getOneofDeclList() { return oneofDecl_; } /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public java.util.List getOneofDeclOrBuilderList() { return oneofDecl_; } /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public int getOneofDeclCount() { return oneofDecl_.size(); } /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public com.google.protobuf.DescriptorProtos.OneofDescriptorProto getOneofDecl(int index) { return oneofDecl_.get(index); } /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder getOneofDeclOrBuilder( int index) { return oneofDecl_.get(index); } public static final int OPTIONS_FIELD_NUMBER = 7; private com.google.protobuf.DescriptorProtos.MessageOptions options_; /** * optional .google.protobuf.MessageOptions options = 7; */ public boolean hasOptions() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .google.protobuf.MessageOptions options = 7; */ public com.google.protobuf.DescriptorProtos.MessageOptions getOptions() { return options_; } /** * optional .google.protobuf.MessageOptions options = 7; */ public com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder() { return options_; } private void initFields() { name_ = ""; field_ = java.util.Collections.emptyList(); extension_ = java.util.Collections.emptyList(); nestedType_ = java.util.Collections.emptyList(); enumType_ = java.util.Collections.emptyList(); extensionRange_ = java.util.Collections.emptyList(); oneofDecl_ = java.util.Collections.emptyList(); options_ = com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getFieldCount(); i++) { if (!getField(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getExtensionCount(); i++) { if (!getExtension(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getNestedTypeCount(); i++) { if (!getNestedType(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getEnumTypeCount(); i++) { if (!getEnumType(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasOptions()) { if (!getOptions().isInitialized()) { 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, getNameBytes()); } for (int i = 0; i < field_.size(); i++) { output.writeMessage(2, field_.get(i)); } for (int i = 0; i < nestedType_.size(); i++) { output.writeMessage(3, nestedType_.get(i)); } for (int i = 0; i < enumType_.size(); i++) { output.writeMessage(4, enumType_.get(i)); } for (int i = 0; i < extensionRange_.size(); i++) { output.writeMessage(5, extensionRange_.get(i)); } for (int i = 0; i < extension_.size(); i++) { output.writeMessage(6, extension_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(7, options_); } for (int i = 0; i < oneofDecl_.size(); i++) { output.writeMessage(8, oneofDecl_.get(i)); } 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, getNameBytes()); } for (int i = 0; i < field_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, field_.get(i)); } for (int i = 0; i < nestedType_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, nestedType_.get(i)); } for (int i = 0; i < enumType_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, enumType_.get(i)); } for (int i = 0; i < extensionRange_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, extensionRange_.get(i)); } for (int i = 0; i < extension_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, extension_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, options_); } for (int i = 0; i < oneofDecl_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, oneofDecl_.get(i)); } 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 com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.DescriptorProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protobuf.DescriptorProtos.DescriptorProto parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.DescriptorProto 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(com.google.protobuf.DescriptorProtos.DescriptorProto 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 google.protobuf.DescriptorProto} * *
     * Describes a message type.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.protobuf.DescriptorProto) com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.DescriptorProto.class, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.DescriptorProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getFieldFieldBuilder(); getExtensionFieldBuilder(); getNestedTypeFieldBuilder(); getEnumTypeFieldBuilder(); getExtensionRangeFieldBuilder(); getOneofDeclFieldBuilder(); getOptionsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (fieldBuilder_ == null) { field_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { fieldBuilder_.clear(); } if (extensionBuilder_ == null) { extension_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { extensionBuilder_.clear(); } if (nestedTypeBuilder_ == null) { nestedType_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { nestedTypeBuilder_.clear(); } if (enumTypeBuilder_ == null) { enumType_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { enumTypeBuilder_.clear(); } if (extensionRangeBuilder_ == null) { extensionRange_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { extensionRangeBuilder_.clear(); } if (oneofDeclBuilder_ == null) { oneofDecl_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { oneofDeclBuilder_.clear(); } if (optionsBuilder_ == null) { options_ = com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance(); } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_descriptor; } public com.google.protobuf.DescriptorProtos.DescriptorProto getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance(); } public com.google.protobuf.DescriptorProtos.DescriptorProto build() { com.google.protobuf.DescriptorProtos.DescriptorProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protobuf.DescriptorProtos.DescriptorProto buildPartial() { com.google.protobuf.DescriptorProtos.DescriptorProto result = new com.google.protobuf.DescriptorProtos.DescriptorProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (fieldBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { field_ = java.util.Collections.unmodifiableList(field_); bitField0_ = (bitField0_ & ~0x00000002); } result.field_ = field_; } else { result.field_ = fieldBuilder_.build(); } if (extensionBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { extension_ = java.util.Collections.unmodifiableList(extension_); bitField0_ = (bitField0_ & ~0x00000004); } result.extension_ = extension_; } else { result.extension_ = extensionBuilder_.build(); } if (nestedTypeBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { nestedType_ = java.util.Collections.unmodifiableList(nestedType_); bitField0_ = (bitField0_ & ~0x00000008); } result.nestedType_ = nestedType_; } else { result.nestedType_ = nestedTypeBuilder_.build(); } if (enumTypeBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { enumType_ = java.util.Collections.unmodifiableList(enumType_); bitField0_ = (bitField0_ & ~0x00000010); } result.enumType_ = enumType_; } else { result.enumType_ = enumTypeBuilder_.build(); } if (extensionRangeBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { extensionRange_ = java.util.Collections.unmodifiableList(extensionRange_); bitField0_ = (bitField0_ & ~0x00000020); } result.extensionRange_ = extensionRange_; } else { result.extensionRange_ = extensionRangeBuilder_.build(); } if (oneofDeclBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { oneofDecl_ = java.util.Collections.unmodifiableList(oneofDecl_); bitField0_ = (bitField0_ & ~0x00000040); } result.oneofDecl_ = oneofDecl_; } else { result.oneofDecl_ = oneofDeclBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000002; } if (optionsBuilder_ == null) { result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.DescriptorProto) { return mergeFrom((com.google.protobuf.DescriptorProtos.DescriptorProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.DescriptorProto other) { if (other == com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (fieldBuilder_ == null) { if (!other.field_.isEmpty()) { if (field_.isEmpty()) { field_ = other.field_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFieldIsMutable(); field_.addAll(other.field_); } onChanged(); } } else { if (!other.field_.isEmpty()) { if (fieldBuilder_.isEmpty()) { fieldBuilder_.dispose(); fieldBuilder_ = null; field_ = other.field_; bitField0_ = (bitField0_ & ~0x00000002); fieldBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getFieldFieldBuilder() : null; } else { fieldBuilder_.addAllMessages(other.field_); } } } if (extensionBuilder_ == null) { if (!other.extension_.isEmpty()) { if (extension_.isEmpty()) { extension_ = other.extension_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureExtensionIsMutable(); extension_.addAll(other.extension_); } onChanged(); } } else { if (!other.extension_.isEmpty()) { if (extensionBuilder_.isEmpty()) { extensionBuilder_.dispose(); extensionBuilder_ = null; extension_ = other.extension_; bitField0_ = (bitField0_ & ~0x00000004); extensionBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getExtensionFieldBuilder() : null; } else { extensionBuilder_.addAllMessages(other.extension_); } } } if (nestedTypeBuilder_ == null) { if (!other.nestedType_.isEmpty()) { if (nestedType_.isEmpty()) { nestedType_ = other.nestedType_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureNestedTypeIsMutable(); nestedType_.addAll(other.nestedType_); } onChanged(); } } else { if (!other.nestedType_.isEmpty()) { if (nestedTypeBuilder_.isEmpty()) { nestedTypeBuilder_.dispose(); nestedTypeBuilder_ = null; nestedType_ = other.nestedType_; bitField0_ = (bitField0_ & ~0x00000008); nestedTypeBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getNestedTypeFieldBuilder() : null; } else { nestedTypeBuilder_.addAllMessages(other.nestedType_); } } } if (enumTypeBuilder_ == null) { if (!other.enumType_.isEmpty()) { if (enumType_.isEmpty()) { enumType_ = other.enumType_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureEnumTypeIsMutable(); enumType_.addAll(other.enumType_); } onChanged(); } } else { if (!other.enumType_.isEmpty()) { if (enumTypeBuilder_.isEmpty()) { enumTypeBuilder_.dispose(); enumTypeBuilder_ = null; enumType_ = other.enumType_; bitField0_ = (bitField0_ & ~0x00000010); enumTypeBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getEnumTypeFieldBuilder() : null; } else { enumTypeBuilder_.addAllMessages(other.enumType_); } } } if (extensionRangeBuilder_ == null) { if (!other.extensionRange_.isEmpty()) { if (extensionRange_.isEmpty()) { extensionRange_ = other.extensionRange_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureExtensionRangeIsMutable(); extensionRange_.addAll(other.extensionRange_); } onChanged(); } } else { if (!other.extensionRange_.isEmpty()) { if (extensionRangeBuilder_.isEmpty()) { extensionRangeBuilder_.dispose(); extensionRangeBuilder_ = null; extensionRange_ = other.extensionRange_; bitField0_ = (bitField0_ & ~0x00000020); extensionRangeBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getExtensionRangeFieldBuilder() : null; } else { extensionRangeBuilder_.addAllMessages(other.extensionRange_); } } } if (oneofDeclBuilder_ == null) { if (!other.oneofDecl_.isEmpty()) { if (oneofDecl_.isEmpty()) { oneofDecl_ = other.oneofDecl_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureOneofDeclIsMutable(); oneofDecl_.addAll(other.oneofDecl_); } onChanged(); } } else { if (!other.oneofDecl_.isEmpty()) { if (oneofDeclBuilder_.isEmpty()) { oneofDeclBuilder_.dispose(); oneofDeclBuilder_ = null; oneofDecl_ = other.oneofDecl_; bitField0_ = (bitField0_ & ~0x00000040); oneofDeclBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getOneofDeclFieldBuilder() : null; } else { oneofDeclBuilder_.addAllMessages(other.oneofDecl_); } } } if (other.hasOptions()) { mergeOptions(other.getOptions()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getFieldCount(); i++) { if (!getField(i).isInitialized()) { return false; } } for (int i = 0; i < getExtensionCount(); i++) { if (!getExtension(i).isInitialized()) { return false; } } for (int i = 0; i < getNestedTypeCount(); i++) { if (!getNestedType(i).isInitialized()) { return false; } } for (int i = 0; i < getEnumTypeCount(); i++) { if (!getEnumType(i).isInitialized()) { return false; } } if (hasOptions()) { if (!getOptions().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.DescriptorProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.DescriptorProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private java.util.List field_ = java.util.Collections.emptyList(); private void ensureFieldIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { field_ = new java.util.ArrayList(field_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> fieldBuilder_; /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public java.util.List getFieldList() { if (fieldBuilder_ == null) { return java.util.Collections.unmodifiableList(field_); } else { return fieldBuilder_.getMessageList(); } } /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public int getFieldCount() { if (fieldBuilder_ == null) { return field_.size(); } else { return fieldBuilder_.getCount(); } } /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getField(int index) { if (fieldBuilder_ == null) { return field_.get(index); } else { return fieldBuilder_.getMessage(index); } } /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public Builder setField( int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { if (fieldBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldIsMutable(); field_.set(index, value); onChanged(); } else { fieldBuilder_.setMessage(index, value); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public Builder setField( int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { if (fieldBuilder_ == null) { ensureFieldIsMutable(); field_.set(index, builderForValue.build()); onChanged(); } else { fieldBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public Builder addField(com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { if (fieldBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldIsMutable(); field_.add(value); onChanged(); } else { fieldBuilder_.addMessage(value); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public Builder addField( int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { if (fieldBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldIsMutable(); field_.add(index, value); onChanged(); } else { fieldBuilder_.addMessage(index, value); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public Builder addField( com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { if (fieldBuilder_ == null) { ensureFieldIsMutable(); field_.add(builderForValue.build()); onChanged(); } else { fieldBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public Builder addField( int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { if (fieldBuilder_ == null) { ensureFieldIsMutable(); field_.add(index, builderForValue.build()); onChanged(); } else { fieldBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public Builder addAllField( java.lang.Iterable values) { if (fieldBuilder_ == null) { ensureFieldIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, field_); onChanged(); } else { fieldBuilder_.addAllMessages(values); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public Builder clearField() { if (fieldBuilder_ == null) { field_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { fieldBuilder_.clear(); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public Builder removeField(int index) { if (fieldBuilder_ == null) { ensureFieldIsMutable(); field_.remove(index); onChanged(); } else { fieldBuilder_.remove(index); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder getFieldBuilder( int index) { return getFieldFieldBuilder().getBuilder(index); } /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder( int index) { if (fieldBuilder_ == null) { return field_.get(index); } else { return fieldBuilder_.getMessageOrBuilder(index); } } /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public java.util.List getFieldOrBuilderList() { if (fieldBuilder_ != null) { return fieldBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(field_); } } /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder addFieldBuilder() { return getFieldFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); } /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder addFieldBuilder( int index) { return getFieldFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); } /** * repeated .google.protobuf.FieldDescriptorProto field = 2; */ public java.util.List getFieldBuilderList() { return getFieldFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> getFieldFieldBuilder() { if (fieldBuilder_ == null) { fieldBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder>( field_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); field_ = null; } return fieldBuilder_; } private java.util.List extension_ = java.util.Collections.emptyList(); private void ensureExtensionIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { extension_ = new java.util.ArrayList(extension_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> extensionBuilder_; /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public java.util.List getExtensionList() { if (extensionBuilder_ == null) { return java.util.Collections.unmodifiableList(extension_); } else { return extensionBuilder_.getMessageList(); } } /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public int getExtensionCount() { if (extensionBuilder_ == null) { return extension_.size(); } else { return extensionBuilder_.getCount(); } } /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { if (extensionBuilder_ == null) { return extension_.get(index); } else { return extensionBuilder_.getMessage(index); } } /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public Builder setExtension( int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { if (extensionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExtensionIsMutable(); extension_.set(index, value); onChanged(); } else { extensionBuilder_.setMessage(index, value); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public Builder setExtension( int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { if (extensionBuilder_ == null) { ensureExtensionIsMutable(); extension_.set(index, builderForValue.build()); onChanged(); } else { extensionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public Builder addExtension(com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { if (extensionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExtensionIsMutable(); extension_.add(value); onChanged(); } else { extensionBuilder_.addMessage(value); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public Builder addExtension( int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { if (extensionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExtensionIsMutable(); extension_.add(index, value); onChanged(); } else { extensionBuilder_.addMessage(index, value); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public Builder addExtension( com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { if (extensionBuilder_ == null) { ensureExtensionIsMutable(); extension_.add(builderForValue.build()); onChanged(); } else { extensionBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public Builder addExtension( int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { if (extensionBuilder_ == null) { ensureExtensionIsMutable(); extension_.add(index, builderForValue.build()); onChanged(); } else { extensionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public Builder addAllExtension( java.lang.Iterable values) { if (extensionBuilder_ == null) { ensureExtensionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, extension_); onChanged(); } else { extensionBuilder_.addAllMessages(values); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public Builder clearExtension() { if (extensionBuilder_ == null) { extension_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { extensionBuilder_.clear(); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public Builder removeExtension(int index) { if (extensionBuilder_ == null) { ensureExtensionIsMutable(); extension_.remove(index); onChanged(); } else { extensionBuilder_.remove(index); } return this; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder getExtensionBuilder( int index) { return getExtensionFieldBuilder().getBuilder(index); } /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( int index) { if (extensionBuilder_ == null) { return extension_.get(index); } else { return extensionBuilder_.getMessageOrBuilder(index); } } /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public java.util.List getExtensionOrBuilderList() { if (extensionBuilder_ != null) { return extensionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(extension_); } } /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder() { return getExtensionFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); } /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder( int index) { return getExtensionFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); } /** * repeated .google.protobuf.FieldDescriptorProto extension = 6; */ public java.util.List getExtensionBuilderList() { return getExtensionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> getExtensionFieldBuilder() { if (extensionBuilder_ == null) { extensionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder>( extension_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); extension_ = null; } return extensionBuilder_; } private java.util.List nestedType_ = java.util.Collections.emptyList(); private void ensureNestedTypeIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { nestedType_ = new java.util.ArrayList(nestedType_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> nestedTypeBuilder_; /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public java.util.List getNestedTypeList() { if (nestedTypeBuilder_ == null) { return java.util.Collections.unmodifiableList(nestedType_); } else { return nestedTypeBuilder_.getMessageList(); } } /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public int getNestedTypeCount() { if (nestedTypeBuilder_ == null) { return nestedType_.size(); } else { return nestedTypeBuilder_.getCount(); } } /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public com.google.protobuf.DescriptorProtos.DescriptorProto getNestedType(int index) { if (nestedTypeBuilder_ == null) { return nestedType_.get(index); } else { return nestedTypeBuilder_.getMessage(index); } } /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public Builder setNestedType( int index, com.google.protobuf.DescriptorProtos.DescriptorProto value) { if (nestedTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNestedTypeIsMutable(); nestedType_.set(index, value); onChanged(); } else { nestedTypeBuilder_.setMessage(index, value); } return this; } /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public Builder setNestedType( int index, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) { if (nestedTypeBuilder_ == null) { ensureNestedTypeIsMutable(); nestedType_.set(index, builderForValue.build()); onChanged(); } else { nestedTypeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public Builder addNestedType(com.google.protobuf.DescriptorProtos.DescriptorProto value) { if (nestedTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNestedTypeIsMutable(); nestedType_.add(value); onChanged(); } else { nestedTypeBuilder_.addMessage(value); } return this; } /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public Builder addNestedType( int index, com.google.protobuf.DescriptorProtos.DescriptorProto value) { if (nestedTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNestedTypeIsMutable(); nestedType_.add(index, value); onChanged(); } else { nestedTypeBuilder_.addMessage(index, value); } return this; } /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public Builder addNestedType( com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) { if (nestedTypeBuilder_ == null) { ensureNestedTypeIsMutable(); nestedType_.add(builderForValue.build()); onChanged(); } else { nestedTypeBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public Builder addNestedType( int index, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) { if (nestedTypeBuilder_ == null) { ensureNestedTypeIsMutable(); nestedType_.add(index, builderForValue.build()); onChanged(); } else { nestedTypeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public Builder addAllNestedType( java.lang.Iterable values) { if (nestedTypeBuilder_ == null) { ensureNestedTypeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, nestedType_); onChanged(); } else { nestedTypeBuilder_.addAllMessages(values); } return this; } /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public Builder clearNestedType() { if (nestedTypeBuilder_ == null) { nestedType_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { nestedTypeBuilder_.clear(); } return this; } /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public Builder removeNestedType(int index) { if (nestedTypeBuilder_ == null) { ensureNestedTypeIsMutable(); nestedType_.remove(index); onChanged(); } else { nestedTypeBuilder_.remove(index); } return this; } /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder getNestedTypeBuilder( int index) { return getNestedTypeFieldBuilder().getBuilder(index); } /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder( int index) { if (nestedTypeBuilder_ == null) { return nestedType_.get(index); } else { return nestedTypeBuilder_.getMessageOrBuilder(index); } } /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public java.util.List getNestedTypeOrBuilderList() { if (nestedTypeBuilder_ != null) { return nestedTypeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(nestedType_); } } /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder addNestedTypeBuilder() { return getNestedTypeFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()); } /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder addNestedTypeBuilder( int index) { return getNestedTypeFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()); } /** * repeated .google.protobuf.DescriptorProto nested_type = 3; */ public java.util.List getNestedTypeBuilderList() { return getNestedTypeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> getNestedTypeFieldBuilder() { if (nestedTypeBuilder_ == null) { nestedTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>( nestedType_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); nestedType_ = null; } return nestedTypeBuilder_; } private java.util.List enumType_ = java.util.Collections.emptyList(); private void ensureEnumTypeIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { enumType_ = new java.util.ArrayList(enumType_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> enumTypeBuilder_; /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public java.util.List getEnumTypeList() { if (enumTypeBuilder_ == null) { return java.util.Collections.unmodifiableList(enumType_); } else { return enumTypeBuilder_.getMessageList(); } } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public int getEnumTypeCount() { if (enumTypeBuilder_ == null) { return enumType_.size(); } else { return enumTypeBuilder_.getCount(); } } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { if (enumTypeBuilder_ == null) { return enumType_.get(index); } else { return enumTypeBuilder_.getMessage(index); } } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public Builder setEnumType( int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto value) { if (enumTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnumTypeIsMutable(); enumType_.set(index, value); onChanged(); } else { enumTypeBuilder_.setMessage(index, value); } return this; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public Builder setEnumType( int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { if (enumTypeBuilder_ == null) { ensureEnumTypeIsMutable(); enumType_.set(index, builderForValue.build()); onChanged(); } else { enumTypeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public Builder addEnumType(com.google.protobuf.DescriptorProtos.EnumDescriptorProto value) { if (enumTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnumTypeIsMutable(); enumType_.add(value); onChanged(); } else { enumTypeBuilder_.addMessage(value); } return this; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public Builder addEnumType( int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto value) { if (enumTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnumTypeIsMutable(); enumType_.add(index, value); onChanged(); } else { enumTypeBuilder_.addMessage(index, value); } return this; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public Builder addEnumType( com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { if (enumTypeBuilder_ == null) { ensureEnumTypeIsMutable(); enumType_.add(builderForValue.build()); onChanged(); } else { enumTypeBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public Builder addEnumType( int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { if (enumTypeBuilder_ == null) { ensureEnumTypeIsMutable(); enumType_.add(index, builderForValue.build()); onChanged(); } else { enumTypeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public Builder addAllEnumType( java.lang.Iterable values) { if (enumTypeBuilder_ == null) { ensureEnumTypeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, enumType_); onChanged(); } else { enumTypeBuilder_.addAllMessages(values); } return this; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public Builder clearEnumType() { if (enumTypeBuilder_ == null) { enumType_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { enumTypeBuilder_.clear(); } return this; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public Builder removeEnumType(int index) { if (enumTypeBuilder_ == null) { ensureEnumTypeIsMutable(); enumType_.remove(index); onChanged(); } else { enumTypeBuilder_.remove(index); } return this; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder getEnumTypeBuilder( int index) { return getEnumTypeFieldBuilder().getBuilder(index); } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( int index) { if (enumTypeBuilder_ == null) { return enumType_.get(index); } else { return enumTypeBuilder_.getMessageOrBuilder(index); } } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public java.util.List getEnumTypeOrBuilderList() { if (enumTypeBuilder_ != null) { return enumTypeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(enumType_); } } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder() { return getEnumTypeFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.EnumDescriptorProto.getDefaultInstance()); } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder( int index) { return getEnumTypeFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.getDefaultInstance()); } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ public java.util.List getEnumTypeBuilderList() { return getEnumTypeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> getEnumTypeFieldBuilder() { if (enumTypeBuilder_ == null) { enumTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder>( enumType_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); enumType_ = null; } return enumTypeBuilder_; } private java.util.List extensionRange_ = java.util.Collections.emptyList(); private void ensureExtensionRangeIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { extensionRange_ = new java.util.ArrayList(extensionRange_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> extensionRangeBuilder_; /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public java.util.List getExtensionRangeList() { if (extensionRangeBuilder_ == null) { return java.util.Collections.unmodifiableList(extensionRange_); } else { return extensionRangeBuilder_.getMessageList(); } } /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public int getExtensionRangeCount() { if (extensionRangeBuilder_ == null) { return extensionRange_.size(); } else { return extensionRangeBuilder_.getCount(); } } /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index) { if (extensionRangeBuilder_ == null) { return extensionRange_.get(index); } else { return extensionRangeBuilder_.getMessage(index); } } /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public Builder setExtensionRange( int index, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange value) { if (extensionRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExtensionRangeIsMutable(); extensionRange_.set(index, value); onChanged(); } else { extensionRangeBuilder_.setMessage(index, value); } return this; } /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public Builder setExtensionRange( int index, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder builderForValue) { if (extensionRangeBuilder_ == null) { ensureExtensionRangeIsMutable(); extensionRange_.set(index, builderForValue.build()); onChanged(); } else { extensionRangeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public Builder addExtensionRange(com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange value) { if (extensionRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExtensionRangeIsMutable(); extensionRange_.add(value); onChanged(); } else { extensionRangeBuilder_.addMessage(value); } return this; } /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public Builder addExtensionRange( int index, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange value) { if (extensionRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExtensionRangeIsMutable(); extensionRange_.add(index, value); onChanged(); } else { extensionRangeBuilder_.addMessage(index, value); } return this; } /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public Builder addExtensionRange( com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder builderForValue) { if (extensionRangeBuilder_ == null) { ensureExtensionRangeIsMutable(); extensionRange_.add(builderForValue.build()); onChanged(); } else { extensionRangeBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public Builder addExtensionRange( int index, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder builderForValue) { if (extensionRangeBuilder_ == null) { ensureExtensionRangeIsMutable(); extensionRange_.add(index, builderForValue.build()); onChanged(); } else { extensionRangeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public Builder addAllExtensionRange( java.lang.Iterable values) { if (extensionRangeBuilder_ == null) { ensureExtensionRangeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, extensionRange_); onChanged(); } else { extensionRangeBuilder_.addAllMessages(values); } return this; } /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public Builder clearExtensionRange() { if (extensionRangeBuilder_ == null) { extensionRange_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { extensionRangeBuilder_.clear(); } return this; } /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public Builder removeExtensionRange(int index) { if (extensionRangeBuilder_ == null) { ensureExtensionRangeIsMutable(); extensionRange_.remove(index); onChanged(); } else { extensionRangeBuilder_.remove(index); } return this; } /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder getExtensionRangeBuilder( int index) { return getExtensionRangeFieldBuilder().getBuilder(index); } /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder( int index) { if (extensionRangeBuilder_ == null) { return extensionRange_.get(index); } else { return extensionRangeBuilder_.getMessageOrBuilder(index); } } /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public java.util.List getExtensionRangeOrBuilderList() { if (extensionRangeBuilder_ != null) { return extensionRangeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(extensionRange_); } } /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder addExtensionRangeBuilder() { return getExtensionRangeFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.getDefaultInstance()); } /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder addExtensionRangeBuilder( int index) { return getExtensionRangeFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.getDefaultInstance()); } /** * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ public java.util.List getExtensionRangeBuilderList() { return getExtensionRangeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> getExtensionRangeFieldBuilder() { if (extensionRangeBuilder_ == null) { extensionRangeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder>( extensionRange_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); extensionRange_ = null; } return extensionRangeBuilder_; } private java.util.List oneofDecl_ = java.util.Collections.emptyList(); private void ensureOneofDeclIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { oneofDecl_ = new java.util.ArrayList(oneofDecl_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.OneofDescriptorProto, com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder> oneofDeclBuilder_; /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public java.util.List getOneofDeclList() { if (oneofDeclBuilder_ == null) { return java.util.Collections.unmodifiableList(oneofDecl_); } else { return oneofDeclBuilder_.getMessageList(); } } /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public int getOneofDeclCount() { if (oneofDeclBuilder_ == null) { return oneofDecl_.size(); } else { return oneofDeclBuilder_.getCount(); } } /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public com.google.protobuf.DescriptorProtos.OneofDescriptorProto getOneofDecl(int index) { if (oneofDeclBuilder_ == null) { return oneofDecl_.get(index); } else { return oneofDeclBuilder_.getMessage(index); } } /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public Builder setOneofDecl( int index, com.google.protobuf.DescriptorProtos.OneofDescriptorProto value) { if (oneofDeclBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOneofDeclIsMutable(); oneofDecl_.set(index, value); onChanged(); } else { oneofDeclBuilder_.setMessage(index, value); } return this; } /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public Builder setOneofDecl( int index, com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder builderForValue) { if (oneofDeclBuilder_ == null) { ensureOneofDeclIsMutable(); oneofDecl_.set(index, builderForValue.build()); onChanged(); } else { oneofDeclBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public Builder addOneofDecl(com.google.protobuf.DescriptorProtos.OneofDescriptorProto value) { if (oneofDeclBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOneofDeclIsMutable(); oneofDecl_.add(value); onChanged(); } else { oneofDeclBuilder_.addMessage(value); } return this; } /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public Builder addOneofDecl( int index, com.google.protobuf.DescriptorProtos.OneofDescriptorProto value) { if (oneofDeclBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOneofDeclIsMutable(); oneofDecl_.add(index, value); onChanged(); } else { oneofDeclBuilder_.addMessage(index, value); } return this; } /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public Builder addOneofDecl( com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder builderForValue) { if (oneofDeclBuilder_ == null) { ensureOneofDeclIsMutable(); oneofDecl_.add(builderForValue.build()); onChanged(); } else { oneofDeclBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public Builder addOneofDecl( int index, com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder builderForValue) { if (oneofDeclBuilder_ == null) { ensureOneofDeclIsMutable(); oneofDecl_.add(index, builderForValue.build()); onChanged(); } else { oneofDeclBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public Builder addAllOneofDecl( java.lang.Iterable values) { if (oneofDeclBuilder_ == null) { ensureOneofDeclIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, oneofDecl_); onChanged(); } else { oneofDeclBuilder_.addAllMessages(values); } return this; } /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public Builder clearOneofDecl() { if (oneofDeclBuilder_ == null) { oneofDecl_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { oneofDeclBuilder_.clear(); } return this; } /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public Builder removeOneofDecl(int index) { if (oneofDeclBuilder_ == null) { ensureOneofDeclIsMutable(); oneofDecl_.remove(index); onChanged(); } else { oneofDeclBuilder_.remove(index); } return this; } /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder getOneofDeclBuilder( int index) { return getOneofDeclFieldBuilder().getBuilder(index); } /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder getOneofDeclOrBuilder( int index) { if (oneofDeclBuilder_ == null) { return oneofDecl_.get(index); } else { return oneofDeclBuilder_.getMessageOrBuilder(index); } } /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public java.util.List getOneofDeclOrBuilderList() { if (oneofDeclBuilder_ != null) { return oneofDeclBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(oneofDecl_); } } /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder addOneofDeclBuilder() { return getOneofDeclFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.OneofDescriptorProto.getDefaultInstance()); } /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder addOneofDeclBuilder( int index) { return getOneofDeclFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.OneofDescriptorProto.getDefaultInstance()); } /** * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ public java.util.List getOneofDeclBuilderList() { return getOneofDeclFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.OneofDescriptorProto, com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder> getOneofDeclFieldBuilder() { if (oneofDeclBuilder_ == null) { oneofDeclBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.OneofDescriptorProto, com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder>( oneofDecl_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); oneofDecl_ = null; } return oneofDeclBuilder_; } private com.google.protobuf.DescriptorProtos.MessageOptions options_ = com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.DescriptorProtos.MessageOptions, com.google.protobuf.DescriptorProtos.MessageOptions.Builder, com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder> optionsBuilder_; /** * optional .google.protobuf.MessageOptions options = 7; */ public boolean hasOptions() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional .google.protobuf.MessageOptions options = 7; */ public com.google.protobuf.DescriptorProtos.MessageOptions getOptions() { if (optionsBuilder_ == null) { return options_; } else { return optionsBuilder_.getMessage(); } } /** * optional .google.protobuf.MessageOptions options = 7; */ public Builder setOptions(com.google.protobuf.DescriptorProtos.MessageOptions value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } options_ = value; onChanged(); } else { optionsBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** * optional .google.protobuf.MessageOptions options = 7; */ public Builder setOptions( com.google.protobuf.DescriptorProtos.MessageOptions.Builder builderForValue) { if (optionsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); } else { optionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** * optional .google.protobuf.MessageOptions options = 7; */ public Builder mergeOptions(com.google.protobuf.DescriptorProtos.MessageOptions value) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && options_ != com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance()) { options_ = com.google.protobuf.DescriptorProtos.MessageOptions.newBuilder(options_).mergeFrom(value).buildPartial(); } else { options_ = value; } onChanged(); } else { optionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** * optional .google.protobuf.MessageOptions options = 7; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance(); onChanged(); } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** * optional .google.protobuf.MessageOptions options = 7; */ public com.google.protobuf.DescriptorProtos.MessageOptions.Builder getOptionsBuilder() { bitField0_ |= 0x00000080; onChanged(); return getOptionsFieldBuilder().getBuilder(); } /** * optional .google.protobuf.MessageOptions options = 7; */ public com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { return options_; } } /** * optional .google.protobuf.MessageOptions options = 7; */ private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.DescriptorProtos.MessageOptions, com.google.protobuf.DescriptorProtos.MessageOptions.Builder, com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.DescriptorProtos.MessageOptions, com.google.protobuf.DescriptorProtos.MessageOptions.Builder, com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder>( getOptions(), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } // @@protoc_insertion_point(builder_scope:google.protobuf.DescriptorProto) } static { defaultInstance = new DescriptorProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto) } public interface FieldDescriptorProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.FieldDescriptorProto) com.google.protobuf.MessageOrBuilder { /** * optional string name = 1; */ boolean hasName(); /** * optional string name = 1; */ java.lang.String getName(); /** * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * optional int32 number = 3; */ boolean hasNumber(); /** * optional int32 number = 3; */ int getNumber(); /** * optional .google.protobuf.FieldDescriptorProto.Label label = 4; */ boolean hasLabel(); /** * optional .google.protobuf.FieldDescriptorProto.Label label = 4; */ com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label getLabel(); /** * optional .google.protobuf.FieldDescriptorProto.Type type = 5; * *
     * If type_name is set, this need not be set.  If both this and type_name
     * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
     * 
*/ boolean hasType(); /** * optional .google.protobuf.FieldDescriptorProto.Type type = 5; * *
     * If type_name is set, this need not be set.  If both this and type_name
     * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
     * 
*/ com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getType(); /** * optional string type_name = 6; * *
     * For message and enum types, this is the name of the type.  If the name
     * starts with a '.', it is fully-qualified.  Otherwise, C++-like scoping
     * rules are used to find the type (i.e. first the nested types within this
     * message are searched, then within the parent, on up to the root
     * namespace).
     * 
*/ boolean hasTypeName(); /** * optional string type_name = 6; * *
     * For message and enum types, this is the name of the type.  If the name
     * starts with a '.', it is fully-qualified.  Otherwise, C++-like scoping
     * rules are used to find the type (i.e. first the nested types within this
     * message are searched, then within the parent, on up to the root
     * namespace).
     * 
*/ java.lang.String getTypeName(); /** * optional string type_name = 6; * *
     * For message and enum types, this is the name of the type.  If the name
     * starts with a '.', it is fully-qualified.  Otherwise, C++-like scoping
     * rules are used to find the type (i.e. first the nested types within this
     * message are searched, then within the parent, on up to the root
     * namespace).
     * 
*/ com.google.protobuf.ByteString getTypeNameBytes(); /** * optional string extendee = 2; * *
     * For extensions, this is the name of the type being extended.  It is
     * resolved in the same manner as type_name.
     * 
*/ boolean hasExtendee(); /** * optional string extendee = 2; * *
     * For extensions, this is the name of the type being extended.  It is
     * resolved in the same manner as type_name.
     * 
*/ java.lang.String getExtendee(); /** * optional string extendee = 2; * *
     * For extensions, this is the name of the type being extended.  It is
     * resolved in the same manner as type_name.
     * 
*/ com.google.protobuf.ByteString getExtendeeBytes(); /** * optional string default_value = 7; * *
     * For numeric types, contains the original text representation of the value.
     * For booleans, "true" or "false".
     * For strings, contains the default text contents (not escaped in any way).
     * For bytes, contains the C escaped value.  All bytes >= 128 are escaped.
     * TODO(kenton):  Base-64 encode?
     * 
*/ boolean hasDefaultValue(); /** * optional string default_value = 7; * *
     * For numeric types, contains the original text representation of the value.
     * For booleans, "true" or "false".
     * For strings, contains the default text contents (not escaped in any way).
     * For bytes, contains the C escaped value.  All bytes >= 128 are escaped.
     * TODO(kenton):  Base-64 encode?
     * 
*/ java.lang.String getDefaultValue(); /** * optional string default_value = 7; * *
     * For numeric types, contains the original text representation of the value.
     * For booleans, "true" or "false".
     * For strings, contains the default text contents (not escaped in any way).
     * For bytes, contains the C escaped value.  All bytes >= 128 are escaped.
     * TODO(kenton):  Base-64 encode?
     * 
*/ com.google.protobuf.ByteString getDefaultValueBytes(); /** * optional int32 oneof_index = 9; * *
     * If set, gives the index of a oneof in the containing type's oneof_decl
     * list.  This field is a member of that oneof.  Extensions of a oneof should
     * not set this since the oneof to which they belong will be inferred based
     * on the extension range containing the extension's field number.
     * 
*/ boolean hasOneofIndex(); /** * optional int32 oneof_index = 9; * *
     * If set, gives the index of a oneof in the containing type's oneof_decl
     * list.  This field is a member of that oneof.  Extensions of a oneof should
     * not set this since the oneof to which they belong will be inferred based
     * on the extension range containing the extension's field number.
     * 
*/ int getOneofIndex(); /** * optional .google.protobuf.FieldOptions options = 8; */ boolean hasOptions(); /** * optional .google.protobuf.FieldOptions options = 8; */ com.google.protobuf.DescriptorProtos.FieldOptions getOptions(); /** * optional .google.protobuf.FieldOptions options = 8; */ com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder getOptionsOrBuilder(); } /** * Protobuf type {@code google.protobuf.FieldDescriptorProto} * *
   * Describes a field within a message.
   * 
*/ public static final class FieldDescriptorProto extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.protobuf.FieldDescriptorProto) FieldDescriptorProtoOrBuilder { // Use FieldDescriptorProto.newBuilder() to construct. private FieldDescriptorProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private FieldDescriptorProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final FieldDescriptorProto defaultInstance; public static FieldDescriptorProto getDefaultInstance() { return defaultInstance; } public FieldDescriptorProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FieldDescriptorProto( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; extendee_ = bs; break; } case 24: { bitField0_ |= 0x00000002; number_ = input.readInt32(); break; } case 32: { int rawValue = input.readEnum(); com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label value = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(4, rawValue); } else { bitField0_ |= 0x00000004; label_ = value; } break; } case 40: { int rawValue = input.readEnum(); com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type value = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(5, rawValue); } else { bitField0_ |= 0x00000008; type_ = value; } break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; typeName_ = bs; break; } case 58: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; defaultValue_ = bs; break; } case 66: { com.google.protobuf.DescriptorProtos.FieldOptions.Builder subBuilder = null; if (((bitField0_ & 0x00000100) == 0x00000100)) { subBuilder = options_.toBuilder(); } options_ = input.readMessage(com.google.protobuf.DescriptorProtos.FieldOptions.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(options_); options_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000100; break; } case 72: { bitField0_ |= 0x00000080; oneofIndex_ = input.readInt32(); 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 com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldDescriptorProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldDescriptorProto_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.FieldDescriptorProto.class, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FieldDescriptorProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FieldDescriptorProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } /** * Protobuf enum {@code google.protobuf.FieldDescriptorProto.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * TYPE_DOUBLE = 1; * *
       * 0 is reserved for errors.
       * Order is weird for historical reasons.
       * 
*/ TYPE_DOUBLE(0, 1), /** * TYPE_FLOAT = 2; */ TYPE_FLOAT(1, 2), /** * TYPE_INT64 = 3; * *
       * Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT64 if
       * negative values are likely.
       * 
*/ TYPE_INT64(2, 3), /** * TYPE_UINT64 = 4; */ TYPE_UINT64(3, 4), /** * TYPE_INT32 = 5; * *
       * Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT32 if
       * negative values are likely.
       * 
*/ TYPE_INT32(4, 5), /** * TYPE_FIXED64 = 6; */ TYPE_FIXED64(5, 6), /** * TYPE_FIXED32 = 7; */ TYPE_FIXED32(6, 7), /** * TYPE_BOOL = 8; */ TYPE_BOOL(7, 8), /** * TYPE_STRING = 9; */ TYPE_STRING(8, 9), /** * TYPE_GROUP = 10; * *
       * Tag-delimited aggregate.
       * 
*/ TYPE_GROUP(9, 10), /** * TYPE_MESSAGE = 11; * *
       * Length-delimited aggregate.
       * 
*/ TYPE_MESSAGE(10, 11), /** * TYPE_BYTES = 12; * *
       * New in version 2.
       * 
*/ TYPE_BYTES(11, 12), /** * TYPE_UINT32 = 13; */ TYPE_UINT32(12, 13), /** * TYPE_ENUM = 14; */ TYPE_ENUM(13, 14), /** * TYPE_SFIXED32 = 15; */ TYPE_SFIXED32(14, 15), /** * TYPE_SFIXED64 = 16; */ TYPE_SFIXED64(15, 16), /** * TYPE_SINT32 = 17; * *
       * Uses ZigZag encoding.
       * 
*/ TYPE_SINT32(16, 17), /** * TYPE_SINT64 = 18; * *
       * Uses ZigZag encoding.
       * 
*/ TYPE_SINT64(17, 18), ; /** * TYPE_DOUBLE = 1; * *
       * 0 is reserved for errors.
       * Order is weird for historical reasons.
       * 
*/ public static final int TYPE_DOUBLE_VALUE = 1; /** * TYPE_FLOAT = 2; */ public static final int TYPE_FLOAT_VALUE = 2; /** * TYPE_INT64 = 3; * *
       * Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT64 if
       * negative values are likely.
       * 
*/ public static final int TYPE_INT64_VALUE = 3; /** * TYPE_UINT64 = 4; */ public static final int TYPE_UINT64_VALUE = 4; /** * TYPE_INT32 = 5; * *
       * Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT32 if
       * negative values are likely.
       * 
*/ public static final int TYPE_INT32_VALUE = 5; /** * TYPE_FIXED64 = 6; */ public static final int TYPE_FIXED64_VALUE = 6; /** * TYPE_FIXED32 = 7; */ public static final int TYPE_FIXED32_VALUE = 7; /** * TYPE_BOOL = 8; */ public static final int TYPE_BOOL_VALUE = 8; /** * TYPE_STRING = 9; */ public static final int TYPE_STRING_VALUE = 9; /** * TYPE_GROUP = 10; * *
       * Tag-delimited aggregate.
       * 
*/ public static final int TYPE_GROUP_VALUE = 10; /** * TYPE_MESSAGE = 11; * *
       * Length-delimited aggregate.
       * 
*/ public static final int TYPE_MESSAGE_VALUE = 11; /** * TYPE_BYTES = 12; * *
       * New in version 2.
       * 
*/ public static final int TYPE_BYTES_VALUE = 12; /** * TYPE_UINT32 = 13; */ public static final int TYPE_UINT32_VALUE = 13; /** * TYPE_ENUM = 14; */ public static final int TYPE_ENUM_VALUE = 14; /** * TYPE_SFIXED32 = 15; */ public static final int TYPE_SFIXED32_VALUE = 15; /** * TYPE_SFIXED64 = 16; */ public static final int TYPE_SFIXED64_VALUE = 16; /** * TYPE_SINT32 = 17; * *
       * Uses ZigZag encoding.
       * 
*/ public static final int TYPE_SINT32_VALUE = 17; /** * TYPE_SINT64 = 18; * *
       * Uses ZigZag encoding.
       * 
*/ public static final int TYPE_SINT64_VALUE = 18; public final int getNumber() { return value; } public static Type valueOf(int value) { switch (value) { case 1: return TYPE_DOUBLE; case 2: return TYPE_FLOAT; case 3: return TYPE_INT64; case 4: return TYPE_UINT64; case 5: return TYPE_INT32; case 6: return TYPE_FIXED64; case 7: return TYPE_FIXED32; case 8: return TYPE_BOOL; case 9: return TYPE_STRING; case 10: return TYPE_GROUP; case 11: return TYPE_MESSAGE; case 12: return TYPE_BYTES; case 13: return TYPE_UINT32; case 14: return TYPE_ENUM; case 15: return TYPE_SFIXED32; case 16: return TYPE_SFIXED64; case 17: return TYPE_SINT32; case 18: return TYPE_SINT64; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private Type(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:google.protobuf.FieldDescriptorProto.Type) } /** * Protobuf enum {@code google.protobuf.FieldDescriptorProto.Label} */ public enum Label implements com.google.protobuf.ProtocolMessageEnum { /** * LABEL_OPTIONAL = 1; * *
       * 0 is reserved for errors
       * 
*/ LABEL_OPTIONAL(0, 1), /** * LABEL_REQUIRED = 2; */ LABEL_REQUIRED(1, 2), /** * LABEL_REPEATED = 3; * *
       * TODO(sanjay): Should we add LABEL_MAP?
       * 
*/ LABEL_REPEATED(2, 3), ; /** * LABEL_OPTIONAL = 1; * *
       * 0 is reserved for errors
       * 
*/ public static final int LABEL_OPTIONAL_VALUE = 1; /** * LABEL_REQUIRED = 2; */ public static final int LABEL_REQUIRED_VALUE = 2; /** * LABEL_REPEATED = 3; * *
       * TODO(sanjay): Should we add LABEL_MAP?
       * 
*/ public static final int LABEL_REPEATED_VALUE = 3; public final int getNumber() { return value; } public static Label valueOf(int value) { switch (value) { case 1: return LABEL_OPTIONAL; case 2: return LABEL_REQUIRED; case 3: return LABEL_REPEATED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap




© 2015 - 2024 Weber Informatics LLC | Privacy Policy