// 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.ExtensionRegistryLite registry) {
  }

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

    
repeated .google.protobuf.FileDescriptorProto file = 1;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> getFileList();
repeated .google.protobuf.FileDescriptorProto file = 1;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index);
repeated .google.protobuf.FileDescriptorProto file = 1;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
int getFileCount();
repeated .google.protobuf.FileDescriptorProto file = 1;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> getFileOrBuilderList();
repeated .google.protobuf.FileDescriptorProto file = 1;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder( int index); }
The protocol compiler can output a FileDescriptorSet containing the .proto
files it parses.
Protobuf type google.protobuf.FileDescriptorSet
/** * <pre> * The protocol compiler can output a FileDescriptorSet containing the .proto * files it parses. * </pre> * * Protobuf type {@code google.protobuf.FileDescriptorSet} */
public static final class FileDescriptorSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.protobuf.FileDescriptorSet) FileDescriptorSetOrBuilder { private static final long serialVersionUID = 0L; // Use FileDescriptorSet.newBuilder() to construct. private FileDescriptorSet(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private FileDescriptorSet() { file_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FileDescriptorSet(); } @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 { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { file_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FileDescriptorProto>(); mutable_bitField0_ |= 0x00000001; } file_.add( input.readMessage(com.google.protobuf.DescriptorProtos.FileDescriptorProto.PARSER, extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { 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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.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 final int FILE_FIELD_NUMBER = 1; private java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> file_;
repeated .google.protobuf.FileDescriptorProto file = 1;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> getFileList() { return file_; }
repeated .google.protobuf.FileDescriptorProto file = 1;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> getFileOrBuilderList() { return file_; }
repeated .google.protobuf.FileDescriptorProto file = 1;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
public int getFileCount() { return file_.size(); }
repeated .google.protobuf.FileDescriptorProto file = 1;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
public com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index) { return file_.get(index); }
repeated .google.protobuf.FileDescriptorProto file = 1;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
public com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder( int index) { return file_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override 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; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < file_.size(); i++) { output.writeMessage(1, file_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; 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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.FileDescriptorSet)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.FileDescriptorSet other = (com.google.protobuf.DescriptorProtos.FileDescriptorSet) obj; if (!getFileList() .equals(other.getFileList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getFileCount() > 0) { hash = (37 * hash) + FILE_FIELD_NUMBER; hash = (53 * hash) + getFileList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } 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 com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FileDescriptorSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
The protocol compiler can output a FileDescriptorSet containing the .proto
files it parses.
Protobuf type google.protobuf.FileDescriptorSet
/** * <pre> * The protocol compiler can output a FileDescriptorSet containing the .proto * files it parses. * </pre> * * Protobuf type {@code google.protobuf.FileDescriptorSet} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFileFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (fileBuilder_ == null) { file_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { fileBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.FileDescriptorSet getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.FileDescriptorSet build() { com.google.protobuf.DescriptorProtos.FileDescriptorSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override 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) != 0)) { file_ = java.util.Collections.unmodifiableList(file_); bitField0_ = (bitField0_ & ~0x00000001); } result.file_ = file_; } else { result.file_ = fileBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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.GeneratedMessageV3.alwaysUseFieldBuilders ? getFileFieldBuilder() : null; } else { fileBuilder_.addAllMessages(other.file_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getFileCount(); i++) { if (!getFile(i).isInitialized()) { return false; } } return true; } @java.lang.Override 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.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> file_ = java.util.Collections.emptyList(); private void ensureFileIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { file_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FileDescriptorProto>(file_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.FileDescriptorProto, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> fileBuilder_;
repeated .google.protobuf.FileDescriptorProto file = 1;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> getFileList() { if (fileBuilder_ == null) { return java.util.Collections.unmodifiableList(file_); } else { return fileBuilder_.getMessageList(); } }
repeated .google.protobuf.FileDescriptorProto file = 1;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
public int getFileCount() { if (fileBuilder_ == null) { return file_.size(); } else { return fileBuilder_.getCount(); } }
repeated .google.protobuf.FileDescriptorProto file = 1;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
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;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
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;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
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;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
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;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
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;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
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;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
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;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
public Builder addAllFile( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.FileDescriptorProto> 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;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
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;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
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;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
public com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder getFileBuilder( int index) { return getFileFieldBuilder().getBuilder(index); }
repeated .google.protobuf.FileDescriptorProto file = 1;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
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;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> getFileOrBuilderList() { if (fileBuilder_ != null) { return fileBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(file_); } }
repeated .google.protobuf.FileDescriptorProto file = 1;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
public com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder addFileBuilder() { return getFileFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDefaultInstance()); }
repeated .google.protobuf.FileDescriptorProto file = 1;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
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;
/** * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder> getFileBuilderList() { return getFileFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< 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.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.FileDescriptorProto, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder>( file_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); file_ = null; } return fileBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.FileDescriptorSet) } // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet) private static final com.google.protobuf.DescriptorProtos.FileDescriptorSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.FileDescriptorSet(); } public static com.google.protobuf.DescriptorProtos.FileDescriptorSet getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<FileDescriptorSet> PARSER = new com.google.protobuf.AbstractParser<FileDescriptorSet>() { @java.lang.Override public FileDescriptorSet parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FileDescriptorSet(input, extensionRegistry); } }; public static com.google.protobuf.Parser<FileDescriptorSet> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<FileDescriptorSet> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.FileDescriptorSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FileDescriptorProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.FileDescriptorProto) com.google.protobuf.MessageOrBuilder {
file name, relative to root of source tree
optional string name = 1;
Returns:Whether the name field is set.
/** * <pre> * file name, relative to root of source tree * </pre> * * <code>optional string name = 1;</code> * @return Whether the name field is set. */
boolean hasName();
file name, relative to root of source tree
optional string name = 1;
Returns:The name.
/** * <pre> * file name, relative to root of source tree * </pre> * * <code>optional string name = 1;</code> * @return The name. */
java.lang.String getName();
file name, relative to root of source tree
optional string name = 1;
Returns:The bytes for name.
/** * <pre> * file name, relative to root of source tree * </pre> * * <code>optional string name = 1;</code> * @return The bytes for name. */
com.google.protobuf.ByteString getNameBytes();
e.g. "foo", "foo.bar", etc.
optional string package = 2;
Returns:Whether the package field is set.
/** * <pre> * e.g. "foo", "foo.bar", etc. * </pre> * * <code>optional string package = 2;</code> * @return Whether the package field is set. */
boolean hasPackage();
e.g. "foo", "foo.bar", etc.
optional string package = 2;
Returns:The package.
/** * <pre> * e.g. "foo", "foo.bar", etc. * </pre> * * <code>optional string package = 2;</code> * @return The package. */
java.lang.String getPackage();
e.g. "foo", "foo.bar", etc.
optional string package = 2;
Returns:The bytes for package.
/** * <pre> * e.g. "foo", "foo.bar", etc. * </pre> * * <code>optional string package = 2;</code> * @return The bytes for package. */
com.google.protobuf.ByteString getPackageBytes();
Names of files imported by this file.
repeated string dependency = 3;
Returns:A list containing the dependency.
/** * <pre> * Names of files imported by this file. * </pre> * * <code>repeated string dependency = 3;</code> * @return A list containing the dependency. */
java.util.List<java.lang.String> getDependencyList();
Names of files imported by this file.
repeated string dependency = 3;
Returns:The count of dependency.
/** * <pre> * Names of files imported by this file. * </pre> * * <code>repeated string dependency = 3;</code> * @return The count of dependency. */
int getDependencyCount();
Names of files imported by this file.
repeated string dependency = 3;
Params:
  • index – The index of the element to return.
Returns:The dependency at the given index.
/** * <pre> * Names of files imported by this file. * </pre> * * <code>repeated string dependency = 3;</code> * @param index The index of the element to return. * @return The dependency at the given index. */
java.lang.String getDependency(int index);
Names of files imported by this file.
repeated string dependency = 3;
Params:
  • index – The index of the value to return.
Returns:The bytes of the dependency at the given index.
/** * <pre> * Names of files imported by this file. * </pre> * * <code>repeated string dependency = 3;</code> * @param index The index of the value to return. * @return The bytes of the dependency at the given index. */
com.google.protobuf.ByteString getDependencyBytes(int index);
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
Returns:A list containing the publicDependency.
/** * <pre> * Indexes of the public imported files in the dependency list above. * </pre> * * <code>repeated int32 public_dependency = 10;</code> * @return A list containing the publicDependency. */
java.util.List<java.lang.Integer> getPublicDependencyList();
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
Returns:The count of publicDependency.
/** * <pre> * Indexes of the public imported files in the dependency list above. * </pre> * * <code>repeated int32 public_dependency = 10;</code> * @return The count of publicDependency. */
int getPublicDependencyCount();
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
Params:
  • index – The index of the element to return.
Returns:The publicDependency at the given index.
/** * <pre> * Indexes of the public imported files in the dependency list above. * </pre> * * <code>repeated int32 public_dependency = 10;</code> * @param index The index of the element to return. * @return The publicDependency at the given index. */
int getPublicDependency(int index);
Indexes of the weak imported files in the dependency list.
For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;
Returns:A list containing the weakDependency.
/** * <pre> * Indexes of the weak imported files in the dependency list. * For Google-internal migration only. Do not use. * </pre> * * <code>repeated int32 weak_dependency = 11;</code> * @return A list containing the weakDependency. */
java.util.List<java.lang.Integer> getWeakDependencyList();
Indexes of the weak imported files in the dependency list.
For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;
Returns:The count of weakDependency.
/** * <pre> * Indexes of the weak imported files in the dependency list. * For Google-internal migration only. Do not use. * </pre> * * <code>repeated int32 weak_dependency = 11;</code> * @return The count of weakDependency. */
int getWeakDependencyCount();
Indexes of the weak imported files in the dependency list.
For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;
Params:
  • index – The index of the element to return.
Returns:The weakDependency at the given index.
/** * <pre> * Indexes of the weak imported files in the dependency list. * For Google-internal migration only. Do not use. * </pre> * * <code>repeated int32 weak_dependency = 11;</code> * @param index The index of the element to return. * @return The weakDependency at the given index. */
int getWeakDependency(int index);
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getMessageTypeList();
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index);
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
int getMessageTypeCount();
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> getMessageTypeOrBuilderList();
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder( int index);
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList();
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index);
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
int getEnumTypeCount();
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> getEnumTypeOrBuilderList();
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( int index);
repeated .google.protobuf.ServiceDescriptorProto service = 6;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> getServiceList();
repeated .google.protobuf.ServiceDescriptorProto service = 6;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getService(int index);
repeated .google.protobuf.ServiceDescriptorProto service = 6;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
int getServiceCount();
repeated .google.protobuf.ServiceDescriptorProto service = 6;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> getServiceOrBuilderList();
repeated .google.protobuf.ServiceDescriptorProto service = 6;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder( int index);
repeated .google.protobuf.FieldDescriptorProto extension = 7;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList();
repeated .google.protobuf.FieldDescriptorProto extension = 7;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index);
repeated .google.protobuf.FieldDescriptorProto extension = 7;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
int getExtensionCount();
repeated .google.protobuf.FieldDescriptorProto extension = 7;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> getExtensionOrBuilderList();
repeated .google.protobuf.FieldDescriptorProto extension = 7;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( int index);
optional .google.protobuf.FileOptions options = 8;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.FileOptions options = 8;</code> * @return Whether the options field is set. */
boolean hasOptions();
optional .google.protobuf.FileOptions options = 8;
Returns:The options.
/** * <code>optional .google.protobuf.FileOptions options = 8;</code> * @return The options. */
com.google.protobuf.DescriptorProtos.FileOptions getOptions();
optional .google.protobuf.FileOptions options = 8;
/** * <code>optional .google.protobuf.FileOptions options = 8;</code> */
com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder();
This field contains optional information about the original source code.
You may safely remove this entire field without harming runtime
functionality of the descriptors -- the information is needed only by
development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;
Returns:Whether the sourceCodeInfo field is set.
/** * <pre> * This field contains optional information about the original source code. * You may safely remove this entire field without harming runtime * functionality of the descriptors -- the information is needed only by * development tools. * </pre> * * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> * @return Whether the sourceCodeInfo field is set. */
boolean hasSourceCodeInfo();
This field contains optional information about the original source code.
You may safely remove this entire field without harming runtime
functionality of the descriptors -- the information is needed only by
development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;
Returns:The sourceCodeInfo.
/** * <pre> * This field contains optional information about the original source code. * You may safely remove this entire field without harming runtime * functionality of the descriptors -- the information is needed only by * development tools. * </pre> * * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> * @return The sourceCodeInfo. */
com.google.protobuf.DescriptorProtos.SourceCodeInfo getSourceCodeInfo();
This field contains optional information about the original source code.
You may safely remove this entire field without harming runtime
functionality of the descriptors -- the information is needed only by
development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;
/** * <pre> * This field contains optional information about the original source code. * You may safely remove this entire field without harming runtime * functionality of the descriptors -- the information is needed only by * development tools. * </pre> * * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> */
com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder();
The syntax of the proto file.
The supported values are "proto2" and "proto3".
optional string syntax = 12;
Returns:Whether the syntax field is set.
/** * <pre> * The syntax of the proto file. * The supported values are "proto2" and "proto3". * </pre> * * <code>optional string syntax = 12;</code> * @return Whether the syntax field is set. */
boolean hasSyntax();
The syntax of the proto file.
The supported values are "proto2" and "proto3".
optional string syntax = 12;
Returns:The syntax.
/** * <pre> * The syntax of the proto file. * The supported values are "proto2" and "proto3". * </pre> * * <code>optional string syntax = 12;</code> * @return The syntax. */
java.lang.String getSyntax();
The syntax of the proto file.
The supported values are "proto2" and "proto3".
optional string syntax = 12;
Returns:The bytes for syntax.
/** * <pre> * The syntax of the proto file. * The supported values are "proto2" and "proto3". * </pre> * * <code>optional string syntax = 12;</code> * @return The bytes for syntax. */
com.google.protobuf.ByteString getSyntaxBytes(); }
Describes a complete .proto file.
Protobuf type google.protobuf.FileDescriptorProto
/** * <pre> * Describes a complete .proto file. * </pre> * * Protobuf type {@code google.protobuf.FileDescriptorProto} */
public static final class FileDescriptorProto extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.protobuf.FileDescriptorProto) FileDescriptorProtoOrBuilder { private static final long serialVersionUID = 0L; // Use FileDescriptorProto.newBuilder() to construct. private FileDescriptorProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private FileDescriptorProto() { name_ = ""; package_ = ""; dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; publicDependency_ = emptyIntList(); weakDependency_ = emptyIntList(); messageType_ = java.util.Collections.emptyList(); enumType_ = java.util.Collections.emptyList(); service_ = java.util.Collections.emptyList(); extension_ = java.util.Collections.emptyList(); syntax_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FileDescriptorProto(); } @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 { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; 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) != 0)) { dependency_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } dependency_.add(bs); break; } case 34: { if (!((mutable_bitField0_ & 0x00000020) != 0)) { messageType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto>(); mutable_bitField0_ |= 0x00000020; } messageType_.add( input.readMessage(com.google.protobuf.DescriptorProtos.DescriptorProto.PARSER, extensionRegistry)); break; } case 42: { if (!((mutable_bitField0_ & 0x00000040) != 0)) { enumType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumDescriptorProto>(); mutable_bitField0_ |= 0x00000040; } enumType_.add( input.readMessage(com.google.protobuf.DescriptorProtos.EnumDescriptorProto.PARSER, extensionRegistry)); break; } case 50: { if (!((mutable_bitField0_ & 0x00000080) != 0)) { service_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto>(); mutable_bitField0_ |= 0x00000080; } service_.add( input.readMessage(com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.PARSER, extensionRegistry)); break; } case 58: { if (!((mutable_bitField0_ & 0x00000100) != 0)) { extension_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>(); 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) != 0)) { 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) != 0)) { 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) != 0)) { publicDependency_ = newIntList(); mutable_bitField0_ |= 0x00000008; } publicDependency_.addInt(input.readInt32()); break; } case 82: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000008) != 0) && input.getBytesUntilLimit() > 0) { publicDependency_ = newIntList(); mutable_bitField0_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { publicDependency_.addInt(input.readInt32()); } input.popLimit(limit); break; } case 88: { if (!((mutable_bitField0_ & 0x00000010) != 0)) { weakDependency_ = newIntList(); mutable_bitField0_ |= 0x00000010; } weakDependency_.addInt(input.readInt32()); break; } case 90: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000010) != 0) && input.getBytesUntilLimit() > 0) { weakDependency_ = newIntList(); mutable_bitField0_ |= 0x00000010; } while (input.getBytesUntilLimit() > 0) { weakDependency_.addInt(input.readInt32()); } input.popLimit(limit); break; } case 98: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; syntax_ = bs; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) != 0)) { dependency_ = dependency_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000020) != 0)) { messageType_ = java.util.Collections.unmodifiableList(messageType_); } if (((mutable_bitField0_ & 0x00000040) != 0)) { enumType_ = java.util.Collections.unmodifiableList(enumType_); } if (((mutable_bitField0_ & 0x00000080) != 0)) { service_ = java.util.Collections.unmodifiableList(service_); } if (((mutable_bitField0_ & 0x00000100) != 0)) { extension_ = java.util.Collections.unmodifiableList(extension_); } if (((mutable_bitField0_ & 0x00000008) != 0)) { publicDependency_.makeImmutable(); // C } if (((mutable_bitField0_ & 0x00000010) != 0)) { weakDependency_.makeImmutable(); // C } 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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.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); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_;
file name, relative to root of source tree
optional string name = 1;
Returns:Whether the name field is set.
/** * <pre> * file name, relative to root of source tree * </pre> * * <code>optional string name = 1;</code> * @return Whether the name field is set. */
public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); }
file name, relative to root of source tree
optional string name = 1;
Returns:The name.
/** * <pre> * file name, relative to root of source tree * </pre> * * <code>optional string name = 1;</code> * @return The name. */
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; } }
file name, relative to root of source tree
optional string name = 1;
Returns:The bytes for name.
/** * <pre> * file name, relative to root of source tree * </pre> * * <code>optional string name = 1;</code> * @return The bytes for name. */
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 volatile java.lang.Object package_;
e.g. "foo", "foo.bar", etc.
optional string package = 2;
Returns:Whether the package field is set.
/** * <pre> * e.g. "foo", "foo.bar", etc. * </pre> * * <code>optional string package = 2;</code> * @return Whether the package field is set. */
public boolean hasPackage() { return ((bitField0_ & 0x00000002) != 0); }
e.g. "foo", "foo.bar", etc.
optional string package = 2;
Returns:The package.
/** * <pre> * e.g. "foo", "foo.bar", etc. * </pre> * * <code>optional string package = 2;</code> * @return The package. */
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; } }
e.g. "foo", "foo.bar", etc.
optional string package = 2;
Returns:The bytes for package.
/** * <pre> * e.g. "foo", "foo.bar", etc. * </pre> * * <code>optional string package = 2;</code> * @return The bytes for package. */
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_;
Names of files imported by this file.
repeated string dependency = 3;
Returns:A list containing the dependency.
/** * <pre> * Names of files imported by this file. * </pre> * * <code>repeated string dependency = 3;</code> * @return A list containing the dependency. */
public com.google.protobuf.ProtocolStringList getDependencyList() { return dependency_; }
Names of files imported by this file.
repeated string dependency = 3;
Returns:The count of dependency.
/** * <pre> * Names of files imported by this file. * </pre> * * <code>repeated string dependency = 3;</code> * @return The count of dependency. */
public int getDependencyCount() { return dependency_.size(); }
Names of files imported by this file.
repeated string dependency = 3;
Params:
  • index – The index of the element to return.
Returns:The dependency at the given index.
/** * <pre> * Names of files imported by this file. * </pre> * * <code>repeated string dependency = 3;</code> * @param index The index of the element to return. * @return The dependency at the given index. */
public java.lang.String getDependency(int index) { return dependency_.get(index); }
Names of files imported by this file.
repeated string dependency = 3;
Params:
  • index – The index of the value to return.
Returns:The bytes of the dependency at the given index.
/** * <pre> * Names of files imported by this file. * </pre> * * <code>repeated string dependency = 3;</code> * @param index The index of the value to return. * @return The bytes of the dependency at the given index. */
public com.google.protobuf.ByteString getDependencyBytes(int index) { return dependency_.getByteString(index); } public static final int PUBLIC_DEPENDENCY_FIELD_NUMBER = 10; private com.google.protobuf.Internal.IntList publicDependency_;
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
Returns:A list containing the publicDependency.
/** * <pre> * Indexes of the public imported files in the dependency list above. * </pre> * * <code>repeated int32 public_dependency = 10;</code> * @return A list containing the publicDependency. */
public java.util.List<java.lang.Integer> getPublicDependencyList() { return publicDependency_; }
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
Returns:The count of publicDependency.
/** * <pre> * Indexes of the public imported files in the dependency list above. * </pre> * * <code>repeated int32 public_dependency = 10;</code> * @return The count of publicDependency. */
public int getPublicDependencyCount() { return publicDependency_.size(); }
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
Params:
  • index – The index of the element to return.
Returns:The publicDependency at the given index.
/** * <pre> * Indexes of the public imported files in the dependency list above. * </pre> * * <code>repeated int32 public_dependency = 10;</code> * @param index The index of the element to return. * @return The publicDependency at the given index. */
public int getPublicDependency(int index) { return publicDependency_.getInt(index); } public static final int WEAK_DEPENDENCY_FIELD_NUMBER = 11; private com.google.protobuf.Internal.IntList weakDependency_;
Indexes of the weak imported files in the dependency list.
For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;
Returns:A list containing the weakDependency.
/** * <pre> * Indexes of the weak imported files in the dependency list. * For Google-internal migration only. Do not use. * </pre> * * <code>repeated int32 weak_dependency = 11;</code> * @return A list containing the weakDependency. */
public java.util.List<java.lang.Integer> getWeakDependencyList() { return weakDependency_; }
Indexes of the weak imported files in the dependency list.
For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;
Returns:The count of weakDependency.
/** * <pre> * Indexes of the weak imported files in the dependency list. * For Google-internal migration only. Do not use. * </pre> * * <code>repeated int32 weak_dependency = 11;</code> * @return The count of weakDependency. */
public int getWeakDependencyCount() { return weakDependency_.size(); }
Indexes of the weak imported files in the dependency list.
For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;
Params:
  • index – The index of the element to return.
Returns:The weakDependency at the given index.
/** * <pre> * Indexes of the weak imported files in the dependency list. * For Google-internal migration only. Do not use. * </pre> * * <code>repeated int32 weak_dependency = 11;</code> * @param index The index of the element to return. * @return The weakDependency at the given index. */
public int getWeakDependency(int index) { return weakDependency_.getInt(index); } public static final int MESSAGE_TYPE_FIELD_NUMBER = 4; private java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> messageType_;
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getMessageTypeList() { return messageType_; }
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> getMessageTypeOrBuilderList() { return messageType_; }
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
public int getMessageTypeCount() { return messageType_.size(); }
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
public com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index) { return messageType_.get(index); }
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
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<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> enumType_;
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() { return enumType_; }
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> getEnumTypeOrBuilderList() { return enumType_; }
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
public int getEnumTypeCount() { return enumType_.size(); }
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { return enumType_.get(index); }
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
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<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> service_;
repeated .google.protobuf.ServiceDescriptorProto service = 6;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> getServiceList() { return service_; }
repeated .google.protobuf.ServiceDescriptorProto service = 6;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> getServiceOrBuilderList() { return service_; }
repeated .google.protobuf.ServiceDescriptorProto service = 6;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
public int getServiceCount() { return service_.size(); }
repeated .google.protobuf.ServiceDescriptorProto service = 6;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getService(int index) { return service_.get(index); }
repeated .google.protobuf.ServiceDescriptorProto service = 6;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
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<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> extension_;
repeated .google.protobuf.FieldDescriptorProto extension = 7;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() { return extension_; }
repeated .google.protobuf.FieldDescriptorProto extension = 7;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> getExtensionOrBuilderList() { return extension_; }
repeated .google.protobuf.FieldDescriptorProto extension = 7;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
public int getExtensionCount() { return extension_.size(); }
repeated .google.protobuf.FieldDescriptorProto extension = 7;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { return extension_.get(index); }
repeated .google.protobuf.FieldDescriptorProto extension = 7;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
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;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.FileOptions options = 8;</code> * @return Whether the options field is set. */
public boolean hasOptions() { return ((bitField0_ & 0x00000004) != 0); }
optional .google.protobuf.FileOptions options = 8;
Returns:The options.
/** * <code>optional .google.protobuf.FileOptions options = 8;</code> * @return The options. */
public com.google.protobuf.DescriptorProtos.FileOptions getOptions() { return options_ == null ? com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance() : options_; }
optional .google.protobuf.FileOptions options = 8;
/** * <code>optional .google.protobuf.FileOptions options = 8;</code> */
public com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder() { return options_ == null ? com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance() : options_; } public static final int SOURCE_CODE_INFO_FIELD_NUMBER = 9; private com.google.protobuf.DescriptorProtos.SourceCodeInfo sourceCodeInfo_;
This field contains optional information about the original source code.
You may safely remove this entire field without harming runtime
functionality of the descriptors -- the information is needed only by
development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;
Returns:Whether the sourceCodeInfo field is set.
/** * <pre> * This field contains optional information about the original source code. * You may safely remove this entire field without harming runtime * functionality of the descriptors -- the information is needed only by * development tools. * </pre> * * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> * @return Whether the sourceCodeInfo field is set. */
public boolean hasSourceCodeInfo() { return ((bitField0_ & 0x00000008) != 0); }
This field contains optional information about the original source code.
You may safely remove this entire field without harming runtime
functionality of the descriptors -- the information is needed only by
development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;
Returns:The sourceCodeInfo.
/** * <pre> * This field contains optional information about the original source code. * You may safely remove this entire field without harming runtime * functionality of the descriptors -- the information is needed only by * development tools. * </pre> * * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> * @return The sourceCodeInfo. */
public com.google.protobuf.DescriptorProtos.SourceCodeInfo getSourceCodeInfo() { return sourceCodeInfo_ == null ? com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance() : sourceCodeInfo_; }
This field contains optional information about the original source code.
You may safely remove this entire field without harming runtime
functionality of the descriptors -- the information is needed only by
development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;
/** * <pre> * This field contains optional information about the original source code. * You may safely remove this entire field without harming runtime * functionality of the descriptors -- the information is needed only by * development tools. * </pre> * * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> */
public com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder() { return sourceCodeInfo_ == null ? com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance() : sourceCodeInfo_; } public static final int SYNTAX_FIELD_NUMBER = 12; private volatile java.lang.Object syntax_;
The syntax of the proto file.
The supported values are "proto2" and "proto3".
optional string syntax = 12;
Returns:Whether the syntax field is set.
/** * <pre> * The syntax of the proto file. * The supported values are "proto2" and "proto3". * </pre> * * <code>optional string syntax = 12;</code> * @return Whether the syntax field is set. */
public boolean hasSyntax() { return ((bitField0_ & 0x00000010) != 0); }
The syntax of the proto file.
The supported values are "proto2" and "proto3".
optional string syntax = 12;
Returns:The syntax.
/** * <pre> * The syntax of the proto file. * The supported values are "proto2" and "proto3". * </pre> * * <code>optional string syntax = 12;</code> * @return The syntax. */
public java.lang.String getSyntax() { java.lang.Object ref = syntax_; 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()) { syntax_ = s; } return s; } }
The syntax of the proto file.
The supported values are "proto2" and "proto3".
optional string syntax = 12;
Returns:The bytes for syntax.
/** * <pre> * The syntax of the proto file. * The supported values are "proto2" and "proto3". * </pre> * * <code>optional string syntax = 12;</code> * @return The bytes for syntax. */
public com.google.protobuf.ByteString getSyntaxBytes() { java.lang.Object ref = syntax_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); syntax_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override 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; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, package_); } for (int i = 0; i < dependency_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dependency_.getRaw(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) != 0)) { output.writeMessage(8, getOptions()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(9, getSourceCodeInfo()); } for (int i = 0; i < publicDependency_.size(); i++) { output.writeInt32(10, publicDependency_.getInt(i)); } for (int i = 0; i < weakDependency_.size(); i++) { output.writeInt32(11, weakDependency_.getInt(i)); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, syntax_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, package_); } { int dataSize = 0; for (int i = 0; i < dependency_.size(); i++) { dataSize += computeStringSizeNoTag(dependency_.getRaw(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) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getOptions()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getSourceCodeInfo()); } { int dataSize = 0; for (int i = 0; i < publicDependency_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(publicDependency_.getInt(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_.getInt(i)); } size += dataSize; size += 1 * getWeakDependencyList().size(); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, syntax_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.FileDescriptorProto)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.FileDescriptorProto other = (com.google.protobuf.DescriptorProtos.FileDescriptorProto) obj; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasPackage() != other.hasPackage()) return false; if (hasPackage()) { if (!getPackage() .equals(other.getPackage())) return false; } if (!getDependencyList() .equals(other.getDependencyList())) return false; if (!getPublicDependencyList() .equals(other.getPublicDependencyList())) return false; if (!getWeakDependencyList() .equals(other.getWeakDependencyList())) return false; if (!getMessageTypeList() .equals(other.getMessageTypeList())) return false; if (!getEnumTypeList() .equals(other.getEnumTypeList())) return false; if (!getServiceList() .equals(other.getServiceList())) return false; if (!getExtensionList() .equals(other.getExtensionList())) return false; if (hasOptions() != other.hasOptions()) return false; if (hasOptions()) { if (!getOptions() .equals(other.getOptions())) return false; } if (hasSourceCodeInfo() != other.hasSourceCodeInfo()) return false; if (hasSourceCodeInfo()) { if (!getSourceCodeInfo() .equals(other.getSourceCodeInfo())) return false; } if (hasSyntax() != other.hasSyntax()) return false; if (hasSyntax()) { if (!getSyntax() .equals(other.getSyntax())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasPackage()) { hash = (37 * hash) + PACKAGE_FIELD_NUMBER; hash = (53 * hash) + getPackage().hashCode(); } if (getDependencyCount() > 0) { hash = (37 * hash) + DEPENDENCY_FIELD_NUMBER; hash = (53 * hash) + getDependencyList().hashCode(); } if (getPublicDependencyCount() > 0) { hash = (37 * hash) + PUBLIC_DEPENDENCY_FIELD_NUMBER; hash = (53 * hash) + getPublicDependencyList().hashCode(); } if (getWeakDependencyCount() > 0) { hash = (37 * hash) + WEAK_DEPENDENCY_FIELD_NUMBER; hash = (53 * hash) + getWeakDependencyList().hashCode(); } if (getMessageTypeCount() > 0) { hash = (37 * hash) + MESSAGE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getMessageTypeList().hashCode(); } if (getEnumTypeCount() > 0) { hash = (37 * hash) + ENUM_TYPE_FIELD_NUMBER; hash = (53 * hash) + getEnumTypeList().hashCode(); } if (getServiceCount() > 0) { hash = (37 * hash) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getServiceList().hashCode(); } if (getExtensionCount() > 0) { hash = (37 * hash) + EXTENSION_FIELD_NUMBER; hash = (53 * hash) + getExtensionList().hashCode(); } if (hasOptions()) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptions().hashCode(); } if (hasSourceCodeInfo()) { hash = (37 * hash) + SOURCE_CODE_INFO_FIELD_NUMBER; hash = (53 * hash) + getSourceCodeInfo().hashCode(); } if (hasSyntax()) { hash = (37 * hash) + SYNTAX_FIELD_NUMBER; hash = (53 * hash) + getSyntax().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } 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 com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FileDescriptorProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Describes a complete .proto file.
Protobuf type google.protobuf.FileDescriptorProto
/** * <pre> * Describes a complete .proto file. * </pre> * * Protobuf type {@code google.protobuf.FileDescriptorProto} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMessageTypeFieldBuilder(); getEnumTypeFieldBuilder(); getServiceFieldBuilder(); getExtensionFieldBuilder(); getOptionsFieldBuilder(); getSourceCodeInfoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); package_ = ""; bitField0_ = (bitField0_ & ~0x00000002); dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); publicDependency_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000008); weakDependency_ = emptyIntList(); 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_ = null; } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); if (sourceCodeInfoBuilder_ == null) { sourceCodeInfo_ = null; } else { sourceCodeInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); syntax_ = ""; bitField0_ = (bitField0_ & ~0x00000800); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.FileDescriptorProto getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.FileDescriptorProto build() { com.google.protobuf.DescriptorProtos.FileDescriptorProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override 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) != 0)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.package_ = package_; if (((bitField0_ & 0x00000004) != 0)) { dependency_ = dependency_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.dependency_ = dependency_; if (((bitField0_ & 0x00000008) != 0)) { publicDependency_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000008); } result.publicDependency_ = publicDependency_; if (((bitField0_ & 0x00000010) != 0)) { weakDependency_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000010); } result.weakDependency_ = weakDependency_; if (messageTypeBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { messageType_ = java.util.Collections.unmodifiableList(messageType_); bitField0_ = (bitField0_ & ~0x00000020); } result.messageType_ = messageType_; } else { result.messageType_ = messageTypeBuilder_.build(); } if (enumTypeBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { enumType_ = java.util.Collections.unmodifiableList(enumType_); bitField0_ = (bitField0_ & ~0x00000040); } result.enumType_ = enumType_; } else { result.enumType_ = enumTypeBuilder_.build(); } if (serviceBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { service_ = java.util.Collections.unmodifiableList(service_); bitField0_ = (bitField0_ & ~0x00000080); } result.service_ = service_; } else { result.service_ = serviceBuilder_.build(); } if (extensionBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0)) { extension_ = java.util.Collections.unmodifiableList(extension_); bitField0_ = (bitField0_ & ~0x00000100); } result.extension_ = extension_; } else { result.extension_ = extensionBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { if (optionsBuilder_ == null) { result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000400) != 0)) { if (sourceCodeInfoBuilder_ == null) { result.sourceCodeInfo_ = sourceCodeInfo_; } else { result.sourceCodeInfo_ = sourceCodeInfoBuilder_.build(); } to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000800) != 0)) { to_bitField0_ |= 0x00000010; } result.syntax_ = syntax_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.alwaysUseFieldBuilders ? getExtensionFieldBuilder() : null; } else { extensionBuilder_.addAllMessages(other.extension_); } } } if (other.hasOptions()) { mergeOptions(other.getOptions()); } if (other.hasSourceCodeInfo()) { mergeSourceCodeInfo(other.getSourceCodeInfo()); } if (other.hasSyntax()) { bitField0_ |= 0x00000800; syntax_ = other.syntax_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override 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; } @java.lang.Override 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.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = "";
file name, relative to root of source tree
optional string name = 1;
Returns:Whether the name field is set.
/** * <pre> * file name, relative to root of source tree * </pre> * * <code>optional string name = 1;</code> * @return Whether the name field is set. */
public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); }
file name, relative to root of source tree
optional string name = 1;
Returns:The name.
/** * <pre> * file name, relative to root of source tree * </pre> * * <code>optional string name = 1;</code> * @return The name. */
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; } }
file name, relative to root of source tree
optional string name = 1;
Returns:The bytes for name.
/** * <pre> * file name, relative to root of source tree * </pre> * * <code>optional string name = 1;</code> * @return The bytes for name. */
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; } }
file name, relative to root of source tree
optional string name = 1;
Params:
  • value – The name to set.
Returns:This builder for chaining.
/** * <pre> * file name, relative to root of source tree * </pre> * * <code>optional string name = 1;</code> * @param value The name to set. * @return This builder for chaining. */
public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; }
file name, relative to root of source tree
optional string name = 1;
Returns:This builder for chaining.
/** * <pre> * file name, relative to root of source tree * </pre> * * <code>optional string name = 1;</code> * @return This builder for chaining. */
public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; }
file name, relative to root of source tree
optional string name = 1;
Params:
  • value – The bytes for name to set.
Returns:This builder for chaining.
/** * <pre> * file name, relative to root of source tree * </pre> * * <code>optional string name = 1;</code> * @param value The bytes for name to set. * @return This builder for chaining. */
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_ = "";
e.g. "foo", "foo.bar", etc.
optional string package = 2;
Returns:Whether the package field is set.
/** * <pre> * e.g. "foo", "foo.bar", etc. * </pre> * * <code>optional string package = 2;</code> * @return Whether the package field is set. */
public boolean hasPackage() { return ((bitField0_ & 0x00000002) != 0); }
e.g. "foo", "foo.bar", etc.
optional string package = 2;
Returns:The package.
/** * <pre> * e.g. "foo", "foo.bar", etc. * </pre> * * <code>optional string package = 2;</code> * @return The package. */
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; } }
e.g. "foo", "foo.bar", etc.
optional string package = 2;
Returns:The bytes for package.
/** * <pre> * e.g. "foo", "foo.bar", etc. * </pre> * * <code>optional string package = 2;</code> * @return The bytes for package. */
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; } }
e.g. "foo", "foo.bar", etc.
optional string package = 2;
Params:
  • value – The package to set.
Returns:This builder for chaining.
/** * <pre> * e.g. "foo", "foo.bar", etc. * </pre> * * <code>optional string package = 2;</code> * @param value The package to set. * @return This builder for chaining. */
public Builder setPackage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; package_ = value; onChanged(); return this; }
e.g. "foo", "foo.bar", etc.
optional string package = 2;
Returns:This builder for chaining.
/** * <pre> * e.g. "foo", "foo.bar", etc. * </pre> * * <code>optional string package = 2;</code> * @return This builder for chaining. */
public Builder clearPackage() { bitField0_ = (bitField0_ & ~0x00000002); package_ = getDefaultInstance().getPackage(); onChanged(); return this; }
e.g. "foo", "foo.bar", etc.
optional string package = 2;
Params:
  • value – The bytes for package to set.
Returns:This builder for chaining.
/** * <pre> * e.g. "foo", "foo.bar", etc. * </pre> * * <code>optional string package = 2;</code> * @param value The bytes for package to set. * @return This builder for chaining. */
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) != 0)) { dependency_ = new com.google.protobuf.LazyStringArrayList(dependency_); bitField0_ |= 0x00000004; } }
Names of files imported by this file.
repeated string dependency = 3;
Returns:A list containing the dependency.
/** * <pre> * Names of files imported by this file. * </pre> * * <code>repeated string dependency = 3;</code> * @return A list containing the dependency. */
public com.google.protobuf.ProtocolStringList getDependencyList() { return dependency_.getUnmodifiableView(); }
Names of files imported by this file.
repeated string dependency = 3;
Returns:The count of dependency.
/** * <pre> * Names of files imported by this file. * </pre> * * <code>repeated string dependency = 3;</code> * @return The count of dependency. */
public int getDependencyCount() { return dependency_.size(); }
Names of files imported by this file.
repeated string dependency = 3;
Params:
  • index – The index of the element to return.
Returns:The dependency at the given index.
/** * <pre> * Names of files imported by this file. * </pre> * * <code>repeated string dependency = 3;</code> * @param index The index of the element to return. * @return The dependency at the given index. */
public java.lang.String getDependency(int index) { return dependency_.get(index); }
Names of files imported by this file.
repeated string dependency = 3;
Params:
  • index – The index of the value to return.
Returns:The bytes of the dependency at the given index.
/** * <pre> * Names of files imported by this file. * </pre> * * <code>repeated string dependency = 3;</code> * @param index The index of the value to return. * @return The bytes of the dependency at the given index. */
public com.google.protobuf.ByteString getDependencyBytes(int index) { return dependency_.getByteString(index); }
Names of files imported by this file.
repeated string dependency = 3;
Params:
  • index – The index to set the value at.
  • value – The dependency to set.
Returns:This builder for chaining.
/** * <pre> * Names of files imported by this file. * </pre> * * <code>repeated string dependency = 3;</code> * @param index The index to set the value at. * @param value The dependency to set. * @return This builder for chaining. */
public Builder setDependency( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDependencyIsMutable(); dependency_.set(index, value); onChanged(); return this; }
Names of files imported by this file.
repeated string dependency = 3;
Params:
  • value – The dependency to add.
Returns:This builder for chaining.
/** * <pre> * Names of files imported by this file. * </pre> * * <code>repeated string dependency = 3;</code> * @param value The dependency to add. * @return This builder for chaining. */
public Builder addDependency( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDependencyIsMutable(); dependency_.add(value); onChanged(); return this; }
Names of files imported by this file.
repeated string dependency = 3;
Params:
  • values – The dependency to add.
Returns:This builder for chaining.
/** * <pre> * Names of files imported by this file. * </pre> * * <code>repeated string dependency = 3;</code> * @param values The dependency to add. * @return This builder for chaining. */
public Builder addAllDependency( java.lang.Iterable<java.lang.String> values) { ensureDependencyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dependency_); onChanged(); return this; }
Names of files imported by this file.
repeated string dependency = 3;
Returns:This builder for chaining.
/** * <pre> * Names of files imported by this file. * </pre> * * <code>repeated string dependency = 3;</code> * @return This builder for chaining. */
public Builder clearDependency() { dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; }
Names of files imported by this file.
repeated string dependency = 3;
Params:
  • value – The bytes of the dependency to add.
Returns:This builder for chaining.
/** * <pre> * Names of files imported by this file. * </pre> * * <code>repeated string dependency = 3;</code> * @param value The bytes of the dependency to add. * @return This builder for chaining. */
public Builder addDependencyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureDependencyIsMutable(); dependency_.add(value); onChanged(); return this; } private com.google.protobuf.Internal.IntList publicDependency_ = emptyIntList(); private void ensurePublicDependencyIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { publicDependency_ = mutableCopy(publicDependency_); bitField0_ |= 0x00000008; } }
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
Returns:A list containing the publicDependency.
/** * <pre> * Indexes of the public imported files in the dependency list above. * </pre> * * <code>repeated int32 public_dependency = 10;</code> * @return A list containing the publicDependency. */
public java.util.List<java.lang.Integer> getPublicDependencyList() { return ((bitField0_ & 0x00000008) != 0) ? java.util.Collections.unmodifiableList(publicDependency_) : publicDependency_; }
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
Returns:The count of publicDependency.
/** * <pre> * Indexes of the public imported files in the dependency list above. * </pre> * * <code>repeated int32 public_dependency = 10;</code> * @return The count of publicDependency. */
public int getPublicDependencyCount() { return publicDependency_.size(); }
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
Params:
  • index – The index of the element to return.
Returns:The publicDependency at the given index.
/** * <pre> * Indexes of the public imported files in the dependency list above. * </pre> * * <code>repeated int32 public_dependency = 10;</code> * @param index The index of the element to return. * @return The publicDependency at the given index. */
public int getPublicDependency(int index) { return publicDependency_.getInt(index); }
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
Params:
  • index – The index to set the value at.
  • value – The publicDependency to set.
Returns:This builder for chaining.
/** * <pre> * Indexes of the public imported files in the dependency list above. * </pre> * * <code>repeated int32 public_dependency = 10;</code> * @param index The index to set the value at. * @param value The publicDependency to set. * @return This builder for chaining. */
public Builder setPublicDependency( int index, int value) { ensurePublicDependencyIsMutable(); publicDependency_.setInt(index, value); onChanged(); return this; }
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
Params:
  • value – The publicDependency to add.
Returns:This builder for chaining.
/** * <pre> * Indexes of the public imported files in the dependency list above. * </pre> * * <code>repeated int32 public_dependency = 10;</code> * @param value The publicDependency to add. * @return This builder for chaining. */
public Builder addPublicDependency(int value) { ensurePublicDependencyIsMutable(); publicDependency_.addInt(value); onChanged(); return this; }
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
Params:
  • values – The publicDependency to add.
Returns:This builder for chaining.
/** * <pre> * Indexes of the public imported files in the dependency list above. * </pre> * * <code>repeated int32 public_dependency = 10;</code> * @param values The publicDependency to add. * @return This builder for chaining. */
public Builder addAllPublicDependency( java.lang.Iterable<? extends java.lang.Integer> values) { ensurePublicDependencyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, publicDependency_); onChanged(); return this; }
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
Returns:This builder for chaining.
/** * <pre> * Indexes of the public imported files in the dependency list above. * </pre> * * <code>repeated int32 public_dependency = 10;</code> * @return This builder for chaining. */
public Builder clearPublicDependency() { publicDependency_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } private com.google.protobuf.Internal.IntList weakDependency_ = emptyIntList(); private void ensureWeakDependencyIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { weakDependency_ = mutableCopy(weakDependency_); bitField0_ |= 0x00000010; } }
Indexes of the weak imported files in the dependency list.
For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;
Returns:A list containing the weakDependency.
/** * <pre> * Indexes of the weak imported files in the dependency list. * For Google-internal migration only. Do not use. * </pre> * * <code>repeated int32 weak_dependency = 11;</code> * @return A list containing the weakDependency. */
public java.util.List<java.lang.Integer> getWeakDependencyList() { return ((bitField0_ & 0x00000010) != 0) ? java.util.Collections.unmodifiableList(weakDependency_) : weakDependency_; }
Indexes of the weak imported files in the dependency list.
For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;
Returns:The count of weakDependency.
/** * <pre> * Indexes of the weak imported files in the dependency list. * For Google-internal migration only. Do not use. * </pre> * * <code>repeated int32 weak_dependency = 11;</code> * @return The count of weakDependency. */
public int getWeakDependencyCount() { return weakDependency_.size(); }
Indexes of the weak imported files in the dependency list.
For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;
Params:
  • index – The index of the element to return.
Returns:The weakDependency at the given index.
/** * <pre> * Indexes of the weak imported files in the dependency list. * For Google-internal migration only. Do not use. * </pre> * * <code>repeated int32 weak_dependency = 11;</code> * @param index The index of the element to return. * @return The weakDependency at the given index. */
public int getWeakDependency(int index) { return weakDependency_.getInt(index); }
Indexes of the weak imported files in the dependency list.
For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;
Params:
  • index – The index to set the value at.
  • value – The weakDependency to set.
Returns:This builder for chaining.
/** * <pre> * Indexes of the weak imported files in the dependency list. * For Google-internal migration only. Do not use. * </pre> * * <code>repeated int32 weak_dependency = 11;</code> * @param index The index to set the value at. * @param value The weakDependency to set. * @return This builder for chaining. */
public Builder setWeakDependency( int index, int value) { ensureWeakDependencyIsMutable(); weakDependency_.setInt(index, value); onChanged(); return this; }
Indexes of the weak imported files in the dependency list.
For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;
Params:
  • value – The weakDependency to add.
Returns:This builder for chaining.
/** * <pre> * Indexes of the weak imported files in the dependency list. * For Google-internal migration only. Do not use. * </pre> * * <code>repeated int32 weak_dependency = 11;</code> * @param value The weakDependency to add. * @return This builder for chaining. */
public Builder addWeakDependency(int value) { ensureWeakDependencyIsMutable(); weakDependency_.addInt(value); onChanged(); return this; }
Indexes of the weak imported files in the dependency list.
For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;
Params:
  • values – The weakDependency to add.
Returns:This builder for chaining.
/** * <pre> * Indexes of the weak imported files in the dependency list. * For Google-internal migration only. Do not use. * </pre> * * <code>repeated int32 weak_dependency = 11;</code> * @param values The weakDependency to add. * @return This builder for chaining. */
public Builder addAllWeakDependency( java.lang.Iterable<? extends java.lang.Integer> values) { ensureWeakDependencyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, weakDependency_); onChanged(); return this; }
Indexes of the weak imported files in the dependency list.
For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;
Returns:This builder for chaining.
/** * <pre> * Indexes of the weak imported files in the dependency list. * For Google-internal migration only. Do not use. * </pre> * * <code>repeated int32 weak_dependency = 11;</code> * @return This builder for chaining. */
public Builder clearWeakDependency() { weakDependency_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } private java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> messageType_ = java.util.Collections.emptyList(); private void ensureMessageTypeIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { messageType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto>(messageType_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> messageTypeBuilder_;
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getMessageTypeList() { if (messageTypeBuilder_ == null) { return java.util.Collections.unmodifiableList(messageType_); } else { return messageTypeBuilder_.getMessageList(); } }
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
public int getMessageTypeCount() { if (messageTypeBuilder_ == null) { return messageType_.size(); } else { return messageTypeBuilder_.getCount(); } }
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
public com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index) { if (messageTypeBuilder_ == null) { return messageType_.get(index); } else { return messageTypeBuilder_.getMessage(index); } }
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
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; }
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
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; }
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
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; }
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
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; }
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
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; }
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
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; }
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
public Builder addAllMessageType( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.DescriptorProto> values) { if (messageTypeBuilder_ == null) { ensureMessageTypeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, messageType_); onChanged(); } else { messageTypeBuilder_.addAllMessages(values); } return this; }
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
public Builder clearMessageType() { if (messageTypeBuilder_ == null) { messageType_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { messageTypeBuilder_.clear(); } return this; }
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
public Builder removeMessageType(int index) { if (messageTypeBuilder_ == null) { ensureMessageTypeIsMutable(); messageType_.remove(index); onChanged(); } else { messageTypeBuilder_.remove(index); } return this; }
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder getMessageTypeBuilder( int index) { return getMessageTypeFieldBuilder().getBuilder(index); }
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder( int index) { if (messageTypeBuilder_ == null) { return messageType_.get(index); } else { return messageTypeBuilder_.getMessageOrBuilder(index); } }
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> getMessageTypeOrBuilderList() { if (messageTypeBuilder_ != null) { return messageTypeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(messageType_); } }
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder addMessageTypeBuilder() { return getMessageTypeFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()); }
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder addMessageTypeBuilder( int index) { return getMessageTypeFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()); }
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
/** * <pre> * All top-level definitions in this file. * </pre> * * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.Builder> getMessageTypeBuilderList() { return getMessageTypeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< 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.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>( messageType_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); messageType_ = null; } return messageTypeBuilder_; } private java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> enumType_ = java.util.Collections.emptyList(); private void ensureEnumTypeIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { enumType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumDescriptorProto>(enumType_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> enumTypeBuilder_;
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() { if (enumTypeBuilder_ == null) { return java.util.Collections.unmodifiableList(enumType_); } else { return enumTypeBuilder_.getMessageList(); } }
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
public int getEnumTypeCount() { if (enumTypeBuilder_ == null) { return enumType_.size(); } else { return enumTypeBuilder_.getCount(); } }
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
public Builder addAllEnumType( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProto> 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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder getEnumTypeBuilder( int index) { return getEnumTypeFieldBuilder().getBuilder(index); }
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> getEnumTypeOrBuilderList() { if (enumTypeBuilder_ != null) { return enumTypeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(enumType_); } }
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder() { return getEnumTypeFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.EnumDescriptorProto.getDefaultInstance()); }
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder> getEnumTypeBuilderList() { return getEnumTypeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< 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.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder>( enumType_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); enumType_ = null; } return enumTypeBuilder_; } private java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> service_ = java.util.Collections.emptyList(); private void ensureServiceIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { service_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto>(service_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.ServiceDescriptorProto, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> serviceBuilder_;
repeated .google.protobuf.ServiceDescriptorProto service = 6;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> getServiceList() { if (serviceBuilder_ == null) { return java.util.Collections.unmodifiableList(service_); } else { return serviceBuilder_.getMessageList(); } }
repeated .google.protobuf.ServiceDescriptorProto service = 6;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
public int getServiceCount() { if (serviceBuilder_ == null) { return service_.size(); } else { return serviceBuilder_.getCount(); } }
repeated .google.protobuf.ServiceDescriptorProto service = 6;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
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;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
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;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
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;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
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;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
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;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
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;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
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;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
public Builder addAllService( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> 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;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
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;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
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;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder getServiceBuilder( int index) { return getServiceFieldBuilder().getBuilder(index); }
repeated .google.protobuf.ServiceDescriptorProto service = 6;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
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;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> getServiceOrBuilderList() { if (serviceBuilder_ != null) { return serviceBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(service_); } }
repeated .google.protobuf.ServiceDescriptorProto service = 6;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder addServiceBuilder() { return getServiceFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.getDefaultInstance()); }
repeated .google.protobuf.ServiceDescriptorProto service = 6;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
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;
/** * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder> getServiceBuilderList() { return getServiceFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< 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.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.ServiceDescriptorProto, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder>( service_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); service_ = null; } return serviceBuilder_; } private java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> extension_ = java.util.Collections.emptyList(); private void ensureExtensionIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { extension_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>(extension_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> extensionBuilder_;
repeated .google.protobuf.FieldDescriptorProto extension = 7;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() { if (extensionBuilder_ == null) { return java.util.Collections.unmodifiableList(extension_); } else { return extensionBuilder_.getMessageList(); } }
repeated .google.protobuf.FieldDescriptorProto extension = 7;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
public int getExtensionCount() { if (extensionBuilder_ == null) { return extension_.size(); } else { return extensionBuilder_.getCount(); } }
repeated .google.protobuf.FieldDescriptorProto extension = 7;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
public Builder addAllExtension( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProto> 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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder getExtensionBuilder( int index) { return getExtensionFieldBuilder().getBuilder(index); }
repeated .google.protobuf.FieldDescriptorProto extension = 7;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> getExtensionOrBuilderList() { if (extensionBuilder_ != null) { return extensionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(extension_); } }
repeated .google.protobuf.FieldDescriptorProto extension = 7;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder() { return getExtensionFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); }
repeated .google.protobuf.FieldDescriptorProto extension = 7;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder> getExtensionBuilderList() { return getExtensionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< 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.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder>( extension_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); extension_ = null; } return extensionBuilder_; } private com.google.protobuf.DescriptorProtos.FileOptions options_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.FileOptions, com.google.protobuf.DescriptorProtos.FileOptions.Builder, com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder> optionsBuilder_;
optional .google.protobuf.FileOptions options = 8;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.FileOptions options = 8;</code> * @return Whether the options field is set. */
public boolean hasOptions() { return ((bitField0_ & 0x00000200) != 0); }
optional .google.protobuf.FileOptions options = 8;
Returns:The options.
/** * <code>optional .google.protobuf.FileOptions options = 8;</code> * @return The options. */
public com.google.protobuf.DescriptorProtos.FileOptions getOptions() { if (optionsBuilder_ == null) { return options_ == null ? com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance() : options_; } else { return optionsBuilder_.getMessage(); } }
optional .google.protobuf.FileOptions options = 8;
/** * <code>optional .google.protobuf.FileOptions options = 8;</code> */
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;
/** * <code>optional .google.protobuf.FileOptions options = 8;</code> */
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;
/** * <code>optional .google.protobuf.FileOptions options = 8;</code> */
public Builder mergeOptions(com.google.protobuf.DescriptorProtos.FileOptions value) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && options_ != null && 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;
/** * <code>optional .google.protobuf.FileOptions options = 8;</code> */
public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; }
optional .google.protobuf.FileOptions options = 8;
/** * <code>optional .google.protobuf.FileOptions options = 8;</code> */
public com.google.protobuf.DescriptorProtos.FileOptions.Builder getOptionsBuilder() { bitField0_ |= 0x00000200; onChanged(); return getOptionsFieldBuilder().getBuilder(); }
optional .google.protobuf.FileOptions options = 8;
/** * <code>optional .google.protobuf.FileOptions options = 8;</code> */
public com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { return options_ == null ? com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance() : options_; } }
optional .google.protobuf.FileOptions options = 8;
/** * <code>optional .google.protobuf.FileOptions options = 8;</code> */
private com.google.protobuf.SingleFieldBuilderV3< 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.SingleFieldBuilderV3< 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_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.SourceCodeInfo, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder> sourceCodeInfoBuilder_;
This field contains optional information about the original source code.
You may safely remove this entire field without harming runtime
functionality of the descriptors -- the information is needed only by
development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;
Returns:Whether the sourceCodeInfo field is set.
/** * <pre> * This field contains optional information about the original source code. * You may safely remove this entire field without harming runtime * functionality of the descriptors -- the information is needed only by * development tools. * </pre> * * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> * @return Whether the sourceCodeInfo field is set. */
public boolean hasSourceCodeInfo() { return ((bitField0_ & 0x00000400) != 0); }
This field contains optional information about the original source code.
You may safely remove this entire field without harming runtime
functionality of the descriptors -- the information is needed only by
development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;
Returns:The sourceCodeInfo.
/** * <pre> * This field contains optional information about the original source code. * You may safely remove this entire field without harming runtime * functionality of the descriptors -- the information is needed only by * development tools. * </pre> * * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> * @return The sourceCodeInfo. */
public com.google.protobuf.DescriptorProtos.SourceCodeInfo getSourceCodeInfo() { if (sourceCodeInfoBuilder_ == null) { return sourceCodeInfo_ == null ? com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance() : sourceCodeInfo_; } else { return sourceCodeInfoBuilder_.getMessage(); } }
This field contains optional information about the original source code.
You may safely remove this entire field without harming runtime
functionality of the descriptors -- the information is needed only by
development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;
/** * <pre> * This field contains optional information about the original source code. * You may safely remove this entire field without harming runtime * functionality of the descriptors -- the information is needed only by * development tools. * </pre> * * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> */
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; }
This field contains optional information about the original source code.
You may safely remove this entire field without harming runtime
functionality of the descriptors -- the information is needed only by
development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;
/** * <pre> * This field contains optional information about the original source code. * You may safely remove this entire field without harming runtime * functionality of the descriptors -- the information is needed only by * development tools. * </pre> * * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> */
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; }
This field contains optional information about the original source code.
You may safely remove this entire field without harming runtime
functionality of the descriptors -- the information is needed only by
development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;
/** * <pre> * This field contains optional information about the original source code. * You may safely remove this entire field without harming runtime * functionality of the descriptors -- the information is needed only by * development tools. * </pre> * * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> */
public Builder mergeSourceCodeInfo(com.google.protobuf.DescriptorProtos.SourceCodeInfo value) { if (sourceCodeInfoBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0) && sourceCodeInfo_ != null && 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; }
This field contains optional information about the original source code.
You may safely remove this entire field without harming runtime
functionality of the descriptors -- the information is needed only by
development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;
/** * <pre> * This field contains optional information about the original source code. * You may safely remove this entire field without harming runtime * functionality of the descriptors -- the information is needed only by * development tools. * </pre> * * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> */
public Builder clearSourceCodeInfo() { if (sourceCodeInfoBuilder_ == null) { sourceCodeInfo_ = null; onChanged(); } else { sourceCodeInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; }
This field contains optional information about the original source code.
You may safely remove this entire field without harming runtime
functionality of the descriptors -- the information is needed only by
development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;
/** * <pre> * This field contains optional information about the original source code. * You may safely remove this entire field without harming runtime * functionality of the descriptors -- the information is needed only by * development tools. * </pre> * * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> */
public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder getSourceCodeInfoBuilder() { bitField0_ |= 0x00000400; onChanged(); return getSourceCodeInfoFieldBuilder().getBuilder(); }
This field contains optional information about the original source code.
You may safely remove this entire field without harming runtime
functionality of the descriptors -- the information is needed only by
development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;
/** * <pre> * This field contains optional information about the original source code. * You may safely remove this entire field without harming runtime * functionality of the descriptors -- the information is needed only by * development tools. * </pre> * * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> */
public com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder() { if (sourceCodeInfoBuilder_ != null) { return sourceCodeInfoBuilder_.getMessageOrBuilder(); } else { return sourceCodeInfo_ == null ? com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance() : sourceCodeInfo_; } }
This field contains optional information about the original source code.
You may safely remove this entire field without harming runtime
functionality of the descriptors -- the information is needed only by
development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;
/** * <pre> * This field contains optional information about the original source code. * You may safely remove this entire field without harming runtime * functionality of the descriptors -- the information is needed only by * development tools. * </pre> * * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> */
private com.google.protobuf.SingleFieldBuilderV3< 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.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.SourceCodeInfo, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder>( getSourceCodeInfo(), getParentForChildren(), isClean()); sourceCodeInfo_ = null; } return sourceCodeInfoBuilder_; } private java.lang.Object syntax_ = "";
The syntax of the proto file.
The supported values are "proto2" and "proto3".
optional string syntax = 12;
Returns:Whether the syntax field is set.
/** * <pre> * The syntax of the proto file. * The supported values are "proto2" and "proto3". * </pre> * * <code>optional string syntax = 12;</code> * @return Whether the syntax field is set. */
public boolean hasSyntax() { return ((bitField0_ & 0x00000800) != 0); }
The syntax of the proto file.
The supported values are "proto2" and "proto3".
optional string syntax = 12;
Returns:The syntax.
/** * <pre> * The syntax of the proto file. * The supported values are "proto2" and "proto3". * </pre> * * <code>optional string syntax = 12;</code> * @return The syntax. */
public java.lang.String getSyntax() { java.lang.Object ref = syntax_; 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()) { syntax_ = s; } return s; } else { return (java.lang.String) ref; } }
The syntax of the proto file.
The supported values are "proto2" and "proto3".
optional string syntax = 12;
Returns:The bytes for syntax.
/** * <pre> * The syntax of the proto file. * The supported values are "proto2" and "proto3". * </pre> * * <code>optional string syntax = 12;</code> * @return The bytes for syntax. */
public com.google.protobuf.ByteString getSyntaxBytes() { java.lang.Object ref = syntax_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); syntax_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
The syntax of the proto file.
The supported values are "proto2" and "proto3".
optional string syntax = 12;
Params:
  • value – The syntax to set.
Returns:This builder for chaining.
/** * <pre> * The syntax of the proto file. * The supported values are "proto2" and "proto3". * </pre> * * <code>optional string syntax = 12;</code> * @param value The syntax to set. * @return This builder for chaining. */
public Builder setSyntax( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000800; syntax_ = value; onChanged(); return this; }
The syntax of the proto file.
The supported values are "proto2" and "proto3".
optional string syntax = 12;
Returns:This builder for chaining.
/** * <pre> * The syntax of the proto file. * The supported values are "proto2" and "proto3". * </pre> * * <code>optional string syntax = 12;</code> * @return This builder for chaining. */
public Builder clearSyntax() { bitField0_ = (bitField0_ & ~0x00000800); syntax_ = getDefaultInstance().getSyntax(); onChanged(); return this; }
The syntax of the proto file.
The supported values are "proto2" and "proto3".
optional string syntax = 12;
Params:
  • value – The bytes for syntax to set.
Returns:This builder for chaining.
/** * <pre> * The syntax of the proto file. * The supported values are "proto2" and "proto3". * </pre> * * <code>optional string syntax = 12;</code> * @param value The bytes for syntax to set. * @return This builder for chaining. */
public Builder setSyntaxBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000800; syntax_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.FileDescriptorProto) } // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto) private static final com.google.protobuf.DescriptorProtos.FileDescriptorProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.FileDescriptorProto(); } public static com.google.protobuf.DescriptorProtos.FileDescriptorProto getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<FileDescriptorProto> PARSER = new com.google.protobuf.AbstractParser<FileDescriptorProto>() { @java.lang.Override public FileDescriptorProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FileDescriptorProto(input, extensionRegistry); } }; public static com.google.protobuf.Parser<FileDescriptorProto> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<FileDescriptorProto> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.FileDescriptorProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DescriptorProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.DescriptorProto) com.google.protobuf.MessageOrBuilder {
optional string name = 1;
Returns:Whether the name field is set.
/** * <code>optional string name = 1;</code> * @return Whether the name field is set. */
boolean hasName();
optional string name = 1;
Returns:The name.
/** * <code>optional string name = 1;</code> * @return The name. */
java.lang.String getName();
optional string name = 1;
Returns:The bytes for name.
/** * <code>optional string name = 1;</code> * @return The bytes for name. */
com.google.protobuf.ByteString getNameBytes();
repeated .google.protobuf.FieldDescriptorProto field = 2;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getFieldList();
repeated .google.protobuf.FieldDescriptorProto field = 2;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
com.google.protobuf.DescriptorProtos.FieldDescriptorProto getField(int index);
repeated .google.protobuf.FieldDescriptorProto field = 2;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
int getFieldCount();
repeated .google.protobuf.FieldDescriptorProto field = 2;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> getFieldOrBuilderList();
repeated .google.protobuf.FieldDescriptorProto field = 2;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder( int index);
repeated .google.protobuf.FieldDescriptorProto extension = 6;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList();
repeated .google.protobuf.FieldDescriptorProto extension = 6;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index);
repeated .google.protobuf.FieldDescriptorProto extension = 6;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
int getExtensionCount();
repeated .google.protobuf.FieldDescriptorProto extension = 6;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> getExtensionOrBuilderList();
repeated .google.protobuf.FieldDescriptorProto extension = 6;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( int index);
repeated .google.protobuf.DescriptorProto nested_type = 3;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getNestedTypeList();
repeated .google.protobuf.DescriptorProto nested_type = 3;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
com.google.protobuf.DescriptorProtos.DescriptorProto getNestedType(int index);
repeated .google.protobuf.DescriptorProto nested_type = 3;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
int getNestedTypeCount();
repeated .google.protobuf.DescriptorProto nested_type = 3;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> getNestedTypeOrBuilderList();
repeated .google.protobuf.DescriptorProto nested_type = 3;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder( int index);
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList();
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index);
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
int getEnumTypeCount();
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> getEnumTypeOrBuilderList();
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( int index);
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange> getExtensionRangeList();
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index);
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
int getExtensionRangeCount();
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> getExtensionRangeOrBuilderList();
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder( int index);
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.OneofDescriptorProto> getOneofDeclList();
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
com.google.protobuf.DescriptorProtos.OneofDescriptorProto getOneofDecl(int index);
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
int getOneofDeclCount();
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder> getOneofDeclOrBuilderList();
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder getOneofDeclOrBuilder( int index);
optional .google.protobuf.MessageOptions options = 7;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.MessageOptions options = 7;</code> * @return Whether the options field is set. */
boolean hasOptions();
optional .google.protobuf.MessageOptions options = 7;
Returns:The options.
/** * <code>optional .google.protobuf.MessageOptions options = 7;</code> * @return The options. */
com.google.protobuf.DescriptorProtos.MessageOptions getOptions();
optional .google.protobuf.MessageOptions options = 7;
/** * <code>optional .google.protobuf.MessageOptions options = 7;</code> */
com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder();
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange> getReservedRangeList();
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange getReservedRange(int index);
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
int getReservedRangeCount();
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder> getReservedRangeOrBuilderList();
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder getReservedRangeOrBuilder( int index);
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Returns:A list containing the reservedName.
/** * <pre> * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. * </pre> * * <code>repeated string reserved_name = 10;</code> * @return A list containing the reservedName. */
java.util.List<java.lang.String> getReservedNameList();
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Returns:The count of reservedName.
/** * <pre> * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. * </pre> * * <code>repeated string reserved_name = 10;</code> * @return The count of reservedName. */
int getReservedNameCount();
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Params:
  • index – The index of the element to return.
Returns:The reservedName at the given index.
/** * <pre> * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. * </pre> * * <code>repeated string reserved_name = 10;</code> * @param index The index of the element to return. * @return The reservedName at the given index. */
java.lang.String getReservedName(int index);
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Params:
  • index – The index of the value to return.
Returns:The bytes of the reservedName at the given index.
/** * <pre> * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. * </pre> * * <code>repeated string reserved_name = 10;</code> * @param index The index of the value to return. * @return The bytes of the reservedName at the given index. */
com.google.protobuf.ByteString getReservedNameBytes(int index); }
Describes a message type.
Protobuf type google.protobuf.DescriptorProto
/** * <pre> * Describes a message type. * </pre> * * Protobuf type {@code google.protobuf.DescriptorProto} */
public static final class DescriptorProto extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.protobuf.DescriptorProto) DescriptorProtoOrBuilder { private static final long serialVersionUID = 0L; // Use DescriptorProto.newBuilder() to construct. private DescriptorProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private DescriptorProto() { 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(); reservedRange_ = java.util.Collections.emptyList(); reservedName_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DescriptorProto(); } @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 { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { field_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>(); mutable_bitField0_ |= 0x00000002; } field_.add( input.readMessage(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.PARSER, extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { nestedType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto>(); mutable_bitField0_ |= 0x00000008; } nestedType_.add( input.readMessage(com.google.protobuf.DescriptorProtos.DescriptorProto.PARSER, extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000010) != 0)) { enumType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumDescriptorProto>(); mutable_bitField0_ |= 0x00000010; } enumType_.add( input.readMessage(com.google.protobuf.DescriptorProtos.EnumDescriptorProto.PARSER, extensionRegistry)); break; } case 42: { if (!((mutable_bitField0_ & 0x00000020) != 0)) { extensionRange_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange>(); mutable_bitField0_ |= 0x00000020; } extensionRange_.add( input.readMessage(com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.PARSER, extensionRegistry)); break; } case 50: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { extension_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>(); 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) != 0)) { 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) != 0)) { oneofDecl_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.OneofDescriptorProto>(); mutable_bitField0_ |= 0x00000040; } oneofDecl_.add( input.readMessage(com.google.protobuf.DescriptorProtos.OneofDescriptorProto.PARSER, extensionRegistry)); break; } case 74: { if (!((mutable_bitField0_ & 0x00000100) != 0)) { reservedRange_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange>(); mutable_bitField0_ |= 0x00000100; } reservedRange_.add( input.readMessage(com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.PARSER, extensionRegistry)); break; } case 82: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000200) != 0)) { reservedName_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000200; } reservedName_.add(bs); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { field_ = java.util.Collections.unmodifiableList(field_); } if (((mutable_bitField0_ & 0x00000008) != 0)) { nestedType_ = java.util.Collections.unmodifiableList(nestedType_); } if (((mutable_bitField0_ & 0x00000010) != 0)) { enumType_ = java.util.Collections.unmodifiableList(enumType_); } if (((mutable_bitField0_ & 0x00000020) != 0)) { extensionRange_ = java.util.Collections.unmodifiableList(extensionRange_); } if (((mutable_bitField0_ & 0x00000004) != 0)) { extension_ = java.util.Collections.unmodifiableList(extension_); } if (((mutable_bitField0_ & 0x00000040) != 0)) { oneofDecl_ = java.util.Collections.unmodifiableList(oneofDecl_); } if (((mutable_bitField0_ & 0x00000100) != 0)) { reservedRange_ = java.util.Collections.unmodifiableList(reservedRange_); } if (((mutable_bitField0_ & 0x00000200) != 0)) { reservedName_ = reservedName_.getUnmodifiableView(); } 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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.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 interface ExtensionRangeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.DescriptorProto.ExtensionRange) com.google.protobuf.MessageOrBuilder {
Inclusive.
optional int32 start = 1;
Returns:Whether the start field is set.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @return Whether the start field is set. */
boolean hasStart();
Inclusive.
optional int32 start = 1;
Returns:The start.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @return The start. */
int getStart();
Exclusive.
optional int32 end = 2;
Returns:Whether the end field is set.
/** * <pre> * Exclusive. * </pre> * * <code>optional int32 end = 2;</code> * @return Whether the end field is set. */
boolean hasEnd();
Exclusive.
optional int32 end = 2;
Returns:The end.
/** * <pre> * Exclusive. * </pre> * * <code>optional int32 end = 2;</code> * @return The end. */
int getEnd();
optional .google.protobuf.ExtensionRangeOptions options = 3;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> * @return Whether the options field is set. */
boolean hasOptions();
optional .google.protobuf.ExtensionRangeOptions options = 3;
Returns:The options.
/** * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> * @return The options. */
com.google.protobuf.DescriptorProtos.ExtensionRangeOptions getOptions();
optional .google.protobuf.ExtensionRangeOptions options = 3;
/** * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> */
com.google.protobuf.DescriptorProtos.ExtensionRangeOptionsOrBuilder getOptionsOrBuilder(); }
Protobuf type google.protobuf.DescriptorProto.ExtensionRange
/** * Protobuf type {@code google.protobuf.DescriptorProto.ExtensionRange} */
public static final class ExtensionRange extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.protobuf.DescriptorProto.ExtensionRange) ExtensionRangeOrBuilder { private static final long serialVersionUID = 0L; // Use ExtensionRange.newBuilder() to construct. private ExtensionRange(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private ExtensionRange() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExtensionRange(); } @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 { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 8: { bitField0_ |= 0x00000001; start_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; end_ = input.readInt32(); break; } case 26: { com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.Builder subBuilder = null; if (((bitField0_ & 0x00000004) != 0)) { subBuilder = options_.toBuilder(); } options_ = input.readMessage(com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(options_); options_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.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); } private int bitField0_; public static final int START_FIELD_NUMBER = 1; private int start_;
Inclusive.
optional int32 start = 1;
Returns:Whether the start field is set.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @return Whether the start field is set. */
public boolean hasStart() { return ((bitField0_ & 0x00000001) != 0); }
Inclusive.
optional int32 start = 1;
Returns:The start.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @return The start. */
public int getStart() { return start_; } public static final int END_FIELD_NUMBER = 2; private int end_;
Exclusive.
optional int32 end = 2;
Returns:Whether the end field is set.
/** * <pre> * Exclusive. * </pre> * * <code>optional int32 end = 2;</code> * @return Whether the end field is set. */
public boolean hasEnd() { return ((bitField0_ & 0x00000002) != 0); }
Exclusive.
optional int32 end = 2;
Returns:The end.
/** * <pre> * Exclusive. * </pre> * * <code>optional int32 end = 2;</code> * @return The end. */
public int getEnd() { return end_; } public static final int OPTIONS_FIELD_NUMBER = 3; private com.google.protobuf.DescriptorProtos.ExtensionRangeOptions options_;
optional .google.protobuf.ExtensionRangeOptions options = 3;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> * @return Whether the options field is set. */
public boolean hasOptions() { return ((bitField0_ & 0x00000004) != 0); }
optional .google.protobuf.ExtensionRangeOptions options = 3;
Returns:The options.
/** * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> * @return The options. */
public com.google.protobuf.DescriptorProtos.ExtensionRangeOptions getOptions() { return options_ == null ? com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.getDefaultInstance() : options_; }
optional .google.protobuf.ExtensionRangeOptions options = 3;
/** * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> */
public com.google.protobuf.DescriptorProtos.ExtensionRangeOptionsOrBuilder getOptionsOrBuilder() { return options_ == null ? com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.getDefaultInstance() : options_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasOptions()) { if (!getOptions().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, start_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, end_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getOptions()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, start_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, end_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getOptions()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange other = (com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange) obj; if (hasStart() != other.hasStart()) return false; if (hasStart()) { if (getStart() != other.getStart()) return false; } if (hasEnd() != other.hasEnd()) return false; if (hasEnd()) { if (getEnd() != other.getEnd()) return false; } if (hasOptions() != other.hasOptions()) return false; if (hasOptions()) { if (!getOptions() .equals(other.getOptions())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStart()) { hash = (37 * hash) + START_FIELD_NUMBER; hash = (53 * hash) + getStart(); } if (hasEnd()) { hash = (37 * hash) + END_FIELD_NUMBER; hash = (53 * hash) + getEnd(); } if (hasOptions()) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptions().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( java.nio.ByteBuffer 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( 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 com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Protobuf type google.protobuf.DescriptorProto.ExtensionRange
/** * Protobuf type {@code google.protobuf.DescriptorProto.ExtensionRange} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); start_ = 0; bitField0_ = (bitField0_ & ~0x00000001); end_ = 0; bitField0_ = (bitField0_ & ~0x00000002); if (optionsBuilder_ == null) { options_ = null; } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange build() { com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override 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) != 0)) { result.start_ = start_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.end_ = end_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { if (optionsBuilder_ == null) { result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } to_bitField0_ |= 0x00000004; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } if (other.hasOptions()) { mergeOptions(other.getOptions()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (hasOptions()) { if (!getOptions().isInitialized()) { return false; } } return true; } @java.lang.Override 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.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int start_ ;
Inclusive.
optional int32 start = 1;
Returns:Whether the start field is set.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @return Whether the start field is set. */
public boolean hasStart() { return ((bitField0_ & 0x00000001) != 0); }
Inclusive.
optional int32 start = 1;
Returns:The start.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @return The start. */
public int getStart() { return start_; }
Inclusive.
optional int32 start = 1;
Params:
  • value – The start to set.
Returns:This builder for chaining.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @param value The start to set. * @return This builder for chaining. */
public Builder setStart(int value) { bitField0_ |= 0x00000001; start_ = value; onChanged(); return this; }
Inclusive.
optional int32 start = 1;
Returns:This builder for chaining.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @return This builder for chaining. */
public Builder clearStart() { bitField0_ = (bitField0_ & ~0x00000001); start_ = 0; onChanged(); return this; } private int end_ ;
Exclusive.
optional int32 end = 2;
Returns:Whether the end field is set.
/** * <pre> * Exclusive. * </pre> * * <code>optional int32 end = 2;</code> * @return Whether the end field is set. */
public boolean hasEnd() { return ((bitField0_ & 0x00000002) != 0); }
Exclusive.
optional int32 end = 2;
Returns:The end.
/** * <pre> * Exclusive. * </pre> * * <code>optional int32 end = 2;</code> * @return The end. */
public int getEnd() { return end_; }
Exclusive.
optional int32 end = 2;
Params:
  • value – The end to set.
Returns:This builder for chaining.
/** * <pre> * Exclusive. * </pre> * * <code>optional int32 end = 2;</code> * @param value The end to set. * @return This builder for chaining. */
public Builder setEnd(int value) { bitField0_ |= 0x00000002; end_ = value; onChanged(); return this; }
Exclusive.
optional int32 end = 2;
Returns:This builder for chaining.
/** * <pre> * Exclusive. * </pre> * * <code>optional int32 end = 2;</code> * @return This builder for chaining. */
public Builder clearEnd() { bitField0_ = (bitField0_ & ~0x00000002); end_ = 0; onChanged(); return this; } private com.google.protobuf.DescriptorProtos.ExtensionRangeOptions options_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.ExtensionRangeOptions, com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.Builder, com.google.protobuf.DescriptorProtos.ExtensionRangeOptionsOrBuilder> optionsBuilder_;
optional .google.protobuf.ExtensionRangeOptions options = 3;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> * @return Whether the options field is set. */
public boolean hasOptions() { return ((bitField0_ & 0x00000004) != 0); }
optional .google.protobuf.ExtensionRangeOptions options = 3;
Returns:The options.
/** * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> * @return The options. */
public com.google.protobuf.DescriptorProtos.ExtensionRangeOptions getOptions() { if (optionsBuilder_ == null) { return options_ == null ? com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.getDefaultInstance() : options_; } else { return optionsBuilder_.getMessage(); } }
optional .google.protobuf.ExtensionRangeOptions options = 3;
/** * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> */
public Builder setOptions(com.google.protobuf.DescriptorProtos.ExtensionRangeOptions value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } options_ = value; onChanged(); } else { optionsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; }
optional .google.protobuf.ExtensionRangeOptions options = 3;
/** * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> */
public Builder setOptions( com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.Builder builderForValue) { if (optionsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); } else { optionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; }
optional .google.protobuf.ExtensionRangeOptions options = 3;
/** * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> */
public Builder mergeOptions(com.google.protobuf.DescriptorProtos.ExtensionRangeOptions value) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && options_ != null && options_ != com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.getDefaultInstance()) { options_ = com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.newBuilder(options_).mergeFrom(value).buildPartial(); } else { options_ = value; } onChanged(); } else { optionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; }
optional .google.protobuf.ExtensionRangeOptions options = 3;
/** * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> */
public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; }
optional .google.protobuf.ExtensionRangeOptions options = 3;
/** * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> */
public com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.Builder getOptionsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getOptionsFieldBuilder().getBuilder(); }
optional .google.protobuf.ExtensionRangeOptions options = 3;
/** * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> */
public com.google.protobuf.DescriptorProtos.ExtensionRangeOptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { return options_ == null ? com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.getDefaultInstance() : options_; } }
optional .google.protobuf.ExtensionRangeOptions options = 3;
/** * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> */
private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.ExtensionRangeOptions, com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.Builder, com.google.protobuf.DescriptorProtos.ExtensionRangeOptionsOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.ExtensionRangeOptions, com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.Builder, com.google.protobuf.DescriptorProtos.ExtensionRangeOptionsOrBuilder>( getOptions(), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.DescriptorProto.ExtensionRange) } // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ExtensionRange) private static final com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange(); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<ExtensionRange> PARSER = new com.google.protobuf.AbstractParser<ExtensionRange>() { @java.lang.Override public ExtensionRange parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExtensionRange(input, extensionRegistry); } }; public static com.google.protobuf.Parser<ExtensionRange> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ExtensionRange> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReservedRangeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.DescriptorProto.ReservedRange) com.google.protobuf.MessageOrBuilder {
Inclusive.
optional int32 start = 1;
Returns:Whether the start field is set.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @return Whether the start field is set. */
boolean hasStart();
Inclusive.
optional int32 start = 1;
Returns:The start.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @return The start. */
int getStart();
Exclusive.
optional int32 end = 2;
Returns:Whether the end field is set.
/** * <pre> * Exclusive. * </pre> * * <code>optional int32 end = 2;</code> * @return Whether the end field is set. */
boolean hasEnd();
Exclusive.
optional int32 end = 2;
Returns:The end.
/** * <pre> * Exclusive. * </pre> * * <code>optional int32 end = 2;</code> * @return The end. */
int getEnd(); }
Range of reserved tag numbers. Reserved tag numbers may not be used by
fields or extension ranges in the same message. Reserved ranges may
not overlap.
Protobuf type google.protobuf.DescriptorProto.ReservedRange
/** * <pre> * Range of reserved tag numbers. Reserved tag numbers may not be used by * fields or extension ranges in the same message. Reserved ranges may * not overlap. * </pre> * * Protobuf type {@code google.protobuf.DescriptorProto.ReservedRange} */
public static final class ReservedRange extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.protobuf.DescriptorProto.ReservedRange) ReservedRangeOrBuilder { private static final long serialVersionUID = 0L; // Use ReservedRange.newBuilder() to construct. private ReservedRange(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private ReservedRange() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ReservedRange(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReservedRange( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 8: { bitField0_ |= 0x00000001; start_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; end_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).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_ReservedRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ReservedRange_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.class, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder.class); } private int bitField0_; public static final int START_FIELD_NUMBER = 1; private int start_;
Inclusive.
optional int32 start = 1;
Returns:Whether the start field is set.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @return Whether the start field is set. */
public boolean hasStart() { return ((bitField0_ & 0x00000001) != 0); }
Inclusive.
optional int32 start = 1;
Returns:The start.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @return The start. */
public int getStart() { return start_; } public static final int END_FIELD_NUMBER = 2; private int end_;
Exclusive.
optional int32 end = 2;
Returns:Whether the end field is set.
/** * <pre> * Exclusive. * </pre> * * <code>optional int32 end = 2;</code> * @return Whether the end field is set. */
public boolean hasEnd() { return ((bitField0_ & 0x00000002) != 0); }
Exclusive.
optional int32 end = 2;
Returns:The end.
/** * <pre> * Exclusive. * </pre> * * <code>optional int32 end = 2;</code> * @return The end. */
public int getEnd() { return end_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, start_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, end_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, start_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, end_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange other = (com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange) obj; if (hasStart() != other.hasStart()) return false; if (hasStart()) { if (getStart() != other.getStart()) return false; } if (hasEnd() != other.hasEnd()) return false; if (hasEnd()) { if (getEnd() != other.getEnd()) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStart()) { hash = (37 * hash) + START_FIELD_NUMBER; hash = (53 * hash) + getStart(); } if (hasEnd()) { hash = (37 * hash) + END_FIELD_NUMBER; hash = (53 * hash) + getEnd(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange 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.ReservedRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange 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.ReservedRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Range of reserved tag numbers. Reserved tag numbers may not be used by
fields or extension ranges in the same message. Reserved ranges may
not overlap.
Protobuf type google.protobuf.DescriptorProto.ReservedRange
/** * <pre> * Range of reserved tag numbers. Reserved tag numbers may not be used by * fields or extension ranges in the same message. Reserved ranges may * not overlap. * </pre> * * Protobuf type {@code google.protobuf.DescriptorProto.ReservedRange} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.DescriptorProto.ReservedRange) com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ReservedRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ReservedRange_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.class, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); start_ = 0; bitField0_ = (bitField0_ & ~0x00000001); end_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ReservedRange_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange build() { com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange buildPartial() { com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange result = new com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.start_ = start_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.end_ = end_; to_bitField0_ |= 0x00000002; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange) { return mergeFrom((com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange other) { if (other == com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.getDefaultInstance()) return this; if (other.hasStart()) { setStart(other.getStart()); } if (other.hasEnd()) { setEnd(other.getEnd()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int start_ ;
Inclusive.
optional int32 start = 1;
Returns:Whether the start field is set.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @return Whether the start field is set. */
public boolean hasStart() { return ((bitField0_ & 0x00000001) != 0); }
Inclusive.
optional int32 start = 1;
Returns:The start.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @return The start. */
public int getStart() { return start_; }
Inclusive.
optional int32 start = 1;
Params:
  • value – The start to set.
Returns:This builder for chaining.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @param value The start to set. * @return This builder for chaining. */
public Builder setStart(int value) { bitField0_ |= 0x00000001; start_ = value; onChanged(); return this; }
Inclusive.
optional int32 start = 1;
Returns:This builder for chaining.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @return This builder for chaining. */
public Builder clearStart() { bitField0_ = (bitField0_ & ~0x00000001); start_ = 0; onChanged(); return this; } private int end_ ;
Exclusive.
optional int32 end = 2;
Returns:Whether the end field is set.
/** * <pre> * Exclusive. * </pre> * * <code>optional int32 end = 2;</code> * @return Whether the end field is set. */
public boolean hasEnd() { return ((bitField0_ & 0x00000002) != 0); }
Exclusive.
optional int32 end = 2;
Returns:The end.
/** * <pre> * Exclusive. * </pre> * * <code>optional int32 end = 2;</code> * @return The end. */
public int getEnd() { return end_; }
Exclusive.
optional int32 end = 2;
Params:
  • value – The end to set.
Returns:This builder for chaining.
/** * <pre> * Exclusive. * </pre> * * <code>optional int32 end = 2;</code> * @param value The end to set. * @return This builder for chaining. */
public Builder setEnd(int value) { bitField0_ |= 0x00000002; end_ = value; onChanged(); return this; }
Exclusive.
optional int32 end = 2;
Returns:This builder for chaining.
/** * <pre> * Exclusive. * </pre> * * <code>optional int32 end = 2;</code> * @return This builder for chaining. */
public Builder clearEnd() { bitField0_ = (bitField0_ & ~0x00000002); end_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.DescriptorProto.ReservedRange) } // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ReservedRange) private static final com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange(); } public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<ReservedRange> PARSER = new com.google.protobuf.AbstractParser<ReservedRange>() { @java.lang.Override public ReservedRange parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReservedRange(input, extensionRegistry); } }; public static com.google.protobuf.Parser<ReservedRange> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ReservedRange> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_;
optional string name = 1;
Returns:Whether the name field is set.
/** * <code>optional string name = 1;</code> * @return Whether the name field is set. */
public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); }
optional string name = 1;
Returns:The name.
/** * <code>optional string name = 1;</code> * @return The name. */
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;
Returns:The bytes for name.
/** * <code>optional string name = 1;</code> * @return The bytes for name. */
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<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> field_;
repeated .google.protobuf.FieldDescriptorProto field = 2;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getFieldList() { return field_; }
repeated .google.protobuf.FieldDescriptorProto field = 2;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> getFieldOrBuilderList() { return field_; }
repeated .google.protobuf.FieldDescriptorProto field = 2;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
public int getFieldCount() { return field_.size(); }
repeated .google.protobuf.FieldDescriptorProto field = 2;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getField(int index) { return field_.get(index); }
repeated .google.protobuf.FieldDescriptorProto field = 2;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
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<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> extension_;
repeated .google.protobuf.FieldDescriptorProto extension = 6;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() { return extension_; }
repeated .google.protobuf.FieldDescriptorProto extension = 6;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> getExtensionOrBuilderList() { return extension_; }
repeated .google.protobuf.FieldDescriptorProto extension = 6;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
public int getExtensionCount() { return extension_.size(); }
repeated .google.protobuf.FieldDescriptorProto extension = 6;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { return extension_.get(index); }
repeated .google.protobuf.FieldDescriptorProto extension = 6;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
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<com.google.protobuf.DescriptorProtos.DescriptorProto> nestedType_;
repeated .google.protobuf.DescriptorProto nested_type = 3;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getNestedTypeList() { return nestedType_; }
repeated .google.protobuf.DescriptorProto nested_type = 3;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> getNestedTypeOrBuilderList() { return nestedType_; }
repeated .google.protobuf.DescriptorProto nested_type = 3;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
public int getNestedTypeCount() { return nestedType_.size(); }
repeated .google.protobuf.DescriptorProto nested_type = 3;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
public com.google.protobuf.DescriptorProtos.DescriptorProto getNestedType(int index) { return nestedType_.get(index); }
repeated .google.protobuf.DescriptorProto nested_type = 3;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
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<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> enumType_;
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() { return enumType_; }
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> getEnumTypeOrBuilderList() { return enumType_; }
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
public int getEnumTypeCount() { return enumType_.size(); }
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { return enumType_.get(index); }
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
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<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange> extensionRange_;
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange> getExtensionRangeList() { return extensionRange_; }
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> getExtensionRangeOrBuilderList() { return extensionRange_; }
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
public int getExtensionRangeCount() { return extensionRange_.size(); }
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index) { return extensionRange_.get(index); }
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
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<com.google.protobuf.DescriptorProtos.OneofDescriptorProto> oneofDecl_;
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.OneofDescriptorProto> getOneofDeclList() { return oneofDecl_; }
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder> getOneofDeclOrBuilderList() { return oneofDecl_; }
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
public int getOneofDeclCount() { return oneofDecl_.size(); }
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
public com.google.protobuf.DescriptorProtos.OneofDescriptorProto getOneofDecl(int index) { return oneofDecl_.get(index); }
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
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;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.MessageOptions options = 7;</code> * @return Whether the options field is set. */
public boolean hasOptions() { return ((bitField0_ & 0x00000002) != 0); }
optional .google.protobuf.MessageOptions options = 7;
Returns:The options.
/** * <code>optional .google.protobuf.MessageOptions options = 7;</code> * @return The options. */
public com.google.protobuf.DescriptorProtos.MessageOptions getOptions() { return options_ == null ? com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance() : options_; }
optional .google.protobuf.MessageOptions options = 7;
/** * <code>optional .google.protobuf.MessageOptions options = 7;</code> */
public com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder() { return options_ == null ? com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance() : options_; } public static final int RESERVED_RANGE_FIELD_NUMBER = 9; private java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange> reservedRange_;
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange> getReservedRangeList() { return reservedRange_; }
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder> getReservedRangeOrBuilderList() { return reservedRange_; }
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public int getReservedRangeCount() { return reservedRange_.size(); }
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange getReservedRange(int index) { return reservedRange_.get(index); }
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder getReservedRangeOrBuilder( int index) { return reservedRange_.get(index); } public static final int RESERVED_NAME_FIELD_NUMBER = 10; private com.google.protobuf.LazyStringList reservedName_;
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Returns:A list containing the reservedName.
/** * <pre> * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. * </pre> * * <code>repeated string reserved_name = 10;</code> * @return A list containing the reservedName. */
public com.google.protobuf.ProtocolStringList getReservedNameList() { return reservedName_; }
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Returns:The count of reservedName.
/** * <pre> * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. * </pre> * * <code>repeated string reserved_name = 10;</code> * @return The count of reservedName. */
public int getReservedNameCount() { return reservedName_.size(); }
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Params:
  • index – The index of the element to return.
Returns:The reservedName at the given index.
/** * <pre> * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. * </pre> * * <code>repeated string reserved_name = 10;</code> * @param index The index of the element to return. * @return The reservedName at the given index. */
public java.lang.String getReservedName(int index) { return reservedName_.get(index); }
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Params:
  • index – The index of the value to return.
Returns:The bytes of the reservedName at the given index.
/** * <pre> * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. * </pre> * * <code>repeated string reserved_name = 10;</code> * @param index The index of the value to return. * @return The bytes of the reservedName at the given index. */
public com.google.protobuf.ByteString getReservedNameBytes(int index) { return reservedName_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override 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; } } for (int i = 0; i < getExtensionRangeCount(); i++) { if (!getExtensionRange(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getOneofDeclCount(); i++) { if (!getOneofDecl(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasOptions()) { if (!getOptions().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } 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) != 0)) { output.writeMessage(7, getOptions()); } for (int i = 0; i < oneofDecl_.size(); i++) { output.writeMessage(8, oneofDecl_.get(i)); } for (int i = 0; i < reservedRange_.size(); i++) { output.writeMessage(9, reservedRange_.get(i)); } for (int i = 0; i < reservedName_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, reservedName_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } 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) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getOptions()); } for (int i = 0; i < oneofDecl_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, oneofDecl_.get(i)); } for (int i = 0; i < reservedRange_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, reservedRange_.get(i)); } { int dataSize = 0; for (int i = 0; i < reservedName_.size(); i++) { dataSize += computeStringSizeNoTag(reservedName_.getRaw(i)); } size += dataSize; size += 1 * getReservedNameList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.DescriptorProto)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.DescriptorProto other = (com.google.protobuf.DescriptorProtos.DescriptorProto) obj; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (!getFieldList() .equals(other.getFieldList())) return false; if (!getExtensionList() .equals(other.getExtensionList())) return false; if (!getNestedTypeList() .equals(other.getNestedTypeList())) return false; if (!getEnumTypeList() .equals(other.getEnumTypeList())) return false; if (!getExtensionRangeList() .equals(other.getExtensionRangeList())) return false; if (!getOneofDeclList() .equals(other.getOneofDeclList())) return false; if (hasOptions() != other.hasOptions()) return false; if (hasOptions()) { if (!getOptions() .equals(other.getOptions())) return false; } if (!getReservedRangeList() .equals(other.getReservedRangeList())) return false; if (!getReservedNameList() .equals(other.getReservedNameList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (getFieldCount() > 0) { hash = (37 * hash) + FIELD_FIELD_NUMBER; hash = (53 * hash) + getFieldList().hashCode(); } if (getExtensionCount() > 0) { hash = (37 * hash) + EXTENSION_FIELD_NUMBER; hash = (53 * hash) + getExtensionList().hashCode(); } if (getNestedTypeCount() > 0) { hash = (37 * hash) + NESTED_TYPE_FIELD_NUMBER; hash = (53 * hash) + getNestedTypeList().hashCode(); } if (getEnumTypeCount() > 0) { hash = (37 * hash) + ENUM_TYPE_FIELD_NUMBER; hash = (53 * hash) + getEnumTypeList().hashCode(); } if (getExtensionRangeCount() > 0) { hash = (37 * hash) + EXTENSION_RANGE_FIELD_NUMBER; hash = (53 * hash) + getExtensionRangeList().hashCode(); } if (getOneofDeclCount() > 0) { hash = (37 * hash) + ONEOF_DECL_FIELD_NUMBER; hash = (53 * hash) + getOneofDeclList().hashCode(); } if (hasOptions()) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptions().hashCode(); } if (getReservedRangeCount() > 0) { hash = (37 * hash) + RESERVED_RANGE_FIELD_NUMBER; hash = (53 * hash) + getReservedRangeList().hashCode(); } if (getReservedNameCount() > 0) { hash = (37 * hash) + RESERVED_NAME_FIELD_NUMBER; hash = (53 * hash) + getReservedNameList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } 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 com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.DescriptorProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.DescriptorProto parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.DescriptorProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Describes a message type.
Protobuf type google.protobuf.DescriptorProto
/** * <pre> * Describes a message type. * </pre> * * Protobuf type {@code google.protobuf.DescriptorProto} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFieldFieldBuilder(); getExtensionFieldBuilder(); getNestedTypeFieldBuilder(); getEnumTypeFieldBuilder(); getExtensionRangeFieldBuilder(); getOneofDeclFieldBuilder(); getOptionsFieldBuilder(); getReservedRangeFieldBuilder(); } } @java.lang.Override 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_ = null; } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); if (reservedRangeBuilder_ == null) { reservedRange_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); } else { reservedRangeBuilder_.clear(); } reservedName_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000200); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.DescriptorProto getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.DescriptorProto build() { com.google.protobuf.DescriptorProtos.DescriptorProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override 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) != 0)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (fieldBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { field_ = java.util.Collections.unmodifiableList(field_); bitField0_ = (bitField0_ & ~0x00000002); } result.field_ = field_; } else { result.field_ = fieldBuilder_.build(); } if (extensionBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { extension_ = java.util.Collections.unmodifiableList(extension_); bitField0_ = (bitField0_ & ~0x00000004); } result.extension_ = extension_; } else { result.extension_ = extensionBuilder_.build(); } if (nestedTypeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { nestedType_ = java.util.Collections.unmodifiableList(nestedType_); bitField0_ = (bitField0_ & ~0x00000008); } result.nestedType_ = nestedType_; } else { result.nestedType_ = nestedTypeBuilder_.build(); } if (enumTypeBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { enumType_ = java.util.Collections.unmodifiableList(enumType_); bitField0_ = (bitField0_ & ~0x00000010); } result.enumType_ = enumType_; } else { result.enumType_ = enumTypeBuilder_.build(); } if (extensionRangeBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { extensionRange_ = java.util.Collections.unmodifiableList(extensionRange_); bitField0_ = (bitField0_ & ~0x00000020); } result.extensionRange_ = extensionRange_; } else { result.extensionRange_ = extensionRangeBuilder_.build(); } if (oneofDeclBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { oneofDecl_ = java.util.Collections.unmodifiableList(oneofDecl_); bitField0_ = (bitField0_ & ~0x00000040); } result.oneofDecl_ = oneofDecl_; } else { result.oneofDecl_ = oneofDeclBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { if (optionsBuilder_ == null) { result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } to_bitField0_ |= 0x00000002; } if (reservedRangeBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0)) { reservedRange_ = java.util.Collections.unmodifiableList(reservedRange_); bitField0_ = (bitField0_ & ~0x00000100); } result.reservedRange_ = reservedRange_; } else { result.reservedRange_ = reservedRangeBuilder_.build(); } if (((bitField0_ & 0x00000200) != 0)) { reservedName_ = reservedName_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000200); } result.reservedName_ = reservedName_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.alwaysUseFieldBuilders ? getOneofDeclFieldBuilder() : null; } else { oneofDeclBuilder_.addAllMessages(other.oneofDecl_); } } } if (other.hasOptions()) { mergeOptions(other.getOptions()); } if (reservedRangeBuilder_ == null) { if (!other.reservedRange_.isEmpty()) { if (reservedRange_.isEmpty()) { reservedRange_ = other.reservedRange_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureReservedRangeIsMutable(); reservedRange_.addAll(other.reservedRange_); } onChanged(); } } else { if (!other.reservedRange_.isEmpty()) { if (reservedRangeBuilder_.isEmpty()) { reservedRangeBuilder_.dispose(); reservedRangeBuilder_ = null; reservedRange_ = other.reservedRange_; bitField0_ = (bitField0_ & ~0x00000100); reservedRangeBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getReservedRangeFieldBuilder() : null; } else { reservedRangeBuilder_.addAllMessages(other.reservedRange_); } } } if (!other.reservedName_.isEmpty()) { if (reservedName_.isEmpty()) { reservedName_ = other.reservedName_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureReservedNameIsMutable(); reservedName_.addAll(other.reservedName_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override 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; } } for (int i = 0; i < getExtensionRangeCount(); i++) { if (!getExtensionRange(i).isInitialized()) { return false; } } for (int i = 0; i < getOneofDeclCount(); i++) { if (!getOneofDecl(i).isInitialized()) { return false; } } if (hasOptions()) { if (!getOptions().isInitialized()) { return false; } } return true; } @java.lang.Override 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.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = "";
optional string name = 1;
Returns:Whether the name field is set.
/** * <code>optional string name = 1;</code> * @return Whether the name field is set. */
public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); }
optional string name = 1;
Returns:The name.
/** * <code>optional string name = 1;</code> * @return The name. */
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;
Returns:The bytes for name.
/** * <code>optional string name = 1;</code> * @return The bytes for name. */
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;
Params:
  • value – The name to set.
Returns:This builder for chaining.
/** * <code>optional string name = 1;</code> * @param value The name to set. * @return This builder for chaining. */
public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; }
optional string name = 1;
Returns:This builder for chaining.
/** * <code>optional string name = 1;</code> * @return This builder for chaining. */
public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; }
optional string name = 1;
Params:
  • value – The bytes for name to set.
Returns:This builder for chaining.
/** * <code>optional string name = 1;</code> * @param value The bytes for name to set. * @return This builder for chaining. */
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<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> field_ = java.util.Collections.emptyList(); private void ensureFieldIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { field_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>(field_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> fieldBuilder_;
repeated .google.protobuf.FieldDescriptorProto field = 2;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getFieldList() { if (fieldBuilder_ == null) { return java.util.Collections.unmodifiableList(field_); } else { return fieldBuilder_.getMessageList(); } }
repeated .google.protobuf.FieldDescriptorProto field = 2;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
public int getFieldCount() { if (fieldBuilder_ == null) { return field_.size(); } else { return fieldBuilder_.getCount(); } }
repeated .google.protobuf.FieldDescriptorProto field = 2;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
public Builder addAllField( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProto> 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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder getFieldBuilder( int index) { return getFieldFieldBuilder().getBuilder(index); }
repeated .google.protobuf.FieldDescriptorProto field = 2;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> getFieldOrBuilderList() { if (fieldBuilder_ != null) { return fieldBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(field_); } }
repeated .google.protobuf.FieldDescriptorProto field = 2;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder addFieldBuilder() { return getFieldFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); }
repeated .google.protobuf.FieldDescriptorProto field = 2;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder> getFieldBuilderList() { return getFieldFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< 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.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder>( field_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); field_ = null; } return fieldBuilder_; } private java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> extension_ = java.util.Collections.emptyList(); private void ensureExtensionIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { extension_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>(extension_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> extensionBuilder_;
repeated .google.protobuf.FieldDescriptorProto extension = 6;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() { if (extensionBuilder_ == null) { return java.util.Collections.unmodifiableList(extension_); } else { return extensionBuilder_.getMessageList(); } }
repeated .google.protobuf.FieldDescriptorProto extension = 6;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
public int getExtensionCount() { if (extensionBuilder_ == null) { return extension_.size(); } else { return extensionBuilder_.getCount(); } }
repeated .google.protobuf.FieldDescriptorProto extension = 6;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
public Builder addAllExtension( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProto> 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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder getExtensionBuilder( int index) { return getExtensionFieldBuilder().getBuilder(index); }
repeated .google.protobuf.FieldDescriptorProto extension = 6;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> getExtensionOrBuilderList() { if (extensionBuilder_ != null) { return extensionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(extension_); } }
repeated .google.protobuf.FieldDescriptorProto extension = 6;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder() { return getExtensionFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); }
repeated .google.protobuf.FieldDescriptorProto extension = 6;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
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;
/** * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder> getExtensionBuilderList() { return getExtensionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< 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.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder>( extension_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); extension_ = null; } return extensionBuilder_; } private java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> nestedType_ = java.util.Collections.emptyList(); private void ensureNestedTypeIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { nestedType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto>(nestedType_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> nestedTypeBuilder_;
repeated .google.protobuf.DescriptorProto nested_type = 3;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getNestedTypeList() { if (nestedTypeBuilder_ == null) { return java.util.Collections.unmodifiableList(nestedType_); } else { return nestedTypeBuilder_.getMessageList(); } }
repeated .google.protobuf.DescriptorProto nested_type = 3;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
public int getNestedTypeCount() { if (nestedTypeBuilder_ == null) { return nestedType_.size(); } else { return nestedTypeBuilder_.getCount(); } }
repeated .google.protobuf.DescriptorProto nested_type = 3;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
public Builder addAllNestedType( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.DescriptorProto> 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;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder getNestedTypeBuilder( int index) { return getNestedTypeFieldBuilder().getBuilder(index); }
repeated .google.protobuf.DescriptorProto nested_type = 3;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> getNestedTypeOrBuilderList() { if (nestedTypeBuilder_ != null) { return nestedTypeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(nestedType_); } }
repeated .google.protobuf.DescriptorProto nested_type = 3;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder addNestedTypeBuilder() { return getNestedTypeFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()); }
repeated .google.protobuf.DescriptorProto nested_type = 3;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.Builder> getNestedTypeBuilderList() { return getNestedTypeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< 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.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>( nestedType_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); nestedType_ = null; } return nestedTypeBuilder_; } private java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> enumType_ = java.util.Collections.emptyList(); private void ensureEnumTypeIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { enumType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumDescriptorProto>(enumType_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> enumTypeBuilder_;
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() { if (enumTypeBuilder_ == null) { return java.util.Collections.unmodifiableList(enumType_); } else { return enumTypeBuilder_.getMessageList(); } }
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
public int getEnumTypeCount() { if (enumTypeBuilder_ == null) { return enumType_.size(); } else { return enumTypeBuilder_.getCount(); } }
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
public Builder addAllEnumType( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProto> 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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder getEnumTypeBuilder( int index) { return getEnumTypeFieldBuilder().getBuilder(index); }
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> getEnumTypeOrBuilderList() { if (enumTypeBuilder_ != null) { return enumTypeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(enumType_); } }
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder() { return getEnumTypeFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.EnumDescriptorProto.getDefaultInstance()); }
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
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;
/** * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder> getEnumTypeBuilderList() { return getEnumTypeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< 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.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder>( enumType_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); enumType_ = null; } return enumTypeBuilder_; } private java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange> extensionRange_ = java.util.Collections.emptyList(); private void ensureExtensionRangeIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { extensionRange_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange>(extensionRange_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< 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;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange> getExtensionRangeList() { if (extensionRangeBuilder_ == null) { return java.util.Collections.unmodifiableList(extensionRange_); } else { return extensionRangeBuilder_.getMessageList(); } }
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
public int getExtensionRangeCount() { if (extensionRangeBuilder_ == null) { return extensionRange_.size(); } else { return extensionRangeBuilder_.getCount(); } }
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
public Builder addAllExtensionRange( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange> 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;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder getExtensionRangeBuilder( int index) { return getExtensionRangeFieldBuilder().getBuilder(index); }
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> getExtensionRangeOrBuilderList() { if (extensionRangeBuilder_ != null) { return extensionRangeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(extensionRange_); } }
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
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;
/** * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder> getExtensionRangeBuilderList() { return getExtensionRangeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< 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.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder>( extensionRange_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); extensionRange_ = null; } return extensionRangeBuilder_; } private java.util.List<com.google.protobuf.DescriptorProtos.OneofDescriptorProto> oneofDecl_ = java.util.Collections.emptyList(); private void ensureOneofDeclIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { oneofDecl_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.OneofDescriptorProto>(oneofDecl_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.OneofDescriptorProto, com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder> oneofDeclBuilder_;
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.OneofDescriptorProto> getOneofDeclList() { if (oneofDeclBuilder_ == null) { return java.util.Collections.unmodifiableList(oneofDecl_); } else { return oneofDeclBuilder_.getMessageList(); } }
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
public int getOneofDeclCount() { if (oneofDeclBuilder_ == null) { return oneofDecl_.size(); } else { return oneofDeclBuilder_.getCount(); } }
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
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;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
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;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
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;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
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;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
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;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
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;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
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;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
public Builder addAllOneofDecl( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.OneofDescriptorProto> 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;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
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;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
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;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
public com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder getOneofDeclBuilder( int index) { return getOneofDeclFieldBuilder().getBuilder(index); }
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
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;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder> getOneofDeclOrBuilderList() { if (oneofDeclBuilder_ != null) { return oneofDeclBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(oneofDecl_); } }
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
public com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder addOneofDeclBuilder() { return getOneofDeclFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.OneofDescriptorProto.getDefaultInstance()); }
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
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;
/** * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder> getOneofDeclBuilderList() { return getOneofDeclFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< 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.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.OneofDescriptorProto, com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder>( oneofDecl_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); oneofDecl_ = null; } return oneofDeclBuilder_; } private com.google.protobuf.DescriptorProtos.MessageOptions options_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.MessageOptions, com.google.protobuf.DescriptorProtos.MessageOptions.Builder, com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder> optionsBuilder_;
optional .google.protobuf.MessageOptions options = 7;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.MessageOptions options = 7;</code> * @return Whether the options field is set. */
public boolean hasOptions() { return ((bitField0_ & 0x00000080) != 0); }
optional .google.protobuf.MessageOptions options = 7;
Returns:The options.
/** * <code>optional .google.protobuf.MessageOptions options = 7;</code> * @return The options. */
public com.google.protobuf.DescriptorProtos.MessageOptions getOptions() { if (optionsBuilder_ == null) { return options_ == null ? com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance() : options_; } else { return optionsBuilder_.getMessage(); } }
optional .google.protobuf.MessageOptions options = 7;
/** * <code>optional .google.protobuf.MessageOptions options = 7;</code> */
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;
/** * <code>optional .google.protobuf.MessageOptions options = 7;</code> */
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;
/** * <code>optional .google.protobuf.MessageOptions options = 7;</code> */
public Builder mergeOptions(com.google.protobuf.DescriptorProtos.MessageOptions value) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && options_ != null && 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;
/** * <code>optional .google.protobuf.MessageOptions options = 7;</code> */
public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; }
optional .google.protobuf.MessageOptions options = 7;
/** * <code>optional .google.protobuf.MessageOptions options = 7;</code> */
public com.google.protobuf.DescriptorProtos.MessageOptions.Builder getOptionsBuilder() { bitField0_ |= 0x00000080; onChanged(); return getOptionsFieldBuilder().getBuilder(); }
optional .google.protobuf.MessageOptions options = 7;
/** * <code>optional .google.protobuf.MessageOptions options = 7;</code> */
public com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { return options_ == null ? com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance() : options_; } }
optional .google.protobuf.MessageOptions options = 7;
/** * <code>optional .google.protobuf.MessageOptions options = 7;</code> */
private com.google.protobuf.SingleFieldBuilderV3< 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.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.MessageOptions, com.google.protobuf.DescriptorProtos.MessageOptions.Builder, com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder>( getOptions(), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } private java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange> reservedRange_ = java.util.Collections.emptyList(); private void ensureReservedRangeIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { reservedRange_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange>(reservedRange_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder> reservedRangeBuilder_;
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange> getReservedRangeList() { if (reservedRangeBuilder_ == null) { return java.util.Collections.unmodifiableList(reservedRange_); } else { return reservedRangeBuilder_.getMessageList(); } }
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public int getReservedRangeCount() { if (reservedRangeBuilder_ == null) { return reservedRange_.size(); } else { return reservedRangeBuilder_.getCount(); } }
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange getReservedRange(int index) { if (reservedRangeBuilder_ == null) { return reservedRange_.get(index); } else { return reservedRangeBuilder_.getMessage(index); } }
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public Builder setReservedRange( int index, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange value) { if (reservedRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReservedRangeIsMutable(); reservedRange_.set(index, value); onChanged(); } else { reservedRangeBuilder_.setMessage(index, value); } return this; }
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public Builder setReservedRange( int index, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder builderForValue) { if (reservedRangeBuilder_ == null) { ensureReservedRangeIsMutable(); reservedRange_.set(index, builderForValue.build()); onChanged(); } else { reservedRangeBuilder_.setMessage(index, builderForValue.build()); } return this; }
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public Builder addReservedRange(com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange value) { if (reservedRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReservedRangeIsMutable(); reservedRange_.add(value); onChanged(); } else { reservedRangeBuilder_.addMessage(value); } return this; }
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public Builder addReservedRange( int index, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange value) { if (reservedRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReservedRangeIsMutable(); reservedRange_.add(index, value); onChanged(); } else { reservedRangeBuilder_.addMessage(index, value); } return this; }
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public Builder addReservedRange( com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder builderForValue) { if (reservedRangeBuilder_ == null) { ensureReservedRangeIsMutable(); reservedRange_.add(builderForValue.build()); onChanged(); } else { reservedRangeBuilder_.addMessage(builderForValue.build()); } return this; }
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public Builder addReservedRange( int index, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder builderForValue) { if (reservedRangeBuilder_ == null) { ensureReservedRangeIsMutable(); reservedRange_.add(index, builderForValue.build()); onChanged(); } else { reservedRangeBuilder_.addMessage(index, builderForValue.build()); } return this; }
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public Builder addAllReservedRange( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange> values) { if (reservedRangeBuilder_ == null) { ensureReservedRangeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, reservedRange_); onChanged(); } else { reservedRangeBuilder_.addAllMessages(values); } return this; }
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public Builder clearReservedRange() { if (reservedRangeBuilder_ == null) { reservedRange_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { reservedRangeBuilder_.clear(); } return this; }
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public Builder removeReservedRange(int index) { if (reservedRangeBuilder_ == null) { ensureReservedRangeIsMutable(); reservedRange_.remove(index); onChanged(); } else { reservedRangeBuilder_.remove(index); } return this; }
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder getReservedRangeBuilder( int index) { return getReservedRangeFieldBuilder().getBuilder(index); }
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder getReservedRangeOrBuilder( int index) { if (reservedRangeBuilder_ == null) { return reservedRange_.get(index); } else { return reservedRangeBuilder_.getMessageOrBuilder(index); } }
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder> getReservedRangeOrBuilderList() { if (reservedRangeBuilder_ != null) { return reservedRangeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(reservedRange_); } }
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder addReservedRangeBuilder() { return getReservedRangeFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.getDefaultInstance()); }
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder addReservedRangeBuilder( int index) { return getReservedRangeFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.getDefaultInstance()); }
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
/** * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder> getReservedRangeBuilderList() { return getReservedRangeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder> getReservedRangeFieldBuilder() { if (reservedRangeBuilder_ == null) { reservedRangeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder>( reservedRange_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); reservedRange_ = null; } return reservedRangeBuilder_; } private com.google.protobuf.LazyStringList reservedName_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureReservedNameIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { reservedName_ = new com.google.protobuf.LazyStringArrayList(reservedName_); bitField0_ |= 0x00000200; } }
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Returns:A list containing the reservedName.
/** * <pre> * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. * </pre> * * <code>repeated string reserved_name = 10;</code> * @return A list containing the reservedName. */
public com.google.protobuf.ProtocolStringList getReservedNameList() { return reservedName_.getUnmodifiableView(); }
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Returns:The count of reservedName.
/** * <pre> * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. * </pre> * * <code>repeated string reserved_name = 10;</code> * @return The count of reservedName. */
public int getReservedNameCount() { return reservedName_.size(); }
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Params:
  • index – The index of the element to return.
Returns:The reservedName at the given index.
/** * <pre> * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. * </pre> * * <code>repeated string reserved_name = 10;</code> * @param index The index of the element to return. * @return The reservedName at the given index. */
public java.lang.String getReservedName(int index) { return reservedName_.get(index); }
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Params:
  • index – The index of the value to return.
Returns:The bytes of the reservedName at the given index.
/** * <pre> * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. * </pre> * * <code>repeated string reserved_name = 10;</code> * @param index The index of the value to return. * @return The bytes of the reservedName at the given index. */
public com.google.protobuf.ByteString getReservedNameBytes(int index) { return reservedName_.getByteString(index); }
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Params:
  • index – The index to set the value at.
  • value – The reservedName to set.
Returns:This builder for chaining.
/** * <pre> * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. * </pre> * * <code>repeated string reserved_name = 10;</code> * @param index The index to set the value at. * @param value The reservedName to set. * @return This builder for chaining. */
public Builder setReservedName( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureReservedNameIsMutable(); reservedName_.set(index, value); onChanged(); return this; }
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Params:
  • value – The reservedName to add.
Returns:This builder for chaining.
/** * <pre> * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. * </pre> * * <code>repeated string reserved_name = 10;</code> * @param value The reservedName to add. * @return This builder for chaining. */
public Builder addReservedName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureReservedNameIsMutable(); reservedName_.add(value); onChanged(); return this; }
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Params:
  • values – The reservedName to add.
Returns:This builder for chaining.
/** * <pre> * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. * </pre> * * <code>repeated string reserved_name = 10;</code> * @param values The reservedName to add. * @return This builder for chaining. */
public Builder addAllReservedName( java.lang.Iterable<java.lang.String> values) { ensureReservedNameIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, reservedName_); onChanged(); return this; }
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Returns:This builder for chaining.
/** * <pre> * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. * </pre> * * <code>repeated string reserved_name = 10;</code> * @return This builder for chaining. */
public Builder clearReservedName() { reservedName_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; }
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Params:
  • value – The bytes of the reservedName to add.
Returns:This builder for chaining.
/** * <pre> * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. * </pre> * * <code>repeated string reserved_name = 10;</code> * @param value The bytes of the reservedName to add. * @return This builder for chaining. */
public Builder addReservedNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureReservedNameIsMutable(); reservedName_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.DescriptorProto) } // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto) private static final com.google.protobuf.DescriptorProtos.DescriptorProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.DescriptorProto(); } public static com.google.protobuf.DescriptorProtos.DescriptorProto getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<DescriptorProto> PARSER = new com.google.protobuf.AbstractParser<DescriptorProto>() { @java.lang.Override public DescriptorProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DescriptorProto(input, extensionRegistry); } }; public static com.google.protobuf.Parser<DescriptorProto> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<DescriptorProto> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.DescriptorProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExtensionRangeOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.ExtensionRangeOptions) com.google.protobuf.GeneratedMessageV3. ExtendableMessageOrBuilder<ExtensionRangeOptions> {
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index);
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
int getUninterpretedOptionCount();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index); }
Protobuf type google.protobuf.ExtensionRangeOptions
/** * Protobuf type {@code google.protobuf.ExtensionRangeOptions} */
public static final class ExtensionRangeOptions extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage< ExtensionRangeOptions> implements // @@protoc_insertion_point(message_implements:google.protobuf.ExtensionRangeOptions) ExtensionRangeOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use ExtensionRangeOptions.newBuilder() to construct. private ExtensionRangeOptions(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<com.google.protobuf.DescriptorProtos.ExtensionRangeOptions, ?> builder) { super(builder); } private ExtensionRangeOptions() { uninterpretedOption_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExtensionRangeOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExtensionRangeOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 7994: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); mutable_bitField0_ |= 0x00000001; } uninterpretedOption_.add( input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ExtensionRangeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ExtensionRangeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.class, com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.Builder.class); } public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_;
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { return uninterpretedOption_; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { return uninterpretedOption_; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public int getUninterpretedOptionCount() { return uninterpretedOption_.size(); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { return uninterpretedOption_.get(index); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { return uninterpretedOption_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .ExtendableMessage<com.google.protobuf.DescriptorProtos.ExtensionRangeOptions>.ExtensionWriter extensionWriter = newExtensionWriter(); for (int i = 0; i < uninterpretedOption_.size(); i++) { output.writeMessage(999, uninterpretedOption_.get(i)); } extensionWriter.writeUntil(536870912, output); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < uninterpretedOption_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(999, uninterpretedOption_.get(i)); } size += extensionsSerializedSize(); size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.ExtensionRangeOptions)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.ExtensionRangeOptions other = (com.google.protobuf.DescriptorProtos.ExtensionRangeOptions) obj; if (!getUninterpretedOptionList() .equals(other.getUninterpretedOptionList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; if (!getExtensionFields().equals(other.getExtensionFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getUninterpretedOptionCount() > 0) { hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; hash = (53 * hash) + getUninterpretedOptionList().hashCode(); } hash = hashFields(hash, getExtensionFields()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions 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.ExtensionRangeOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.ExtensionRangeOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Protobuf type google.protobuf.ExtensionRangeOptions
/** * Protobuf type {@code google.protobuf.ExtensionRangeOptions} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< com.google.protobuf.DescriptorProtos.ExtensionRangeOptions, Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.ExtensionRangeOptions) com.google.protobuf.DescriptorProtos.ExtensionRangeOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ExtensionRangeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ExtensionRangeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.class, com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getUninterpretedOptionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { uninterpretedOptionBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ExtensionRangeOptions_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.ExtensionRangeOptions getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.ExtensionRangeOptions build() { com.google.protobuf.DescriptorProtos.ExtensionRangeOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.ExtensionRangeOptions buildPartial() { com.google.protobuf.DescriptorProtos.ExtensionRangeOptions result = new com.google.protobuf.DescriptorProtos.ExtensionRangeOptions(this); int from_bitField0_ = bitField0_; if (uninterpretedOptionBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); bitField0_ = (bitField0_ & ~0x00000001); } result.uninterpretedOption_ = uninterpretedOption_; } else { result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public <Type> Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.ExtensionRangeOptions, Type> extension, Type value) { return super.setExtension(extension, value); } @java.lang.Override public <Type> Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.ExtensionRangeOptions, java.util.List<Type>> extension, int index, Type value) { return super.setExtension(extension, index, value); } @java.lang.Override public <Type> Builder addExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.ExtensionRangeOptions, java.util.List<Type>> extension, Type value) { return super.addExtension(extension, value); } @java.lang.Override public <Type> Builder clearExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.ExtensionRangeOptions, ?> extension) { return super.clearExtension(extension); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.ExtensionRangeOptions) { return mergeFrom((com.google.protobuf.DescriptorProtos.ExtensionRangeOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.ExtensionRangeOptions other) { if (other == com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.getDefaultInstance()) return this; if (uninterpretedOptionBuilder_ == null) { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOption_.isEmpty()) { uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.addAll(other.uninterpretedOption_); } onChanged(); } } else { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOptionBuilder_.isEmpty()) { uninterpretedOptionBuilder_.dispose(); uninterpretedOptionBuilder_ = null; uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000001); uninterpretedOptionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUninterpretedOptionFieldBuilder() : null; } else { uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); } } } this.mergeExtensionFields(other); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { return false; } } if (!extensionsAreInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.ExtensionRangeOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = java.util.Collections.emptyList(); private void ensureUninterpretedOptionIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_;
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { if (uninterpretedOptionBuilder_ == null) { return java.util.Collections.unmodifiableList(uninterpretedOption_); } else { return uninterpretedOptionBuilder_.getMessageList(); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public int getUninterpretedOptionCount() { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.size(); } else { return uninterpretedOptionBuilder_.getCount(); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessage(index); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, value); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addAllUninterpretedOption( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, uninterpretedOption_); onChanged(); } else { uninterpretedOptionBuilder_.addAllMessages(values); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder clearUninterpretedOption() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { uninterpretedOptionBuilder_.clear(); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder removeUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.remove(index); onChanged(); } else { uninterpretedOptionBuilder_.remove(index); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().getBuilder(index); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessageOrBuilder(index); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { if (uninterpretedOptionBuilder_ != null) { return uninterpretedOptionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(uninterpretedOption_); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { return getUninterpretedOptionFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> getUninterpretedOptionBuilderList() { return getUninterpretedOptionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionFieldBuilder() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( uninterpretedOption_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); uninterpretedOption_ = null; } return uninterpretedOptionBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.ExtensionRangeOptions) } // @@protoc_insertion_point(class_scope:google.protobuf.ExtensionRangeOptions) private static final com.google.protobuf.DescriptorProtos.ExtensionRangeOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.ExtensionRangeOptions(); } public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<ExtensionRangeOptions> PARSER = new com.google.protobuf.AbstractParser<ExtensionRangeOptions>() { @java.lang.Override public ExtensionRangeOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExtensionRangeOptions(input, extensionRegistry); } }; public static com.google.protobuf.Parser<ExtensionRangeOptions> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ExtensionRangeOptions> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.ExtensionRangeOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FieldDescriptorProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.FieldDescriptorProto) com.google.protobuf.MessageOrBuilder {
optional string name = 1;
Returns:Whether the name field is set.
/** * <code>optional string name = 1;</code> * @return Whether the name field is set. */
boolean hasName();
optional string name = 1;
Returns:The name.
/** * <code>optional string name = 1;</code> * @return The name. */
java.lang.String getName();
optional string name = 1;
Returns:The bytes for name.
/** * <code>optional string name = 1;</code> * @return The bytes for name. */
com.google.protobuf.ByteString getNameBytes();
optional int32 number = 3;
Returns:Whether the number field is set.
/** * <code>optional int32 number = 3;</code> * @return Whether the number field is set. */
boolean hasNumber();
optional int32 number = 3;
Returns:The number.
/** * <code>optional int32 number = 3;</code> * @return The number. */
int getNumber();
optional .google.protobuf.FieldDescriptorProto.Label label = 4;
Returns:Whether the label field is set.
/** * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> * @return Whether the label field is set. */
boolean hasLabel();
optional .google.protobuf.FieldDescriptorProto.Label label = 4;
Returns:The label.
/** * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> * @return The label. */
com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label getLabel();
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.
optional .google.protobuf.FieldDescriptorProto.Type type = 5;
Returns:Whether the type field is set.
/** * <pre> * 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. * </pre> * * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> * @return Whether the type field is set. */
boolean hasType();
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.
optional .google.protobuf.FieldDescriptorProto.Type type = 5;
Returns:The type.
/** * <pre> * 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. * </pre> * * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> * @return The type. */
com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getType();
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).
optional string type_name = 6;
Returns:Whether the typeName field is set.
/** * <pre> * 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). * </pre> * * <code>optional string type_name = 6;</code> * @return Whether the typeName field is set. */
boolean hasTypeName();
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).
optional string type_name = 6;
Returns:The typeName.
/** * <pre> * 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). * </pre> * * <code>optional string type_name = 6;</code> * @return The typeName. */
java.lang.String getTypeName();
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).
optional string type_name = 6;
Returns:The bytes for typeName.
/** * <pre> * 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). * </pre> * * <code>optional string type_name = 6;</code> * @return The bytes for typeName. */
com.google.protobuf.ByteString getTypeNameBytes();
For extensions, this is the name of the type being extended.  It is
resolved in the same manner as type_name.
optional string extendee = 2;
Returns:Whether the extendee field is set.
/** * <pre> * For extensions, this is the name of the type being extended. It is * resolved in the same manner as type_name. * </pre> * * <code>optional string extendee = 2;</code> * @return Whether the extendee field is set. */
boolean hasExtendee();
For extensions, this is the name of the type being extended.  It is
resolved in the same manner as type_name.
optional string extendee = 2;
Returns:The extendee.
/** * <pre> * For extensions, this is the name of the type being extended. It is * resolved in the same manner as type_name. * </pre> * * <code>optional string extendee = 2;</code> * @return The extendee. */
java.lang.String getExtendee();
For extensions, this is the name of the type being extended.  It is
resolved in the same manner as type_name.
optional string extendee = 2;
Returns:The bytes for extendee.
/** * <pre> * For extensions, this is the name of the type being extended. It is * resolved in the same manner as type_name. * </pre> * * <code>optional string extendee = 2;</code> * @return The bytes for extendee. */
com.google.protobuf.ByteString getExtendeeBytes();
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?
optional string default_value = 7;
Returns:Whether the defaultValue field is set.
/** * <pre> * 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 &gt;= 128 are escaped. * TODO(kenton): Base-64 encode? * </pre> * * <code>optional string default_value = 7;</code> * @return Whether the defaultValue field is set. */
boolean hasDefaultValue();
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?
optional string default_value = 7;
Returns:The defaultValue.
/** * <pre> * 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 &gt;= 128 are escaped. * TODO(kenton): Base-64 encode? * </pre> * * <code>optional string default_value = 7;</code> * @return The defaultValue. */
java.lang.String getDefaultValue();
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?
optional string default_value = 7;
Returns:The bytes for defaultValue.
/** * <pre> * 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 &gt;= 128 are escaped. * TODO(kenton): Base-64 encode? * </pre> * * <code>optional string default_value = 7;</code> * @return The bytes for defaultValue. */
com.google.protobuf.ByteString getDefaultValueBytes();
If set, gives the index of a oneof in the containing type's oneof_decl
list.  This field is a member of that oneof.
optional int32 oneof_index = 9;
Returns:Whether the oneofIndex field is set.
/** * <pre> * If set, gives the index of a oneof in the containing type's oneof_decl * list. This field is a member of that oneof. * </pre> * * <code>optional int32 oneof_index = 9;</code> * @return Whether the oneofIndex field is set. */
boolean hasOneofIndex();
If set, gives the index of a oneof in the containing type's oneof_decl
list.  This field is a member of that oneof.
optional int32 oneof_index = 9;
Returns:The oneofIndex.
/** * <pre> * If set, gives the index of a oneof in the containing type's oneof_decl * list. This field is a member of that oneof. * </pre> * * <code>optional int32 oneof_index = 9;</code> * @return The oneofIndex. */
int getOneofIndex();
JSON name of this field. The value is set by protocol compiler. If the
user has set a "json_name" option on this field, that option's value
will be used. Otherwise, it's deduced from the field's name by converting
it to camelCase.
optional string json_name = 10;
Returns:Whether the jsonName field is set.
/** * <pre> * JSON name of this field. The value is set by protocol compiler. If the * user has set a "json_name" option on this field, that option's value * will be used. Otherwise, it's deduced from the field's name by converting * it to camelCase. * </pre> * * <code>optional string json_name = 10;</code> * @return Whether the jsonName field is set. */
boolean hasJsonName();
JSON name of this field. The value is set by protocol compiler. If the
user has set a "json_name" option on this field, that option's value
will be used. Otherwise, it's deduced from the field's name by converting
it to camelCase.
optional string json_name = 10;
Returns:The jsonName.
/** * <pre> * JSON name of this field. The value is set by protocol compiler. If the * user has set a "json_name" option on this field, that option's value * will be used. Otherwise, it's deduced from the field's name by converting * it to camelCase. * </pre> * * <code>optional string json_name = 10;</code> * @return The jsonName. */
java.lang.String getJsonName();
JSON name of this field. The value is set by protocol compiler. If the
user has set a "json_name" option on this field, that option's value
will be used. Otherwise, it's deduced from the field's name by converting
it to camelCase.
optional string json_name = 10;
Returns:The bytes for jsonName.
/** * <pre> * JSON name of this field. The value is set by protocol compiler. If the * user has set a "json_name" option on this field, that option's value * will be used. Otherwise, it's deduced from the field's name by converting * it to camelCase. * </pre> * * <code>optional string json_name = 10;</code> * @return The bytes for jsonName. */
com.google.protobuf.ByteString getJsonNameBytes();
optional .google.protobuf.FieldOptions options = 8;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.FieldOptions options = 8;</code> * @return Whether the options field is set. */
boolean hasOptions();
optional .google.protobuf.FieldOptions options = 8;
Returns:The options.
/** * <code>optional .google.protobuf.FieldOptions options = 8;</code> * @return The options. */
com.google.protobuf.DescriptorProtos.FieldOptions getOptions();
optional .google.protobuf.FieldOptions options = 8;
/** * <code>optional .google.protobuf.FieldOptions options = 8;</code> */
com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder getOptionsOrBuilder(); }
Describes a field within a message.
Protobuf type google.protobuf.FieldDescriptorProto
/** * <pre> * Describes a field within a message. * </pre> * * Protobuf type {@code google.protobuf.FieldDescriptorProto} */
public static final class FieldDescriptorProto extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.protobuf.FieldDescriptorProto) FieldDescriptorProtoOrBuilder { private static final long serialVersionUID = 0L; // Use FieldDescriptorProto.newBuilder() to construct. private FieldDescriptorProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private FieldDescriptorProto() { name_ = ""; label_ = 1; type_ = 1; typeName_ = ""; extendee_ = ""; defaultValue_ = ""; jsonName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FieldDescriptorProto(); } @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 { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; 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(); @SuppressWarnings("deprecation") 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_ = rawValue; } break; } case 40: { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") 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_ = rawValue; } 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_ & 0x00000200) != 0)) { subBuilder = options_.toBuilder(); } options_ = input.readMessage(com.google.protobuf.DescriptorProtos.FieldOptions.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(options_); options_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000200; break; } case 72: { bitField0_ |= 0x00000080; oneofIndex_ = input.readInt32(); break; } case 82: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000100; jsonName_ = bs; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.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); }
Protobuf enum google.protobuf.FieldDescriptorProto.Type
/** * Protobuf enum {@code google.protobuf.FieldDescriptorProto.Type} */
public enum Type implements com.google.protobuf.ProtocolMessageEnum {
0 is reserved for errors.
Order is weird for historical reasons.
TYPE_DOUBLE = 1;
/** * <pre> * 0 is reserved for errors. * Order is weird for historical reasons. * </pre> * * <code>TYPE_DOUBLE = 1;</code> */
TYPE_DOUBLE(1),
TYPE_FLOAT = 2;
/** * <code>TYPE_FLOAT = 2;</code> */
TYPE_FLOAT(2),
Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT64 if
negative values are likely.
TYPE_INT64 = 3;
/** * <pre> * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if * negative values are likely. * </pre> * * <code>TYPE_INT64 = 3;</code> */
TYPE_INT64(3),
TYPE_UINT64 = 4;
/** * <code>TYPE_UINT64 = 4;</code> */
TYPE_UINT64(4),
Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT32 if
negative values are likely.
TYPE_INT32 = 5;
/** * <pre> * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if * negative values are likely. * </pre> * * <code>TYPE_INT32 = 5;</code> */
TYPE_INT32(5),
TYPE_FIXED64 = 6;
/** * <code>TYPE_FIXED64 = 6;</code> */
TYPE_FIXED64(6),
TYPE_FIXED32 = 7;
/** * <code>TYPE_FIXED32 = 7;</code> */
TYPE_FIXED32(7),
TYPE_BOOL = 8;
/** * <code>TYPE_BOOL = 8;</code> */
TYPE_BOOL(8),
TYPE_STRING = 9;
/** * <code>TYPE_STRING = 9;</code> */
TYPE_STRING(9),
Tag-delimited aggregate.
Group type is deprecated and not supported in proto3. However, Proto3
implementations should still be able to parse the group wire format and
treat group fields as unknown fields.
TYPE_GROUP = 10;
/** * <pre> * Tag-delimited aggregate. * Group type is deprecated and not supported in proto3. However, Proto3 * implementations should still be able to parse the group wire format and * treat group fields as unknown fields. * </pre> * * <code>TYPE_GROUP = 10;</code> */
TYPE_GROUP(10),
Length-delimited aggregate.
TYPE_MESSAGE = 11;
/** * <pre> * Length-delimited aggregate. * </pre> * * <code>TYPE_MESSAGE = 11;</code> */
TYPE_MESSAGE(11),
New in version 2.
TYPE_BYTES = 12;
/** * <pre> * New in version 2. * </pre> * * <code>TYPE_BYTES = 12;</code> */
TYPE_BYTES(12),
TYPE_UINT32 = 13;
/** * <code>TYPE_UINT32 = 13;</code> */
TYPE_UINT32(13),
TYPE_ENUM = 14;
/** * <code>TYPE_ENUM = 14;</code> */
TYPE_ENUM(14),
TYPE_SFIXED32 = 15;
/** * <code>TYPE_SFIXED32 = 15;</code> */
TYPE_SFIXED32(15),
TYPE_SFIXED64 = 16;
/** * <code>TYPE_SFIXED64 = 16;</code> */
TYPE_SFIXED64(16),
Uses ZigZag encoding.
TYPE_SINT32 = 17;
/** * <pre> * Uses ZigZag encoding. * </pre> * * <code>TYPE_SINT32 = 17;</code> */
TYPE_SINT32(17),
Uses ZigZag encoding.
TYPE_SINT64 = 18;
/** * <pre> * Uses ZigZag encoding. * </pre> * * <code>TYPE_SINT64 = 18;</code> */
TYPE_SINT64(18), ;
0 is reserved for errors.
Order is weird for historical reasons.
TYPE_DOUBLE = 1;
/** * <pre> * 0 is reserved for errors. * Order is weird for historical reasons. * </pre> * * <code>TYPE_DOUBLE = 1;</code> */
public static final int TYPE_DOUBLE_VALUE = 1;
TYPE_FLOAT = 2;
/** * <code>TYPE_FLOAT = 2;</code> */
public static final int TYPE_FLOAT_VALUE = 2;
Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT64 if
negative values are likely.
TYPE_INT64 = 3;
/** * <pre> * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if * negative values are likely. * </pre> * * <code>TYPE_INT64 = 3;</code> */
public static final int TYPE_INT64_VALUE = 3;
TYPE_UINT64 = 4;
/** * <code>TYPE_UINT64 = 4;</code> */
public static final int TYPE_UINT64_VALUE = 4;
Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT32 if
negative values are likely.
TYPE_INT32 = 5;
/** * <pre> * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if * negative values are likely. * </pre> * * <code>TYPE_INT32 = 5;</code> */
public static final int TYPE_INT32_VALUE = 5;
TYPE_FIXED64 = 6;
/** * <code>TYPE_FIXED64 = 6;</code> */
public static final int TYPE_FIXED64_VALUE = 6;
TYPE_FIXED32 = 7;
/** * <code>TYPE_FIXED32 = 7;</code> */
public static final int TYPE_FIXED32_VALUE = 7;
TYPE_BOOL = 8;
/** * <code>TYPE_BOOL = 8;</code> */
public static final int TYPE_BOOL_VALUE = 8;
TYPE_STRING = 9;
/** * <code>TYPE_STRING = 9;</code> */
public static final int TYPE_STRING_VALUE = 9;
Tag-delimited aggregate.
Group type is deprecated and not supported in proto3. However, Proto3
implementations should still be able to parse the group wire format and
treat group fields as unknown fields.
TYPE_GROUP = 10;
/** * <pre> * Tag-delimited aggregate. * Group type is deprecated and not supported in proto3. However, Proto3 * implementations should still be able to parse the group wire format and * treat group fields as unknown fields. * </pre> * * <code>TYPE_GROUP = 10;</code> */
public static final int TYPE_GROUP_VALUE = 10;
Length-delimited aggregate.
TYPE_MESSAGE = 11;
/** * <pre> * Length-delimited aggregate. * </pre> * * <code>TYPE_MESSAGE = 11;</code> */
public static final int TYPE_MESSAGE_VALUE = 11;
New in version 2.
TYPE_BYTES = 12;
/** * <pre> * New in version 2. * </pre> * * <code>TYPE_BYTES = 12;</code> */
public static final int TYPE_BYTES_VALUE = 12;
TYPE_UINT32 = 13;
/** * <code>TYPE_UINT32 = 13;</code> */
public static final int TYPE_UINT32_VALUE = 13;
TYPE_ENUM = 14;
/** * <code>TYPE_ENUM = 14;</code> */
public static final int TYPE_ENUM_VALUE = 14;
TYPE_SFIXED32 = 15;
/** * <code>TYPE_SFIXED32 = 15;</code> */
public static final int TYPE_SFIXED32_VALUE = 15;
TYPE_SFIXED64 = 16;
/** * <code>TYPE_SFIXED64 = 16;</code> */
public static final int TYPE_SFIXED64_VALUE = 16;
Uses ZigZag encoding.
TYPE_SINT32 = 17;
/** * <pre> * Uses ZigZag encoding. * </pre> * * <code>TYPE_SINT32 = 17;</code> */
public static final int TYPE_SINT32_VALUE = 17;
Uses ZigZag encoding.
TYPE_SINT64 = 18;
/** * <pre> * Uses ZigZag encoding. * </pre> * * <code>TYPE_SINT64 = 18;</code> */
public static final int TYPE_SINT64_VALUE = 18; public final int getNumber() { return value; }
Params:
  • value – The numeric wire value of the corresponding enum entry.
Returns:The enum associated with the given numeric wire value.
Deprecated:Use forNumber(int) instead.
/** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */
@java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); }
Params:
  • value – The numeric wire value of the corresponding enum entry.
Returns:The enum associated with the given numeric wire value.
/** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */
public static Type forNumber(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<Type> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Type>() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } 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 value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.protobuf.FieldDescriptorProto.Type) }
Protobuf enum google.protobuf.FieldDescriptorProto.Label
/** * Protobuf enum {@code google.protobuf.FieldDescriptorProto.Label} */
public enum Label implements com.google.protobuf.ProtocolMessageEnum {
0 is reserved for errors
LABEL_OPTIONAL = 1;
/** * <pre> * 0 is reserved for errors * </pre> * * <code>LABEL_OPTIONAL = 1;</code> */
LABEL_OPTIONAL(1),
LABEL_REQUIRED = 2;
/** * <code>LABEL_REQUIRED = 2;</code> */
LABEL_REQUIRED(2),
LABEL_REPEATED = 3;
/** * <code>LABEL_REPEATED = 3;</code> */
LABEL_REPEATED(3), ;
0 is reserved for errors
LABEL_OPTIONAL = 1;
/** * <pre> * 0 is reserved for errors * </pre> * * <code>LABEL_OPTIONAL = 1;</code> */
public static final int LABEL_OPTIONAL_VALUE = 1;
LABEL_REQUIRED = 2;
/** * <code>LABEL_REQUIRED = 2;</code> */
public static final int LABEL_REQUIRED_VALUE = 2;
LABEL_REPEATED = 3;
/** * <code>LABEL_REPEATED = 3;</code> */
public static final int LABEL_REPEATED_VALUE = 3; public final int getNumber() { return value; }
Params:
  • value – The numeric wire value of the corresponding enum entry.
Returns:The enum associated with the given numeric wire value.
Deprecated:Use forNumber(int) instead.
/** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */
@java.lang.Deprecated public static Label valueOf(int value) { return forNumber(value); }
Params:
  • value – The numeric wire value of the corresponding enum entry.
Returns:The enum associated with the given numeric wire value.
/** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */
public static Label forNumber(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<Label> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Label> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Label>() { public Label findValueByNumber(int number) { return Label.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } 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(1); } private static final Label[] VALUES = values(); public static Label 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 value; private Label(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.protobuf.FieldDescriptorProto.Label) } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_;
optional string name = 1;
Returns:Whether the name field is set.
/** * <code>optional string name = 1;</code> * @return Whether the name field is set. */
public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); }
optional string name = 1;
Returns:The name.
/** * <code>optional string name = 1;</code> * @return The name. */
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;
Returns:The bytes for name.
/** * <code>optional string name = 1;</code> * @return The bytes for name. */
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 NUMBER_FIELD_NUMBER = 3; private int number_;
optional int32 number = 3;
Returns:Whether the number field is set.
/** * <code>optional int32 number = 3;</code> * @return Whether the number field is set. */
public boolean hasNumber() { return ((bitField0_ & 0x00000002) != 0); }
optional int32 number = 3;
Returns:The number.
/** * <code>optional int32 number = 3;</code> * @return The number. */
public int getNumber() { return number_; } public static final int LABEL_FIELD_NUMBER = 4; private int label_;
optional .google.protobuf.FieldDescriptorProto.Label label = 4;
Returns:Whether the label field is set.
/** * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> * @return Whether the label field is set. */
public boolean hasLabel() { return ((bitField0_ & 0x00000004) != 0); }
optional .google.protobuf.FieldDescriptorProto.Label label = 4;
Returns:The label.
/** * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> * @return The label. */
public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label getLabel() { @SuppressWarnings("deprecation") com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label result = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.valueOf(label_); return result == null ? com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.LABEL_OPTIONAL : result; } public static final int TYPE_FIELD_NUMBER = 5; private int type_;
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.
optional .google.protobuf.FieldDescriptorProto.Type type = 5;
Returns:Whether the type field is set.
/** * <pre> * 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. * </pre> * * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> * @return Whether the type field is set. */
public boolean hasType() { return ((bitField0_ & 0x00000008) != 0); }
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.
optional .google.protobuf.FieldDescriptorProto.Type type = 5;
Returns:The type.
/** * <pre> * 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. * </pre> * * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> * @return The type. */
public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getType() { @SuppressWarnings("deprecation") com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type result = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.valueOf(type_); return result == null ? com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.TYPE_DOUBLE : result; } public static final int TYPE_NAME_FIELD_NUMBER = 6; private volatile java.lang.Object typeName_;
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).
optional string type_name = 6;
Returns:Whether the typeName field is set.
/** * <pre> * 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). * </pre> * * <code>optional string type_name = 6;</code> * @return Whether the typeName field is set. */
public boolean hasTypeName() { return ((bitField0_ & 0x00000010) != 0); }
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).
optional string type_name = 6;
Returns:The typeName.
/** * <pre> * 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). * </pre> * * <code>optional string type_name = 6;</code> * @return The typeName. */
public java.lang.String getTypeName() { java.lang.Object ref = typeName_; 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()) { typeName_ = s; } return s; } }
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).
optional string type_name = 6;
Returns:The bytes for typeName.
/** * <pre> * 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). * </pre> * * <code>optional string type_name = 6;</code> * @return The bytes for typeName. */
public com.google.protobuf.ByteString getTypeNameBytes() { java.lang.Object ref = typeName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXTENDEE_FIELD_NUMBER = 2; private volatile java.lang.Object extendee_;
For extensions, this is the name of the type being extended.  It is
resolved in the same manner as type_name.
optional string extendee = 2;
Returns:Whether the extendee field is set.
/** * <pre> * For extensions, this is the name of the type being extended. It is * resolved in the same manner as type_name. * </pre> * * <code>optional string extendee = 2;</code> * @return Whether the extendee field is set. */
public boolean hasExtendee() { return ((bitField0_ & 0x00000020) != 0); }
For extensions, this is the name of the type being extended.  It is
resolved in the same manner as type_name.
optional string extendee = 2;
Returns:The extendee.
/** * <pre> * For extensions, this is the name of the type being extended. It is * resolved in the same manner as type_name. * </pre> * * <code>optional string extendee = 2;</code> * @return The extendee. */
public java.lang.String getExtendee() { java.lang.Object ref = extendee_; 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()) { extendee_ = s; } return s; } }
For extensions, this is the name of the type being extended.  It is
resolved in the same manner as type_name.
optional string extendee = 2;
Returns:The bytes for extendee.
/** * <pre> * For extensions, this is the name of the type being extended. It is * resolved in the same manner as type_name. * </pre> * * <code>optional string extendee = 2;</code> * @return The bytes for extendee. */
public com.google.protobuf.ByteString getExtendeeBytes() { java.lang.Object ref = extendee_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extendee_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEFAULT_VALUE_FIELD_NUMBER = 7; private volatile java.lang.Object defaultValue_;
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?
optional string default_value = 7;
Returns:Whether the defaultValue field is set.
/** * <pre> * 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 &gt;= 128 are escaped. * TODO(kenton): Base-64 encode? * </pre> * * <code>optional string default_value = 7;</code> * @return Whether the defaultValue field is set. */
public boolean hasDefaultValue() { return ((bitField0_ & 0x00000040) != 0); }
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?
optional string default_value = 7;
Returns:The defaultValue.
/** * <pre> * 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 &gt;= 128 are escaped. * TODO(kenton): Base-64 encode? * </pre> * * <code>optional string default_value = 7;</code> * @return The defaultValue. */
public java.lang.String getDefaultValue() { java.lang.Object ref = defaultValue_; 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()) { defaultValue_ = s; } return s; } }
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?
optional string default_value = 7;
Returns:The bytes for defaultValue.
/** * <pre> * 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 &gt;= 128 are escaped. * TODO(kenton): Base-64 encode? * </pre> * * <code>optional string default_value = 7;</code> * @return The bytes for defaultValue. */
public com.google.protobuf.ByteString getDefaultValueBytes() { java.lang.Object ref = defaultValue_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ONEOF_INDEX_FIELD_NUMBER = 9; private int oneofIndex_;
If set, gives the index of a oneof in the containing type's oneof_decl
list.  This field is a member of that oneof.
optional int32 oneof_index = 9;
Returns:Whether the oneofIndex field is set.
/** * <pre> * If set, gives the index of a oneof in the containing type's oneof_decl * list. This field is a member of that oneof. * </pre> * * <code>optional int32 oneof_index = 9;</code> * @return Whether the oneofIndex field is set. */
public boolean hasOneofIndex() { return ((bitField0_ & 0x00000080) != 0); }
If set, gives the index of a oneof in the containing type's oneof_decl
list.  This field is a member of that oneof.
optional int32 oneof_index = 9;
Returns:The oneofIndex.
/** * <pre> * If set, gives the index of a oneof in the containing type's oneof_decl * list. This field is a member of that oneof. * </pre> * * <code>optional int32 oneof_index = 9;</code> * @return The oneofIndex. */
public int getOneofIndex() { return oneofIndex_; } public static final int JSON_NAME_FIELD_NUMBER = 10; private volatile java.lang.Object jsonName_;
JSON name of this field. The value is set by protocol compiler. If the
user has set a "json_name" option on this field, that option's value
will be used. Otherwise, it's deduced from the field's name by converting
it to camelCase.
optional string json_name = 10;
Returns:Whether the jsonName field is set.
/** * <pre> * JSON name of this field. The value is set by protocol compiler. If the * user has set a "json_name" option on this field, that option's value * will be used. Otherwise, it's deduced from the field's name by converting * it to camelCase. * </pre> * * <code>optional string json_name = 10;</code> * @return Whether the jsonName field is set. */
public boolean hasJsonName() { return ((bitField0_ & 0x00000100) != 0); }
JSON name of this field. The value is set by protocol compiler. If the
user has set a "json_name" option on this field, that option's value
will be used. Otherwise, it's deduced from the field's name by converting
it to camelCase.
optional string json_name = 10;
Returns:The jsonName.
/** * <pre> * JSON name of this field. The value is set by protocol compiler. If the * user has set a "json_name" option on this field, that option's value * will be used. Otherwise, it's deduced from the field's name by converting * it to camelCase. * </pre> * * <code>optional string json_name = 10;</code> * @return The jsonName. */
public java.lang.String getJsonName() { java.lang.Object ref = jsonName_; 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()) { jsonName_ = s; } return s; } }
JSON name of this field. The value is set by protocol compiler. If the
user has set a "json_name" option on this field, that option's value
will be used. Otherwise, it's deduced from the field's name by converting
it to camelCase.
optional string json_name = 10;
Returns:The bytes for jsonName.
/** * <pre> * JSON name of this field. The value is set by protocol compiler. If the * user has set a "json_name" option on this field, that option's value * will be used. Otherwise, it's deduced from the field's name by converting * it to camelCase. * </pre> * * <code>optional string json_name = 10;</code> * @return The bytes for jsonName. */
public com.google.protobuf.ByteString getJsonNameBytes() { java.lang.Object ref = jsonName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); jsonName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPTIONS_FIELD_NUMBER = 8; private com.google.protobuf.DescriptorProtos.FieldOptions options_;
optional .google.protobuf.FieldOptions options = 8;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.FieldOptions options = 8;</code> * @return Whether the options field is set. */
public boolean hasOptions() { return ((bitField0_ & 0x00000200) != 0); }
optional .google.protobuf.FieldOptions options = 8;
Returns:The options.
/** * <code>optional .google.protobuf.FieldOptions options = 8;</code> * @return The options. */
public com.google.protobuf.DescriptorProtos.FieldOptions getOptions() { return options_ == null ? com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance() : options_; }
optional .google.protobuf.FieldOptions options = 8;
/** * <code>optional .google.protobuf.FieldOptions options = 8;</code> */
public com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder getOptionsOrBuilder() { return options_ == null ? com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance() : options_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasOptions()) { if (!getOptions().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, extendee_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(3, number_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeEnum(4, label_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeEnum(5, type_); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, typeName_); } if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, defaultValue_); } if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(8, getOptions()); } if (((bitField0_ & 0x00000080) != 0)) { output.writeInt32(9, oneofIndex_); } if (((bitField0_ & 0x00000100) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, jsonName_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, extendee_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, number_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, label_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, type_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, typeName_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, defaultValue_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getOptions()); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, oneofIndex_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, jsonName_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.FieldDescriptorProto)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.FieldDescriptorProto other = (com.google.protobuf.DescriptorProtos.FieldDescriptorProto) obj; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasNumber() != other.hasNumber()) return false; if (hasNumber()) { if (getNumber() != other.getNumber()) return false; } if (hasLabel() != other.hasLabel()) return false; if (hasLabel()) { if (label_ != other.label_) return false; } if (hasType() != other.hasType()) return false; if (hasType()) { if (type_ != other.type_) return false; } if (hasTypeName() != other.hasTypeName()) return false; if (hasTypeName()) { if (!getTypeName() .equals(other.getTypeName())) return false; } if (hasExtendee() != other.hasExtendee()) return false; if (hasExtendee()) { if (!getExtendee() .equals(other.getExtendee())) return false; } if (hasDefaultValue() != other.hasDefaultValue()) return false; if (hasDefaultValue()) { if (!getDefaultValue() .equals(other.getDefaultValue())) return false; } if (hasOneofIndex() != other.hasOneofIndex()) return false; if (hasOneofIndex()) { if (getOneofIndex() != other.getOneofIndex()) return false; } if (hasJsonName() != other.hasJsonName()) return false; if (hasJsonName()) { if (!getJsonName() .equals(other.getJsonName())) return false; } if (hasOptions() != other.hasOptions()) return false; if (hasOptions()) { if (!getOptions() .equals(other.getOptions())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasNumber()) { hash = (37 * hash) + NUMBER_FIELD_NUMBER; hash = (53 * hash) + getNumber(); } if (hasLabel()) { hash = (37 * hash) + LABEL_FIELD_NUMBER; hash = (53 * hash) + label_; } if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasTypeName()) { hash = (37 * hash) + TYPE_NAME_FIELD_NUMBER; hash = (53 * hash) + getTypeName().hashCode(); } if (hasExtendee()) { hash = (37 * hash) + EXTENDEE_FIELD_NUMBER; hash = (53 * hash) + getExtendee().hashCode(); } if (hasDefaultValue()) { hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; hash = (53 * hash) + getDefaultValue().hashCode(); } if (hasOneofIndex()) { hash = (37 * hash) + ONEOF_INDEX_FIELD_NUMBER; hash = (53 * hash) + getOneofIndex(); } if (hasJsonName()) { hash = (37 * hash) + JSON_NAME_FIELD_NUMBER; hash = (53 * hash) + getJsonName().hashCode(); } if (hasOptions()) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptions().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto 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.FieldDescriptorProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FieldDescriptorProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Describes a field within a message.
Protobuf type google.protobuf.FieldDescriptorProto
/** * <pre> * Describes a field within a message. * </pre> * * Protobuf type {@code google.protobuf.FieldDescriptorProto} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.FieldDescriptorProto) com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldDescriptorProto_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.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); } // Construct using com.google.protobuf.DescriptorProtos.FieldDescriptorProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); number_ = 0; bitField0_ = (bitField0_ & ~0x00000002); label_ = 1; bitField0_ = (bitField0_ & ~0x00000004); type_ = 1; bitField0_ = (bitField0_ & ~0x00000008); typeName_ = ""; bitField0_ = (bitField0_ & ~0x00000010); extendee_ = ""; bitField0_ = (bitField0_ & ~0x00000020); defaultValue_ = ""; bitField0_ = (bitField0_ & ~0x00000040); oneofIndex_ = 0; bitField0_ = (bitField0_ & ~0x00000080); jsonName_ = ""; bitField0_ = (bitField0_ & ~0x00000100); if (optionsBuilder_ == null) { options_ = null; } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldDescriptorProto_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.FieldDescriptorProto build() { com.google.protobuf.DescriptorProtos.FieldDescriptorProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.FieldDescriptorProto buildPartial() { com.google.protobuf.DescriptorProtos.FieldDescriptorProto result = new com.google.protobuf.DescriptorProtos.FieldDescriptorProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) != 0)) { result.number_ = number_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.label_ = label_; if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000008; } result.type_ = type_; if (((from_bitField0_ & 0x00000010) != 0)) { to_bitField0_ |= 0x00000010; } result.typeName_ = typeName_; if (((from_bitField0_ & 0x00000020) != 0)) { to_bitField0_ |= 0x00000020; } result.extendee_ = extendee_; if (((from_bitField0_ & 0x00000040) != 0)) { to_bitField0_ |= 0x00000040; } result.defaultValue_ = defaultValue_; if (((from_bitField0_ & 0x00000080) != 0)) { result.oneofIndex_ = oneofIndex_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { to_bitField0_ |= 0x00000100; } result.jsonName_ = jsonName_; if (((from_bitField0_ & 0x00000200) != 0)) { if (optionsBuilder_ == null) { result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } to_bitField0_ |= 0x00000200; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.FieldDescriptorProto) { return mergeFrom((com.google.protobuf.DescriptorProtos.FieldDescriptorProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.FieldDescriptorProto other) { if (other == com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasNumber()) { setNumber(other.getNumber()); } if (other.hasLabel()) { setLabel(other.getLabel()); } if (other.hasType()) { setType(other.getType()); } if (other.hasTypeName()) { bitField0_ |= 0x00000010; typeName_ = other.typeName_; onChanged(); } if (other.hasExtendee()) { bitField0_ |= 0x00000020; extendee_ = other.extendee_; onChanged(); } if (other.hasDefaultValue()) { bitField0_ |= 0x00000040; defaultValue_ = other.defaultValue_; onChanged(); } if (other.hasOneofIndex()) { setOneofIndex(other.getOneofIndex()); } if (other.hasJsonName()) { bitField0_ |= 0x00000100; jsonName_ = other.jsonName_; onChanged(); } if (other.hasOptions()) { mergeOptions(other.getOptions()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (hasOptions()) { if (!getOptions().isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.FieldDescriptorProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.FieldDescriptorProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = "";
optional string name = 1;
Returns:Whether the name field is set.
/** * <code>optional string name = 1;</code> * @return Whether the name field is set. */
public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); }
optional string name = 1;
Returns:The name.
/** * <code>optional string name = 1;</code> * @return The name. */
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;
Returns:The bytes for name.
/** * <code>optional string name = 1;</code> * @return The bytes for name. */
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;
Params:
  • value – The name to set.
Returns:This builder for chaining.
/** * <code>optional string name = 1;</code> * @param value The name to set. * @return This builder for chaining. */
public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; }
optional string name = 1;
Returns:This builder for chaining.
/** * <code>optional string name = 1;</code> * @return This builder for chaining. */
public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; }
optional string name = 1;
Params:
  • value – The bytes for name to set.
Returns:This builder for chaining.
/** * <code>optional string name = 1;</code> * @param value The bytes for name to set. * @return This builder for chaining. */
public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private int number_ ;
optional int32 number = 3;
Returns:Whether the number field is set.
/** * <code>optional int32 number = 3;</code> * @return Whether the number field is set. */
public boolean hasNumber() { return ((bitField0_ & 0x00000002) != 0); }
optional int32 number = 3;
Returns:The number.
/** * <code>optional int32 number = 3;</code> * @return The number. */
public int getNumber() { return number_; }
optional int32 number = 3;
Params:
  • value – The number to set.
Returns:This builder for chaining.
/** * <code>optional int32 number = 3;</code> * @param value The number to set. * @return This builder for chaining. */
public Builder setNumber(int value) { bitField0_ |= 0x00000002; number_ = value; onChanged(); return this; }
optional int32 number = 3;
Returns:This builder for chaining.
/** * <code>optional int32 number = 3;</code> * @return This builder for chaining. */
public Builder clearNumber() { bitField0_ = (bitField0_ & ~0x00000002); number_ = 0; onChanged(); return this; } private int label_ = 1;
optional .google.protobuf.FieldDescriptorProto.Label label = 4;
Returns:Whether the label field is set.
/** * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> * @return Whether the label field is set. */
public boolean hasLabel() { return ((bitField0_ & 0x00000004) != 0); }
optional .google.protobuf.FieldDescriptorProto.Label label = 4;
Returns:The label.
/** * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> * @return The label. */
public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label getLabel() { @SuppressWarnings("deprecation") com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label result = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.valueOf(label_); return result == null ? com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.LABEL_OPTIONAL : result; }
optional .google.protobuf.FieldDescriptorProto.Label label = 4;
Params:
  • value – The label to set.
Returns:This builder for chaining.
/** * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> * @param value The label to set. * @return This builder for chaining. */
public Builder setLabel(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; label_ = value.getNumber(); onChanged(); return this; }
optional .google.protobuf.FieldDescriptorProto.Label label = 4;
Returns:This builder for chaining.
/** * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> * @return This builder for chaining. */
public Builder clearLabel() { bitField0_ = (bitField0_ & ~0x00000004); label_ = 1; onChanged(); return this; } private int type_ = 1;
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.
optional .google.protobuf.FieldDescriptorProto.Type type = 5;
Returns:Whether the type field is set.
/** * <pre> * 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. * </pre> * * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> * @return Whether the type field is set. */
public boolean hasType() { return ((bitField0_ & 0x00000008) != 0); }
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.
optional .google.protobuf.FieldDescriptorProto.Type type = 5;
Returns:The type.
/** * <pre> * 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. * </pre> * * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> * @return The type. */
public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getType() { @SuppressWarnings("deprecation") com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type result = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.valueOf(type_); return result == null ? com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.TYPE_DOUBLE : result; }
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.
optional .google.protobuf.FieldDescriptorProto.Type type = 5;
Params:
  • value – The type to set.
Returns:This builder for chaining.
/** * <pre> * 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. * </pre> * * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> * @param value The type to set. * @return This builder for chaining. */
public Builder setType(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; type_ = value.getNumber(); onChanged(); return this; }
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.
optional .google.protobuf.FieldDescriptorProto.Type type = 5;
Returns:This builder for chaining.
/** * <pre> * 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. * </pre> * * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> * @return This builder for chaining. */
public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000008); type_ = 1; onChanged(); return this; } private java.lang.Object typeName_ = "";
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).
optional string type_name = 6;
Returns:Whether the typeName field is set.
/** * <pre> * 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). * </pre> * * <code>optional string type_name = 6;</code> * @return Whether the typeName field is set. */
public boolean hasTypeName() { return ((bitField0_ & 0x00000010) != 0); }
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).
optional string type_name = 6;
Returns:The typeName.
/** * <pre> * 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). * </pre> * * <code>optional string type_name = 6;</code> * @return The typeName. */
public java.lang.String getTypeName() { java.lang.Object ref = typeName_; 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()) { typeName_ = s; } return s; } else { return (java.lang.String) ref; } }
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).
optional string type_name = 6;
Returns:The bytes for typeName.
/** * <pre> * 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). * </pre> * * <code>optional string type_name = 6;</code> * @return The bytes for typeName. */
public com.google.protobuf.ByteString getTypeNameBytes() { java.lang.Object ref = typeName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
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).
optional string type_name = 6;
Params:
  • value – The typeName to set.
Returns:This builder for chaining.
/** * <pre> * 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). * </pre> * * <code>optional string type_name = 6;</code> * @param value The typeName to set. * @return This builder for chaining. */
public Builder setTypeName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; typeName_ = value; onChanged(); return this; }
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).
optional string type_name = 6;
Returns:This builder for chaining.
/** * <pre> * 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). * </pre> * * <code>optional string type_name = 6;</code> * @return This builder for chaining. */
public Builder clearTypeName() { bitField0_ = (bitField0_ & ~0x00000010); typeName_ = getDefaultInstance().getTypeName(); onChanged(); return this; }
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).
optional string type_name = 6;
Params:
  • value – The bytes for typeName to set.
Returns:This builder for chaining.
/** * <pre> * 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). * </pre> * * <code>optional string type_name = 6;</code> * @param value The bytes for typeName to set. * @return This builder for chaining. */
public Builder setTypeNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; typeName_ = value; onChanged(); return this; } private java.lang.Object extendee_ = "";
For extensions, this is the name of the type being extended.  It is
resolved in the same manner as type_name.
optional string extendee = 2;
Returns:Whether the extendee field is set.
/** * <pre> * For extensions, this is the name of the type being extended. It is * resolved in the same manner as type_name. * </pre> * * <code>optional string extendee = 2;</code> * @return Whether the extendee field is set. */
public boolean hasExtendee() { return ((bitField0_ & 0x00000020) != 0); }
For extensions, this is the name of the type being extended.  It is
resolved in the same manner as type_name.
optional string extendee = 2;
Returns:The extendee.
/** * <pre> * For extensions, this is the name of the type being extended. It is * resolved in the same manner as type_name. * </pre> * * <code>optional string extendee = 2;</code> * @return The extendee. */
public java.lang.String getExtendee() { java.lang.Object ref = extendee_; 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()) { extendee_ = s; } return s; } else { return (java.lang.String) ref; } }
For extensions, this is the name of the type being extended.  It is
resolved in the same manner as type_name.
optional string extendee = 2;
Returns:The bytes for extendee.
/** * <pre> * For extensions, this is the name of the type being extended. It is * resolved in the same manner as type_name. * </pre> * * <code>optional string extendee = 2;</code> * @return The bytes for extendee. */
public com.google.protobuf.ByteString getExtendeeBytes() { java.lang.Object ref = extendee_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extendee_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
For extensions, this is the name of the type being extended.  It is
resolved in the same manner as type_name.
optional string extendee = 2;
Params:
  • value – The extendee to set.
Returns:This builder for chaining.
/** * <pre> * For extensions, this is the name of the type being extended. It is * resolved in the same manner as type_name. * </pre> * * <code>optional string extendee = 2;</code> * @param value The extendee to set. * @return This builder for chaining. */
public Builder setExtendee( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; extendee_ = value; onChanged(); return this; }
For extensions, this is the name of the type being extended.  It is
resolved in the same manner as type_name.
optional string extendee = 2;
Returns:This builder for chaining.
/** * <pre> * For extensions, this is the name of the type being extended. It is * resolved in the same manner as type_name. * </pre> * * <code>optional string extendee = 2;</code> * @return This builder for chaining. */
public Builder clearExtendee() { bitField0_ = (bitField0_ & ~0x00000020); extendee_ = getDefaultInstance().getExtendee(); onChanged(); return this; }
For extensions, this is the name of the type being extended.  It is
resolved in the same manner as type_name.
optional string extendee = 2;
Params:
  • value – The bytes for extendee to set.
Returns:This builder for chaining.
/** * <pre> * For extensions, this is the name of the type being extended. It is * resolved in the same manner as type_name. * </pre> * * <code>optional string extendee = 2;</code> * @param value The bytes for extendee to set. * @return This builder for chaining. */
public Builder setExtendeeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; extendee_ = value; onChanged(); return this; } private java.lang.Object defaultValue_ = "";
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?
optional string default_value = 7;
Returns:Whether the defaultValue field is set.
/** * <pre> * 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 &gt;= 128 are escaped. * TODO(kenton): Base-64 encode? * </pre> * * <code>optional string default_value = 7;</code> * @return Whether the defaultValue field is set. */
public boolean hasDefaultValue() { return ((bitField0_ & 0x00000040) != 0); }
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?
optional string default_value = 7;
Returns:The defaultValue.
/** * <pre> * 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 &gt;= 128 are escaped. * TODO(kenton): Base-64 encode? * </pre> * * <code>optional string default_value = 7;</code> * @return The defaultValue. */
public java.lang.String getDefaultValue() { java.lang.Object ref = defaultValue_; 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()) { defaultValue_ = s; } return s; } else { return (java.lang.String) ref; } }
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?
optional string default_value = 7;
Returns:The bytes for defaultValue.
/** * <pre> * 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 &gt;= 128 are escaped. * TODO(kenton): Base-64 encode? * </pre> * * <code>optional string default_value = 7;</code> * @return The bytes for defaultValue. */
public com.google.protobuf.ByteString getDefaultValueBytes() { java.lang.Object ref = defaultValue_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
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?
optional string default_value = 7;
Params:
  • value – The defaultValue to set.
Returns:This builder for chaining.
/** * <pre> * 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 &gt;= 128 are escaped. * TODO(kenton): Base-64 encode? * </pre> * * <code>optional string default_value = 7;</code> * @param value The defaultValue to set. * @return This builder for chaining. */
public Builder setDefaultValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; defaultValue_ = value; onChanged(); return this; }
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?
optional string default_value = 7;
Returns:This builder for chaining.
/** * <pre> * 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 &gt;= 128 are escaped. * TODO(kenton): Base-64 encode? * </pre> * * <code>optional string default_value = 7;</code> * @return This builder for chaining. */
public Builder clearDefaultValue() { bitField0_ = (bitField0_ & ~0x00000040); defaultValue_ = getDefaultInstance().getDefaultValue(); onChanged(); return this; }
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?
optional string default_value = 7;
Params:
  • value – The bytes for defaultValue to set.
Returns:This builder for chaining.
/** * <pre> * 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 &gt;= 128 are escaped. * TODO(kenton): Base-64 encode? * </pre> * * <code>optional string default_value = 7;</code> * @param value The bytes for defaultValue to set. * @return This builder for chaining. */
public Builder setDefaultValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; defaultValue_ = value; onChanged(); return this; } private int oneofIndex_ ;
If set, gives the index of a oneof in the containing type's oneof_decl
list.  This field is a member of that oneof.
optional int32 oneof_index = 9;
Returns:Whether the oneofIndex field is set.
/** * <pre> * If set, gives the index of a oneof in the containing type's oneof_decl * list. This field is a member of that oneof. * </pre> * * <code>optional int32 oneof_index = 9;</code> * @return Whether the oneofIndex field is set. */
public boolean hasOneofIndex() { return ((bitField0_ & 0x00000080) != 0); }
If set, gives the index of a oneof in the containing type's oneof_decl
list.  This field is a member of that oneof.
optional int32 oneof_index = 9;
Returns:The oneofIndex.
/** * <pre> * If set, gives the index of a oneof in the containing type's oneof_decl * list. This field is a member of that oneof. * </pre> * * <code>optional int32 oneof_index = 9;</code> * @return The oneofIndex. */
public int getOneofIndex() { return oneofIndex_; }
If set, gives the index of a oneof in the containing type's oneof_decl
list.  This field is a member of that oneof.
optional int32 oneof_index = 9;
Params:
  • value – The oneofIndex to set.
Returns:This builder for chaining.
/** * <pre> * If set, gives the index of a oneof in the containing type's oneof_decl * list. This field is a member of that oneof. * </pre> * * <code>optional int32 oneof_index = 9;</code> * @param value The oneofIndex to set. * @return This builder for chaining. */
public Builder setOneofIndex(int value) { bitField0_ |= 0x00000080; oneofIndex_ = value; onChanged(); return this; }
If set, gives the index of a oneof in the containing type's oneof_decl
list.  This field is a member of that oneof.
optional int32 oneof_index = 9;
Returns:This builder for chaining.
/** * <pre> * If set, gives the index of a oneof in the containing type's oneof_decl * list. This field is a member of that oneof. * </pre> * * <code>optional int32 oneof_index = 9;</code> * @return This builder for chaining. */
public Builder clearOneofIndex() { bitField0_ = (bitField0_ & ~0x00000080); oneofIndex_ = 0; onChanged(); return this; } private java.lang.Object jsonName_ = "";
JSON name of this field. The value is set by protocol compiler. If the
user has set a "json_name" option on this field, that option's value
will be used. Otherwise, it's deduced from the field's name by converting
it to camelCase.
optional string json_name = 10;
Returns:Whether the jsonName field is set.
/** * <pre> * JSON name of this field. The value is set by protocol compiler. If the * user has set a "json_name" option on this field, that option's value * will be used. Otherwise, it's deduced from the field's name by converting * it to camelCase. * </pre> * * <code>optional string json_name = 10;</code> * @return Whether the jsonName field is set. */
public boolean hasJsonName() { return ((bitField0_ & 0x00000100) != 0); }
JSON name of this field. The value is set by protocol compiler. If the
user has set a "json_name" option on this field, that option's value
will be used. Otherwise, it's deduced from the field's name by converting
it to camelCase.
optional string json_name = 10;
Returns:The jsonName.
/** * <pre> * JSON name of this field. The value is set by protocol compiler. If the * user has set a "json_name" option on this field, that option's value * will be used. Otherwise, it's deduced from the field's name by converting * it to camelCase. * </pre> * * <code>optional string json_name = 10;</code> * @return The jsonName. */
public java.lang.String getJsonName() { java.lang.Object ref = jsonName_; 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()) { jsonName_ = s; } return s; } else { return (java.lang.String) ref; } }
JSON name of this field. The value is set by protocol compiler. If the
user has set a "json_name" option on this field, that option's value
will be used. Otherwise, it's deduced from the field's name by converting
it to camelCase.
optional string json_name = 10;
Returns:The bytes for jsonName.
/** * <pre> * JSON name of this field. The value is set by protocol compiler. If the * user has set a "json_name" option on this field, that option's value * will be used. Otherwise, it's deduced from the field's name by converting * it to camelCase. * </pre> * * <code>optional string json_name = 10;</code> * @return The bytes for jsonName. */
public com.google.protobuf.ByteString getJsonNameBytes() { java.lang.Object ref = jsonName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); jsonName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
JSON name of this field. The value is set by protocol compiler. If the
user has set a "json_name" option on this field, that option's value
will be used. Otherwise, it's deduced from the field's name by converting
it to camelCase.
optional string json_name = 10;
Params:
  • value – The jsonName to set.
Returns:This builder for chaining.
/** * <pre> * JSON name of this field. The value is set by protocol compiler. If the * user has set a "json_name" option on this field, that option's value * will be used. Otherwise, it's deduced from the field's name by converting * it to camelCase. * </pre> * * <code>optional string json_name = 10;</code> * @param value The jsonName to set. * @return This builder for chaining. */
public Builder setJsonName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; jsonName_ = value; onChanged(); return this; }
JSON name of this field. The value is set by protocol compiler. If the
user has set a "json_name" option on this field, that option's value
will be used. Otherwise, it's deduced from the field's name by converting
it to camelCase.
optional string json_name = 10;
Returns:This builder for chaining.
/** * <pre> * JSON name of this field. The value is set by protocol compiler. If the * user has set a "json_name" option on this field, that option's value * will be used. Otherwise, it's deduced from the field's name by converting * it to camelCase. * </pre> * * <code>optional string json_name = 10;</code> * @return This builder for chaining. */
public Builder clearJsonName() { bitField0_ = (bitField0_ & ~0x00000100); jsonName_ = getDefaultInstance().getJsonName(); onChanged(); return this; }
JSON name of this field. The value is set by protocol compiler. If the
user has set a "json_name" option on this field, that option's value
will be used. Otherwise, it's deduced from the field's name by converting
it to camelCase.
optional string json_name = 10;
Params:
  • value – The bytes for jsonName to set.
Returns:This builder for chaining.
/** * <pre> * JSON name of this field. The value is set by protocol compiler. If the * user has set a "json_name" option on this field, that option's value * will be used. Otherwise, it's deduced from the field's name by converting * it to camelCase. * </pre> * * <code>optional string json_name = 10;</code> * @param value The bytes for jsonName to set. * @return This builder for chaining. */
public Builder setJsonNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; jsonName_ = value; onChanged(); return this; } private com.google.protobuf.DescriptorProtos.FieldOptions options_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.FieldOptions, com.google.protobuf.DescriptorProtos.FieldOptions.Builder, com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder> optionsBuilder_;
optional .google.protobuf.FieldOptions options = 8;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.FieldOptions options = 8;</code> * @return Whether the options field is set. */
public boolean hasOptions() { return ((bitField0_ & 0x00000200) != 0); }
optional .google.protobuf.FieldOptions options = 8;
Returns:The options.
/** * <code>optional .google.protobuf.FieldOptions options = 8;</code> * @return The options. */
public com.google.protobuf.DescriptorProtos.FieldOptions getOptions() { if (optionsBuilder_ == null) { return options_ == null ? com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance() : options_; } else { return optionsBuilder_.getMessage(); } }
optional .google.protobuf.FieldOptions options = 8;
/** * <code>optional .google.protobuf.FieldOptions options = 8;</code> */
public Builder setOptions(com.google.protobuf.DescriptorProtos.FieldOptions value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } options_ = value; onChanged(); } else { optionsBuilder_.setMessage(value); } bitField0_ |= 0x00000200; return this; }
optional .google.protobuf.FieldOptions options = 8;
/** * <code>optional .google.protobuf.FieldOptions options = 8;</code> */
public Builder setOptions( com.google.protobuf.DescriptorProtos.FieldOptions.Builder builderForValue) { if (optionsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); } else { optionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; }
optional .google.protobuf.FieldOptions options = 8;
/** * <code>optional .google.protobuf.FieldOptions options = 8;</code> */
public Builder mergeOptions(com.google.protobuf.DescriptorProtos.FieldOptions value) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && options_ != null && options_ != com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance()) { options_ = com.google.protobuf.DescriptorProtos.FieldOptions.newBuilder(options_).mergeFrom(value).buildPartial(); } else { options_ = value; } onChanged(); } else { optionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; return this; }
optional .google.protobuf.FieldOptions options = 8;
/** * <code>optional .google.protobuf.FieldOptions options = 8;</code> */
public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; }
optional .google.protobuf.FieldOptions options = 8;
/** * <code>optional .google.protobuf.FieldOptions options = 8;</code> */
public com.google.protobuf.DescriptorProtos.FieldOptions.Builder getOptionsBuilder() { bitField0_ |= 0x00000200; onChanged(); return getOptionsFieldBuilder().getBuilder(); }
optional .google.protobuf.FieldOptions options = 8;
/** * <code>optional .google.protobuf.FieldOptions options = 8;</code> */
public com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { return options_ == null ? com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance() : options_; } }
optional .google.protobuf.FieldOptions options = 8;
/** * <code>optional .google.protobuf.FieldOptions options = 8;</code> */
private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.FieldOptions, com.google.protobuf.DescriptorProtos.FieldOptions.Builder, com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.FieldOptions, com.google.protobuf.DescriptorProtos.FieldOptions.Builder, com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder>( getOptions(), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.FieldDescriptorProto) } // @@protoc_insertion_point(class_scope:google.protobuf.FieldDescriptorProto) private static final com.google.protobuf.DescriptorProtos.FieldDescriptorProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.FieldDescriptorProto(); } public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<FieldDescriptorProto> PARSER = new com.google.protobuf.AbstractParser<FieldDescriptorProto>() { @java.lang.Override public FieldDescriptorProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FieldDescriptorProto(input, extensionRegistry); } }; public static com.google.protobuf.Parser<FieldDescriptorProto> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<FieldDescriptorProto> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OneofDescriptorProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.OneofDescriptorProto) com.google.protobuf.MessageOrBuilder {
optional string name = 1;
Returns:Whether the name field is set.
/** * <code>optional string name = 1;</code> * @return Whether the name field is set. */
boolean hasName();
optional string name = 1;
Returns:The name.
/** * <code>optional string name = 1;</code> * @return The name. */
java.lang.String getName();
optional string name = 1;
Returns:The bytes for name.
/** * <code>optional string name = 1;</code> * @return The bytes for name. */
com.google.protobuf.ByteString getNameBytes();
optional .google.protobuf.OneofOptions options = 2;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.OneofOptions options = 2;</code> * @return Whether the options field is set. */
boolean hasOptions();
optional .google.protobuf.OneofOptions options = 2;
Returns:The options.
/** * <code>optional .google.protobuf.OneofOptions options = 2;</code> * @return The options. */
com.google.protobuf.DescriptorProtos.OneofOptions getOptions();
optional .google.protobuf.OneofOptions options = 2;
/** * <code>optional .google.protobuf.OneofOptions options = 2;</code> */
com.google.protobuf.DescriptorProtos.OneofOptionsOrBuilder getOptionsOrBuilder(); }
Describes a oneof.
Protobuf type google.protobuf.OneofDescriptorProto
/** * <pre> * Describes a oneof. * </pre> * * Protobuf type {@code google.protobuf.OneofDescriptorProto} */
public static final class OneofDescriptorProto extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.protobuf.OneofDescriptorProto) OneofDescriptorProtoOrBuilder { private static final long serialVersionUID = 0L; // Use OneofDescriptorProto.newBuilder() to construct. private OneofDescriptorProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private OneofDescriptorProto() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OneofDescriptorProto(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OneofDescriptorProto( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 18: { com.google.protobuf.DescriptorProtos.OneofOptions.Builder subBuilder = null; if (((bitField0_ & 0x00000002) != 0)) { subBuilder = options_.toBuilder(); } options_ = input.readMessage(com.google.protobuf.DescriptorProtos.OneofOptions.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(options_); options_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).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_OneofDescriptorProto_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_OneofDescriptorProto_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.OneofDescriptorProto.class, com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_;
optional string name = 1;
Returns:Whether the name field is set.
/** * <code>optional string name = 1;</code> * @return Whether the name field is set. */
public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); }
optional string name = 1;
Returns:The name.
/** * <code>optional string name = 1;</code> * @return The name. */
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;
Returns:The bytes for name.
/** * <code>optional string name = 1;</code> * @return The bytes for name. */
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 OPTIONS_FIELD_NUMBER = 2; private com.google.protobuf.DescriptorProtos.OneofOptions options_;
optional .google.protobuf.OneofOptions options = 2;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.OneofOptions options = 2;</code> * @return Whether the options field is set. */
public boolean hasOptions() { return ((bitField0_ & 0x00000002) != 0); }
optional .google.protobuf.OneofOptions options = 2;
Returns:The options.
/** * <code>optional .google.protobuf.OneofOptions options = 2;</code> * @return The options. */
public com.google.protobuf.DescriptorProtos.OneofOptions getOptions() { return options_ == null ? com.google.protobuf.DescriptorProtos.OneofOptions.getDefaultInstance() : options_; }
optional .google.protobuf.OneofOptions options = 2;
/** * <code>optional .google.protobuf.OneofOptions options = 2;</code> */
public com.google.protobuf.DescriptorProtos.OneofOptionsOrBuilder getOptionsOrBuilder() { return options_ == null ? com.google.protobuf.DescriptorProtos.OneofOptions.getDefaultInstance() : options_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasOptions()) { if (!getOptions().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getOptions()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOptions()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.OneofDescriptorProto)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.OneofDescriptorProto other = (com.google.protobuf.DescriptorProtos.OneofDescriptorProto) obj; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasOptions() != other.hasOptions()) return false; if (hasOptions()) { if (!getOptions() .equals(other.getOptions())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasOptions()) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptions().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.OneofDescriptorProto parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.OneofDescriptorProto parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.OneofDescriptorProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.OneofDescriptorProto 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.OneofDescriptorProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.OneofDescriptorProto parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.OneofDescriptorProto parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.OneofDescriptorProto parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.OneofDescriptorProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.OneofDescriptorProto parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.OneofDescriptorProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.OneofDescriptorProto parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.OneofDescriptorProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Describes a oneof.
Protobuf type google.protobuf.OneofDescriptorProto
/** * <pre> * Describes a oneof. * </pre> * * Protobuf type {@code google.protobuf.OneofDescriptorProto} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.OneofDescriptorProto) com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_OneofDescriptorProto_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_OneofDescriptorProto_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.OneofDescriptorProto.class, com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.OneofDescriptorProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (optionsBuilder_ == null) { options_ = null; } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_OneofDescriptorProto_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.OneofDescriptorProto getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.OneofDescriptorProto.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.OneofDescriptorProto build() { com.google.protobuf.DescriptorProtos.OneofDescriptorProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.OneofDescriptorProto buildPartial() { com.google.protobuf.DescriptorProtos.OneofDescriptorProto result = new com.google.protobuf.DescriptorProtos.OneofDescriptorProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) != 0)) { if (optionsBuilder_ == null) { result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } to_bitField0_ |= 0x00000002; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.OneofDescriptorProto) { return mergeFrom((com.google.protobuf.DescriptorProtos.OneofDescriptorProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.OneofDescriptorProto other) { if (other == com.google.protobuf.DescriptorProtos.OneofDescriptorProto.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasOptions()) { mergeOptions(other.getOptions()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (hasOptions()) { if (!getOptions().isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.OneofDescriptorProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.OneofDescriptorProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = "";
optional string name = 1;
Returns:Whether the name field is set.
/** * <code>optional string name = 1;</code> * @return Whether the name field is set. */
public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); }
optional string name = 1;
Returns:The name.
/** * <code>optional string name = 1;</code> * @return The name. */
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;
Returns:The bytes for name.
/** * <code>optional string name = 1;</code> * @return The bytes for name. */
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;
Params:
  • value – The name to set.
Returns:This builder for chaining.
/** * <code>optional string name = 1;</code> * @param value The name to set. * @return This builder for chaining. */
public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; }
optional string name = 1;
Returns:This builder for chaining.
/** * <code>optional string name = 1;</code> * @return This builder for chaining. */
public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; }
optional string name = 1;
Params:
  • value – The bytes for name to set.
Returns:This builder for chaining.
/** * <code>optional string name = 1;</code> * @param value The bytes for name to set. * @return This builder for chaining. */
public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private com.google.protobuf.DescriptorProtos.OneofOptions options_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.OneofOptions, com.google.protobuf.DescriptorProtos.OneofOptions.Builder, com.google.protobuf.DescriptorProtos.OneofOptionsOrBuilder> optionsBuilder_;
optional .google.protobuf.OneofOptions options = 2;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.OneofOptions options = 2;</code> * @return Whether the options field is set. */
public boolean hasOptions() { return ((bitField0_ & 0x00000002) != 0); }
optional .google.protobuf.OneofOptions options = 2;
Returns:The options.
/** * <code>optional .google.protobuf.OneofOptions options = 2;</code> * @return The options. */
public com.google.protobuf.DescriptorProtos.OneofOptions getOptions() { if (optionsBuilder_ == null) { return options_ == null ? com.google.protobuf.DescriptorProtos.OneofOptions.getDefaultInstance() : options_; } else { return optionsBuilder_.getMessage(); } }
optional .google.protobuf.OneofOptions options = 2;
/** * <code>optional .google.protobuf.OneofOptions options = 2;</code> */
public Builder setOptions(com.google.protobuf.DescriptorProtos.OneofOptions value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } options_ = value; onChanged(); } else { optionsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; }
optional .google.protobuf.OneofOptions options = 2;
/** * <code>optional .google.protobuf.OneofOptions options = 2;</code> */
public Builder setOptions( com.google.protobuf.DescriptorProtos.OneofOptions.Builder builderForValue) { if (optionsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); } else { optionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; }
optional .google.protobuf.OneofOptions options = 2;
/** * <code>optional .google.protobuf.OneofOptions options = 2;</code> */
public Builder mergeOptions(com.google.protobuf.DescriptorProtos.OneofOptions value) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && options_ != null && options_ != com.google.protobuf.DescriptorProtos.OneofOptions.getDefaultInstance()) { options_ = com.google.protobuf.DescriptorProtos.OneofOptions.newBuilder(options_).mergeFrom(value).buildPartial(); } else { options_ = value; } onChanged(); } else { optionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; }
optional .google.protobuf.OneofOptions options = 2;
/** * <code>optional .google.protobuf.OneofOptions options = 2;</code> */
public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; }
optional .google.protobuf.OneofOptions options = 2;
/** * <code>optional .google.protobuf.OneofOptions options = 2;</code> */
public com.google.protobuf.DescriptorProtos.OneofOptions.Builder getOptionsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getOptionsFieldBuilder().getBuilder(); }
optional .google.protobuf.OneofOptions options = 2;
/** * <code>optional .google.protobuf.OneofOptions options = 2;</code> */
public com.google.protobuf.DescriptorProtos.OneofOptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { return options_ == null ? com.google.protobuf.DescriptorProtos.OneofOptions.getDefaultInstance() : options_; } }
optional .google.protobuf.OneofOptions options = 2;
/** * <code>optional .google.protobuf.OneofOptions options = 2;</code> */
private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.OneofOptions, com.google.protobuf.DescriptorProtos.OneofOptions.Builder, com.google.protobuf.DescriptorProtos.OneofOptionsOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.OneofOptions, com.google.protobuf.DescriptorProtos.OneofOptions.Builder, com.google.protobuf.DescriptorProtos.OneofOptionsOrBuilder>( getOptions(), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.OneofDescriptorProto) } // @@protoc_insertion_point(class_scope:google.protobuf.OneofDescriptorProto) private static final com.google.protobuf.DescriptorProtos.OneofDescriptorProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.OneofDescriptorProto(); } public static com.google.protobuf.DescriptorProtos.OneofDescriptorProto getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<OneofDescriptorProto> PARSER = new com.google.protobuf.AbstractParser<OneofDescriptorProto>() { @java.lang.Override public OneofDescriptorProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OneofDescriptorProto(input, extensionRegistry); } }; public static com.google.protobuf.Parser<OneofDescriptorProto> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<OneofDescriptorProto> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.OneofDescriptorProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnumDescriptorProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.EnumDescriptorProto) com.google.protobuf.MessageOrBuilder {
optional string name = 1;
Returns:Whether the name field is set.
/** * <code>optional string name = 1;</code> * @return Whether the name field is set. */
boolean hasName();
optional string name = 1;
Returns:The name.
/** * <code>optional string name = 1;</code> * @return The name. */
java.lang.String getName();
optional string name = 1;
Returns:The bytes for name.
/** * <code>optional string name = 1;</code> * @return The bytes for name. */
com.google.protobuf.ByteString getNameBytes();
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto> getValueList();
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto getValue(int index);
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
int getValueCount();
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder> getValueOrBuilderList();
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder getValueOrBuilder( int index);
optional .google.protobuf.EnumOptions options = 3;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.EnumOptions options = 3;</code> * @return Whether the options field is set. */
boolean hasOptions();
optional .google.protobuf.EnumOptions options = 3;
Returns:The options.
/** * <code>optional .google.protobuf.EnumOptions options = 3;</code> * @return The options. */
com.google.protobuf.DescriptorProtos.EnumOptions getOptions();
optional .google.protobuf.EnumOptions options = 3;
/** * <code>optional .google.protobuf.EnumOptions options = 3;</code> */
com.google.protobuf.DescriptorProtos.EnumOptionsOrBuilder getOptionsOrBuilder();
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange> getReservedRangeList();
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange getReservedRange(int index);
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
int getReservedRangeCount();
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder> getReservedRangeOrBuilderList();
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder getReservedRangeOrBuilder( int index);
Reserved enum value names, which may not be reused. A given name may only
be reserved once.
repeated string reserved_name = 5;
Returns:A list containing the reservedName.
/** * <pre> * Reserved enum value names, which may not be reused. A given name may only * be reserved once. * </pre> * * <code>repeated string reserved_name = 5;</code> * @return A list containing the reservedName. */
java.util.List<java.lang.String> getReservedNameList();
Reserved enum value names, which may not be reused. A given name may only
be reserved once.
repeated string reserved_name = 5;
Returns:The count of reservedName.
/** * <pre> * Reserved enum value names, which may not be reused. A given name may only * be reserved once. * </pre> * * <code>repeated string reserved_name = 5;</code> * @return The count of reservedName. */
int getReservedNameCount();
Reserved enum value names, which may not be reused. A given name may only
be reserved once.
repeated string reserved_name = 5;
Params:
  • index – The index of the element to return.
Returns:The reservedName at the given index.
/** * <pre> * Reserved enum value names, which may not be reused. A given name may only * be reserved once. * </pre> * * <code>repeated string reserved_name = 5;</code> * @param index The index of the element to return. * @return The reservedName at the given index. */
java.lang.String getReservedName(int index);
Reserved enum value names, which may not be reused. A given name may only
be reserved once.
repeated string reserved_name = 5;
Params:
  • index – The index of the value to return.
Returns:The bytes of the reservedName at the given index.
/** * <pre> * Reserved enum value names, which may not be reused. A given name may only * be reserved once. * </pre> * * <code>repeated string reserved_name = 5;</code> * @param index The index of the value to return. * @return The bytes of the reservedName at the given index. */
com.google.protobuf.ByteString getReservedNameBytes(int index); }
Describes an enum type.
Protobuf type google.protobuf.EnumDescriptorProto
/** * <pre> * Describes an enum type. * </pre> * * Protobuf type {@code google.protobuf.EnumDescriptorProto} */
public static final class EnumDescriptorProto extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.protobuf.EnumDescriptorProto) EnumDescriptorProtoOrBuilder { private static final long serialVersionUID = 0L; // Use EnumDescriptorProto.newBuilder() to construct. private EnumDescriptorProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private EnumDescriptorProto() { name_ = ""; value_ = java.util.Collections.emptyList(); reservedRange_ = java.util.Collections.emptyList(); reservedName_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EnumDescriptorProto(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EnumDescriptorProto( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { value_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto>(); mutable_bitField0_ |= 0x00000002; } value_.add( input.readMessage(com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.PARSER, extensionRegistry)); break; } case 26: { com.google.protobuf.DescriptorProtos.EnumOptions.Builder subBuilder = null; if (((bitField0_ & 0x00000002) != 0)) { subBuilder = options_.toBuilder(); } options_ = input.readMessage(com.google.protobuf.DescriptorProtos.EnumOptions.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(options_); options_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { reservedRange_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange>(); mutable_bitField0_ |= 0x00000008; } reservedRange_.add( input.readMessage(com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.PARSER, extensionRegistry)); break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000010) != 0)) { reservedName_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000010; } reservedName_.add(bs); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { value_ = java.util.Collections.unmodifiableList(value_); } if (((mutable_bitField0_ & 0x00000008) != 0)) { reservedRange_ = java.util.Collections.unmodifiableList(reservedRange_); } if (((mutable_bitField0_ & 0x00000010) != 0)) { reservedName_ = reservedName_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumDescriptorProto_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumDescriptorProto_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.EnumDescriptorProto.class, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder.class); } public interface EnumReservedRangeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.EnumDescriptorProto.EnumReservedRange) com.google.protobuf.MessageOrBuilder {
Inclusive.
optional int32 start = 1;
Returns:Whether the start field is set.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @return Whether the start field is set. */
boolean hasStart();
Inclusive.
optional int32 start = 1;
Returns:The start.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @return The start. */
int getStart();
Inclusive.
optional int32 end = 2;
Returns:Whether the end field is set.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 end = 2;</code> * @return Whether the end field is set. */
boolean hasEnd();
Inclusive.
optional int32 end = 2;
Returns:The end.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 end = 2;</code> * @return The end. */
int getEnd(); }
Range of reserved numeric values. Reserved values may not be used by
entries in the same enum. Reserved ranges may not overlap.
Note that this is distinct from DescriptorProto.ReservedRange in that it
is inclusive such that it can appropriately represent the entire int32
domain.
Protobuf type google.protobuf.EnumDescriptorProto.EnumReservedRange
/** * <pre> * Range of reserved numeric values. Reserved values may not be used by * entries in the same enum. Reserved ranges may not overlap. * Note that this is distinct from DescriptorProto.ReservedRange in that it * is inclusive such that it can appropriately represent the entire int32 * domain. * </pre> * * Protobuf type {@code google.protobuf.EnumDescriptorProto.EnumReservedRange} */
public static final class EnumReservedRange extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.protobuf.EnumDescriptorProto.EnumReservedRange) EnumReservedRangeOrBuilder { private static final long serialVersionUID = 0L; // Use EnumReservedRange.newBuilder() to construct. private EnumReservedRange(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private EnumReservedRange() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EnumReservedRange(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EnumReservedRange( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 8: { bitField0_ |= 0x00000001; start_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; end_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).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_EnumDescriptorProto_EnumReservedRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumDescriptorProto_EnumReservedRange_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.class, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder.class); } private int bitField0_; public static final int START_FIELD_NUMBER = 1; private int start_;
Inclusive.
optional int32 start = 1;
Returns:Whether the start field is set.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @return Whether the start field is set. */
public boolean hasStart() { return ((bitField0_ & 0x00000001) != 0); }
Inclusive.
optional int32 start = 1;
Returns:The start.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @return The start. */
public int getStart() { return start_; } public static final int END_FIELD_NUMBER = 2; private int end_;
Inclusive.
optional int32 end = 2;
Returns:Whether the end field is set.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 end = 2;</code> * @return Whether the end field is set. */
public boolean hasEnd() { return ((bitField0_ & 0x00000002) != 0); }
Inclusive.
optional int32 end = 2;
Returns:The end.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 end = 2;</code> * @return The end. */
public int getEnd() { return end_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, start_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, end_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, start_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, end_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange other = (com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange) obj; if (hasStart() != other.hasStart()) return false; if (hasStart()) { if (getStart() != other.getStart()) return false; } if (hasEnd() != other.hasEnd()) return false; if (hasEnd()) { if (getEnd() != other.getEnd()) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStart()) { hash = (37 * hash) + START_FIELD_NUMBER; hash = (53 * hash) + getStart(); } if (hasEnd()) { hash = (37 * hash) + END_FIELD_NUMBER; hash = (53 * hash) + getEnd(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange 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.EnumDescriptorProto.EnumReservedRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Range of reserved numeric values. Reserved values may not be used by
entries in the same enum. Reserved ranges may not overlap.
Note that this is distinct from DescriptorProto.ReservedRange in that it
is inclusive such that it can appropriately represent the entire int32
domain.
Protobuf type google.protobuf.EnumDescriptorProto.EnumReservedRange
/** * <pre> * Range of reserved numeric values. Reserved values may not be used by * entries in the same enum. Reserved ranges may not overlap. * Note that this is distinct from DescriptorProto.ReservedRange in that it * is inclusive such that it can appropriately represent the entire int32 * domain. * </pre> * * Protobuf type {@code google.protobuf.EnumDescriptorProto.EnumReservedRange} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.EnumDescriptorProto.EnumReservedRange) com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumDescriptorProto_EnumReservedRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumDescriptorProto_EnumReservedRange_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.class, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); start_ = 0; bitField0_ = (bitField0_ & ~0x00000001); end_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumDescriptorProto_EnumReservedRange_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange build() { com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange buildPartial() { com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange result = new com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.start_ = start_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.end_ = end_; to_bitField0_ |= 0x00000002; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange) { return mergeFrom((com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange other) { if (other == com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.getDefaultInstance()) return this; if (other.hasStart()) { setStart(other.getStart()); } if (other.hasEnd()) { setEnd(other.getEnd()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int start_ ;
Inclusive.
optional int32 start = 1;
Returns:Whether the start field is set.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @return Whether the start field is set. */
public boolean hasStart() { return ((bitField0_ & 0x00000001) != 0); }
Inclusive.
optional int32 start = 1;
Returns:The start.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @return The start. */
public int getStart() { return start_; }
Inclusive.
optional int32 start = 1;
Params:
  • value – The start to set.
Returns:This builder for chaining.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @param value The start to set. * @return This builder for chaining. */
public Builder setStart(int value) { bitField0_ |= 0x00000001; start_ = value; onChanged(); return this; }
Inclusive.
optional int32 start = 1;
Returns:This builder for chaining.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 start = 1;</code> * @return This builder for chaining. */
public Builder clearStart() { bitField0_ = (bitField0_ & ~0x00000001); start_ = 0; onChanged(); return this; } private int end_ ;
Inclusive.
optional int32 end = 2;
Returns:Whether the end field is set.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 end = 2;</code> * @return Whether the end field is set. */
public boolean hasEnd() { return ((bitField0_ & 0x00000002) != 0); }
Inclusive.
optional int32 end = 2;
Returns:The end.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 end = 2;</code> * @return The end. */
public int getEnd() { return end_; }
Inclusive.
optional int32 end = 2;
Params:
  • value – The end to set.
Returns:This builder for chaining.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 end = 2;</code> * @param value The end to set. * @return This builder for chaining. */
public Builder setEnd(int value) { bitField0_ |= 0x00000002; end_ = value; onChanged(); return this; }
Inclusive.
optional int32 end = 2;
Returns:This builder for chaining.
/** * <pre> * Inclusive. * </pre> * * <code>optional int32 end = 2;</code> * @return This builder for chaining. */
public Builder clearEnd() { bitField0_ = (bitField0_ & ~0x00000002); end_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.EnumDescriptorProto.EnumReservedRange) } // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto.EnumReservedRange) private static final com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange(); } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<EnumReservedRange> PARSER = new com.google.protobuf.AbstractParser<EnumReservedRange>() { @java.lang.Override public EnumReservedRange parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EnumReservedRange(input, extensionRegistry); } }; public static com.google.protobuf.Parser<EnumReservedRange> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<EnumReservedRange> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_;
optional string name = 1;
Returns:Whether the name field is set.
/** * <code>optional string name = 1;</code> * @return Whether the name field is set. */
public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); }
optional string name = 1;
Returns:The name.
/** * <code>optional string name = 1;</code> * @return The name. */
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;
Returns:The bytes for name.
/** * <code>optional string name = 1;</code> * @return The bytes for name. */
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 VALUE_FIELD_NUMBER = 2; private java.util.List<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto> value_;
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto> getValueList() { return value_; }
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder> getValueOrBuilderList() { return value_; }
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public int getValueCount() { return value_.size(); }
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto getValue(int index) { return value_.get(index); }
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder getValueOrBuilder( int index) { return value_.get(index); } public static final int OPTIONS_FIELD_NUMBER = 3; private com.google.protobuf.DescriptorProtos.EnumOptions options_;
optional .google.protobuf.EnumOptions options = 3;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.EnumOptions options = 3;</code> * @return Whether the options field is set. */
public boolean hasOptions() { return ((bitField0_ & 0x00000002) != 0); }
optional .google.protobuf.EnumOptions options = 3;
Returns:The options.
/** * <code>optional .google.protobuf.EnumOptions options = 3;</code> * @return The options. */
public com.google.protobuf.DescriptorProtos.EnumOptions getOptions() { return options_ == null ? com.google.protobuf.DescriptorProtos.EnumOptions.getDefaultInstance() : options_; }
optional .google.protobuf.EnumOptions options = 3;
/** * <code>optional .google.protobuf.EnumOptions options = 3;</code> */
public com.google.protobuf.DescriptorProtos.EnumOptionsOrBuilder getOptionsOrBuilder() { return options_ == null ? com.google.protobuf.DescriptorProtos.EnumOptions.getDefaultInstance() : options_; } public static final int RESERVED_RANGE_FIELD_NUMBER = 4; private java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange> reservedRange_;
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange> getReservedRangeList() { return reservedRange_; }
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder> getReservedRangeOrBuilderList() { return reservedRange_; }
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public int getReservedRangeCount() { return reservedRange_.size(); }
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange getReservedRange(int index) { return reservedRange_.get(index); }
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder getReservedRangeOrBuilder( int index) { return reservedRange_.get(index); } public static final int RESERVED_NAME_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList reservedName_;
Reserved enum value names, which may not be reused. A given name may only
be reserved once.
repeated string reserved_name = 5;
Returns:A list containing the reservedName.
/** * <pre> * Reserved enum value names, which may not be reused. A given name may only * be reserved once. * </pre> * * <code>repeated string reserved_name = 5;</code> * @return A list containing the reservedName. */
public com.google.protobuf.ProtocolStringList getReservedNameList() { return reservedName_; }
Reserved enum value names, which may not be reused. A given name may only
be reserved once.
repeated string reserved_name = 5;
Returns:The count of reservedName.
/** * <pre> * Reserved enum value names, which may not be reused. A given name may only * be reserved once. * </pre> * * <code>repeated string reserved_name = 5;</code> * @return The count of reservedName. */
public int getReservedNameCount() { return reservedName_.size(); }
Reserved enum value names, which may not be reused. A given name may only
be reserved once.
repeated string reserved_name = 5;
Params:
  • index – The index of the element to return.
Returns:The reservedName at the given index.
/** * <pre> * Reserved enum value names, which may not be reused. A given name may only * be reserved once. * </pre> * * <code>repeated string reserved_name = 5;</code> * @param index The index of the element to return. * @return The reservedName at the given index. */
public java.lang.String getReservedName(int index) { return reservedName_.get(index); }
Reserved enum value names, which may not be reused. A given name may only
be reserved once.
repeated string reserved_name = 5;
Params:
  • index – The index of the value to return.
Returns:The bytes of the reservedName at the given index.
/** * <pre> * Reserved enum value names, which may not be reused. A given name may only * be reserved once. * </pre> * * <code>repeated string reserved_name = 5;</code> * @param index The index of the value to return. * @return The bytes of the reservedName at the given index. */
public com.google.protobuf.ByteString getReservedNameBytes(int index) { return reservedName_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getValueCount(); i++) { if (!getValue(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasOptions()) { if (!getOptions().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < value_.size(); i++) { output.writeMessage(2, value_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getOptions()); } for (int i = 0; i < reservedRange_.size(); i++) { output.writeMessage(4, reservedRange_.get(i)); } for (int i = 0; i < reservedName_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, reservedName_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < value_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, value_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getOptions()); } for (int i = 0; i < reservedRange_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, reservedRange_.get(i)); } { int dataSize = 0; for (int i = 0; i < reservedName_.size(); i++) { dataSize += computeStringSizeNoTag(reservedName_.getRaw(i)); } size += dataSize; size += 1 * getReservedNameList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.EnumDescriptorProto)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.EnumDescriptorProto other = (com.google.protobuf.DescriptorProtos.EnumDescriptorProto) obj; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (!getValueList() .equals(other.getValueList())) return false; if (hasOptions() != other.hasOptions()) return false; if (hasOptions()) { if (!getOptions() .equals(other.getOptions())) return false; } if (!getReservedRangeList() .equals(other.getReservedRangeList())) return false; if (!getReservedNameList() .equals(other.getReservedNameList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (getValueCount() > 0) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValueList().hashCode(); } if (hasOptions()) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptions().hashCode(); } if (getReservedRangeCount() > 0) { hash = (37 * hash) + RESERVED_RANGE_FIELD_NUMBER; hash = (53 * hash) + getReservedRangeList().hashCode(); } if (getReservedNameCount() > 0) { hash = (37 * hash) + RESERVED_NAME_FIELD_NUMBER; hash = (53 * hash) + getReservedNameList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto 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.EnumDescriptorProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.EnumDescriptorProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Describes an enum type.
Protobuf type google.protobuf.EnumDescriptorProto
/** * <pre> * Describes an enum type. * </pre> * * Protobuf type {@code google.protobuf.EnumDescriptorProto} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.EnumDescriptorProto) com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumDescriptorProto_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumDescriptorProto_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.EnumDescriptorProto.class, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.EnumDescriptorProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getValueFieldBuilder(); getOptionsFieldBuilder(); getReservedRangeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (valueBuilder_ == null) { value_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { valueBuilder_.clear(); } if (optionsBuilder_ == null) { options_ = null; } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (reservedRangeBuilder_ == null) { reservedRange_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { reservedRangeBuilder_.clear(); } reservedName_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumDescriptorProto_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.EnumDescriptorProto.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.EnumDescriptorProto build() { com.google.protobuf.DescriptorProtos.EnumDescriptorProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.EnumDescriptorProto buildPartial() { com.google.protobuf.DescriptorProtos.EnumDescriptorProto result = new com.google.protobuf.DescriptorProtos.EnumDescriptorProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (valueBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { value_ = java.util.Collections.unmodifiableList(value_); bitField0_ = (bitField0_ & ~0x00000002); } result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { if (optionsBuilder_ == null) { result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } to_bitField0_ |= 0x00000002; } if (reservedRangeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { reservedRange_ = java.util.Collections.unmodifiableList(reservedRange_); bitField0_ = (bitField0_ & ~0x00000008); } result.reservedRange_ = reservedRange_; } else { result.reservedRange_ = reservedRangeBuilder_.build(); } if (((bitField0_ & 0x00000010) != 0)) { reservedName_ = reservedName_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); } result.reservedName_ = reservedName_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.EnumDescriptorProto) { return mergeFrom((com.google.protobuf.DescriptorProtos.EnumDescriptorProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.EnumDescriptorProto other) { if (other == com.google.protobuf.DescriptorProtos.EnumDescriptorProto.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (valueBuilder_ == null) { if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } } else { if (!other.value_.isEmpty()) { if (valueBuilder_.isEmpty()) { valueBuilder_.dispose(); valueBuilder_ = null; value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000002); valueBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getValueFieldBuilder() : null; } else { valueBuilder_.addAllMessages(other.value_); } } } if (other.hasOptions()) { mergeOptions(other.getOptions()); } if (reservedRangeBuilder_ == null) { if (!other.reservedRange_.isEmpty()) { if (reservedRange_.isEmpty()) { reservedRange_ = other.reservedRange_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureReservedRangeIsMutable(); reservedRange_.addAll(other.reservedRange_); } onChanged(); } } else { if (!other.reservedRange_.isEmpty()) { if (reservedRangeBuilder_.isEmpty()) { reservedRangeBuilder_.dispose(); reservedRangeBuilder_ = null; reservedRange_ = other.reservedRange_; bitField0_ = (bitField0_ & ~0x00000008); reservedRangeBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getReservedRangeFieldBuilder() : null; } else { reservedRangeBuilder_.addAllMessages(other.reservedRange_); } } } if (!other.reservedName_.isEmpty()) { if (reservedName_.isEmpty()) { reservedName_ = other.reservedName_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureReservedNameIsMutable(); reservedName_.addAll(other.reservedName_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getValueCount(); i++) { if (!getValue(i).isInitialized()) { return false; } } if (hasOptions()) { if (!getOptions().isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.EnumDescriptorProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.EnumDescriptorProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = "";
optional string name = 1;
Returns:Whether the name field is set.
/** * <code>optional string name = 1;</code> * @return Whether the name field is set. */
public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); }
optional string name = 1;
Returns:The name.
/** * <code>optional string name = 1;</code> * @return The name. */
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;
Returns:The bytes for name.
/** * <code>optional string name = 1;</code> * @return The bytes for name. */
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;
Params:
  • value – The name to set.
Returns:This builder for chaining.
/** * <code>optional string name = 1;</code> * @param value The name to set. * @return This builder for chaining. */
public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; }
optional string name = 1;
Returns:This builder for chaining.
/** * <code>optional string name = 1;</code> * @return This builder for chaining. */
public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; }
optional string name = 1;
Params:
  • value – The bytes for name to set.
Returns:This builder for chaining.
/** * <code>optional string name = 1;</code> * @param value The bytes for name to set. * @return This builder for chaining. */
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<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto> value_ = java.util.Collections.emptyList(); private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { value_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto>(value_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder> valueBuilder_;
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto> getValueList() { if (valueBuilder_ == null) { return java.util.Collections.unmodifiableList(value_); } else { return valueBuilder_.getMessageList(); } }
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public int getValueCount() { if (valueBuilder_ == null) { return value_.size(); } else { return valueBuilder_.getCount(); } }
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto getValue(int index) { if (valueBuilder_ == null) { return value_.get(index); } else { return valueBuilder_.getMessage(index); } }
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public Builder setValue( int index, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.set(index, value); onChanged(); } else { valueBuilder_.setMessage(index, value); } return this; }
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public Builder setValue( int index, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.set(index, builderForValue.build()); onChanged(); } else { valueBuilder_.setMessage(index, builderForValue.build()); } return this; }
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public Builder addValue(com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(value); onChanged(); } else { valueBuilder_.addMessage(value); } return this; }
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public Builder addValue( int index, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(index, value); onChanged(); } else { valueBuilder_.addMessage(index, value); } return this; }
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public Builder addValue( com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.add(builderForValue.build()); onChanged(); } else { valueBuilder_.addMessage(builderForValue.build()); } return this; }
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public Builder addValue( int index, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.add(index, builderForValue.build()); onChanged(); } else { valueBuilder_.addMessage(index, builderForValue.build()); } return this; }
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public Builder addAllValue( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto> values) { if (valueBuilder_ == null) { ensureValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, value_); onChanged(); } else { valueBuilder_.addAllMessages(values); } return this; }
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public Builder clearValue() { if (valueBuilder_ == null) { value_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { valueBuilder_.clear(); } return this; }
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public Builder removeValue(int index) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.remove(index); onChanged(); } else { valueBuilder_.remove(index); } return this; }
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder getValueBuilder( int index) { return getValueFieldBuilder().getBuilder(index); }
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder getValueOrBuilder( int index) { if (valueBuilder_ == null) { return value_.get(index); } else { return valueBuilder_.getMessageOrBuilder(index); } }
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder> getValueOrBuilderList() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(value_); } }
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder addValueBuilder() { return getValueFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.getDefaultInstance()); }
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder addValueBuilder( int index) { return getValueFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.getDefaultInstance()); }
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
/** * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder> getValueBuilderList() { return getValueFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder>( value_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } private com.google.protobuf.DescriptorProtos.EnumOptions options_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.EnumOptions, com.google.protobuf.DescriptorProtos.EnumOptions.Builder, com.google.protobuf.DescriptorProtos.EnumOptionsOrBuilder> optionsBuilder_;
optional .google.protobuf.EnumOptions options = 3;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.EnumOptions options = 3;</code> * @return Whether the options field is set. */
public boolean hasOptions() { return ((bitField0_ & 0x00000004) != 0); }
optional .google.protobuf.EnumOptions options = 3;
Returns:The options.
/** * <code>optional .google.protobuf.EnumOptions options = 3;</code> * @return The options. */
public com.google.protobuf.DescriptorProtos.EnumOptions getOptions() { if (optionsBuilder_ == null) { return options_ == null ? com.google.protobuf.DescriptorProtos.EnumOptions.getDefaultInstance() : options_; } else { return optionsBuilder_.getMessage(); } }
optional .google.protobuf.EnumOptions options = 3;
/** * <code>optional .google.protobuf.EnumOptions options = 3;</code> */
public Builder setOptions(com.google.protobuf.DescriptorProtos.EnumOptions value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } options_ = value; onChanged(); } else { optionsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; }
optional .google.protobuf.EnumOptions options = 3;
/** * <code>optional .google.protobuf.EnumOptions options = 3;</code> */
public Builder setOptions( com.google.protobuf.DescriptorProtos.EnumOptions.Builder builderForValue) { if (optionsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); } else { optionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; }
optional .google.protobuf.EnumOptions options = 3;
/** * <code>optional .google.protobuf.EnumOptions options = 3;</code> */
public Builder mergeOptions(com.google.protobuf.DescriptorProtos.EnumOptions value) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && options_ != null && options_ != com.google.protobuf.DescriptorProtos.EnumOptions.getDefaultInstance()) { options_ = com.google.protobuf.DescriptorProtos.EnumOptions.newBuilder(options_).mergeFrom(value).buildPartial(); } else { options_ = value; } onChanged(); } else { optionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; }
optional .google.protobuf.EnumOptions options = 3;
/** * <code>optional .google.protobuf.EnumOptions options = 3;</code> */
public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; }
optional .google.protobuf.EnumOptions options = 3;
/** * <code>optional .google.protobuf.EnumOptions options = 3;</code> */
public com.google.protobuf.DescriptorProtos.EnumOptions.Builder getOptionsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getOptionsFieldBuilder().getBuilder(); }
optional .google.protobuf.EnumOptions options = 3;
/** * <code>optional .google.protobuf.EnumOptions options = 3;</code> */
public com.google.protobuf.DescriptorProtos.EnumOptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { return options_ == null ? com.google.protobuf.DescriptorProtos.EnumOptions.getDefaultInstance() : options_; } }
optional .google.protobuf.EnumOptions options = 3;
/** * <code>optional .google.protobuf.EnumOptions options = 3;</code> */
private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.EnumOptions, com.google.protobuf.DescriptorProtos.EnumOptions.Builder, com.google.protobuf.DescriptorProtos.EnumOptionsOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.EnumOptions, com.google.protobuf.DescriptorProtos.EnumOptions.Builder, com.google.protobuf.DescriptorProtos.EnumOptionsOrBuilder>( getOptions(), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } private java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange> reservedRange_ = java.util.Collections.emptyList(); private void ensureReservedRangeIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { reservedRange_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange>(reservedRange_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder> reservedRangeBuilder_;
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange> getReservedRangeList() { if (reservedRangeBuilder_ == null) { return java.util.Collections.unmodifiableList(reservedRange_); } else { return reservedRangeBuilder_.getMessageList(); } }
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public int getReservedRangeCount() { if (reservedRangeBuilder_ == null) { return reservedRange_.size(); } else { return reservedRangeBuilder_.getCount(); } }
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange getReservedRange(int index) { if (reservedRangeBuilder_ == null) { return reservedRange_.get(index); } else { return reservedRangeBuilder_.getMessage(index); } }
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public Builder setReservedRange( int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange value) { if (reservedRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReservedRangeIsMutable(); reservedRange_.set(index, value); onChanged(); } else { reservedRangeBuilder_.setMessage(index, value); } return this; }
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public Builder setReservedRange( int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder builderForValue) { if (reservedRangeBuilder_ == null) { ensureReservedRangeIsMutable(); reservedRange_.set(index, builderForValue.build()); onChanged(); } else { reservedRangeBuilder_.setMessage(index, builderForValue.build()); } return this; }
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public Builder addReservedRange(com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange value) { if (reservedRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReservedRangeIsMutable(); reservedRange_.add(value); onChanged(); } else { reservedRangeBuilder_.addMessage(value); } return this; }
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public Builder addReservedRange( int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange value) { if (reservedRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReservedRangeIsMutable(); reservedRange_.add(index, value); onChanged(); } else { reservedRangeBuilder_.addMessage(index, value); } return this; }
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public Builder addReservedRange( com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder builderForValue) { if (reservedRangeBuilder_ == null) { ensureReservedRangeIsMutable(); reservedRange_.add(builderForValue.build()); onChanged(); } else { reservedRangeBuilder_.addMessage(builderForValue.build()); } return this; }
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public Builder addReservedRange( int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder builderForValue) { if (reservedRangeBuilder_ == null) { ensureReservedRangeIsMutable(); reservedRange_.add(index, builderForValue.build()); onChanged(); } else { reservedRangeBuilder_.addMessage(index, builderForValue.build()); } return this; }
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public Builder addAllReservedRange( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange> values) { if (reservedRangeBuilder_ == null) { ensureReservedRangeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, reservedRange_); onChanged(); } else { reservedRangeBuilder_.addAllMessages(values); } return this; }
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public Builder clearReservedRange() { if (reservedRangeBuilder_ == null) { reservedRange_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { reservedRangeBuilder_.clear(); } return this; }
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public Builder removeReservedRange(int index) { if (reservedRangeBuilder_ == null) { ensureReservedRangeIsMutable(); reservedRange_.remove(index); onChanged(); } else { reservedRangeBuilder_.remove(index); } return this; }
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder getReservedRangeBuilder( int index) { return getReservedRangeFieldBuilder().getBuilder(index); }
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder getReservedRangeOrBuilder( int index) { if (reservedRangeBuilder_ == null) { return reservedRange_.get(index); } else { return reservedRangeBuilder_.getMessageOrBuilder(index); } }
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder> getReservedRangeOrBuilderList() { if (reservedRangeBuilder_ != null) { return reservedRangeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(reservedRange_); } }
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder addReservedRangeBuilder() { return getReservedRangeFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.getDefaultInstance()); }
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder addReservedRangeBuilder( int index) { return getReservedRangeFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.getDefaultInstance()); }
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
/** * <pre> * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * </pre> * * <code>repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder> getReservedRangeBuilderList() { return getReservedRangeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder> getReservedRangeFieldBuilder() { if (reservedRangeBuilder_ == null) { reservedRangeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder>( reservedRange_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); reservedRange_ = null; } return reservedRangeBuilder_; } private com.google.protobuf.LazyStringList reservedName_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureReservedNameIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { reservedName_ = new com.google.protobuf.LazyStringArrayList(reservedName_); bitField0_ |= 0x00000010; } }
Reserved enum value names, which may not be reused. A given name may only
be reserved once.
repeated string reserved_name = 5;
Returns:A list containing the reservedName.
/** * <pre> * Reserved enum value names, which may not be reused. A given name may only * be reserved once. * </pre> * * <code>repeated string reserved_name = 5;</code> * @return A list containing the reservedName. */
public com.google.protobuf.ProtocolStringList getReservedNameList() { return reservedName_.getUnmodifiableView(); }
Reserved enum value names, which may not be reused. A given name may only
be reserved once.
repeated string reserved_name = 5;
Returns:The count of reservedName.
/** * <pre> * Reserved enum value names, which may not be reused. A given name may only * be reserved once. * </pre> * * <code>repeated string reserved_name = 5;</code> * @return The count of reservedName. */
public int getReservedNameCount() { return reservedName_.size(); }
Reserved enum value names, which may not be reused. A given name may only
be reserved once.
repeated string reserved_name = 5;
Params:
  • index – The index of the element to return.
Returns:The reservedName at the given index.
/** * <pre> * Reserved enum value names, which may not be reused. A given name may only * be reserved once. * </pre> * * <code>repeated string reserved_name = 5;</code> * @param index The index of the element to return. * @return The reservedName at the given index. */
public java.lang.String getReservedName(int index) { return reservedName_.get(index); }
Reserved enum value names, which may not be reused. A given name may only
be reserved once.
repeated string reserved_name = 5;
Params:
  • index – The index of the value to return.
Returns:The bytes of the reservedName at the given index.
/** * <pre> * Reserved enum value names, which may not be reused. A given name may only * be reserved once. * </pre> * * <code>repeated string reserved_name = 5;</code> * @param index The index of the value to return. * @return The bytes of the reservedName at the given index. */
public com.google.protobuf.ByteString getReservedNameBytes(int index) { return reservedName_.getByteString(index); }
Reserved enum value names, which may not be reused. A given name may only
be reserved once.
repeated string reserved_name = 5;
Params:
  • index – The index to set the value at.
  • value – The reservedName to set.
Returns:This builder for chaining.
/** * <pre> * Reserved enum value names, which may not be reused. A given name may only * be reserved once. * </pre> * * <code>repeated string reserved_name = 5;</code> * @param index The index to set the value at. * @param value The reservedName to set. * @return This builder for chaining. */
public Builder setReservedName( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureReservedNameIsMutable(); reservedName_.set(index, value); onChanged(); return this; }
Reserved enum value names, which may not be reused. A given name may only
be reserved once.
repeated string reserved_name = 5;
Params:
  • value – The reservedName to add.
Returns:This builder for chaining.
/** * <pre> * Reserved enum value names, which may not be reused. A given name may only * be reserved once. * </pre> * * <code>repeated string reserved_name = 5;</code> * @param value The reservedName to add. * @return This builder for chaining. */
public Builder addReservedName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureReservedNameIsMutable(); reservedName_.add(value); onChanged(); return this; }
Reserved enum value names, which may not be reused. A given name may only
be reserved once.
repeated string reserved_name = 5;
Params:
  • values – The reservedName to add.
Returns:This builder for chaining.
/** * <pre> * Reserved enum value names, which may not be reused. A given name may only * be reserved once. * </pre> * * <code>repeated string reserved_name = 5;</code> * @param values The reservedName to add. * @return This builder for chaining. */
public Builder addAllReservedName( java.lang.Iterable<java.lang.String> values) { ensureReservedNameIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, reservedName_); onChanged(); return this; }
Reserved enum value names, which may not be reused. A given name may only
be reserved once.
repeated string reserved_name = 5;
Returns:This builder for chaining.
/** * <pre> * Reserved enum value names, which may not be reused. A given name may only * be reserved once. * </pre> * * <code>repeated string reserved_name = 5;</code> * @return This builder for chaining. */
public Builder clearReservedName() { reservedName_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; }
Reserved enum value names, which may not be reused. A given name may only
be reserved once.
repeated string reserved_name = 5;
Params:
  • value – The bytes of the reservedName to add.
Returns:This builder for chaining.
/** * <pre> * Reserved enum value names, which may not be reused. A given name may only * be reserved once. * </pre> * * <code>repeated string reserved_name = 5;</code> * @param value The bytes of the reservedName to add. * @return This builder for chaining. */
public Builder addReservedNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureReservedNameIsMutable(); reservedName_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.EnumDescriptorProto) } // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto) private static final com.google.protobuf.DescriptorProtos.EnumDescriptorProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.EnumDescriptorProto(); } public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<EnumDescriptorProto> PARSER = new com.google.protobuf.AbstractParser<EnumDescriptorProto>() { @java.lang.Override public EnumDescriptorProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EnumDescriptorProto(input, extensionRegistry); } }; public static com.google.protobuf.Parser<EnumDescriptorProto> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<EnumDescriptorProto> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnumValueDescriptorProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.EnumValueDescriptorProto) com.google.protobuf.MessageOrBuilder {
optional string name = 1;
Returns:Whether the name field is set.
/** * <code>optional string name = 1;</code> * @return Whether the name field is set. */
boolean hasName();
optional string name = 1;
Returns:The name.
/** * <code>optional string name = 1;</code> * @return The name. */
java.lang.String getName();
optional string name = 1;
Returns:The bytes for name.
/** * <code>optional string name = 1;</code> * @return The bytes for name. */
com.google.protobuf.ByteString getNameBytes();
optional int32 number = 2;
Returns:Whether the number field is set.
/** * <code>optional int32 number = 2;</code> * @return Whether the number field is set. */
boolean hasNumber();
optional int32 number = 2;
Returns:The number.
/** * <code>optional int32 number = 2;</code> * @return The number. */
int getNumber();
optional .google.protobuf.EnumValueOptions options = 3;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> * @return Whether the options field is set. */
boolean hasOptions();
optional .google.protobuf.EnumValueOptions options = 3;
Returns:The options.
/** * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> * @return The options. */
com.google.protobuf.DescriptorProtos.EnumValueOptions getOptions();
optional .google.protobuf.EnumValueOptions options = 3;
/** * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> */
com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder getOptionsOrBuilder(); }
Describes a value within an enum.
Protobuf type google.protobuf.EnumValueDescriptorProto
/** * <pre> * Describes a value within an enum. * </pre> * * Protobuf type {@code google.protobuf.EnumValueDescriptorProto} */
public static final class EnumValueDescriptorProto extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.protobuf.EnumValueDescriptorProto) EnumValueDescriptorProtoOrBuilder { private static final long serialVersionUID = 0L; // Use EnumValueDescriptorProto.newBuilder() to construct. private EnumValueDescriptorProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private EnumValueDescriptorProto() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EnumValueDescriptorProto(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EnumValueDescriptorProto( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 16: { bitField0_ |= 0x00000002; number_ = input.readInt32(); break; } case 26: { com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder subBuilder = null; if (((bitField0_ & 0x00000004) != 0)) { subBuilder = options_.toBuilder(); } options_ = input.readMessage(com.google.protobuf.DescriptorProtos.EnumValueOptions.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(options_); options_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).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_EnumValueDescriptorProto_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueDescriptorProto_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.class, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_;
optional string name = 1;
Returns:Whether the name field is set.
/** * <code>optional string name = 1;</code> * @return Whether the name field is set. */
public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); }
optional string name = 1;
Returns:The name.
/** * <code>optional string name = 1;</code> * @return The name. */
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;
Returns:The bytes for name.
/** * <code>optional string name = 1;</code> * @return The bytes for name. */
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 NUMBER_FIELD_NUMBER = 2; private int number_;
optional int32 number = 2;
Returns:Whether the number field is set.
/** * <code>optional int32 number = 2;</code> * @return Whether the number field is set. */
public boolean hasNumber() { return ((bitField0_ & 0x00000002) != 0); }
optional int32 number = 2;
Returns:The number.
/** * <code>optional int32 number = 2;</code> * @return The number. */
public int getNumber() { return number_; } public static final int OPTIONS_FIELD_NUMBER = 3; private com.google.protobuf.DescriptorProtos.EnumValueOptions options_;
optional .google.protobuf.EnumValueOptions options = 3;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> * @return Whether the options field is set. */
public boolean hasOptions() { return ((bitField0_ & 0x00000004) != 0); }
optional .google.protobuf.EnumValueOptions options = 3;
Returns:The options.
/** * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> * @return The options. */
public com.google.protobuf.DescriptorProtos.EnumValueOptions getOptions() { return options_ == null ? com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance() : options_; }
optional .google.protobuf.EnumValueOptions options = 3;
/** * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> */
public com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder getOptionsOrBuilder() { return options_ == null ? com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance() : options_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasOptions()) { if (!getOptions().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, number_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getOptions()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, number_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getOptions()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto other = (com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto) obj; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasNumber() != other.hasNumber()) return false; if (hasNumber()) { if (getNumber() != other.getNumber()) return false; } if (hasOptions() != other.hasOptions()) return false; if (hasOptions()) { if (!getOptions() .equals(other.getOptions())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasNumber()) { hash = (37 * hash) + NUMBER_FIELD_NUMBER; hash = (53 * hash) + getNumber(); } if (hasOptions()) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptions().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto 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.EnumValueDescriptorProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Describes a value within an enum.
Protobuf type google.protobuf.EnumValueDescriptorProto
/** * <pre> * Describes a value within an enum. * </pre> * * Protobuf type {@code google.protobuf.EnumValueDescriptorProto} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.EnumValueDescriptorProto) com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueDescriptorProto_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueDescriptorProto_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.class, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); number_ = 0; bitField0_ = (bitField0_ & ~0x00000002); if (optionsBuilder_ == null) { options_ = null; } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueDescriptorProto_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto build() { com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto buildPartial() { com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto result = new com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) != 0)) { result.number_ = number_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { if (optionsBuilder_ == null) { result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } to_bitField0_ |= 0x00000004; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto) { return mergeFrom((com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto other) { if (other == com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasNumber()) { setNumber(other.getNumber()); } if (other.hasOptions()) { mergeOptions(other.getOptions()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (hasOptions()) { if (!getOptions().isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = "";
optional string name = 1;
Returns:Whether the name field is set.
/** * <code>optional string name = 1;</code> * @return Whether the name field is set. */
public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); }
optional string name = 1;
Returns:The name.
/** * <code>optional string name = 1;</code> * @return The name. */
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;
Returns:The bytes for name.
/** * <code>optional string name = 1;</code> * @return The bytes for name. */
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;
Params:
  • value – The name to set.
Returns:This builder for chaining.
/** * <code>optional string name = 1;</code> * @param value The name to set. * @return This builder for chaining. */
public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; }
optional string name = 1;
Returns:This builder for chaining.
/** * <code>optional string name = 1;</code> * @return This builder for chaining. */
public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; }
optional string name = 1;
Params:
  • value – The bytes for name to set.
Returns:This builder for chaining.
/** * <code>optional string name = 1;</code> * @param value The bytes for name to set. * @return This builder for chaining. */
public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private int number_ ;
optional int32 number = 2;
Returns:Whether the number field is set.
/** * <code>optional int32 number = 2;</code> * @return Whether the number field is set. */
public boolean hasNumber() { return ((bitField0_ & 0x00000002) != 0); }
optional int32 number = 2;
Returns:The number.
/** * <code>optional int32 number = 2;</code> * @return The number. */
public int getNumber() { return number_; }
optional int32 number = 2;
Params:
  • value – The number to set.
Returns:This builder for chaining.
/** * <code>optional int32 number = 2;</code> * @param value The number to set. * @return This builder for chaining. */
public Builder setNumber(int value) { bitField0_ |= 0x00000002; number_ = value; onChanged(); return this; }
optional int32 number = 2;
Returns:This builder for chaining.
/** * <code>optional int32 number = 2;</code> * @return This builder for chaining. */
public Builder clearNumber() { bitField0_ = (bitField0_ & ~0x00000002); number_ = 0; onChanged(); return this; } private com.google.protobuf.DescriptorProtos.EnumValueOptions options_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.EnumValueOptions, com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder, com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder> optionsBuilder_;
optional .google.protobuf.EnumValueOptions options = 3;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> * @return Whether the options field is set. */
public boolean hasOptions() { return ((bitField0_ & 0x00000004) != 0); }
optional .google.protobuf.EnumValueOptions options = 3;
Returns:The options.
/** * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> * @return The options. */
public com.google.protobuf.DescriptorProtos.EnumValueOptions getOptions() { if (optionsBuilder_ == null) { return options_ == null ? com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance() : options_; } else { return optionsBuilder_.getMessage(); } }
optional .google.protobuf.EnumValueOptions options = 3;
/** * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> */
public Builder setOptions(com.google.protobuf.DescriptorProtos.EnumValueOptions value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } options_ = value; onChanged(); } else { optionsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; }
optional .google.protobuf.EnumValueOptions options = 3;
/** * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> */
public Builder setOptions( com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder builderForValue) { if (optionsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); } else { optionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; }
optional .google.protobuf.EnumValueOptions options = 3;
/** * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> */
public Builder mergeOptions(com.google.protobuf.DescriptorProtos.EnumValueOptions value) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && options_ != null && options_ != com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance()) { options_ = com.google.protobuf.DescriptorProtos.EnumValueOptions.newBuilder(options_).mergeFrom(value).buildPartial(); } else { options_ = value; } onChanged(); } else { optionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; }
optional .google.protobuf.EnumValueOptions options = 3;
/** * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> */
public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; }
optional .google.protobuf.EnumValueOptions options = 3;
/** * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> */
public com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder getOptionsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getOptionsFieldBuilder().getBuilder(); }
optional .google.protobuf.EnumValueOptions options = 3;
/** * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> */
public com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { return options_ == null ? com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance() : options_; } }
optional .google.protobuf.EnumValueOptions options = 3;
/** * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> */
private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.EnumValueOptions, com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder, com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.EnumValueOptions, com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder, com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder>( getOptions(), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.EnumValueDescriptorProto) } // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueDescriptorProto) private static final com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto(); } public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<EnumValueDescriptorProto> PARSER = new com.google.protobuf.AbstractParser<EnumValueDescriptorProto>() { @java.lang.Override public EnumValueDescriptorProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EnumValueDescriptorProto(input, extensionRegistry); } }; public static com.google.protobuf.Parser<EnumValueDescriptorProto> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<EnumValueDescriptorProto> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ServiceDescriptorProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.ServiceDescriptorProto) com.google.protobuf.MessageOrBuilder {
optional string name = 1;
Returns:Whether the name field is set.
/** * <code>optional string name = 1;</code> * @return Whether the name field is set. */
boolean hasName();
optional string name = 1;
Returns:The name.
/** * <code>optional string name = 1;</code> * @return The name. */
java.lang.String getName();
optional string name = 1;
Returns:The bytes for name.
/** * <code>optional string name = 1;</code> * @return The bytes for name. */
com.google.protobuf.ByteString getNameBytes();
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.MethodDescriptorProto> getMethodList();
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
com.google.protobuf.DescriptorProtos.MethodDescriptorProto getMethod(int index);
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
int getMethodCount();
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder> getMethodOrBuilderList();
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder getMethodOrBuilder( int index);
optional .google.protobuf.ServiceOptions options = 3;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.ServiceOptions options = 3;</code> * @return Whether the options field is set. */
boolean hasOptions();
optional .google.protobuf.ServiceOptions options = 3;
Returns:The options.
/** * <code>optional .google.protobuf.ServiceOptions options = 3;</code> * @return The options. */
com.google.protobuf.DescriptorProtos.ServiceOptions getOptions();
optional .google.protobuf.ServiceOptions options = 3;
/** * <code>optional .google.protobuf.ServiceOptions options = 3;</code> */
com.google.protobuf.DescriptorProtos.ServiceOptionsOrBuilder getOptionsOrBuilder(); }
Describes a service.
Protobuf type google.protobuf.ServiceDescriptorProto
/** * <pre> * Describes a service. * </pre> * * Protobuf type {@code google.protobuf.ServiceDescriptorProto} */
public static final class ServiceDescriptorProto extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.protobuf.ServiceDescriptorProto) ServiceDescriptorProtoOrBuilder { private static final long serialVersionUID = 0L; // Use ServiceDescriptorProto.newBuilder() to construct. private ServiceDescriptorProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private ServiceDescriptorProto() { name_ = ""; method_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ServiceDescriptorProto(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ServiceDescriptorProto( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { method_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.MethodDescriptorProto>(); mutable_bitField0_ |= 0x00000002; } method_.add( input.readMessage(com.google.protobuf.DescriptorProtos.MethodDescriptorProto.PARSER, extensionRegistry)); break; } case 26: { com.google.protobuf.DescriptorProtos.ServiceOptions.Builder subBuilder = null; if (((bitField0_ & 0x00000002) != 0)) { subBuilder = options_.toBuilder(); } options_ = input.readMessage(com.google.protobuf.DescriptorProtos.ServiceOptions.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(options_); options_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { method_ = java.util.Collections.unmodifiableList(method_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceDescriptorProto_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceDescriptorProto_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.class, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_;
optional string name = 1;
Returns:Whether the name field is set.
/** * <code>optional string name = 1;</code> * @return Whether the name field is set. */
public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); }
optional string name = 1;
Returns:The name.
/** * <code>optional string name = 1;</code> * @return The name. */
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;
Returns:The bytes for name.
/** * <code>optional string name = 1;</code> * @return The bytes for name. */
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 METHOD_FIELD_NUMBER = 2; private java.util.List<com.google.protobuf.DescriptorProtos.MethodDescriptorProto> method_;
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.MethodDescriptorProto> getMethodList() { return method_; }
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder> getMethodOrBuilderList() { return method_; }
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public int getMethodCount() { return method_.size(); }
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public com.google.protobuf.DescriptorProtos.MethodDescriptorProto getMethod(int index) { return method_.get(index); }
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder getMethodOrBuilder( int index) { return method_.get(index); } public static final int OPTIONS_FIELD_NUMBER = 3; private com.google.protobuf.DescriptorProtos.ServiceOptions options_;
optional .google.protobuf.ServiceOptions options = 3;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.ServiceOptions options = 3;</code> * @return Whether the options field is set. */
public boolean hasOptions() { return ((bitField0_ & 0x00000002) != 0); }
optional .google.protobuf.ServiceOptions options = 3;
Returns:The options.
/** * <code>optional .google.protobuf.ServiceOptions options = 3;</code> * @return The options. */
public com.google.protobuf.DescriptorProtos.ServiceOptions getOptions() { return options_ == null ? com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance() : options_; }
optional .google.protobuf.ServiceOptions options = 3;
/** * <code>optional .google.protobuf.ServiceOptions options = 3;</code> */
public com.google.protobuf.DescriptorProtos.ServiceOptionsOrBuilder getOptionsOrBuilder() { return options_ == null ? com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance() : options_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getMethodCount(); i++) { if (!getMethod(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasOptions()) { if (!getOptions().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < method_.size(); i++) { output.writeMessage(2, method_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getOptions()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < method_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, method_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getOptions()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.ServiceDescriptorProto)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.ServiceDescriptorProto other = (com.google.protobuf.DescriptorProtos.ServiceDescriptorProto) obj; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (!getMethodList() .equals(other.getMethodList())) return false; if (hasOptions() != other.hasOptions()) return false; if (hasOptions()) { if (!getOptions() .equals(other.getOptions())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (getMethodCount() > 0) { hash = (37 * hash) + METHOD_FIELD_NUMBER; hash = (53 * hash) + getMethodList().hashCode(); } if (hasOptions()) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptions().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto 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.ServiceDescriptorProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.ServiceDescriptorProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Describes a service.
Protobuf type google.protobuf.ServiceDescriptorProto
/** * <pre> * Describes a service. * </pre> * * Protobuf type {@code google.protobuf.ServiceDescriptorProto} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.ServiceDescriptorProto) com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceDescriptorProto_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceDescriptorProto_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.class, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMethodFieldBuilder(); getOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (methodBuilder_ == null) { method_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { methodBuilder_.clear(); } if (optionsBuilder_ == null) { options_ = null; } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceDescriptorProto_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto build() { com.google.protobuf.DescriptorProtos.ServiceDescriptorProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto buildPartial() { com.google.protobuf.DescriptorProtos.ServiceDescriptorProto result = new com.google.protobuf.DescriptorProtos.ServiceDescriptorProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (methodBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { method_ = java.util.Collections.unmodifiableList(method_); bitField0_ = (bitField0_ & ~0x00000002); } result.method_ = method_; } else { result.method_ = methodBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { if (optionsBuilder_ == null) { result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } to_bitField0_ |= 0x00000002; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.ServiceDescriptorProto) { return mergeFrom((com.google.protobuf.DescriptorProtos.ServiceDescriptorProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.ServiceDescriptorProto other) { if (other == com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (methodBuilder_ == null) { if (!other.method_.isEmpty()) { if (method_.isEmpty()) { method_ = other.method_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMethodIsMutable(); method_.addAll(other.method_); } onChanged(); } } else { if (!other.method_.isEmpty()) { if (methodBuilder_.isEmpty()) { methodBuilder_.dispose(); methodBuilder_ = null; method_ = other.method_; bitField0_ = (bitField0_ & ~0x00000002); methodBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMethodFieldBuilder() : null; } else { methodBuilder_.addAllMessages(other.method_); } } } if (other.hasOptions()) { mergeOptions(other.getOptions()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getMethodCount(); i++) { if (!getMethod(i).isInitialized()) { return false; } } if (hasOptions()) { if (!getOptions().isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.ServiceDescriptorProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = "";
optional string name = 1;
Returns:Whether the name field is set.
/** * <code>optional string name = 1;</code> * @return Whether the name field is set. */
public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); }
optional string name = 1;
Returns:The name.
/** * <code>optional string name = 1;</code> * @return The name. */
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;
Returns:The bytes for name.
/** * <code>optional string name = 1;</code> * @return The bytes for name. */
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;
Params:
  • value – The name to set.
Returns:This builder for chaining.
/** * <code>optional string name = 1;</code> * @param value The name to set. * @return This builder for chaining. */
public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; }
optional string name = 1;
Returns:This builder for chaining.
/** * <code>optional string name = 1;</code> * @return This builder for chaining. */
public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; }
optional string name = 1;
Params:
  • value – The bytes for name to set.
Returns:This builder for chaining.
/** * <code>optional string name = 1;</code> * @param value The bytes for name to set. * @return This builder for chaining. */
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<com.google.protobuf.DescriptorProtos.MethodDescriptorProto> method_ = java.util.Collections.emptyList(); private void ensureMethodIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { method_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.MethodDescriptorProto>(method_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.MethodDescriptorProto, com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder> methodBuilder_;
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.MethodDescriptorProto> getMethodList() { if (methodBuilder_ == null) { return java.util.Collections.unmodifiableList(method_); } else { return methodBuilder_.getMessageList(); } }
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public int getMethodCount() { if (methodBuilder_ == null) { return method_.size(); } else { return methodBuilder_.getCount(); } }
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public com.google.protobuf.DescriptorProtos.MethodDescriptorProto getMethod(int index) { if (methodBuilder_ == null) { return method_.get(index); } else { return methodBuilder_.getMessage(index); } }
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public Builder setMethod( int index, com.google.protobuf.DescriptorProtos.MethodDescriptorProto value) { if (methodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMethodIsMutable(); method_.set(index, value); onChanged(); } else { methodBuilder_.setMessage(index, value); } return this; }
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public Builder setMethod( int index, com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder builderForValue) { if (methodBuilder_ == null) { ensureMethodIsMutable(); method_.set(index, builderForValue.build()); onChanged(); } else { methodBuilder_.setMessage(index, builderForValue.build()); } return this; }
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public Builder addMethod(com.google.protobuf.DescriptorProtos.MethodDescriptorProto value) { if (methodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMethodIsMutable(); method_.add(value); onChanged(); } else { methodBuilder_.addMessage(value); } return this; }
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public Builder addMethod( int index, com.google.protobuf.DescriptorProtos.MethodDescriptorProto value) { if (methodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMethodIsMutable(); method_.add(index, value); onChanged(); } else { methodBuilder_.addMessage(index, value); } return this; }
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public Builder addMethod( com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder builderForValue) { if (methodBuilder_ == null) { ensureMethodIsMutable(); method_.add(builderForValue.build()); onChanged(); } else { methodBuilder_.addMessage(builderForValue.build()); } return this; }
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public Builder addMethod( int index, com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder builderForValue) { if (methodBuilder_ == null) { ensureMethodIsMutable(); method_.add(index, builderForValue.build()); onChanged(); } else { methodBuilder_.addMessage(index, builderForValue.build()); } return this; }
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public Builder addAllMethod( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.MethodDescriptorProto> values) { if (methodBuilder_ == null) { ensureMethodIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, method_); onChanged(); } else { methodBuilder_.addAllMessages(values); } return this; }
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public Builder clearMethod() { if (methodBuilder_ == null) { method_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { methodBuilder_.clear(); } return this; }
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public Builder removeMethod(int index) { if (methodBuilder_ == null) { ensureMethodIsMutable(); method_.remove(index); onChanged(); } else { methodBuilder_.remove(index); } return this; }
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder getMethodBuilder( int index) { return getMethodFieldBuilder().getBuilder(index); }
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder getMethodOrBuilder( int index) { if (methodBuilder_ == null) { return method_.get(index); } else { return methodBuilder_.getMessageOrBuilder(index); } }
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder> getMethodOrBuilderList() { if (methodBuilder_ != null) { return methodBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(method_); } }
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder addMethodBuilder() { return getMethodFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.MethodDescriptorProto.getDefaultInstance()); }
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder addMethodBuilder( int index) { return getMethodFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.MethodDescriptorProto.getDefaultInstance()); }
repeated .google.protobuf.MethodDescriptorProto method = 2;
/** * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder> getMethodBuilderList() { return getMethodFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.MethodDescriptorProto, com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder> getMethodFieldBuilder() { if (methodBuilder_ == null) { methodBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.MethodDescriptorProto, com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder>( method_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); method_ = null; } return methodBuilder_; } private com.google.protobuf.DescriptorProtos.ServiceOptions options_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.ServiceOptions, com.google.protobuf.DescriptorProtos.ServiceOptions.Builder, com.google.protobuf.DescriptorProtos.ServiceOptionsOrBuilder> optionsBuilder_;
optional .google.protobuf.ServiceOptions options = 3;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.ServiceOptions options = 3;</code> * @return Whether the options field is set. */
public boolean hasOptions() { return ((bitField0_ & 0x00000004) != 0); }
optional .google.protobuf.ServiceOptions options = 3;
Returns:The options.
/** * <code>optional .google.protobuf.ServiceOptions options = 3;</code> * @return The options. */
public com.google.protobuf.DescriptorProtos.ServiceOptions getOptions() { if (optionsBuilder_ == null) { return options_ == null ? com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance() : options_; } else { return optionsBuilder_.getMessage(); } }
optional .google.protobuf.ServiceOptions options = 3;
/** * <code>optional .google.protobuf.ServiceOptions options = 3;</code> */
public Builder setOptions(com.google.protobuf.DescriptorProtos.ServiceOptions value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } options_ = value; onChanged(); } else { optionsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; }
optional .google.protobuf.ServiceOptions options = 3;
/** * <code>optional .google.protobuf.ServiceOptions options = 3;</code> */
public Builder setOptions( com.google.protobuf.DescriptorProtos.ServiceOptions.Builder builderForValue) { if (optionsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); } else { optionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; }
optional .google.protobuf.ServiceOptions options = 3;
/** * <code>optional .google.protobuf.ServiceOptions options = 3;</code> */
public Builder mergeOptions(com.google.protobuf.DescriptorProtos.ServiceOptions value) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && options_ != null && options_ != com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance()) { options_ = com.google.protobuf.DescriptorProtos.ServiceOptions.newBuilder(options_).mergeFrom(value).buildPartial(); } else { options_ = value; } onChanged(); } else { optionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; }
optional .google.protobuf.ServiceOptions options = 3;
/** * <code>optional .google.protobuf.ServiceOptions options = 3;</code> */
public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; }
optional .google.protobuf.ServiceOptions options = 3;
/** * <code>optional .google.protobuf.ServiceOptions options = 3;</code> */
public com.google.protobuf.DescriptorProtos.ServiceOptions.Builder getOptionsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getOptionsFieldBuilder().getBuilder(); }
optional .google.protobuf.ServiceOptions options = 3;
/** * <code>optional .google.protobuf.ServiceOptions options = 3;</code> */
public com.google.protobuf.DescriptorProtos.ServiceOptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { return options_ == null ? com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance() : options_; } }
optional .google.protobuf.ServiceOptions options = 3;
/** * <code>optional .google.protobuf.ServiceOptions options = 3;</code> */
private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.ServiceOptions, com.google.protobuf.DescriptorProtos.ServiceOptions.Builder, com.google.protobuf.DescriptorProtos.ServiceOptionsOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.ServiceOptions, com.google.protobuf.DescriptorProtos.ServiceOptions.Builder, com.google.protobuf.DescriptorProtos.ServiceOptionsOrBuilder>( getOptions(), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.ServiceDescriptorProto) } // @@protoc_insertion_point(class_scope:google.protobuf.ServiceDescriptorProto) private static final com.google.protobuf.DescriptorProtos.ServiceDescriptorProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.ServiceDescriptorProto(); } public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<ServiceDescriptorProto> PARSER = new com.google.protobuf.AbstractParser<ServiceDescriptorProto>() { @java.lang.Override public ServiceDescriptorProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ServiceDescriptorProto(input, extensionRegistry); } }; public static com.google.protobuf.Parser<ServiceDescriptorProto> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ServiceDescriptorProto> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MethodDescriptorProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.MethodDescriptorProto) com.google.protobuf.MessageOrBuilder {
optional string name = 1;
Returns:Whether the name field is set.
/** * <code>optional string name = 1;</code> * @return Whether the name field is set. */
boolean hasName();
optional string name = 1;
Returns:The name.
/** * <code>optional string name = 1;</code> * @return The name. */
java.lang.String getName();
optional string name = 1;
Returns:The bytes for name.
/** * <code>optional string name = 1;</code> * @return The bytes for name. */
com.google.protobuf.ByteString getNameBytes();
Input and output type names.  These are resolved in the same way as
FieldDescriptorProto.type_name, but must refer to a message type.
optional string input_type = 2;
Returns:Whether the inputType field is set.
/** * <pre> * Input and output type names. These are resolved in the same way as * FieldDescriptorProto.type_name, but must refer to a message type. * </pre> * * <code>optional string input_type = 2;</code> * @return Whether the inputType field is set. */
boolean hasInputType();
Input and output type names.  These are resolved in the same way as
FieldDescriptorProto.type_name, but must refer to a message type.
optional string input_type = 2;
Returns:The inputType.
/** * <pre> * Input and output type names. These are resolved in the same way as * FieldDescriptorProto.type_name, but must refer to a message type. * </pre> * * <code>optional string input_type = 2;</code> * @return The inputType. */
java.lang.String getInputType();
Input and output type names.  These are resolved in the same way as
FieldDescriptorProto.type_name, but must refer to a message type.
optional string input_type = 2;
Returns:The bytes for inputType.
/** * <pre> * Input and output type names. These are resolved in the same way as * FieldDescriptorProto.type_name, but must refer to a message type. * </pre> * * <code>optional string input_type = 2;</code> * @return The bytes for inputType. */
com.google.protobuf.ByteString getInputTypeBytes();
optional string output_type = 3;
Returns:Whether the outputType field is set.
/** * <code>optional string output_type = 3;</code> * @return Whether the outputType field is set. */
boolean hasOutputType();
optional string output_type = 3;
Returns:The outputType.
/** * <code>optional string output_type = 3;</code> * @return The outputType. */
java.lang.String getOutputType();
optional string output_type = 3;
Returns:The bytes for outputType.
/** * <code>optional string output_type = 3;</code> * @return The bytes for outputType. */
com.google.protobuf.ByteString getOutputTypeBytes();
optional .google.protobuf.MethodOptions options = 4;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.MethodOptions options = 4;</code> * @return Whether the options field is set. */
boolean hasOptions();
optional .google.protobuf.MethodOptions options = 4;
Returns:The options.
/** * <code>optional .google.protobuf.MethodOptions options = 4;</code> * @return The options. */
com.google.protobuf.DescriptorProtos.MethodOptions getOptions();
optional .google.protobuf.MethodOptions options = 4;
/** * <code>optional .google.protobuf.MethodOptions options = 4;</code> */
com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder getOptionsOrBuilder();
Identifies if client streams multiple client messages
optional bool client_streaming = 5 [default = false];
Returns:Whether the clientStreaming field is set.
/** * <pre> * Identifies if client streams multiple client messages * </pre> * * <code>optional bool client_streaming = 5 [default = false];</code> * @return Whether the clientStreaming field is set. */
boolean hasClientStreaming();
Identifies if client streams multiple client messages
optional bool client_streaming = 5 [default = false];
Returns:The clientStreaming.
/** * <pre> * Identifies if client streams multiple client messages * </pre> * * <code>optional bool client_streaming = 5 [default = false];</code> * @return The clientStreaming. */
boolean getClientStreaming();
Identifies if server streams multiple server messages
optional bool server_streaming = 6 [default = false];
Returns:Whether the serverStreaming field is set.
/** * <pre> * Identifies if server streams multiple server messages * </pre> * * <code>optional bool server_streaming = 6 [default = false];</code> * @return Whether the serverStreaming field is set. */
boolean hasServerStreaming();
Identifies if server streams multiple server messages
optional bool server_streaming = 6 [default = false];
Returns:The serverStreaming.
/** * <pre> * Identifies if server streams multiple server messages * </pre> * * <code>optional bool server_streaming = 6 [default = false];</code> * @return The serverStreaming. */
boolean getServerStreaming(); }
Describes a method of a service.
Protobuf type google.protobuf.MethodDescriptorProto
/** * <pre> * Describes a method of a service. * </pre> * * Protobuf type {@code google.protobuf.MethodDescriptorProto} */
public static final class MethodDescriptorProto extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.protobuf.MethodDescriptorProto) MethodDescriptorProtoOrBuilder { private static final long serialVersionUID = 0L; // Use MethodDescriptorProto.newBuilder() to construct. private MethodDescriptorProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private MethodDescriptorProto() { name_ = ""; inputType_ = ""; outputType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MethodDescriptorProto(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MethodDescriptorProto( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; 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; inputType_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; outputType_ = bs; break; } case 34: { com.google.protobuf.DescriptorProtos.MethodOptions.Builder subBuilder = null; if (((bitField0_ & 0x00000008) != 0)) { subBuilder = options_.toBuilder(); } options_ = input.readMessage(com.google.protobuf.DescriptorProtos.MethodOptions.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(options_); options_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 40: { bitField0_ |= 0x00000010; clientStreaming_ = input.readBool(); break; } case 48: { bitField0_ |= 0x00000020; serverStreaming_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).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_MethodDescriptorProto_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodDescriptorProto_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.MethodDescriptorProto.class, com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_;
optional string name = 1;
Returns:Whether the name field is set.
/** * <code>optional string name = 1;</code> * @return Whether the name field is set. */
public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); }
optional string name = 1;
Returns:The name.
/** * <code>optional string name = 1;</code> * @return The name. */
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;
Returns:The bytes for name.
/** * <code>optional string name = 1;</code> * @return The bytes for name. */
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 INPUT_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object inputType_;
Input and output type names.  These are resolved in the same way as
FieldDescriptorProto.type_name, but must refer to a message type.
optional string input_type = 2;
Returns:Whether the inputType field is set.
/** * <pre> * Input and output type names. These are resolved in the same way as * FieldDescriptorProto.type_name, but must refer to a message type. * </pre> * * <code>optional string input_type = 2;</code> * @return Whether the inputType field is set. */
public boolean hasInputType() { return ((bitField0_ & 0x00000002) != 0); }
Input and output type names.  These are resolved in the same way as
FieldDescriptorProto.type_name, but must refer to a message type.
optional string input_type = 2;
Returns:The inputType.
/** * <pre> * Input and output type names. These are resolved in the same way as * FieldDescriptorProto.type_name, but must refer to a message type. * </pre> * * <code>optional string input_type = 2;</code> * @return The inputType. */
public java.lang.String getInputType() { java.lang.Object ref = inputType_; 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()) { inputType_ = s; } return s; } }
Input and output type names.  These are resolved in the same way as
FieldDescriptorProto.type_name, but must refer to a message type.
optional string input_type = 2;
Returns:The bytes for inputType.
/** * <pre> * Input and output type names. These are resolved in the same way as * FieldDescriptorProto.type_name, but must refer to a message type. * </pre> * * <code>optional string input_type = 2;</code> * @return The bytes for inputType. */
public com.google.protobuf.ByteString getInputTypeBytes() { java.lang.Object ref = inputType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); inputType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OUTPUT_TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object outputType_;
optional string output_type = 3;
Returns:Whether the outputType field is set.
/** * <code>optional string output_type = 3;</code> * @return Whether the outputType field is set. */
public boolean hasOutputType() { return ((bitField0_ & 0x00000004) != 0); }
optional string output_type = 3;
Returns:The outputType.
/** * <code>optional string output_type = 3;</code> * @return The outputType. */
public java.lang.String getOutputType() { java.lang.Object ref = outputType_; 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()) { outputType_ = s; } return s; } }
optional string output_type = 3;
Returns:The bytes for outputType.
/** * <code>optional string output_type = 3;</code> * @return The bytes for outputType. */
public com.google.protobuf.ByteString getOutputTypeBytes() { java.lang.Object ref = outputType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); outputType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPTIONS_FIELD_NUMBER = 4; private com.google.protobuf.DescriptorProtos.MethodOptions options_;
optional .google.protobuf.MethodOptions options = 4;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.MethodOptions options = 4;</code> * @return Whether the options field is set. */
public boolean hasOptions() { return ((bitField0_ & 0x00000008) != 0); }
optional .google.protobuf.MethodOptions options = 4;
Returns:The options.
/** * <code>optional .google.protobuf.MethodOptions options = 4;</code> * @return The options. */
public com.google.protobuf.DescriptorProtos.MethodOptions getOptions() { return options_ == null ? com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance() : options_; }
optional .google.protobuf.MethodOptions options = 4;
/** * <code>optional .google.protobuf.MethodOptions options = 4;</code> */
public com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder getOptionsOrBuilder() { return options_ == null ? com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance() : options_; } public static final int CLIENT_STREAMING_FIELD_NUMBER = 5; private boolean clientStreaming_;
Identifies if client streams multiple client messages
optional bool client_streaming = 5 [default = false];
Returns:Whether the clientStreaming field is set.
/** * <pre> * Identifies if client streams multiple client messages * </pre> * * <code>optional bool client_streaming = 5 [default = false];</code> * @return Whether the clientStreaming field is set. */
public boolean hasClientStreaming() { return ((bitField0_ & 0x00000010) != 0); }
Identifies if client streams multiple client messages
optional bool client_streaming = 5 [default = false];
Returns:The clientStreaming.
/** * <pre> * Identifies if client streams multiple client messages * </pre> * * <code>optional bool client_streaming = 5 [default = false];</code> * @return The clientStreaming. */
public boolean getClientStreaming() { return clientStreaming_; } public static final int SERVER_STREAMING_FIELD_NUMBER = 6; private boolean serverStreaming_;
Identifies if server streams multiple server messages
optional bool server_streaming = 6 [default = false];
Returns:Whether the serverStreaming field is set.
/** * <pre> * Identifies if server streams multiple server messages * </pre> * * <code>optional bool server_streaming = 6 [default = false];</code> * @return Whether the serverStreaming field is set. */
public boolean hasServerStreaming() { return ((bitField0_ & 0x00000020) != 0); }
Identifies if server streams multiple server messages
optional bool server_streaming = 6 [default = false];
Returns:The serverStreaming.
/** * <pre> * Identifies if server streams multiple server messages * </pre> * * <code>optional bool server_streaming = 6 [default = false];</code> * @return The serverStreaming. */
public boolean getServerStreaming() { return serverStreaming_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasOptions()) { if (!getOptions().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputType_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputType_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getOptions()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(5, clientStreaming_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(6, serverStreaming_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputType_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputType_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getOptions()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, clientStreaming_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, serverStreaming_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.MethodDescriptorProto)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.MethodDescriptorProto other = (com.google.protobuf.DescriptorProtos.MethodDescriptorProto) obj; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasInputType() != other.hasInputType()) return false; if (hasInputType()) { if (!getInputType() .equals(other.getInputType())) return false; } if (hasOutputType() != other.hasOutputType()) return false; if (hasOutputType()) { if (!getOutputType() .equals(other.getOutputType())) return false; } if (hasOptions() != other.hasOptions()) return false; if (hasOptions()) { if (!getOptions() .equals(other.getOptions())) return false; } if (hasClientStreaming() != other.hasClientStreaming()) return false; if (hasClientStreaming()) { if (getClientStreaming() != other.getClientStreaming()) return false; } if (hasServerStreaming() != other.hasServerStreaming()) return false; if (hasServerStreaming()) { if (getServerStreaming() != other.getServerStreaming()) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasInputType()) { hash = (37 * hash) + INPUT_TYPE_FIELD_NUMBER; hash = (53 * hash) + getInputType().hashCode(); } if (hasOutputType()) { hash = (37 * hash) + OUTPUT_TYPE_FIELD_NUMBER; hash = (53 * hash) + getOutputType().hashCode(); } if (hasOptions()) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptions().hashCode(); } if (hasClientStreaming()) { hash = (37 * hash) + CLIENT_STREAMING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getClientStreaming()); } if (hasServerStreaming()) { hash = (37 * hash) + SERVER_STREAMING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getServerStreaming()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto 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.MethodDescriptorProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.MethodDescriptorProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Describes a method of a service.
Protobuf type google.protobuf.MethodDescriptorProto
/** * <pre> * Describes a method of a service. * </pre> * * Protobuf type {@code google.protobuf.MethodDescriptorProto} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.MethodDescriptorProto) com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodDescriptorProto_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodDescriptorProto_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.MethodDescriptorProto.class, com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.MethodDescriptorProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); inputType_ = ""; bitField0_ = (bitField0_ & ~0x00000002); outputType_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (optionsBuilder_ == null) { options_ = null; } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); clientStreaming_ = false; bitField0_ = (bitField0_ & ~0x00000010); serverStreaming_ = false; bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodDescriptorProto_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.MethodDescriptorProto getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.MethodDescriptorProto.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.MethodDescriptorProto build() { com.google.protobuf.DescriptorProtos.MethodDescriptorProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.MethodDescriptorProto buildPartial() { com.google.protobuf.DescriptorProtos.MethodDescriptorProto result = new com.google.protobuf.DescriptorProtos.MethodDescriptorProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.inputType_ = inputType_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.outputType_ = outputType_; if (((from_bitField0_ & 0x00000008) != 0)) { if (optionsBuilder_ == null) { result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.clientStreaming_ = clientStreaming_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.serverStreaming_ = serverStreaming_; to_bitField0_ |= 0x00000020; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.MethodDescriptorProto) { return mergeFrom((com.google.protobuf.DescriptorProtos.MethodDescriptorProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.MethodDescriptorProto other) { if (other == com.google.protobuf.DescriptorProtos.MethodDescriptorProto.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasInputType()) { bitField0_ |= 0x00000002; inputType_ = other.inputType_; onChanged(); } if (other.hasOutputType()) { bitField0_ |= 0x00000004; outputType_ = other.outputType_; onChanged(); } if (other.hasOptions()) { mergeOptions(other.getOptions()); } if (other.hasClientStreaming()) { setClientStreaming(other.getClientStreaming()); } if (other.hasServerStreaming()) { setServerStreaming(other.getServerStreaming()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (hasOptions()) { if (!getOptions().isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.MethodDescriptorProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.MethodDescriptorProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = "";
optional string name = 1;
Returns:Whether the name field is set.
/** * <code>optional string name = 1;</code> * @return Whether the name field is set. */
public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); }
optional string name = 1;
Returns:The name.
/** * <code>optional string name = 1;</code> * @return The name. */
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;
Returns:The bytes for name.
/** * <code>optional string name = 1;</code> * @return The bytes for name. */
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;
Params:
  • value – The name to set.
Returns:This builder for chaining.
/** * <code>optional string name = 1;</code> * @param value The name to set. * @return This builder for chaining. */
public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; }
optional string name = 1;
Returns:This builder for chaining.
/** * <code>optional string name = 1;</code> * @return This builder for chaining. */
public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; }
optional string name = 1;
Params:
  • value – The bytes for name to set.
Returns:This builder for chaining.
/** * <code>optional string name = 1;</code> * @param value The bytes for name to set. * @return This builder for chaining. */
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 inputType_ = "";
Input and output type names.  These are resolved in the same way as
FieldDescriptorProto.type_name, but must refer to a message type.
optional string input_type = 2;
Returns:Whether the inputType field is set.
/** * <pre> * Input and output type names. These are resolved in the same way as * FieldDescriptorProto.type_name, but must refer to a message type. * </pre> * * <code>optional string input_type = 2;</code> * @return Whether the inputType field is set. */
public boolean hasInputType() { return ((bitField0_ & 0x00000002) != 0); }
Input and output type names.  These are resolved in the same way as
FieldDescriptorProto.type_name, but must refer to a message type.
optional string input_type = 2;
Returns:The inputType.
/** * <pre> * Input and output type names. These are resolved in the same way as * FieldDescriptorProto.type_name, but must refer to a message type. * </pre> * * <code>optional string input_type = 2;</code> * @return The inputType. */
public java.lang.String getInputType() { java.lang.Object ref = inputType_; 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()) { inputType_ = s; } return s; } else { return (java.lang.String) ref; } }
Input and output type names.  These are resolved in the same way as
FieldDescriptorProto.type_name, but must refer to a message type.
optional string input_type = 2;
Returns:The bytes for inputType.
/** * <pre> * Input and output type names. These are resolved in the same way as * FieldDescriptorProto.type_name, but must refer to a message type. * </pre> * * <code>optional string input_type = 2;</code> * @return The bytes for inputType. */
public com.google.protobuf.ByteString getInputTypeBytes() { java.lang.Object ref = inputType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); inputType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
Input and output type names.  These are resolved in the same way as
FieldDescriptorProto.type_name, but must refer to a message type.
optional string input_type = 2;
Params:
  • value – The inputType to set.
Returns:This builder for chaining.
/** * <pre> * Input and output type names. These are resolved in the same way as * FieldDescriptorProto.type_name, but must refer to a message type. * </pre> * * <code>optional string input_type = 2;</code> * @param value The inputType to set. * @return This builder for chaining. */
public Builder setInputType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; inputType_ = value; onChanged(); return this; }
Input and output type names.  These are resolved in the same way as
FieldDescriptorProto.type_name, but must refer to a message type.
optional string input_type = 2;
Returns:This builder for chaining.
/** * <pre> * Input and output type names. These are resolved in the same way as * FieldDescriptorProto.type_name, but must refer to a message type. * </pre> * * <code>optional string input_type = 2;</code> * @return This builder for chaining. */
public Builder clearInputType() { bitField0_ = (bitField0_ & ~0x00000002); inputType_ = getDefaultInstance().getInputType(); onChanged(); return this; }
Input and output type names.  These are resolved in the same way as
FieldDescriptorProto.type_name, but must refer to a message type.
optional string input_type = 2;
Params:
  • value – The bytes for inputType to set.
Returns:This builder for chaining.
/** * <pre> * Input and output type names. These are resolved in the same way as * FieldDescriptorProto.type_name, but must refer to a message type. * </pre> * * <code>optional string input_type = 2;</code> * @param value The bytes for inputType to set. * @return This builder for chaining. */
public Builder setInputTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; inputType_ = value; onChanged(); return this; } private java.lang.Object outputType_ = "";
optional string output_type = 3;
Returns:Whether the outputType field is set.
/** * <code>optional string output_type = 3;</code> * @return Whether the outputType field is set. */
public boolean hasOutputType() { return ((bitField0_ & 0x00000004) != 0); }
optional string output_type = 3;
Returns:The outputType.
/** * <code>optional string output_type = 3;</code> * @return The outputType. */
public java.lang.String getOutputType() { java.lang.Object ref = outputType_; 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()) { outputType_ = s; } return s; } else { return (java.lang.String) ref; } }
optional string output_type = 3;
Returns:The bytes for outputType.
/** * <code>optional string output_type = 3;</code> * @return The bytes for outputType. */
public com.google.protobuf.ByteString getOutputTypeBytes() { java.lang.Object ref = outputType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); outputType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
optional string output_type = 3;
Params:
  • value – The outputType to set.
Returns:This builder for chaining.
/** * <code>optional string output_type = 3;</code> * @param value The outputType to set. * @return This builder for chaining. */
public Builder setOutputType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; outputType_ = value; onChanged(); return this; }
optional string output_type = 3;
Returns:This builder for chaining.
/** * <code>optional string output_type = 3;</code> * @return This builder for chaining. */
public Builder clearOutputType() { bitField0_ = (bitField0_ & ~0x00000004); outputType_ = getDefaultInstance().getOutputType(); onChanged(); return this; }
optional string output_type = 3;
Params:
  • value – The bytes for outputType to set.
Returns:This builder for chaining.
/** * <code>optional string output_type = 3;</code> * @param value The bytes for outputType to set. * @return This builder for chaining. */
public Builder setOutputTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; outputType_ = value; onChanged(); return this; } private com.google.protobuf.DescriptorProtos.MethodOptions options_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.MethodOptions, com.google.protobuf.DescriptorProtos.MethodOptions.Builder, com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder> optionsBuilder_;
optional .google.protobuf.MethodOptions options = 4;
Returns:Whether the options field is set.
/** * <code>optional .google.protobuf.MethodOptions options = 4;</code> * @return Whether the options field is set. */
public boolean hasOptions() { return ((bitField0_ & 0x00000008) != 0); }
optional .google.protobuf.MethodOptions options = 4;
Returns:The options.
/** * <code>optional .google.protobuf.MethodOptions options = 4;</code> * @return The options. */
public com.google.protobuf.DescriptorProtos.MethodOptions getOptions() { if (optionsBuilder_ == null) { return options_ == null ? com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance() : options_; } else { return optionsBuilder_.getMessage(); } }
optional .google.protobuf.MethodOptions options = 4;
/** * <code>optional .google.protobuf.MethodOptions options = 4;</code> */
public Builder setOptions(com.google.protobuf.DescriptorProtos.MethodOptions value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } options_ = value; onChanged(); } else { optionsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; }
optional .google.protobuf.MethodOptions options = 4;
/** * <code>optional .google.protobuf.MethodOptions options = 4;</code> */
public Builder setOptions( com.google.protobuf.DescriptorProtos.MethodOptions.Builder builderForValue) { if (optionsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); } else { optionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; }
optional .google.protobuf.MethodOptions options = 4;
/** * <code>optional .google.protobuf.MethodOptions options = 4;</code> */
public Builder mergeOptions(com.google.protobuf.DescriptorProtos.MethodOptions value) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && options_ != null && options_ != com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance()) { options_ = com.google.protobuf.DescriptorProtos.MethodOptions.newBuilder(options_).mergeFrom(value).buildPartial(); } else { options_ = value; } onChanged(); } else { optionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; }
optional .google.protobuf.MethodOptions options = 4;
/** * <code>optional .google.protobuf.MethodOptions options = 4;</code> */
public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; }
optional .google.protobuf.MethodOptions options = 4;
/** * <code>optional .google.protobuf.MethodOptions options = 4;</code> */
public com.google.protobuf.DescriptorProtos.MethodOptions.Builder getOptionsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getOptionsFieldBuilder().getBuilder(); }
optional .google.protobuf.MethodOptions options = 4;
/** * <code>optional .google.protobuf.MethodOptions options = 4;</code> */
public com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { return options_ == null ? com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance() : options_; } }
optional .google.protobuf.MethodOptions options = 4;
/** * <code>optional .google.protobuf.MethodOptions options = 4;</code> */
private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.MethodOptions, com.google.protobuf.DescriptorProtos.MethodOptions.Builder, com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.MethodOptions, com.google.protobuf.DescriptorProtos.MethodOptions.Builder, com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder>( getOptions(), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } private boolean clientStreaming_ ;
Identifies if client streams multiple client messages
optional bool client_streaming = 5 [default = false];
Returns:Whether the clientStreaming field is set.
/** * <pre> * Identifies if client streams multiple client messages * </pre> * * <code>optional bool client_streaming = 5 [default = false];</code> * @return Whether the clientStreaming field is set. */
public boolean hasClientStreaming() { return ((bitField0_ & 0x00000010) != 0); }
Identifies if client streams multiple client messages
optional bool client_streaming = 5 [default = false];
Returns:The clientStreaming.
/** * <pre> * Identifies if client streams multiple client messages * </pre> * * <code>optional bool client_streaming = 5 [default = false];</code> * @return The clientStreaming. */
public boolean getClientStreaming() { return clientStreaming_; }
Identifies if client streams multiple client messages
optional bool client_streaming = 5 [default = false];
Params:
  • value – The clientStreaming to set.
Returns:This builder for chaining.
/** * <pre> * Identifies if client streams multiple client messages * </pre> * * <code>optional bool client_streaming = 5 [default = false];</code> * @param value The clientStreaming to set. * @return This builder for chaining. */
public Builder setClientStreaming(boolean value) { bitField0_ |= 0x00000010; clientStreaming_ = value; onChanged(); return this; }
Identifies if client streams multiple client messages
optional bool client_streaming = 5 [default = false];
Returns:This builder for chaining.
/** * <pre> * Identifies if client streams multiple client messages * </pre> * * <code>optional bool client_streaming = 5 [default = false];</code> * @return This builder for chaining. */
public Builder clearClientStreaming() { bitField0_ = (bitField0_ & ~0x00000010); clientStreaming_ = false; onChanged(); return this; } private boolean serverStreaming_ ;
Identifies if server streams multiple server messages
optional bool server_streaming = 6 [default = false];
Returns:Whether the serverStreaming field is set.
/** * <pre> * Identifies if server streams multiple server messages * </pre> * * <code>optional bool server_streaming = 6 [default = false];</code> * @return Whether the serverStreaming field is set. */
public boolean hasServerStreaming() { return ((bitField0_ & 0x00000020) != 0); }
Identifies if server streams multiple server messages
optional bool server_streaming = 6 [default = false];
Returns:The serverStreaming.
/** * <pre> * Identifies if server streams multiple server messages * </pre> * * <code>optional bool server_streaming = 6 [default = false];</code> * @return The serverStreaming. */
public boolean getServerStreaming() { return serverStreaming_; }
Identifies if server streams multiple server messages
optional bool server_streaming = 6 [default = false];
Params:
  • value – The serverStreaming to set.
Returns:This builder for chaining.
/** * <pre> * Identifies if server streams multiple server messages * </pre> * * <code>optional bool server_streaming = 6 [default = false];</code> * @param value The serverStreaming to set. * @return This builder for chaining. */
public Builder setServerStreaming(boolean value) { bitField0_ |= 0x00000020; serverStreaming_ = value; onChanged(); return this; }
Identifies if server streams multiple server messages
optional bool server_streaming = 6 [default = false];
Returns:This builder for chaining.
/** * <pre> * Identifies if server streams multiple server messages * </pre> * * <code>optional bool server_streaming = 6 [default = false];</code> * @return This builder for chaining. */
public Builder clearServerStreaming() { bitField0_ = (bitField0_ & ~0x00000020); serverStreaming_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.MethodDescriptorProto) } // @@protoc_insertion_point(class_scope:google.protobuf.MethodDescriptorProto) private static final com.google.protobuf.DescriptorProtos.MethodDescriptorProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.MethodDescriptorProto(); } public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<MethodDescriptorProto> PARSER = new com.google.protobuf.AbstractParser<MethodDescriptorProto>() { @java.lang.Override public MethodDescriptorProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MethodDescriptorProto(input, extensionRegistry); } }; public static com.google.protobuf.Parser<MethodDescriptorProto> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<MethodDescriptorProto> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.MethodDescriptorProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FileOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.FileOptions) com.google.protobuf.GeneratedMessageV3. ExtendableMessageOrBuilder<FileOptions> {
Sets the Java package where classes generated from this .proto will be
placed.  By default, the proto package is used, but this is often
inappropriate because proto packages do not normally start with backwards
domain names.
optional string java_package = 1;
Returns:Whether the javaPackage field is set.
/** * <pre> * Sets the Java package where classes generated from this .proto will be * placed. By default, the proto package is used, but this is often * inappropriate because proto packages do not normally start with backwards * domain names. * </pre> * * <code>optional string java_package = 1;</code> * @return Whether the javaPackage field is set. */
boolean hasJavaPackage();
Sets the Java package where classes generated from this .proto will be
placed.  By default, the proto package is used, but this is often
inappropriate because proto packages do not normally start with backwards
domain names.
optional string java_package = 1;
Returns:The javaPackage.
/** * <pre> * Sets the Java package where classes generated from this .proto will be * placed. By default, the proto package is used, but this is often * inappropriate because proto packages do not normally start with backwards * domain names. * </pre> * * <code>optional string java_package = 1;</code> * @return The javaPackage. */
java.lang.String getJavaPackage();
Sets the Java package where classes generated from this .proto will be
placed.  By default, the proto package is used, but this is often
inappropriate because proto packages do not normally start with backwards
domain names.
optional string java_package = 1;
Returns:The bytes for javaPackage.
/** * <pre> * Sets the Java package where classes generated from this .proto will be * placed. By default, the proto package is used, but this is often * inappropriate because proto packages do not normally start with backwards * domain names. * </pre> * * <code>optional string java_package = 1;</code> * @return The bytes for javaPackage. */
com.google.protobuf.ByteString getJavaPackageBytes();
If set, all the classes from the .proto file are wrapped in a single
outer class with the given name.  This applies to both Proto1
(equivalent to the old "--one_java_file" option) and Proto2 (where
a .proto always translates to a single class, but you may want to
explicitly choose the class name).
optional string java_outer_classname = 8;
Returns:Whether the javaOuterClassname field is set.
/** * <pre> * If set, all the classes from the .proto file are wrapped in a single * outer class with the given name. This applies to both Proto1 * (equivalent to the old "--one_java_file" option) and Proto2 (where * a .proto always translates to a single class, but you may want to * explicitly choose the class name). * </pre> * * <code>optional string java_outer_classname = 8;</code> * @return Whether the javaOuterClassname field is set. */
boolean hasJavaOuterClassname();
If set, all the classes from the .proto file are wrapped in a single
outer class with the given name.  This applies to both Proto1
(equivalent to the old "--one_java_file" option) and Proto2 (where
a .proto always translates to a single class, but you may want to
explicitly choose the class name).
optional string java_outer_classname = 8;
Returns:The javaOuterClassname.
/** * <pre> * If set, all the classes from the .proto file are wrapped in a single * outer class with the given name. This applies to both Proto1 * (equivalent to the old "--one_java_file" option) and Proto2 (where * a .proto always translates to a single class, but you may want to * explicitly choose the class name). * </pre> * * <code>optional string java_outer_classname = 8;</code> * @return The javaOuterClassname. */
java.lang.String getJavaOuterClassname();
If set, all the classes from the .proto file are wrapped in a single
outer class with the given name.  This applies to both Proto1
(equivalent to the old "--one_java_file" option) and Proto2 (where
a .proto always translates to a single class, but you may want to
explicitly choose the class name).
optional string java_outer_classname = 8;
Returns:The bytes for javaOuterClassname.
/** * <pre> * If set, all the classes from the .proto file are wrapped in a single * outer class with the given name. This applies to both Proto1 * (equivalent to the old "--one_java_file" option) and Proto2 (where * a .proto always translates to a single class, but you may want to * explicitly choose the class name). * </pre> * * <code>optional string java_outer_classname = 8;</code> * @return The bytes for javaOuterClassname. */
com.google.protobuf.ByteString getJavaOuterClassnameBytes();
If set true, then the Java code generator will generate a separate .java
file for each top-level message, enum, and service defined in the .proto
file.  Thus, these types will *not* be nested inside the outer class
named by java_outer_classname.  However, the outer class will still be
generated to contain the file's getDescriptor() method as well as any
top-level extensions defined in the file.
optional bool java_multiple_files = 10 [default = false];
Returns:Whether the javaMultipleFiles field is set.
/** * <pre> * If set true, then the Java code generator will generate a separate .java * file for each top-level message, enum, and service defined in the .proto * file. Thus, these types will *not* be nested inside the outer class * named by java_outer_classname. However, the outer class will still be * generated to contain the file's getDescriptor() method as well as any * top-level extensions defined in the file. * </pre> * * <code>optional bool java_multiple_files = 10 [default = false];</code> * @return Whether the javaMultipleFiles field is set. */
boolean hasJavaMultipleFiles();
If set true, then the Java code generator will generate a separate .java
file for each top-level message, enum, and service defined in the .proto
file.  Thus, these types will *not* be nested inside the outer class
named by java_outer_classname.  However, the outer class will still be
generated to contain the file's getDescriptor() method as well as any
top-level extensions defined in the file.
optional bool java_multiple_files = 10 [default = false];
Returns:The javaMultipleFiles.
/** * <pre> * If set true, then the Java code generator will generate a separate .java * file for each top-level message, enum, and service defined in the .proto * file. Thus, these types will *not* be nested inside the outer class * named by java_outer_classname. However, the outer class will still be * generated to contain the file's getDescriptor() method as well as any * top-level extensions defined in the file. * </pre> * * <code>optional bool java_multiple_files = 10 [default = false];</code> * @return The javaMultipleFiles. */
boolean getJavaMultipleFiles();
This option does nothing.
optional bool java_generate_equals_and_hash = 20 [deprecated = true];
Returns:Whether the javaGenerateEqualsAndHash field is set.
/** * <pre> * This option does nothing. * </pre> * * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> * @return Whether the javaGenerateEqualsAndHash field is set. */
@java.lang.Deprecated boolean hasJavaGenerateEqualsAndHash();
This option does nothing.
optional bool java_generate_equals_and_hash = 20 [deprecated = true];
Returns:The javaGenerateEqualsAndHash.
/** * <pre> * This option does nothing. * </pre> * * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> * @return The javaGenerateEqualsAndHash. */
@java.lang.Deprecated boolean getJavaGenerateEqualsAndHash();
If set true, then the Java2 code generator will generate code that
throws an exception whenever an attempt is made to assign a non-UTF-8
byte sequence to a string field.
Message reflection will do the same.
However, an extension field still accepts non-UTF-8 byte sequences.
This option has no effect on when used with the lite runtime.
optional bool java_string_check_utf8 = 27 [default = false];
Returns:Whether the javaStringCheckUtf8 field is set.
/** * <pre> * If set true, then the Java2 code generator will generate code that * throws an exception whenever an attempt is made to assign a non-UTF-8 * byte sequence to a string field. * Message reflection will do the same. * However, an extension field still accepts non-UTF-8 byte sequences. * This option has no effect on when used with the lite runtime. * </pre> * * <code>optional bool java_string_check_utf8 = 27 [default = false];</code> * @return Whether the javaStringCheckUtf8 field is set. */
boolean hasJavaStringCheckUtf8();
If set true, then the Java2 code generator will generate code that
throws an exception whenever an attempt is made to assign a non-UTF-8
byte sequence to a string field.
Message reflection will do the same.
However, an extension field still accepts non-UTF-8 byte sequences.
This option has no effect on when used with the lite runtime.
optional bool java_string_check_utf8 = 27 [default = false];
Returns:The javaStringCheckUtf8.
/** * <pre> * If set true, then the Java2 code generator will generate code that * throws an exception whenever an attempt is made to assign a non-UTF-8 * byte sequence to a string field. * Message reflection will do the same. * However, an extension field still accepts non-UTF-8 byte sequences. * This option has no effect on when used with the lite runtime. * </pre> * * <code>optional bool java_string_check_utf8 = 27 [default = false];</code> * @return The javaStringCheckUtf8. */
boolean getJavaStringCheckUtf8();
optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
Returns:Whether the optimizeFor field is set.
/** * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> * @return Whether the optimizeFor field is set. */
boolean hasOptimizeFor();
optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
Returns:The optimizeFor.
/** * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> * @return The optimizeFor. */
com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode getOptimizeFor();
Sets the Go package where structs generated from this .proto will be
placed. If omitted, the Go package will be derived from the following:
  - The basename of the package import path, if provided.
  - Otherwise, the package statement in the .proto file, if present.
  - Otherwise, the basename of the .proto file, without extension.
optional string go_package = 11;
Returns:Whether the goPackage field is set.
/** * <pre> * Sets the Go package where structs generated from this .proto will be * placed. If omitted, the Go package will be derived from the following: * - The basename of the package import path, if provided. * - Otherwise, the package statement in the .proto file, if present. * - Otherwise, the basename of the .proto file, without extension. * </pre> * * <code>optional string go_package = 11;</code> * @return Whether the goPackage field is set. */
boolean hasGoPackage();
Sets the Go package where structs generated from this .proto will be
placed. If omitted, the Go package will be derived from the following:
  - The basename of the package import path, if provided.
  - Otherwise, the package statement in the .proto file, if present.
  - Otherwise, the basename of the .proto file, without extension.
optional string go_package = 11;
Returns:The goPackage.
/** * <pre> * Sets the Go package where structs generated from this .proto will be * placed. If omitted, the Go package will be derived from the following: * - The basename of the package import path, if provided. * - Otherwise, the package statement in the .proto file, if present. * - Otherwise, the basename of the .proto file, without extension. * </pre> * * <code>optional string go_package = 11;</code> * @return The goPackage. */
java.lang.String getGoPackage();
Sets the Go package where structs generated from this .proto will be
placed. If omitted, the Go package will be derived from the following:
  - The basename of the package import path, if provided.
  - Otherwise, the package statement in the .proto file, if present.
  - Otherwise, the basename of the .proto file, without extension.
optional string go_package = 11;
Returns:The bytes for goPackage.
/** * <pre> * Sets the Go package where structs generated from this .proto will be * placed. If omitted, the Go package will be derived from the following: * - The basename of the package import path, if provided. * - Otherwise, the package statement in the .proto file, if present. * - Otherwise, the basename of the .proto file, without extension. * </pre> * * <code>optional string go_package = 11;</code> * @return The bytes for goPackage. */
com.google.protobuf.ByteString getGoPackageBytes();
Should generic services be generated in each language?  "Generic" services
are not specific to any particular RPC system.  They are generated by the
main code generators in each language (without additional plugins).
Generic services were the only kind of service generation supported by
early versions of google.protobuf.
Generic services are now considered deprecated in favor of using plugins
that generate code specific to your particular RPC system.  Therefore,
these default to false.  Old code which depends on generic services should
explicitly set them to true.
optional bool cc_generic_services = 16 [default = false];
Returns:Whether the ccGenericServices field is set.
/** * <pre> * Should generic services be generated in each language? "Generic" services * are not specific to any particular RPC system. They are generated by the * main code generators in each language (without additional plugins). * Generic services were the only kind of service generation supported by * early versions of google.protobuf. * Generic services are now considered deprecated in favor of using plugins * that generate code specific to your particular RPC system. Therefore, * these default to false. Old code which depends on generic services should * explicitly set them to true. * </pre> * * <code>optional bool cc_generic_services = 16 [default = false];</code> * @return Whether the ccGenericServices field is set. */
boolean hasCcGenericServices();
Should generic services be generated in each language?  "Generic" services
are not specific to any particular RPC system.  They are generated by the
main code generators in each language (without additional plugins).
Generic services were the only kind of service generation supported by
early versions of google.protobuf.
Generic services are now considered deprecated in favor of using plugins
that generate code specific to your particular RPC system.  Therefore,
these default to false.  Old code which depends on generic services should
explicitly set them to true.
optional bool cc_generic_services = 16 [default = false];
Returns:The ccGenericServices.
/** * <pre> * Should generic services be generated in each language? "Generic" services * are not specific to any particular RPC system. They are generated by the * main code generators in each language (without additional plugins). * Generic services were the only kind of service generation supported by * early versions of google.protobuf. * Generic services are now considered deprecated in favor of using plugins * that generate code specific to your particular RPC system. Therefore, * these default to false. Old code which depends on generic services should * explicitly set them to true. * </pre> * * <code>optional bool cc_generic_services = 16 [default = false];</code> * @return The ccGenericServices. */
boolean getCcGenericServices();
optional bool java_generic_services = 17 [default = false];
Returns:Whether the javaGenericServices field is set.
/** * <code>optional bool java_generic_services = 17 [default = false];</code> * @return Whether the javaGenericServices field is set. */
boolean hasJavaGenericServices();
optional bool java_generic_services = 17 [default = false];
Returns:The javaGenericServices.
/** * <code>optional bool java_generic_services = 17 [default = false];</code> * @return The javaGenericServices. */
boolean getJavaGenericServices();
optional bool py_generic_services = 18 [default = false];
Returns:Whether the pyGenericServices field is set.
/** * <code>optional bool py_generic_services = 18 [default = false];</code> * @return Whether the pyGenericServices field is set. */
boolean hasPyGenericServices();
optional bool py_generic_services = 18 [default = false];
Returns:The pyGenericServices.
/** * <code>optional bool py_generic_services = 18 [default = false];</code> * @return The pyGenericServices. */
boolean getPyGenericServices();
optional bool php_generic_services = 42 [default = false];
Returns:Whether the phpGenericServices field is set.
/** * <code>optional bool php_generic_services = 42 [default = false];</code> * @return Whether the phpGenericServices field is set. */
boolean hasPhpGenericServices();
optional bool php_generic_services = 42 [default = false];
Returns:The phpGenericServices.
/** * <code>optional bool php_generic_services = 42 [default = false];</code> * @return The phpGenericServices. */
boolean getPhpGenericServices();
Is this file deprecated?
Depending on the target platform, this can emit Deprecated annotations
for everything in the file, or it will be completely ignored; in the very
least, this is a formalization for deprecating files.
optional bool deprecated = 23 [default = false];
Returns:Whether the deprecated field is set.
/** * <pre> * Is this file deprecated? * Depending on the target platform, this can emit Deprecated annotations * for everything in the file, or it will be completely ignored; in the very * least, this is a formalization for deprecating files. * </pre> * * <code>optional bool deprecated = 23 [default = false];</code> * @return Whether the deprecated field is set. */
boolean hasDeprecated();
Is this file deprecated?
Depending on the target platform, this can emit Deprecated annotations
for everything in the file, or it will be completely ignored; in the very
least, this is a formalization for deprecating files.
optional bool deprecated = 23 [default = false];
Returns:The deprecated.
/** * <pre> * Is this file deprecated? * Depending on the target platform, this can emit Deprecated annotations * for everything in the file, or it will be completely ignored; in the very * least, this is a formalization for deprecating files. * </pre> * * <code>optional bool deprecated = 23 [default = false];</code> * @return The deprecated. */
boolean getDeprecated();
Enables the use of arenas for the proto messages in this file. This applies
only to generated classes for C++.
optional bool cc_enable_arenas = 31 [default = false];
Returns:Whether the ccEnableArenas field is set.
/** * <pre> * Enables the use of arenas for the proto messages in this file. This applies * only to generated classes for C++. * </pre> * * <code>optional bool cc_enable_arenas = 31 [default = false];</code> * @return Whether the ccEnableArenas field is set. */
boolean hasCcEnableArenas();
Enables the use of arenas for the proto messages in this file. This applies
only to generated classes for C++.
optional bool cc_enable_arenas = 31 [default = false];
Returns:The ccEnableArenas.
/** * <pre> * Enables the use of arenas for the proto messages in this file. This applies * only to generated classes for C++. * </pre> * * <code>optional bool cc_enable_arenas = 31 [default = false];</code> * @return The ccEnableArenas. */
boolean getCcEnableArenas();
Sets the objective c class prefix which is prepended to all objective c
generated classes from this .proto. There is no default.
optional string objc_class_prefix = 36;
Returns:Whether the objcClassPrefix field is set.
/** * <pre> * Sets the objective c class prefix which is prepended to all objective c * generated classes from this .proto. There is no default. * </pre> * * <code>optional string objc_class_prefix = 36;</code> * @return Whether the objcClassPrefix field is set. */
boolean hasObjcClassPrefix();
Sets the objective c class prefix which is prepended to all objective c
generated classes from this .proto. There is no default.
optional string objc_class_prefix = 36;
Returns:The objcClassPrefix.
/** * <pre> * Sets the objective c class prefix which is prepended to all objective c * generated classes from this .proto. There is no default. * </pre> * * <code>optional string objc_class_prefix = 36;</code> * @return The objcClassPrefix. */
java.lang.String getObjcClassPrefix();
Sets the objective c class prefix which is prepended to all objective c
generated classes from this .proto. There is no default.
optional string objc_class_prefix = 36;
Returns:The bytes for objcClassPrefix.
/** * <pre> * Sets the objective c class prefix which is prepended to all objective c * generated classes from this .proto. There is no default. * </pre> * * <code>optional string objc_class_prefix = 36;</code> * @return The bytes for objcClassPrefix. */
com.google.protobuf.ByteString getObjcClassPrefixBytes();
Namespace for generated classes; defaults to the package.
optional string csharp_namespace = 37;
Returns:Whether the csharpNamespace field is set.
/** * <pre> * Namespace for generated classes; defaults to the package. * </pre> * * <code>optional string csharp_namespace = 37;</code> * @return Whether the csharpNamespace field is set. */
boolean hasCsharpNamespace();
Namespace for generated classes; defaults to the package.
optional string csharp_namespace = 37;
Returns:The csharpNamespace.
/** * <pre> * Namespace for generated classes; defaults to the package. * </pre> * * <code>optional string csharp_namespace = 37;</code> * @return The csharpNamespace. */
java.lang.String getCsharpNamespace();
Namespace for generated classes; defaults to the package.
optional string csharp_namespace = 37;
Returns:The bytes for csharpNamespace.
/** * <pre> * Namespace for generated classes; defaults to the package. * </pre> * * <code>optional string csharp_namespace = 37;</code> * @return The bytes for csharpNamespace. */
com.google.protobuf.ByteString getCsharpNamespaceBytes();
By default Swift generators will take the proto package and CamelCase it
replacing '.' with underscore and use that to prefix the types/symbols
defined. When this options is provided, they will use this value instead
to prefix the types/symbols defined.
optional string swift_prefix = 39;
Returns:Whether the swiftPrefix field is set.
/** * <pre> * By default Swift generators will take the proto package and CamelCase it * replacing '.' with underscore and use that to prefix the types/symbols * defined. When this options is provided, they will use this value instead * to prefix the types/symbols defined. * </pre> * * <code>optional string swift_prefix = 39;</code> * @return Whether the swiftPrefix field is set. */
boolean hasSwiftPrefix();
By default Swift generators will take the proto package and CamelCase it
replacing '.' with underscore and use that to prefix the types/symbols
defined. When this options is provided, they will use this value instead
to prefix the types/symbols defined.
optional string swift_prefix = 39;
Returns:The swiftPrefix.
/** * <pre> * By default Swift generators will take the proto package and CamelCase it * replacing '.' with underscore and use that to prefix the types/symbols * defined. When this options is provided, they will use this value instead * to prefix the types/symbols defined. * </pre> * * <code>optional string swift_prefix = 39;</code> * @return The swiftPrefix. */
java.lang.String getSwiftPrefix();
By default Swift generators will take the proto package and CamelCase it
replacing '.' with underscore and use that to prefix the types/symbols
defined. When this options is provided, they will use this value instead
to prefix the types/symbols defined.
optional string swift_prefix = 39;
Returns:The bytes for swiftPrefix.
/** * <pre> * By default Swift generators will take the proto package and CamelCase it * replacing '.' with underscore and use that to prefix the types/symbols * defined. When this options is provided, they will use this value instead * to prefix the types/symbols defined. * </pre> * * <code>optional string swift_prefix = 39;</code> * @return The bytes for swiftPrefix. */
com.google.protobuf.ByteString getSwiftPrefixBytes();
Sets the php class prefix which is prepended to all php generated classes
from this .proto. Default is empty.
optional string php_class_prefix = 40;
Returns:Whether the phpClassPrefix field is set.
/** * <pre> * Sets the php class prefix which is prepended to all php generated classes * from this .proto. Default is empty. * </pre> * * <code>optional string php_class_prefix = 40;</code> * @return Whether the phpClassPrefix field is set. */
boolean hasPhpClassPrefix();
Sets the php class prefix which is prepended to all php generated classes
from this .proto. Default is empty.
optional string php_class_prefix = 40;
Returns:The phpClassPrefix.
/** * <pre> * Sets the php class prefix which is prepended to all php generated classes * from this .proto. Default is empty. * </pre> * * <code>optional string php_class_prefix = 40;</code> * @return The phpClassPrefix. */
java.lang.String getPhpClassPrefix();
Sets the php class prefix which is prepended to all php generated classes
from this .proto. Default is empty.
optional string php_class_prefix = 40;
Returns:The bytes for phpClassPrefix.
/** * <pre> * Sets the php class prefix which is prepended to all php generated classes * from this .proto. Default is empty. * </pre> * * <code>optional string php_class_prefix = 40;</code> * @return The bytes for phpClassPrefix. */
com.google.protobuf.ByteString getPhpClassPrefixBytes();
Use this option to change the namespace of php generated classes. Default
is empty. When this option is empty, the package name will be used for
determining the namespace.
optional string php_namespace = 41;
Returns:Whether the phpNamespace field is set.
/** * <pre> * Use this option to change the namespace of php generated classes. Default * is empty. When this option is empty, the package name will be used for * determining the namespace. * </pre> * * <code>optional string php_namespace = 41;</code> * @return Whether the phpNamespace field is set. */
boolean hasPhpNamespace();
Use this option to change the namespace of php generated classes. Default
is empty. When this option is empty, the package name will be used for
determining the namespace.
optional string php_namespace = 41;
Returns:The phpNamespace.
/** * <pre> * Use this option to change the namespace of php generated classes. Default * is empty. When this option is empty, the package name will be used for * determining the namespace. * </pre> * * <code>optional string php_namespace = 41;</code> * @return The phpNamespace. */
java.lang.String getPhpNamespace();
Use this option to change the namespace of php generated classes. Default
is empty. When this option is empty, the package name will be used for
determining the namespace.
optional string php_namespace = 41;
Returns:The bytes for phpNamespace.
/** * <pre> * Use this option to change the namespace of php generated classes. Default * is empty. When this option is empty, the package name will be used for * determining the namespace. * </pre> * * <code>optional string php_namespace = 41;</code> * @return The bytes for phpNamespace. */
com.google.protobuf.ByteString getPhpNamespaceBytes();
Use this option to change the namespace of php generated metadata classes.
Default is empty. When this option is empty, the proto file name will be
used for determining the namespace.
optional string php_metadata_namespace = 44;
Returns:Whether the phpMetadataNamespace field is set.
/** * <pre> * Use this option to change the namespace of php generated metadata classes. * Default is empty. When this option is empty, the proto file name will be * used for determining the namespace. * </pre> * * <code>optional string php_metadata_namespace = 44;</code> * @return Whether the phpMetadataNamespace field is set. */
boolean hasPhpMetadataNamespace();
Use this option to change the namespace of php generated metadata classes.
Default is empty. When this option is empty, the proto file name will be
used for determining the namespace.
optional string php_metadata_namespace = 44;
Returns:The phpMetadataNamespace.
/** * <pre> * Use this option to change the namespace of php generated metadata classes. * Default is empty. When this option is empty, the proto file name will be * used for determining the namespace. * </pre> * * <code>optional string php_metadata_namespace = 44;</code> * @return The phpMetadataNamespace. */
java.lang.String getPhpMetadataNamespace();
Use this option to change the namespace of php generated metadata classes.
Default is empty. When this option is empty, the proto file name will be
used for determining the namespace.
optional string php_metadata_namespace = 44;
Returns:The bytes for phpMetadataNamespace.
/** * <pre> * Use this option to change the namespace of php generated metadata classes. * Default is empty. When this option is empty, the proto file name will be * used for determining the namespace. * </pre> * * <code>optional string php_metadata_namespace = 44;</code> * @return The bytes for phpMetadataNamespace. */
com.google.protobuf.ByteString getPhpMetadataNamespaceBytes();
Use this option to change the package of ruby generated classes. Default
is empty. When this option is not set, the package name will be used for
determining the ruby package.
optional string ruby_package = 45;
Returns:Whether the rubyPackage field is set.
/** * <pre> * Use this option to change the package of ruby generated classes. Default * is empty. When this option is not set, the package name will be used for * determining the ruby package. * </pre> * * <code>optional string ruby_package = 45;</code> * @return Whether the rubyPackage field is set. */
boolean hasRubyPackage();
Use this option to change the package of ruby generated classes. Default
is empty. When this option is not set, the package name will be used for
determining the ruby package.
optional string ruby_package = 45;
Returns:The rubyPackage.
/** * <pre> * Use this option to change the package of ruby generated classes. Default * is empty. When this option is not set, the package name will be used for * determining the ruby package. * </pre> * * <code>optional string ruby_package = 45;</code> * @return The rubyPackage. */
java.lang.String getRubyPackage();
Use this option to change the package of ruby generated classes. Default
is empty. When this option is not set, the package name will be used for
determining the ruby package.
optional string ruby_package = 45;
Returns:The bytes for rubyPackage.
/** * <pre> * Use this option to change the package of ruby generated classes. Default * is empty. When this option is not set, the package name will be used for * determining the ruby package. * </pre> * * <code>optional string ruby_package = 45;</code> * @return The bytes for rubyPackage. */
com.google.protobuf.ByteString getRubyPackageBytes();
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList();
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index);
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
int getUninterpretedOptionCount();
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList();
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index); }
Protobuf type google.protobuf.FileOptions
/** * Protobuf type {@code google.protobuf.FileOptions} */
public static final class FileOptions extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage< FileOptions> implements // @@protoc_insertion_point(message_implements:google.protobuf.FileOptions) FileOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use FileOptions.newBuilder() to construct. private FileOptions(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<com.google.protobuf.DescriptorProtos.FileOptions, ?> builder) { super(builder); } private FileOptions() { javaPackage_ = ""; javaOuterClassname_ = ""; optimizeFor_ = 1; goPackage_ = ""; objcClassPrefix_ = ""; csharpNamespace_ = ""; swiftPrefix_ = ""; phpClassPrefix_ = ""; phpNamespace_ = ""; phpMetadataNamespace_ = ""; rubyPackage_ = ""; uninterpretedOption_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FileOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FileOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; javaPackage_ = bs; break; } case 66: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; javaOuterClassname_ = bs; break; } case 72: { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode value = com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(9, rawValue); } else { bitField0_ |= 0x00000020; optimizeFor_ = rawValue; } break; } case 80: { bitField0_ |= 0x00000004; javaMultipleFiles_ = input.readBool(); break; } case 90: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; goPackage_ = bs; break; } case 128: { bitField0_ |= 0x00000080; ccGenericServices_ = input.readBool(); break; } case 136: { bitField0_ |= 0x00000100; javaGenericServices_ = input.readBool(); break; } case 144: { bitField0_ |= 0x00000200; pyGenericServices_ = input.readBool(); break; } case 160: { bitField0_ |= 0x00000008; javaGenerateEqualsAndHash_ = input.readBool(); break; } case 184: { bitField0_ |= 0x00000800; deprecated_ = input.readBool(); break; } case 216: { bitField0_ |= 0x00000010; javaStringCheckUtf8_ = input.readBool(); break; } case 248: { bitField0_ |= 0x00001000; ccEnableArenas_ = input.readBool(); break; } case 290: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00002000; objcClassPrefix_ = bs; break; } case 298: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00004000; csharpNamespace_ = bs; break; } case 314: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00008000; swiftPrefix_ = bs; break; } case 322: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00010000; phpClassPrefix_ = bs; break; } case 330: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00020000; phpNamespace_ = bs; break; } case 336: { bitField0_ |= 0x00000400; phpGenericServices_ = input.readBool(); break; } case 354: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00040000; phpMetadataNamespace_ = bs; break; } case 362: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00080000; rubyPackage_ = bs; break; } case 7994: { if (!((mutable_bitField0_ & 0x00100000) != 0)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); mutable_bitField0_ |= 0x00100000; } uninterpretedOption_.add( input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00100000) != 0)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.FileOptions.class, com.google.protobuf.DescriptorProtos.FileOptions.Builder.class); }
Generated classes can be optimized for speed or code size.
Protobuf enum google.protobuf.FileOptions.OptimizeMode
/** * <pre> * Generated classes can be optimized for speed or code size. * </pre> * * Protobuf enum {@code google.protobuf.FileOptions.OptimizeMode} */
public enum OptimizeMode implements com.google.protobuf.ProtocolMessageEnum {
Generate complete code for parsing, serialization,
SPEED = 1;
/** * <pre> * Generate complete code for parsing, serialization, * </pre> * * <code>SPEED = 1;</code> */
SPEED(1),
etc.
CODE_SIZE = 2;
/** * <pre> * etc. * </pre> * * <code>CODE_SIZE = 2;</code> */
CODE_SIZE(2),
Generate code using MessageLite and the lite runtime.
LITE_RUNTIME = 3;
/** * <pre> * Generate code using MessageLite and the lite runtime. * </pre> * * <code>LITE_RUNTIME = 3;</code> */
LITE_RUNTIME(3), ;
Generate complete code for parsing, serialization,
SPEED = 1;
/** * <pre> * Generate complete code for parsing, serialization, * </pre> * * <code>SPEED = 1;</code> */
public static final int SPEED_VALUE = 1;
etc.
CODE_SIZE = 2;
/** * <pre> * etc. * </pre> * * <code>CODE_SIZE = 2;</code> */
public static final int CODE_SIZE_VALUE = 2;
Generate code using MessageLite and the lite runtime.
LITE_RUNTIME = 3;
/** * <pre> * Generate code using MessageLite and the lite runtime. * </pre> * * <code>LITE_RUNTIME = 3;</code> */
public static final int LITE_RUNTIME_VALUE = 3; public final int getNumber() { return value; }
Params:
  • value – The numeric wire value of the corresponding enum entry.
Returns:The enum associated with the given numeric wire value.
Deprecated:Use forNumber(int) instead.
/** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */
@java.lang.Deprecated public static OptimizeMode valueOf(int value) { return forNumber(value); }
Params:
  • value – The numeric wire value of the corresponding enum entry.
Returns:The enum associated with the given numeric wire value.
/** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */
public static OptimizeMode forNumber(int value) { switch (value) { case 1: return SPEED; case 2: return CODE_SIZE; case 3: return LITE_RUNTIME; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<OptimizeMode> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< OptimizeMode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<OptimizeMode>() { public OptimizeMode findValueByNumber(int number) { return OptimizeMode.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.FileOptions.getDescriptor().getEnumTypes().get(0); } private static final OptimizeMode[] VALUES = values(); public static OptimizeMode 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 value; private OptimizeMode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.protobuf.FileOptions.OptimizeMode) } private int bitField0_; public static final int JAVA_PACKAGE_FIELD_NUMBER = 1; private volatile java.lang.Object javaPackage_;
Sets the Java package where classes generated from this .proto will be
placed.  By default, the proto package is used, but this is often
inappropriate because proto packages do not normally start with backwards
domain names.
optional string java_package = 1;
Returns:Whether the javaPackage field is set.
/** * <pre> * Sets the Java package where classes generated from this .proto will be * placed. By default, the proto package is used, but this is often * inappropriate because proto packages do not normally start with backwards * domain names. * </pre> * * <code>optional string java_package = 1;</code> * @return Whether the javaPackage field is set. */
public boolean hasJavaPackage() { return ((bitField0_ & 0x00000001) != 0); }
Sets the Java package where classes generated from this .proto will be
placed.  By default, the proto package is used, but this is often
inappropriate because proto packages do not normally start with backwards
domain names.
optional string java_package = 1;
Returns:The javaPackage.
/** * <pre> * Sets the Java package where classes generated from this .proto will be * placed. By default, the proto package is used, but this is often * inappropriate because proto packages do not normally start with backwards * domain names. * </pre> * * <code>optional string java_package = 1;</code> * @return The javaPackage. */
public java.lang.String getJavaPackage() { java.lang.Object ref = javaPackage_; 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()) { javaPackage_ = s; } return s; } }
Sets the Java package where classes generated from this .proto will be
placed.  By default, the proto package is used, but this is often
inappropriate because proto packages do not normally start with backwards
domain names.
optional string java_package = 1;
Returns:The bytes for javaPackage.
/** * <pre> * Sets the Java package where classes generated from this .proto will be * placed. By default, the proto package is used, but this is often * inappropriate because proto packages do not normally start with backwards * domain names. * </pre> * * <code>optional string java_package = 1;</code> * @return The bytes for javaPackage. */
public com.google.protobuf.ByteString getJavaPackageBytes() { java.lang.Object ref = javaPackage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); javaPackage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int JAVA_OUTER_CLASSNAME_FIELD_NUMBER = 8; private volatile java.lang.Object javaOuterClassname_;
If set, all the classes from the .proto file are wrapped in a single
outer class with the given name.  This applies to both Proto1
(equivalent to the old "--one_java_file" option) and Proto2 (where
a .proto always translates to a single class, but you may want to
explicitly choose the class name).
optional string java_outer_classname = 8;
Returns:Whether the javaOuterClassname field is set.
/** * <pre> * If set, all the classes from the .proto file are wrapped in a single * outer class with the given name. This applies to both Proto1 * (equivalent to the old "--one_java_file" option) and Proto2 (where * a .proto always translates to a single class, but you may want to * explicitly choose the class name). * </pre> * * <code>optional string java_outer_classname = 8;</code> * @return Whether the javaOuterClassname field is set. */
public boolean hasJavaOuterClassname() { return ((bitField0_ & 0x00000002) != 0); }
If set, all the classes from the .proto file are wrapped in a single
outer class with the given name.  This applies to both Proto1
(equivalent to the old "--one_java_file" option) and Proto2 (where
a .proto always translates to a single class, but you may want to
explicitly choose the class name).
optional string java_outer_classname = 8;
Returns:The javaOuterClassname.
/** * <pre> * If set, all the classes from the .proto file are wrapped in a single * outer class with the given name. This applies to both Proto1 * (equivalent to the old "--one_java_file" option) and Proto2 (where * a .proto always translates to a single class, but you may want to * explicitly choose the class name). * </pre> * * <code>optional string java_outer_classname = 8;</code> * @return The javaOuterClassname. */
public java.lang.String getJavaOuterClassname() { java.lang.Object ref = javaOuterClassname_; 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()) { javaOuterClassname_ = s; } return s; } }
If set, all the classes from the .proto file are wrapped in a single
outer class with the given name.  This applies to both Proto1
(equivalent to the old "--one_java_file" option) and Proto2 (where
a .proto always translates to a single class, but you may want to
explicitly choose the class name).
optional string java_outer_classname = 8;
Returns:The bytes for javaOuterClassname.
/** * <pre> * If set, all the classes from the .proto file are wrapped in a single * outer class with the given name. This applies to both Proto1 * (equivalent to the old "--one_java_file" option) and Proto2 (where * a .proto always translates to a single class, but you may want to * explicitly choose the class name). * </pre> * * <code>optional string java_outer_classname = 8;</code> * @return The bytes for javaOuterClassname. */
public com.google.protobuf.ByteString getJavaOuterClassnameBytes() { java.lang.Object ref = javaOuterClassname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); javaOuterClassname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int JAVA_MULTIPLE_FILES_FIELD_NUMBER = 10; private boolean javaMultipleFiles_;
If set true, then the Java code generator will generate a separate .java
file for each top-level message, enum, and service defined in the .proto
file.  Thus, these types will *not* be nested inside the outer class
named by java_outer_classname.  However, the outer class will still be
generated to contain the file's getDescriptor() method as well as any
top-level extensions defined in the file.
optional bool java_multiple_files = 10 [default = false];
Returns:Whether the javaMultipleFiles field is set.
/** * <pre> * If set true, then the Java code generator will generate a separate .java * file for each top-level message, enum, and service defined in the .proto * file. Thus, these types will *not* be nested inside the outer class * named by java_outer_classname. However, the outer class will still be * generated to contain the file's getDescriptor() method as well as any * top-level extensions defined in the file. * </pre> * * <code>optional bool java_multiple_files = 10 [default = false];</code> * @return Whether the javaMultipleFiles field is set. */
public boolean hasJavaMultipleFiles() { return ((bitField0_ & 0x00000004) != 0); }
If set true, then the Java code generator will generate a separate .java
file for each top-level message, enum, and service defined in the .proto
file.  Thus, these types will *not* be nested inside the outer class
named by java_outer_classname.  However, the outer class will still be
generated to contain the file's getDescriptor() method as well as any
top-level extensions defined in the file.
optional bool java_multiple_files = 10 [default = false];
Returns:The javaMultipleFiles.
/** * <pre> * If set true, then the Java code generator will generate a separate .java * file for each top-level message, enum, and service defined in the .proto * file. Thus, these types will *not* be nested inside the outer class * named by java_outer_classname. However, the outer class will still be * generated to contain the file's getDescriptor() method as well as any * top-level extensions defined in the file. * </pre> * * <code>optional bool java_multiple_files = 10 [default = false];</code> * @return The javaMultipleFiles. */
public boolean getJavaMultipleFiles() { return javaMultipleFiles_; } public static final int JAVA_GENERATE_EQUALS_AND_HASH_FIELD_NUMBER = 20; private boolean javaGenerateEqualsAndHash_;
This option does nothing.
optional bool java_generate_equals_and_hash = 20 [deprecated = true];
Returns:Whether the javaGenerateEqualsAndHash field is set.
/** * <pre> * This option does nothing. * </pre> * * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> * @return Whether the javaGenerateEqualsAndHash field is set. */
@java.lang.Deprecated public boolean hasJavaGenerateEqualsAndHash() { return ((bitField0_ & 0x00000008) != 0); }
This option does nothing.
optional bool java_generate_equals_and_hash = 20 [deprecated = true];
Returns:The javaGenerateEqualsAndHash.
/** * <pre> * This option does nothing. * </pre> * * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> * @return The javaGenerateEqualsAndHash. */
@java.lang.Deprecated public boolean getJavaGenerateEqualsAndHash() { return javaGenerateEqualsAndHash_; } public static final int JAVA_STRING_CHECK_UTF8_FIELD_NUMBER = 27; private boolean javaStringCheckUtf8_;
If set true, then the Java2 code generator will generate code that
throws an exception whenever an attempt is made to assign a non-UTF-8
byte sequence to a string field.
Message reflection will do the same.
However, an extension field still accepts non-UTF-8 byte sequences.
This option has no effect on when used with the lite runtime.
optional bool java_string_check_utf8 = 27 [default = false];
Returns:Whether the javaStringCheckUtf8 field is set.
/** * <pre> * If set true, then the Java2 code generator will generate code that * throws an exception whenever an attempt is made to assign a non-UTF-8 * byte sequence to a string field. * Message reflection will do the same. * However, an extension field still accepts non-UTF-8 byte sequences. * This option has no effect on when used with the lite runtime. * </pre> * * <code>optional bool java_string_check_utf8 = 27 [default = false];</code> * @return Whether the javaStringCheckUtf8 field is set. */
public boolean hasJavaStringCheckUtf8() { return ((bitField0_ & 0x00000010) != 0); }
If set true, then the Java2 code generator will generate code that
throws an exception whenever an attempt is made to assign a non-UTF-8
byte sequence to a string field.
Message reflection will do the same.
However, an extension field still accepts non-UTF-8 byte sequences.
This option has no effect on when used with the lite runtime.
optional bool java_string_check_utf8 = 27 [default = false];
Returns:The javaStringCheckUtf8.
/** * <pre> * If set true, then the Java2 code generator will generate code that * throws an exception whenever an attempt is made to assign a non-UTF-8 * byte sequence to a string field. * Message reflection will do the same. * However, an extension field still accepts non-UTF-8 byte sequences. * This option has no effect on when used with the lite runtime. * </pre> * * <code>optional bool java_string_check_utf8 = 27 [default = false];</code> * @return The javaStringCheckUtf8. */
public boolean getJavaStringCheckUtf8() { return javaStringCheckUtf8_; } public static final int OPTIMIZE_FOR_FIELD_NUMBER = 9; private int optimizeFor_;
optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
Returns:Whether the optimizeFor field is set.
/** * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> * @return Whether the optimizeFor field is set. */
public boolean hasOptimizeFor() { return ((bitField0_ & 0x00000020) != 0); }
optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
Returns:The optimizeFor.
/** * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> * @return The optimizeFor. */
public com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode getOptimizeFor() { @SuppressWarnings("deprecation") com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode result = com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.valueOf(optimizeFor_); return result == null ? com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.SPEED : result; } public static final int GO_PACKAGE_FIELD_NUMBER = 11; private volatile java.lang.Object goPackage_;
Sets the Go package where structs generated from this .proto will be
placed. If omitted, the Go package will be derived from the following:
  - The basename of the package import path, if provided.
  - Otherwise, the package statement in the .proto file, if present.
  - Otherwise, the basename of the .proto file, without extension.
optional string go_package = 11;
Returns:Whether the goPackage field is set.
/** * <pre> * Sets the Go package where structs generated from this .proto will be * placed. If omitted, the Go package will be derived from the following: * - The basename of the package import path, if provided. * - Otherwise, the package statement in the .proto file, if present. * - Otherwise, the basename of the .proto file, without extension. * </pre> * * <code>optional string go_package = 11;</code> * @return Whether the goPackage field is set. */
public boolean hasGoPackage() { return ((bitField0_ & 0x00000040) != 0); }
Sets the Go package where structs generated from this .proto will be
placed. If omitted, the Go package will be derived from the following:
  - The basename of the package import path, if provided.
  - Otherwise, the package statement in the .proto file, if present.
  - Otherwise, the basename of the .proto file, without extension.
optional string go_package = 11;
Returns:The goPackage.
/** * <pre> * Sets the Go package where structs generated from this .proto will be * placed. If omitted, the Go package will be derived from the following: * - The basename of the package import path, if provided. * - Otherwise, the package statement in the .proto file, if present. * - Otherwise, the basename of the .proto file, without extension. * </pre> * * <code>optional string go_package = 11;</code> * @return The goPackage. */
public java.lang.String getGoPackage() { java.lang.Object ref = goPackage_; 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()) { goPackage_ = s; } return s; } }
Sets the Go package where structs generated from this .proto will be
placed. If omitted, the Go package will be derived from the following:
  - The basename of the package import path, if provided.
  - Otherwise, the package statement in the .proto file, if present.
  - Otherwise, the basename of the .proto file, without extension.
optional string go_package = 11;
Returns:The bytes for goPackage.
/** * <pre> * Sets the Go package where structs generated from this .proto will be * placed. If omitted, the Go package will be derived from the following: * - The basename of the package import path, if provided. * - Otherwise, the package statement in the .proto file, if present. * - Otherwise, the basename of the .proto file, without extension. * </pre> * * <code>optional string go_package = 11;</code> * @return The bytes for goPackage. */
public com.google.protobuf.ByteString getGoPackageBytes() { java.lang.Object ref = goPackage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); goPackage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CC_GENERIC_SERVICES_FIELD_NUMBER = 16; private boolean ccGenericServices_;
Should generic services be generated in each language?  "Generic" services
are not specific to any particular RPC system.  They are generated by the
main code generators in each language (without additional plugins).
Generic services were the only kind of service generation supported by
early versions of google.protobuf.
Generic services are now considered deprecated in favor of using plugins
that generate code specific to your particular RPC system.  Therefore,
these default to false.  Old code which depends on generic services should
explicitly set them to true.
optional bool cc_generic_services = 16 [default = false];
Returns:Whether the ccGenericServices field is set.
/** * <pre> * Should generic services be generated in each language? "Generic" services * are not specific to any particular RPC system. They are generated by the * main code generators in each language (without additional plugins). * Generic services were the only kind of service generation supported by * early versions of google.protobuf. * Generic services are now considered deprecated in favor of using plugins * that generate code specific to your particular RPC system. Therefore, * these default to false. Old code which depends on generic services should * explicitly set them to true. * </pre> * * <code>optional bool cc_generic_services = 16 [default = false];</code> * @return Whether the ccGenericServices field is set. */
public boolean hasCcGenericServices() { return ((bitField0_ & 0x00000080) != 0); }
Should generic services be generated in each language?  "Generic" services
are not specific to any particular RPC system.  They are generated by the
main code generators in each language (without additional plugins).
Generic services were the only kind of service generation supported by
early versions of google.protobuf.
Generic services are now considered deprecated in favor of using plugins
that generate code specific to your particular RPC system.  Therefore,
these default to false.  Old code which depends on generic services should
explicitly set them to true.
optional bool cc_generic_services = 16 [default = false];
Returns:The ccGenericServices.
/** * <pre> * Should generic services be generated in each language? "Generic" services * are not specific to any particular RPC system. They are generated by the * main code generators in each language (without additional plugins). * Generic services were the only kind of service generation supported by * early versions of google.protobuf. * Generic services are now considered deprecated in favor of using plugins * that generate code specific to your particular RPC system. Therefore, * these default to false. Old code which depends on generic services should * explicitly set them to true. * </pre> * * <code>optional bool cc_generic_services = 16 [default = false];</code> * @return The ccGenericServices. */
public boolean getCcGenericServices() { return ccGenericServices_; } public static final int JAVA_GENERIC_SERVICES_FIELD_NUMBER = 17; private boolean javaGenericServices_;
optional bool java_generic_services = 17 [default = false];
Returns:Whether the javaGenericServices field is set.
/** * <code>optional bool java_generic_services = 17 [default = false];</code> * @return Whether the javaGenericServices field is set. */
public boolean hasJavaGenericServices() { return ((bitField0_ & 0x00000100) != 0); }
optional bool java_generic_services = 17 [default = false];
Returns:The javaGenericServices.
/** * <code>optional bool java_generic_services = 17 [default = false];</code> * @return The javaGenericServices. */
public boolean getJavaGenericServices() { return javaGenericServices_; } public static final int PY_GENERIC_SERVICES_FIELD_NUMBER = 18; private boolean pyGenericServices_;
optional bool py_generic_services = 18 [default = false];
Returns:Whether the pyGenericServices field is set.
/** * <code>optional bool py_generic_services = 18 [default = false];</code> * @return Whether the pyGenericServices field is set. */
public boolean hasPyGenericServices() { return ((bitField0_ & 0x00000200) != 0); }
optional bool py_generic_services = 18 [default = false];
Returns:The pyGenericServices.
/** * <code>optional bool py_generic_services = 18 [default = false];</code> * @return The pyGenericServices. */
public boolean getPyGenericServices() { return pyGenericServices_; } public static final int PHP_GENERIC_SERVICES_FIELD_NUMBER = 42; private boolean phpGenericServices_;
optional bool php_generic_services = 42 [default = false];
Returns:Whether the phpGenericServices field is set.
/** * <code>optional bool php_generic_services = 42 [default = false];</code> * @return Whether the phpGenericServices field is set. */
public boolean hasPhpGenericServices() { return ((bitField0_ & 0x00000400) != 0); }
optional bool php_generic_services = 42 [default = false];
Returns:The phpGenericServices.
/** * <code>optional bool php_generic_services = 42 [default = false];</code> * @return The phpGenericServices. */
public boolean getPhpGenericServices() { return phpGenericServices_; } public static final int DEPRECATED_FIELD_NUMBER = 23; private boolean deprecated_;
Is this file deprecated?
Depending on the target platform, this can emit Deprecated annotations
for everything in the file, or it will be completely ignored; in the very
least, this is a formalization for deprecating files.
optional bool deprecated = 23 [default = false];
Returns:Whether the deprecated field is set.
/** * <pre> * Is this file deprecated? * Depending on the target platform, this can emit Deprecated annotations * for everything in the file, or it will be completely ignored; in the very * least, this is a formalization for deprecating files. * </pre> * * <code>optional bool deprecated = 23 [default = false];</code> * @return Whether the deprecated field is set. */
public boolean hasDeprecated() { return ((bitField0_ & 0x00000800) != 0); }
Is this file deprecated?
Depending on the target platform, this can emit Deprecated annotations
for everything in the file, or it will be completely ignored; in the very
least, this is a formalization for deprecating files.
optional bool deprecated = 23 [default = false];
Returns:The deprecated.
/** * <pre> * Is this file deprecated? * Depending on the target platform, this can emit Deprecated annotations * for everything in the file, or it will be completely ignored; in the very * least, this is a formalization for deprecating files. * </pre> * * <code>optional bool deprecated = 23 [default = false];</code> * @return The deprecated. */
public boolean getDeprecated() { return deprecated_; } public static final int CC_ENABLE_ARENAS_FIELD_NUMBER = 31; private boolean ccEnableArenas_;
Enables the use of arenas for the proto messages in this file. This applies
only to generated classes for C++.
optional bool cc_enable_arenas = 31 [default = false];
Returns:Whether the ccEnableArenas field is set.
/** * <pre> * Enables the use of arenas for the proto messages in this file. This applies * only to generated classes for C++. * </pre> * * <code>optional bool cc_enable_arenas = 31 [default = false];</code> * @return Whether the ccEnableArenas field is set. */
public boolean hasCcEnableArenas() { return ((bitField0_ & 0x00001000) != 0); }
Enables the use of arenas for the proto messages in this file. This applies
only to generated classes for C++.
optional bool cc_enable_arenas = 31 [default = false];
Returns:The ccEnableArenas.
/** * <pre> * Enables the use of arenas for the proto messages in this file. This applies * only to generated classes for C++. * </pre> * * <code>optional bool cc_enable_arenas = 31 [default = false];</code> * @return The ccEnableArenas. */
public boolean getCcEnableArenas() { return ccEnableArenas_; } public static final int OBJC_CLASS_PREFIX_FIELD_NUMBER = 36; private volatile java.lang.Object objcClassPrefix_;
Sets the objective c class prefix which is prepended to all objective c
generated classes from this .proto. There is no default.
optional string objc_class_prefix = 36;
Returns:Whether the objcClassPrefix field is set.
/** * <pre> * Sets the objective c class prefix which is prepended to all objective c * generated classes from this .proto. There is no default. * </pre> * * <code>optional string objc_class_prefix = 36;</code> * @return Whether the objcClassPrefix field is set. */
public boolean hasObjcClassPrefix() { return ((bitField0_ & 0x00002000) != 0); }
Sets the objective c class prefix which is prepended to all objective c
generated classes from this .proto. There is no default.
optional string objc_class_prefix = 36;
Returns:The objcClassPrefix.
/** * <pre> * Sets the objective c class prefix which is prepended to all objective c * generated classes from this .proto. There is no default. * </pre> * * <code>optional string objc_class_prefix = 36;</code> * @return The objcClassPrefix. */
public java.lang.String getObjcClassPrefix() { java.lang.Object ref = objcClassPrefix_; 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()) { objcClassPrefix_ = s; } return s; } }
Sets the objective c class prefix which is prepended to all objective c
generated classes from this .proto. There is no default.
optional string objc_class_prefix = 36;
Returns:The bytes for objcClassPrefix.
/** * <pre> * Sets the objective c class prefix which is prepended to all objective c * generated classes from this .proto. There is no default. * </pre> * * <code>optional string objc_class_prefix = 36;</code> * @return The bytes for objcClassPrefix. */
public com.google.protobuf.ByteString getObjcClassPrefixBytes() { java.lang.Object ref = objcClassPrefix_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); objcClassPrefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CSHARP_NAMESPACE_FIELD_NUMBER = 37; private volatile java.lang.Object csharpNamespace_;
Namespace for generated classes; defaults to the package.
optional string csharp_namespace = 37;
Returns:Whether the csharpNamespace field is set.
/** * <pre> * Namespace for generated classes; defaults to the package. * </pre> * * <code>optional string csharp_namespace = 37;</code> * @return Whether the csharpNamespace field is set. */
public boolean hasCsharpNamespace() { return ((bitField0_ & 0x00004000) != 0); }
Namespace for generated classes; defaults to the package.
optional string csharp_namespace = 37;
Returns:The csharpNamespace.
/** * <pre> * Namespace for generated classes; defaults to the package. * </pre> * * <code>optional string csharp_namespace = 37;</code> * @return The csharpNamespace. */
public java.lang.String getCsharpNamespace() { java.lang.Object ref = csharpNamespace_; 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()) { csharpNamespace_ = s; } return s; } }
Namespace for generated classes; defaults to the package.
optional string csharp_namespace = 37;
Returns:The bytes for csharpNamespace.
/** * <pre> * Namespace for generated classes; defaults to the package. * </pre> * * <code>optional string csharp_namespace = 37;</code> * @return The bytes for csharpNamespace. */
public com.google.protobuf.ByteString getCsharpNamespaceBytes() { java.lang.Object ref = csharpNamespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); csharpNamespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SWIFT_PREFIX_FIELD_NUMBER = 39; private volatile java.lang.Object swiftPrefix_;
By default Swift generators will take the proto package and CamelCase it
replacing '.' with underscore and use that to prefix the types/symbols
defined. When this options is provided, they will use this value instead
to prefix the types/symbols defined.
optional string swift_prefix = 39;
Returns:Whether the swiftPrefix field is set.
/** * <pre> * By default Swift generators will take the proto package and CamelCase it * replacing '.' with underscore and use that to prefix the types/symbols * defined. When this options is provided, they will use this value instead * to prefix the types/symbols defined. * </pre> * * <code>optional string swift_prefix = 39;</code> * @return Whether the swiftPrefix field is set. */
public boolean hasSwiftPrefix() { return ((bitField0_ & 0x00008000) != 0); }
By default Swift generators will take the proto package and CamelCase it
replacing '.' with underscore and use that to prefix the types/symbols
defined. When this options is provided, they will use this value instead
to prefix the types/symbols defined.
optional string swift_prefix = 39;
Returns:The swiftPrefix.
/** * <pre> * By default Swift generators will take the proto package and CamelCase it * replacing '.' with underscore and use that to prefix the types/symbols * defined. When this options is provided, they will use this value instead * to prefix the types/symbols defined. * </pre> * * <code>optional string swift_prefix = 39;</code> * @return The swiftPrefix. */
public java.lang.String getSwiftPrefix() { java.lang.Object ref = swiftPrefix_; 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()) { swiftPrefix_ = s; } return s; } }
By default Swift generators will take the proto package and CamelCase it
replacing '.' with underscore and use that to prefix the types/symbols
defined. When this options is provided, they will use this value instead
to prefix the types/symbols defined.
optional string swift_prefix = 39;
Returns:The bytes for swiftPrefix.
/** * <pre> * By default Swift generators will take the proto package and CamelCase it * replacing '.' with underscore and use that to prefix the types/symbols * defined. When this options is provided, they will use this value instead * to prefix the types/symbols defined. * </pre> * * <code>optional string swift_prefix = 39;</code> * @return The bytes for swiftPrefix. */
public com.google.protobuf.ByteString getSwiftPrefixBytes() { java.lang.Object ref = swiftPrefix_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); swiftPrefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PHP_CLASS_PREFIX_FIELD_NUMBER = 40; private volatile java.lang.Object phpClassPrefix_;
Sets the php class prefix which is prepended to all php generated classes
from this .proto. Default is empty.
optional string php_class_prefix = 40;
Returns:Whether the phpClassPrefix field is set.
/** * <pre> * Sets the php class prefix which is prepended to all php generated classes * from this .proto. Default is empty. * </pre> * * <code>optional string php_class_prefix = 40;</code> * @return Whether the phpClassPrefix field is set. */
public boolean hasPhpClassPrefix() { return ((bitField0_ & 0x00010000) != 0); }
Sets the php class prefix which is prepended to all php generated classes
from this .proto. Default is empty.
optional string php_class_prefix = 40;
Returns:The phpClassPrefix.
/** * <pre> * Sets the php class prefix which is prepended to all php generated classes * from this .proto. Default is empty. * </pre> * * <code>optional string php_class_prefix = 40;</code> * @return The phpClassPrefix. */
public java.lang.String getPhpClassPrefix() { java.lang.Object ref = phpClassPrefix_; 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()) { phpClassPrefix_ = s; } return s; } }
Sets the php class prefix which is prepended to all php generated classes
from this .proto. Default is empty.
optional string php_class_prefix = 40;
Returns:The bytes for phpClassPrefix.
/** * <pre> * Sets the php class prefix which is prepended to all php generated classes * from this .proto. Default is empty. * </pre> * * <code>optional string php_class_prefix = 40;</code> * @return The bytes for phpClassPrefix. */
public com.google.protobuf.ByteString getPhpClassPrefixBytes() { java.lang.Object ref = phpClassPrefix_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); phpClassPrefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PHP_NAMESPACE_FIELD_NUMBER = 41; private volatile java.lang.Object phpNamespace_;
Use this option to change the namespace of php generated classes. Default
is empty. When this option is empty, the package name will be used for
determining the namespace.
optional string php_namespace = 41;
Returns:Whether the phpNamespace field is set.
/** * <pre> * Use this option to change the namespace of php generated classes. Default * is empty. When this option is empty, the package name will be used for * determining the namespace. * </pre> * * <code>optional string php_namespace = 41;</code> * @return Whether the phpNamespace field is set. */
public boolean hasPhpNamespace() { return ((bitField0_ & 0x00020000) != 0); }
Use this option to change the namespace of php generated classes. Default
is empty. When this option is empty, the package name will be used for
determining the namespace.
optional string php_namespace = 41;
Returns:The phpNamespace.
/** * <pre> * Use this option to change the namespace of php generated classes. Default * is empty. When this option is empty, the package name will be used for * determining the namespace. * </pre> * * <code>optional string php_namespace = 41;</code> * @return The phpNamespace. */
public java.lang.String getPhpNamespace() { java.lang.Object ref = phpNamespace_; 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()) { phpNamespace_ = s; } return s; } }
Use this option to change the namespace of php generated classes. Default
is empty. When this option is empty, the package name will be used for
determining the namespace.
optional string php_namespace = 41;
Returns:The bytes for phpNamespace.
/** * <pre> * Use this option to change the namespace of php generated classes. Default * is empty. When this option is empty, the package name will be used for * determining the namespace. * </pre> * * <code>optional string php_namespace = 41;</code> * @return The bytes for phpNamespace. */
public com.google.protobuf.ByteString getPhpNamespaceBytes() { java.lang.Object ref = phpNamespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); phpNamespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PHP_METADATA_NAMESPACE_FIELD_NUMBER = 44; private volatile java.lang.Object phpMetadataNamespace_;
Use this option to change the namespace of php generated metadata classes.
Default is empty. When this option is empty, the proto file name will be
used for determining the namespace.
optional string php_metadata_namespace = 44;
Returns:Whether the phpMetadataNamespace field is set.
/** * <pre> * Use this option to change the namespace of php generated metadata classes. * Default is empty. When this option is empty, the proto file name will be * used for determining the namespace. * </pre> * * <code>optional string php_metadata_namespace = 44;</code> * @return Whether the phpMetadataNamespace field is set. */
public boolean hasPhpMetadataNamespace() { return ((bitField0_ & 0x00040000) != 0); }
Use this option to change the namespace of php generated metadata classes.
Default is empty. When this option is empty, the proto file name will be
used for determining the namespace.
optional string php_metadata_namespace = 44;
Returns:The phpMetadataNamespace.
/** * <pre> * Use this option to change the namespace of php generated metadata classes. * Default is empty. When this option is empty, the proto file name will be * used for determining the namespace. * </pre> * * <code>optional string php_metadata_namespace = 44;</code> * @return The phpMetadataNamespace. */
public java.lang.String getPhpMetadataNamespace() { java.lang.Object ref = phpMetadataNamespace_; 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()) { phpMetadataNamespace_ = s; } return s; } }
Use this option to change the namespace of php generated metadata classes.
Default is empty. When this option is empty, the proto file name will be
used for determining the namespace.
optional string php_metadata_namespace = 44;
Returns:The bytes for phpMetadataNamespace.
/** * <pre> * Use this option to change the namespace of php generated metadata classes. * Default is empty. When this option is empty, the proto file name will be * used for determining the namespace. * </pre> * * <code>optional string php_metadata_namespace = 44;</code> * @return The bytes for phpMetadataNamespace. */
public com.google.protobuf.ByteString getPhpMetadataNamespaceBytes() { java.lang.Object ref = phpMetadataNamespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); phpMetadataNamespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RUBY_PACKAGE_FIELD_NUMBER = 45; private volatile java.lang.Object rubyPackage_;
Use this option to change the package of ruby generated classes. Default
is empty. When this option is not set, the package name will be used for
determining the ruby package.
optional string ruby_package = 45;
Returns:Whether the rubyPackage field is set.
/** * <pre> * Use this option to change the package of ruby generated classes. Default * is empty. When this option is not set, the package name will be used for * determining the ruby package. * </pre> * * <code>optional string ruby_package = 45;</code> * @return Whether the rubyPackage field is set. */
public boolean hasRubyPackage() { return ((bitField0_ & 0x00080000) != 0); }
Use this option to change the package of ruby generated classes. Default
is empty. When this option is not set, the package name will be used for
determining the ruby package.
optional string ruby_package = 45;
Returns:The rubyPackage.
/** * <pre> * Use this option to change the package of ruby generated classes. Default * is empty. When this option is not set, the package name will be used for * determining the ruby package. * </pre> * * <code>optional string ruby_package = 45;</code> * @return The rubyPackage. */
public java.lang.String getRubyPackage() { java.lang.Object ref = rubyPackage_; 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()) { rubyPackage_ = s; } return s; } }
Use this option to change the package of ruby generated classes. Default
is empty. When this option is not set, the package name will be used for
determining the ruby package.
optional string ruby_package = 45;
Returns:The bytes for rubyPackage.
/** * <pre> * Use this option to change the package of ruby generated classes. Default * is empty. When this option is not set, the package name will be used for * determining the ruby package. * </pre> * * <code>optional string ruby_package = 45;</code> * @return The bytes for rubyPackage. */
public com.google.protobuf.ByteString getRubyPackageBytes() { java.lang.Object ref = rubyPackage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); rubyPackage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_;
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { return uninterpretedOption_; }
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { return uninterpretedOption_; }
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public int getUninterpretedOptionCount() { return uninterpretedOption_.size(); }
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { return uninterpretedOption_.get(index); }
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { return uninterpretedOption_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .ExtendableMessage<com.google.protobuf.DescriptorProtos.FileOptions>.ExtensionWriter extensionWriter = newExtensionWriter(); if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, javaPackage_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, javaOuterClassname_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeEnum(9, optimizeFor_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(10, javaMultipleFiles_); } if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, goPackage_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeBool(16, ccGenericServices_); } if (((bitField0_ & 0x00000100) != 0)) { output.writeBool(17, javaGenericServices_); } if (((bitField0_ & 0x00000200) != 0)) { output.writeBool(18, pyGenericServices_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(20, javaGenerateEqualsAndHash_); } if (((bitField0_ & 0x00000800) != 0)) { output.writeBool(23, deprecated_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(27, javaStringCheckUtf8_); } if (((bitField0_ & 0x00001000) != 0)) { output.writeBool(31, ccEnableArenas_); } if (((bitField0_ & 0x00002000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 36, objcClassPrefix_); } if (((bitField0_ & 0x00004000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 37, csharpNamespace_); } if (((bitField0_ & 0x00008000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 39, swiftPrefix_); } if (((bitField0_ & 0x00010000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 40, phpClassPrefix_); } if (((bitField0_ & 0x00020000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 41, phpNamespace_); } if (((bitField0_ & 0x00000400) != 0)) { output.writeBool(42, phpGenericServices_); } if (((bitField0_ & 0x00040000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 44, phpMetadataNamespace_); } if (((bitField0_ & 0x00080000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 45, rubyPackage_); } for (int i = 0; i < uninterpretedOption_.size(); i++) { output.writeMessage(999, uninterpretedOption_.get(i)); } extensionWriter.writeUntil(536870912, output); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, javaPackage_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, javaOuterClassname_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, optimizeFor_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, javaMultipleFiles_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, goPackage_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(16, ccGenericServices_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(17, javaGenericServices_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(18, pyGenericServices_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(20, javaGenerateEqualsAndHash_); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(23, deprecated_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(27, javaStringCheckUtf8_); } if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(31, ccEnableArenas_); } if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, objcClassPrefix_); } if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37, csharpNamespace_); } if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(39, swiftPrefix_); } if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(40, phpClassPrefix_); } if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(41, phpNamespace_); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(42, phpGenericServices_); } if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(44, phpMetadataNamespace_); } if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(45, rubyPackage_); } for (int i = 0; i < uninterpretedOption_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(999, uninterpretedOption_.get(i)); } size += extensionsSerializedSize(); size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.FileOptions)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.FileOptions other = (com.google.protobuf.DescriptorProtos.FileOptions) obj; if (hasJavaPackage() != other.hasJavaPackage()) return false; if (hasJavaPackage()) { if (!getJavaPackage() .equals(other.getJavaPackage())) return false; } if (hasJavaOuterClassname() != other.hasJavaOuterClassname()) return false; if (hasJavaOuterClassname()) { if (!getJavaOuterClassname() .equals(other.getJavaOuterClassname())) return false; } if (hasJavaMultipleFiles() != other.hasJavaMultipleFiles()) return false; if (hasJavaMultipleFiles()) { if (getJavaMultipleFiles() != other.getJavaMultipleFiles()) return false; } if (hasJavaGenerateEqualsAndHash() != other.hasJavaGenerateEqualsAndHash()) return false; if (hasJavaGenerateEqualsAndHash()) { if (getJavaGenerateEqualsAndHash() != other.getJavaGenerateEqualsAndHash()) return false; } if (hasJavaStringCheckUtf8() != other.hasJavaStringCheckUtf8()) return false; if (hasJavaStringCheckUtf8()) { if (getJavaStringCheckUtf8() != other.getJavaStringCheckUtf8()) return false; } if (hasOptimizeFor() != other.hasOptimizeFor()) return false; if (hasOptimizeFor()) { if (optimizeFor_ != other.optimizeFor_) return false; } if (hasGoPackage() != other.hasGoPackage()) return false; if (hasGoPackage()) { if (!getGoPackage() .equals(other.getGoPackage())) return false; } if (hasCcGenericServices() != other.hasCcGenericServices()) return false; if (hasCcGenericServices()) { if (getCcGenericServices() != other.getCcGenericServices()) return false; } if (hasJavaGenericServices() != other.hasJavaGenericServices()) return false; if (hasJavaGenericServices()) { if (getJavaGenericServices() != other.getJavaGenericServices()) return false; } if (hasPyGenericServices() != other.hasPyGenericServices()) return false; if (hasPyGenericServices()) { if (getPyGenericServices() != other.getPyGenericServices()) return false; } if (hasPhpGenericServices() != other.hasPhpGenericServices()) return false; if (hasPhpGenericServices()) { if (getPhpGenericServices() != other.getPhpGenericServices()) return false; } if (hasDeprecated() != other.hasDeprecated()) return false; if (hasDeprecated()) { if (getDeprecated() != other.getDeprecated()) return false; } if (hasCcEnableArenas() != other.hasCcEnableArenas()) return false; if (hasCcEnableArenas()) { if (getCcEnableArenas() != other.getCcEnableArenas()) return false; } if (hasObjcClassPrefix() != other.hasObjcClassPrefix()) return false; if (hasObjcClassPrefix()) { if (!getObjcClassPrefix() .equals(other.getObjcClassPrefix())) return false; } if (hasCsharpNamespace() != other.hasCsharpNamespace()) return false; if (hasCsharpNamespace()) { if (!getCsharpNamespace() .equals(other.getCsharpNamespace())) return false; } if (hasSwiftPrefix() != other.hasSwiftPrefix()) return false; if (hasSwiftPrefix()) { if (!getSwiftPrefix() .equals(other.getSwiftPrefix())) return false; } if (hasPhpClassPrefix() != other.hasPhpClassPrefix()) return false; if (hasPhpClassPrefix()) { if (!getPhpClassPrefix() .equals(other.getPhpClassPrefix())) return false; } if (hasPhpNamespace() != other.hasPhpNamespace()) return false; if (hasPhpNamespace()) { if (!getPhpNamespace() .equals(other.getPhpNamespace())) return false; } if (hasPhpMetadataNamespace() != other.hasPhpMetadataNamespace()) return false; if (hasPhpMetadataNamespace()) { if (!getPhpMetadataNamespace() .equals(other.getPhpMetadataNamespace())) return false; } if (hasRubyPackage() != other.hasRubyPackage()) return false; if (hasRubyPackage()) { if (!getRubyPackage() .equals(other.getRubyPackage())) return false; } if (!getUninterpretedOptionList() .equals(other.getUninterpretedOptionList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; if (!getExtensionFields().equals(other.getExtensionFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasJavaPackage()) { hash = (37 * hash) + JAVA_PACKAGE_FIELD_NUMBER; hash = (53 * hash) + getJavaPackage().hashCode(); } if (hasJavaOuterClassname()) { hash = (37 * hash) + JAVA_OUTER_CLASSNAME_FIELD_NUMBER; hash = (53 * hash) + getJavaOuterClassname().hashCode(); } if (hasJavaMultipleFiles()) { hash = (37 * hash) + JAVA_MULTIPLE_FILES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getJavaMultipleFiles()); } if (hasJavaGenerateEqualsAndHash()) { hash = (37 * hash) + JAVA_GENERATE_EQUALS_AND_HASH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getJavaGenerateEqualsAndHash()); } if (hasJavaStringCheckUtf8()) { hash = (37 * hash) + JAVA_STRING_CHECK_UTF8_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getJavaStringCheckUtf8()); } if (hasOptimizeFor()) { hash = (37 * hash) + OPTIMIZE_FOR_FIELD_NUMBER; hash = (53 * hash) + optimizeFor_; } if (hasGoPackage()) { hash = (37 * hash) + GO_PACKAGE_FIELD_NUMBER; hash = (53 * hash) + getGoPackage().hashCode(); } if (hasCcGenericServices()) { hash = (37 * hash) + CC_GENERIC_SERVICES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCcGenericServices()); } if (hasJavaGenericServices()) { hash = (37 * hash) + JAVA_GENERIC_SERVICES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getJavaGenericServices()); } if (hasPyGenericServices()) { hash = (37 * hash) + PY_GENERIC_SERVICES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPyGenericServices()); } if (hasPhpGenericServices()) { hash = (37 * hash) + PHP_GENERIC_SERVICES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPhpGenericServices()); } if (hasDeprecated()) { hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDeprecated()); } if (hasCcEnableArenas()) { hash = (37 * hash) + CC_ENABLE_ARENAS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCcEnableArenas()); } if (hasObjcClassPrefix()) { hash = (37 * hash) + OBJC_CLASS_PREFIX_FIELD_NUMBER; hash = (53 * hash) + getObjcClassPrefix().hashCode(); } if (hasCsharpNamespace()) { hash = (37 * hash) + CSHARP_NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getCsharpNamespace().hashCode(); } if (hasSwiftPrefix()) { hash = (37 * hash) + SWIFT_PREFIX_FIELD_NUMBER; hash = (53 * hash) + getSwiftPrefix().hashCode(); } if (hasPhpClassPrefix()) { hash = (37 * hash) + PHP_CLASS_PREFIX_FIELD_NUMBER; hash = (53 * hash) + getPhpClassPrefix().hashCode(); } if (hasPhpNamespace()) { hash = (37 * hash) + PHP_NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getPhpNamespace().hashCode(); } if (hasPhpMetadataNamespace()) { hash = (37 * hash) + PHP_METADATA_NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getPhpMetadataNamespace().hashCode(); } if (hasRubyPackage()) { hash = (37 * hash) + RUBY_PACKAGE_FIELD_NUMBER; hash = (53 * hash) + getRubyPackage().hashCode(); } if (getUninterpretedOptionCount() > 0) { hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; hash = (53 * hash) + getUninterpretedOptionList().hashCode(); } hash = hashFields(hash, getExtensionFields()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.FileOptions 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.FileOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FileOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.FileOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FileOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Protobuf type google.protobuf.FileOptions
/** * Protobuf type {@code google.protobuf.FileOptions} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< com.google.protobuf.DescriptorProtos.FileOptions, Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.FileOptions) com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.FileOptions.class, com.google.protobuf.DescriptorProtos.FileOptions.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.FileOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getUninterpretedOptionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); javaPackage_ = ""; bitField0_ = (bitField0_ & ~0x00000001); javaOuterClassname_ = ""; bitField0_ = (bitField0_ & ~0x00000002); javaMultipleFiles_ = false; bitField0_ = (bitField0_ & ~0x00000004); javaGenerateEqualsAndHash_ = false; bitField0_ = (bitField0_ & ~0x00000008); javaStringCheckUtf8_ = false; bitField0_ = (bitField0_ & ~0x00000010); optimizeFor_ = 1; bitField0_ = (bitField0_ & ~0x00000020); goPackage_ = ""; bitField0_ = (bitField0_ & ~0x00000040); ccGenericServices_ = false; bitField0_ = (bitField0_ & ~0x00000080); javaGenericServices_ = false; bitField0_ = (bitField0_ & ~0x00000100); pyGenericServices_ = false; bitField0_ = (bitField0_ & ~0x00000200); phpGenericServices_ = false; bitField0_ = (bitField0_ & ~0x00000400); deprecated_ = false; bitField0_ = (bitField0_ & ~0x00000800); ccEnableArenas_ = false; bitField0_ = (bitField0_ & ~0x00001000); objcClassPrefix_ = ""; bitField0_ = (bitField0_ & ~0x00002000); csharpNamespace_ = ""; bitField0_ = (bitField0_ & ~0x00004000); swiftPrefix_ = ""; bitField0_ = (bitField0_ & ~0x00008000); phpClassPrefix_ = ""; bitField0_ = (bitField0_ & ~0x00010000); phpNamespace_ = ""; bitField0_ = (bitField0_ & ~0x00020000); phpMetadataNamespace_ = ""; bitField0_ = (bitField0_ & ~0x00040000); rubyPackage_ = ""; bitField0_ = (bitField0_ & ~0x00080000); if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00100000); } else { uninterpretedOptionBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileOptions_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.FileOptions getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.FileOptions build() { com.google.protobuf.DescriptorProtos.FileOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.FileOptions buildPartial() { com.google.protobuf.DescriptorProtos.FileOptions result = new com.google.protobuf.DescriptorProtos.FileOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.javaPackage_ = javaPackage_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.javaOuterClassname_ = javaOuterClassname_; if (((from_bitField0_ & 0x00000004) != 0)) { result.javaMultipleFiles_ = javaMultipleFiles_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.javaGenerateEqualsAndHash_ = javaGenerateEqualsAndHash_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.javaStringCheckUtf8_ = javaStringCheckUtf8_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { to_bitField0_ |= 0x00000020; } result.optimizeFor_ = optimizeFor_; if (((from_bitField0_ & 0x00000040) != 0)) { to_bitField0_ |= 0x00000040; } result.goPackage_ = goPackage_; if (((from_bitField0_ & 0x00000080) != 0)) { result.ccGenericServices_ = ccGenericServices_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { result.javaGenericServices_ = javaGenericServices_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000200) != 0)) { result.pyGenericServices_ = pyGenericServices_; to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00000400) != 0)) { result.phpGenericServices_ = phpGenericServices_; to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00000800) != 0)) { result.deprecated_ = deprecated_; to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00001000) != 0)) { result.ccEnableArenas_ = ccEnableArenas_; to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00002000) != 0)) { to_bitField0_ |= 0x00002000; } result.objcClassPrefix_ = objcClassPrefix_; if (((from_bitField0_ & 0x00004000) != 0)) { to_bitField0_ |= 0x00004000; } result.csharpNamespace_ = csharpNamespace_; if (((from_bitField0_ & 0x00008000) != 0)) { to_bitField0_ |= 0x00008000; } result.swiftPrefix_ = swiftPrefix_; if (((from_bitField0_ & 0x00010000) != 0)) { to_bitField0_ |= 0x00010000; } result.phpClassPrefix_ = phpClassPrefix_; if (((from_bitField0_ & 0x00020000) != 0)) { to_bitField0_ |= 0x00020000; } result.phpNamespace_ = phpNamespace_; if (((from_bitField0_ & 0x00040000) != 0)) { to_bitField0_ |= 0x00040000; } result.phpMetadataNamespace_ = phpMetadataNamespace_; if (((from_bitField0_ & 0x00080000) != 0)) { to_bitField0_ |= 0x00080000; } result.rubyPackage_ = rubyPackage_; if (uninterpretedOptionBuilder_ == null) { if (((bitField0_ & 0x00100000) != 0)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); bitField0_ = (bitField0_ & ~0x00100000); } result.uninterpretedOption_ = uninterpretedOption_; } else { result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public <Type> Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FileOptions, Type> extension, Type value) { return super.setExtension(extension, value); } @java.lang.Override public <Type> Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FileOptions, java.util.List<Type>> extension, int index, Type value) { return super.setExtension(extension, index, value); } @java.lang.Override public <Type> Builder addExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FileOptions, java.util.List<Type>> extension, Type value) { return super.addExtension(extension, value); } @java.lang.Override public <Type> Builder clearExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FileOptions, ?> extension) { return super.clearExtension(extension); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.FileOptions) { return mergeFrom((com.google.protobuf.DescriptorProtos.FileOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.FileOptions other) { if (other == com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance()) return this; if (other.hasJavaPackage()) { bitField0_ |= 0x00000001; javaPackage_ = other.javaPackage_; onChanged(); } if (other.hasJavaOuterClassname()) { bitField0_ |= 0x00000002; javaOuterClassname_ = other.javaOuterClassname_; onChanged(); } if (other.hasJavaMultipleFiles()) { setJavaMultipleFiles(other.getJavaMultipleFiles()); } if (other.hasJavaGenerateEqualsAndHash()) { setJavaGenerateEqualsAndHash(other.getJavaGenerateEqualsAndHash()); } if (other.hasJavaStringCheckUtf8()) { setJavaStringCheckUtf8(other.getJavaStringCheckUtf8()); } if (other.hasOptimizeFor()) { setOptimizeFor(other.getOptimizeFor()); } if (other.hasGoPackage()) { bitField0_ |= 0x00000040; goPackage_ = other.goPackage_; onChanged(); } if (other.hasCcGenericServices()) { setCcGenericServices(other.getCcGenericServices()); } if (other.hasJavaGenericServices()) { setJavaGenericServices(other.getJavaGenericServices()); } if (other.hasPyGenericServices()) { setPyGenericServices(other.getPyGenericServices()); } if (other.hasPhpGenericServices()) { setPhpGenericServices(other.getPhpGenericServices()); } if (other.hasDeprecated()) { setDeprecated(other.getDeprecated()); } if (other.hasCcEnableArenas()) { setCcEnableArenas(other.getCcEnableArenas()); } if (other.hasObjcClassPrefix()) { bitField0_ |= 0x00002000; objcClassPrefix_ = other.objcClassPrefix_; onChanged(); } if (other.hasCsharpNamespace()) { bitField0_ |= 0x00004000; csharpNamespace_ = other.csharpNamespace_; onChanged(); } if (other.hasSwiftPrefix()) { bitField0_ |= 0x00008000; swiftPrefix_ = other.swiftPrefix_; onChanged(); } if (other.hasPhpClassPrefix()) { bitField0_ |= 0x00010000; phpClassPrefix_ = other.phpClassPrefix_; onChanged(); } if (other.hasPhpNamespace()) { bitField0_ |= 0x00020000; phpNamespace_ = other.phpNamespace_; onChanged(); } if (other.hasPhpMetadataNamespace()) { bitField0_ |= 0x00040000; phpMetadataNamespace_ = other.phpMetadataNamespace_; onChanged(); } if (other.hasRubyPackage()) { bitField0_ |= 0x00080000; rubyPackage_ = other.rubyPackage_; onChanged(); } if (uninterpretedOptionBuilder_ == null) { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOption_.isEmpty()) { uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00100000); } else { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.addAll(other.uninterpretedOption_); } onChanged(); } } else { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOptionBuilder_.isEmpty()) { uninterpretedOptionBuilder_.dispose(); uninterpretedOptionBuilder_ = null; uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00100000); uninterpretedOptionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUninterpretedOptionFieldBuilder() : null; } else { uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); } } } this.mergeExtensionFields(other); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { return false; } } if (!extensionsAreInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.FileOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.FileOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object javaPackage_ = "";
Sets the Java package where classes generated from this .proto will be
placed.  By default, the proto package is used, but this is often
inappropriate because proto packages do not normally start with backwards
domain names.
optional string java_package = 1;
Returns:Whether the javaPackage field is set.
/** * <pre> * Sets the Java package where classes generated from this .proto will be * placed. By default, the proto package is used, but this is often * inappropriate because proto packages do not normally start with backwards * domain names. * </pre> * * <code>optional string java_package = 1;</code> * @return Whether the javaPackage field is set. */
public boolean hasJavaPackage() { return ((bitField0_ & 0x00000001) != 0); }
Sets the Java package where classes generated from this .proto will be
placed.  By default, the proto package is used, but this is often
inappropriate because proto packages do not normally start with backwards
domain names.
optional string java_package = 1;
Returns:The javaPackage.
/** * <pre> * Sets the Java package where classes generated from this .proto will be * placed. By default, the proto package is used, but this is often * inappropriate because proto packages do not normally start with backwards * domain names. * </pre> * * <code>optional string java_package = 1;</code> * @return The javaPackage. */
public java.lang.String getJavaPackage() { java.lang.Object ref = javaPackage_; 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()) { javaPackage_ = s; } return s; } else { return (java.lang.String) ref; } }
Sets the Java package where classes generated from this .proto will be
placed.  By default, the proto package is used, but this is often
inappropriate because proto packages do not normally start with backwards
domain names.
optional string java_package = 1;
Returns:The bytes for javaPackage.
/** * <pre> * Sets the Java package where classes generated from this .proto will be * placed. By default, the proto package is used, but this is often * inappropriate because proto packages do not normally start with backwards * domain names. * </pre> * * <code>optional string java_package = 1;</code> * @return The bytes for javaPackage. */
public com.google.protobuf.ByteString getJavaPackageBytes() { java.lang.Object ref = javaPackage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); javaPackage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
Sets the Java package where classes generated from this .proto will be
placed.  By default, the proto package is used, but this is often
inappropriate because proto packages do not normally start with backwards
domain names.
optional string java_package = 1;
Params:
  • value – The javaPackage to set.
Returns:This builder for chaining.
/** * <pre> * Sets the Java package where classes generated from this .proto will be * placed. By default, the proto package is used, but this is often * inappropriate because proto packages do not normally start with backwards * domain names. * </pre> * * <code>optional string java_package = 1;</code> * @param value The javaPackage to set. * @return This builder for chaining. */
public Builder setJavaPackage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; javaPackage_ = value; onChanged(); return this; }
Sets the Java package where classes generated from this .proto will be
placed.  By default, the proto package is used, but this is often
inappropriate because proto packages do not normally start with backwards
domain names.
optional string java_package = 1;
Returns:This builder for chaining.
/** * <pre> * Sets the Java package where classes generated from this .proto will be * placed. By default, the proto package is used, but this is often * inappropriate because proto packages do not normally start with backwards * domain names. * </pre> * * <code>optional string java_package = 1;</code> * @return This builder for chaining. */
public Builder clearJavaPackage() { bitField0_ = (bitField0_ & ~0x00000001); javaPackage_ = getDefaultInstance().getJavaPackage(); onChanged(); return this; }
Sets the Java package where classes generated from this .proto will be
placed.  By default, the proto package is used, but this is often
inappropriate because proto packages do not normally start with backwards
domain names.
optional string java_package = 1;
Params:
  • value – The bytes for javaPackage to set.
Returns:This builder for chaining.
/** * <pre> * Sets the Java package where classes generated from this .proto will be * placed. By default, the proto package is used, but this is often * inappropriate because proto packages do not normally start with backwards * domain names. * </pre> * * <code>optional string java_package = 1;</code> * @param value The bytes for javaPackage to set. * @return This builder for chaining. */
public Builder setJavaPackageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; javaPackage_ = value; onChanged(); return this; } private java.lang.Object javaOuterClassname_ = "";
If set, all the classes from the .proto file are wrapped in a single
outer class with the given name.  This applies to both Proto1
(equivalent to the old "--one_java_file" option) and Proto2 (where
a .proto always translates to a single class, but you may want to
explicitly choose the class name).
optional string java_outer_classname = 8;
Returns:Whether the javaOuterClassname field is set.
/** * <pre> * If set, all the classes from the .proto file are wrapped in a single * outer class with the given name. This applies to both Proto1 * (equivalent to the old "--one_java_file" option) and Proto2 (where * a .proto always translates to a single class, but you may want to * explicitly choose the class name). * </pre> * * <code>optional string java_outer_classname = 8;</code> * @return Whether the javaOuterClassname field is set. */
public boolean hasJavaOuterClassname() { return ((bitField0_ & 0x00000002) != 0); }
If set, all the classes from the .proto file are wrapped in a single
outer class with the given name.  This applies to both Proto1
(equivalent to the old "--one_java_file" option) and Proto2 (where
a .proto always translates to a single class, but you may want to
explicitly choose the class name).
optional string java_outer_classname = 8;
Returns:The javaOuterClassname.
/** * <pre> * If set, all the classes from the .proto file are wrapped in a single * outer class with the given name. This applies to both Proto1 * (equivalent to the old "--one_java_file" option) and Proto2 (where * a .proto always translates to a single class, but you may want to * explicitly choose the class name). * </pre> * * <code>optional string java_outer_classname = 8;</code> * @return The javaOuterClassname. */
public java.lang.String getJavaOuterClassname() { java.lang.Object ref = javaOuterClassname_; 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()) { javaOuterClassname_ = s; } return s; } else { return (java.lang.String) ref; } }
If set, all the classes from the .proto file are wrapped in a single
outer class with the given name.  This applies to both Proto1
(equivalent to the old "--one_java_file" option) and Proto2 (where
a .proto always translates to a single class, but you may want to
explicitly choose the class name).
optional string java_outer_classname = 8;
Returns:The bytes for javaOuterClassname.
/** * <pre> * If set, all the classes from the .proto file are wrapped in a single * outer class with the given name. This applies to both Proto1 * (equivalent to the old "--one_java_file" option) and Proto2 (where * a .proto always translates to a single class, but you may want to * explicitly choose the class name). * </pre> * * <code>optional string java_outer_classname = 8;</code> * @return The bytes for javaOuterClassname. */
public com.google.protobuf.ByteString getJavaOuterClassnameBytes() { java.lang.Object ref = javaOuterClassname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); javaOuterClassname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
If set, all the classes from the .proto file are wrapped in a single
outer class with the given name.  This applies to both Proto1
(equivalent to the old "--one_java_file" option) and Proto2 (where
a .proto always translates to a single class, but you may want to
explicitly choose the class name).
optional string java_outer_classname = 8;
Params:
  • value – The javaOuterClassname to set.
Returns:This builder for chaining.
/** * <pre> * If set, all the classes from the .proto file are wrapped in a single * outer class with the given name. This applies to both Proto1 * (equivalent to the old "--one_java_file" option) and Proto2 (where * a .proto always translates to a single class, but you may want to * explicitly choose the class name). * </pre> * * <code>optional string java_outer_classname = 8;</code> * @param value The javaOuterClassname to set. * @return This builder for chaining. */
public Builder setJavaOuterClassname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; javaOuterClassname_ = value; onChanged(); return this; }
If set, all the classes from the .proto file are wrapped in a single
outer class with the given name.  This applies to both Proto1
(equivalent to the old "--one_java_file" option) and Proto2 (where
a .proto always translates to a single class, but you may want to
explicitly choose the class name).
optional string java_outer_classname = 8;
Returns:This builder for chaining.
/** * <pre> * If set, all the classes from the .proto file are wrapped in a single * outer class with the given name. This applies to both Proto1 * (equivalent to the old "--one_java_file" option) and Proto2 (where * a .proto always translates to a single class, but you may want to * explicitly choose the class name). * </pre> * * <code>optional string java_outer_classname = 8;</code> * @return This builder for chaining. */
public Builder clearJavaOuterClassname() { bitField0_ = (bitField0_ & ~0x00000002); javaOuterClassname_ = getDefaultInstance().getJavaOuterClassname(); onChanged(); return this; }
If set, all the classes from the .proto file are wrapped in a single
outer class with the given name.  This applies to both Proto1
(equivalent to the old "--one_java_file" option) and Proto2 (where
a .proto always translates to a single class, but you may want to
explicitly choose the class name).
optional string java_outer_classname = 8;
Params:
  • value – The bytes for javaOuterClassname to set.
Returns:This builder for chaining.
/** * <pre> * If set, all the classes from the .proto file are wrapped in a single * outer class with the given name. This applies to both Proto1 * (equivalent to the old "--one_java_file" option) and Proto2 (where * a .proto always translates to a single class, but you may want to * explicitly choose the class name). * </pre> * * <code>optional string java_outer_classname = 8;</code> * @param value The bytes for javaOuterClassname to set. * @return This builder for chaining. */
public Builder setJavaOuterClassnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; javaOuterClassname_ = value; onChanged(); return this; } private boolean javaMultipleFiles_ ;
If set true, then the Java code generator will generate a separate .java
file for each top-level message, enum, and service defined in the .proto
file.  Thus, these types will *not* be nested inside the outer class
named by java_outer_classname.  However, the outer class will still be
generated to contain the file's getDescriptor() method as well as any
top-level extensions defined in the file.
optional bool java_multiple_files = 10 [default = false];
Returns:Whether the javaMultipleFiles field is set.
/** * <pre> * If set true, then the Java code generator will generate a separate .java * file for each top-level message, enum, and service defined in the .proto * file. Thus, these types will *not* be nested inside the outer class * named by java_outer_classname. However, the outer class will still be * generated to contain the file's getDescriptor() method as well as any * top-level extensions defined in the file. * </pre> * * <code>optional bool java_multiple_files = 10 [default = false];</code> * @return Whether the javaMultipleFiles field is set. */
public boolean hasJavaMultipleFiles() { return ((bitField0_ & 0x00000004) != 0); }
If set true, then the Java code generator will generate a separate .java
file for each top-level message, enum, and service defined in the .proto
file.  Thus, these types will *not* be nested inside the outer class
named by java_outer_classname.  However, the outer class will still be
generated to contain the file's getDescriptor() method as well as any
top-level extensions defined in the file.
optional bool java_multiple_files = 10 [default = false];
Returns:The javaMultipleFiles.
/** * <pre> * If set true, then the Java code generator will generate a separate .java * file for each top-level message, enum, and service defined in the .proto * file. Thus, these types will *not* be nested inside the outer class * named by java_outer_classname. However, the outer class will still be * generated to contain the file's getDescriptor() method as well as any * top-level extensions defined in the file. * </pre> * * <code>optional bool java_multiple_files = 10 [default = false];</code> * @return The javaMultipleFiles. */
public boolean getJavaMultipleFiles() { return javaMultipleFiles_; }
If set true, then the Java code generator will generate a separate .java
file for each top-level message, enum, and service defined in the .proto
file.  Thus, these types will *not* be nested inside the outer class
named by java_outer_classname.  However, the outer class will still be
generated to contain the file's getDescriptor() method as well as any
top-level extensions defined in the file.
optional bool java_multiple_files = 10 [default = false];
Params:
  • value – The javaMultipleFiles to set.
Returns:This builder for chaining.
/** * <pre> * If set true, then the Java code generator will generate a separate .java * file for each top-level message, enum, and service defined in the .proto * file. Thus, these types will *not* be nested inside the outer class * named by java_outer_classname. However, the outer class will still be * generated to contain the file's getDescriptor() method as well as any * top-level extensions defined in the file. * </pre> * * <code>optional bool java_multiple_files = 10 [default = false];</code> * @param value The javaMultipleFiles to set. * @return This builder for chaining. */
public Builder setJavaMultipleFiles(boolean value) { bitField0_ |= 0x00000004; javaMultipleFiles_ = value; onChanged(); return this; }
If set true, then the Java code generator will generate a separate .java
file for each top-level message, enum, and service defined in the .proto
file.  Thus, these types will *not* be nested inside the outer class
named by java_outer_classname.  However, the outer class will still be
generated to contain the file's getDescriptor() method as well as any
top-level extensions defined in the file.
optional bool java_multiple_files = 10 [default = false];
Returns:This builder for chaining.
/** * <pre> * If set true, then the Java code generator will generate a separate .java * file for each top-level message, enum, and service defined in the .proto * file. Thus, these types will *not* be nested inside the outer class * named by java_outer_classname. However, the outer class will still be * generated to contain the file's getDescriptor() method as well as any * top-level extensions defined in the file. * </pre> * * <code>optional bool java_multiple_files = 10 [default = false];</code> * @return This builder for chaining. */
public Builder clearJavaMultipleFiles() { bitField0_ = (bitField0_ & ~0x00000004); javaMultipleFiles_ = false; onChanged(); return this; } private boolean javaGenerateEqualsAndHash_ ;
This option does nothing.
optional bool java_generate_equals_and_hash = 20 [deprecated = true];
Returns:Whether the javaGenerateEqualsAndHash field is set.
/** * <pre> * This option does nothing. * </pre> * * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> * @return Whether the javaGenerateEqualsAndHash field is set. */
@java.lang.Deprecated public boolean hasJavaGenerateEqualsAndHash() { return ((bitField0_ & 0x00000008) != 0); }
This option does nothing.
optional bool java_generate_equals_and_hash = 20 [deprecated = true];
Returns:The javaGenerateEqualsAndHash.
/** * <pre> * This option does nothing. * </pre> * * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> * @return The javaGenerateEqualsAndHash. */
@java.lang.Deprecated public boolean getJavaGenerateEqualsAndHash() { return javaGenerateEqualsAndHash_; }
This option does nothing.
optional bool java_generate_equals_and_hash = 20 [deprecated = true];
Params:
  • value – The javaGenerateEqualsAndHash to set.
Returns:This builder for chaining.
/** * <pre> * This option does nothing. * </pre> * * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> * @param value The javaGenerateEqualsAndHash to set. * @return This builder for chaining. */
@java.lang.Deprecated public Builder setJavaGenerateEqualsAndHash(boolean value) { bitField0_ |= 0x00000008; javaGenerateEqualsAndHash_ = value; onChanged(); return this; }
This option does nothing.
optional bool java_generate_equals_and_hash = 20 [deprecated = true];
Returns:This builder for chaining.
/** * <pre> * This option does nothing. * </pre> * * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> * @return This builder for chaining. */
@java.lang.Deprecated public Builder clearJavaGenerateEqualsAndHash() { bitField0_ = (bitField0_ & ~0x00000008); javaGenerateEqualsAndHash_ = false; onChanged(); return this; } private boolean javaStringCheckUtf8_ ;
If set true, then the Java2 code generator will generate code that
throws an exception whenever an attempt is made to assign a non-UTF-8
byte sequence to a string field.
Message reflection will do the same.
However, an extension field still accepts non-UTF-8 byte sequences.
This option has no effect on when used with the lite runtime.
optional bool java_string_check_utf8 = 27 [default = false];
Returns:Whether the javaStringCheckUtf8 field is set.
/** * <pre> * If set true, then the Java2 code generator will generate code that * throws an exception whenever an attempt is made to assign a non-UTF-8 * byte sequence to a string field. * Message reflection will do the same. * However, an extension field still accepts non-UTF-8 byte sequences. * This option has no effect on when used with the lite runtime. * </pre> * * <code>optional bool java_string_check_utf8 = 27 [default = false];</code> * @return Whether the javaStringCheckUtf8 field is set. */
public boolean hasJavaStringCheckUtf8() { return ((bitField0_ & 0x00000010) != 0); }
If set true, then the Java2 code generator will generate code that
throws an exception whenever an attempt is made to assign a non-UTF-8
byte sequence to a string field.
Message reflection will do the same.
However, an extension field still accepts non-UTF-8 byte sequences.
This option has no effect on when used with the lite runtime.
optional bool java_string_check_utf8 = 27 [default = false];
Returns:The javaStringCheckUtf8.
/** * <pre> * If set true, then the Java2 code generator will generate code that * throws an exception whenever an attempt is made to assign a non-UTF-8 * byte sequence to a string field. * Message reflection will do the same. * However, an extension field still accepts non-UTF-8 byte sequences. * This option has no effect on when used with the lite runtime. * </pre> * * <code>optional bool java_string_check_utf8 = 27 [default = false];</code> * @return The javaStringCheckUtf8. */
public boolean getJavaStringCheckUtf8() { return javaStringCheckUtf8_; }
If set true, then the Java2 code generator will generate code that
throws an exception whenever an attempt is made to assign a non-UTF-8
byte sequence to a string field.
Message reflection will do the same.
However, an extension field still accepts non-UTF-8 byte sequences.
This option has no effect on when used with the lite runtime.
optional bool java_string_check_utf8 = 27 [default = false];
Params:
  • value – The javaStringCheckUtf8 to set.
Returns:This builder for chaining.
/** * <pre> * If set true, then the Java2 code generator will generate code that * throws an exception whenever an attempt is made to assign a non-UTF-8 * byte sequence to a string field. * Message reflection will do the same. * However, an extension field still accepts non-UTF-8 byte sequences. * This option has no effect on when used with the lite runtime. * </pre> * * <code>optional bool java_string_check_utf8 = 27 [default = false];</code> * @param value The javaStringCheckUtf8 to set. * @return This builder for chaining. */
public Builder setJavaStringCheckUtf8(boolean value) { bitField0_ |= 0x00000010; javaStringCheckUtf8_ = value; onChanged(); return this; }
If set true, then the Java2 code generator will generate code that
throws an exception whenever an attempt is made to assign a non-UTF-8
byte sequence to a string field.
Message reflection will do the same.
However, an extension field still accepts non-UTF-8 byte sequences.
This option has no effect on when used with the lite runtime.
optional bool java_string_check_utf8 = 27 [default = false];
Returns:This builder for chaining.
/** * <pre> * If set true, then the Java2 code generator will generate code that * throws an exception whenever an attempt is made to assign a non-UTF-8 * byte sequence to a string field. * Message reflection will do the same. * However, an extension field still accepts non-UTF-8 byte sequences. * This option has no effect on when used with the lite runtime. * </pre> * * <code>optional bool java_string_check_utf8 = 27 [default = false];</code> * @return This builder for chaining. */
public Builder clearJavaStringCheckUtf8() { bitField0_ = (bitField0_ & ~0x00000010); javaStringCheckUtf8_ = false; onChanged(); return this; } private int optimizeFor_ = 1;
optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
Returns:Whether the optimizeFor field is set.
/** * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> * @return Whether the optimizeFor field is set. */
public boolean hasOptimizeFor() { return ((bitField0_ & 0x00000020) != 0); }
optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
Returns:The optimizeFor.
/** * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> * @return The optimizeFor. */
public com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode getOptimizeFor() { @SuppressWarnings("deprecation") com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode result = com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.valueOf(optimizeFor_); return result == null ? com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.SPEED : result; }
optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
Params:
  • value – The optimizeFor to set.
Returns:This builder for chaining.
/** * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> * @param value The optimizeFor to set. * @return This builder for chaining. */
public Builder setOptimizeFor(com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; optimizeFor_ = value.getNumber(); onChanged(); return this; }
optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
Returns:This builder for chaining.
/** * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> * @return This builder for chaining. */
public Builder clearOptimizeFor() { bitField0_ = (bitField0_ & ~0x00000020); optimizeFor_ = 1; onChanged(); return this; } private java.lang.Object goPackage_ = "";
Sets the Go package where structs generated from this .proto will be
placed. If omitted, the Go package will be derived from the following:
  - The basename of the package import path, if provided.
  - Otherwise, the package statement in the .proto file, if present.
  - Otherwise, the basename of the .proto file, without extension.
optional string go_package = 11;
Returns:Whether the goPackage field is set.
/** * <pre> * Sets the Go package where structs generated from this .proto will be * placed. If omitted, the Go package will be derived from the following: * - The basename of the package import path, if provided. * - Otherwise, the package statement in the .proto file, if present. * - Otherwise, the basename of the .proto file, without extension. * </pre> * * <code>optional string go_package = 11;</code> * @return Whether the goPackage field is set. */
public boolean hasGoPackage() { return ((bitField0_ & 0x00000040) != 0); }
Sets the Go package where structs generated from this .proto will be
placed. If omitted, the Go package will be derived from the following:
  - The basename of the package import path, if provided.
  - Otherwise, the package statement in the .proto file, if present.
  - Otherwise, the basename of the .proto file, without extension.
optional string go_package = 11;
Returns:The goPackage.
/** * <pre> * Sets the Go package where structs generated from this .proto will be * placed. If omitted, the Go package will be derived from the following: * - The basename of the package import path, if provided. * - Otherwise, the package statement in the .proto file, if present. * - Otherwise, the basename of the .proto file, without extension. * </pre> * * <code>optional string go_package = 11;</code> * @return The goPackage. */
public java.lang.String getGoPackage() { java.lang.Object ref = goPackage_; 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()) { goPackage_ = s; } return s; } else { return (java.lang.String) ref; } }
Sets the Go package where structs generated from this .proto will be
placed. If omitted, the Go package will be derived from the following:
  - The basename of the package import path, if provided.
  - Otherwise, the package statement in the .proto file, if present.
  - Otherwise, the basename of the .proto file, without extension.
optional string go_package = 11;
Returns:The bytes for goPackage.
/** * <pre> * Sets the Go package where structs generated from this .proto will be * placed. If omitted, the Go package will be derived from the following: * - The basename of the package import path, if provided. * - Otherwise, the package statement in the .proto file, if present. * - Otherwise, the basename of the .proto file, without extension. * </pre> * * <code>optional string go_package = 11;</code> * @return The bytes for goPackage. */
public com.google.protobuf.ByteString getGoPackageBytes() { java.lang.Object ref = goPackage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); goPackage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
Sets the Go package where structs generated from this .proto will be
placed. If omitted, the Go package will be derived from the following:
  - The basename of the package import path, if provided.
  - Otherwise, the package statement in the .proto file, if present.
  - Otherwise, the basename of the .proto file, without extension.
optional string go_package = 11;
Params:
  • value – The goPackage to set.
Returns:This builder for chaining.
/** * <pre> * Sets the Go package where structs generated from this .proto will be * placed. If omitted, the Go package will be derived from the following: * - The basename of the package import path, if provided. * - Otherwise, the package statement in the .proto file, if present. * - Otherwise, the basename of the .proto file, without extension. * </pre> * * <code>optional string go_package = 11;</code> * @param value The goPackage to set. * @return This builder for chaining. */
public Builder setGoPackage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; goPackage_ = value; onChanged(); return this; }
Sets the Go package where structs generated from this .proto will be
placed. If omitted, the Go package will be derived from the following:
  - The basename of the package import path, if provided.
  - Otherwise, the package statement in the .proto file, if present.
  - Otherwise, the basename of the .proto file, without extension.
optional string go_package = 11;
Returns:This builder for chaining.
/** * <pre> * Sets the Go package where structs generated from this .proto will be * placed. If omitted, the Go package will be derived from the following: * - The basename of the package import path, if provided. * - Otherwise, the package statement in the .proto file, if present. * - Otherwise, the basename of the .proto file, without extension. * </pre> * * <code>optional string go_package = 11;</code> * @return This builder for chaining. */
public Builder clearGoPackage() { bitField0_ = (bitField0_ & ~0x00000040); goPackage_ = getDefaultInstance().getGoPackage(); onChanged(); return this; }
Sets the Go package where structs generated from this .proto will be
placed. If omitted, the Go package will be derived from the following:
  - The basename of the package import path, if provided.
  - Otherwise, the package statement in the .proto file, if present.
  - Otherwise, the basename of the .proto file, without extension.
optional string go_package = 11;
Params:
  • value – The bytes for goPackage to set.
Returns:This builder for chaining.
/** * <pre> * Sets the Go package where structs generated from this .proto will be * placed. If omitted, the Go package will be derived from the following: * - The basename of the package import path, if provided. * - Otherwise, the package statement in the .proto file, if present. * - Otherwise, the basename of the .proto file, without extension. * </pre> * * <code>optional string go_package = 11;</code> * @param value The bytes for goPackage to set. * @return This builder for chaining. */
public Builder setGoPackageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; goPackage_ = value; onChanged(); return this; } private boolean ccGenericServices_ ;
Should generic services be generated in each language?  "Generic" services
are not specific to any particular RPC system.  They are generated by the
main code generators in each language (without additional plugins).
Generic services were the only kind of service generation supported by
early versions of google.protobuf.
Generic services are now considered deprecated in favor of using plugins
that generate code specific to your particular RPC system.  Therefore,
these default to false.  Old code which depends on generic services should
explicitly set them to true.
optional bool cc_generic_services = 16 [default = false];
Returns:Whether the ccGenericServices field is set.
/** * <pre> * Should generic services be generated in each language? "Generic" services * are not specific to any particular RPC system. They are generated by the * main code generators in each language (without additional plugins). * Generic services were the only kind of service generation supported by * early versions of google.protobuf. * Generic services are now considered deprecated in favor of using plugins * that generate code specific to your particular RPC system. Therefore, * these default to false. Old code which depends on generic services should * explicitly set them to true. * </pre> * * <code>optional bool cc_generic_services = 16 [default = false];</code> * @return Whether the ccGenericServices field is set. */
public boolean hasCcGenericServices() { return ((bitField0_ & 0x00000080) != 0); }
Should generic services be generated in each language?  "Generic" services
are not specific to any particular RPC system.  They are generated by the
main code generators in each language (without additional plugins).
Generic services were the only kind of service generation supported by
early versions of google.protobuf.
Generic services are now considered deprecated in favor of using plugins
that generate code specific to your particular RPC system.  Therefore,
these default to false.  Old code which depends on generic services should
explicitly set them to true.
optional bool cc_generic_services = 16 [default = false];
Returns:The ccGenericServices.
/** * <pre> * Should generic services be generated in each language? "Generic" services * are not specific to any particular RPC system. They are generated by the * main code generators in each language (without additional plugins). * Generic services were the only kind of service generation supported by * early versions of google.protobuf. * Generic services are now considered deprecated in favor of using plugins * that generate code specific to your particular RPC system. Therefore, * these default to false. Old code which depends on generic services should * explicitly set them to true. * </pre> * * <code>optional bool cc_generic_services = 16 [default = false];</code> * @return The ccGenericServices. */
public boolean getCcGenericServices() { return ccGenericServices_; }
Should generic services be generated in each language?  "Generic" services
are not specific to any particular RPC system.  They are generated by the
main code generators in each language (without additional plugins).
Generic services were the only kind of service generation supported by
early versions of google.protobuf.
Generic services are now considered deprecated in favor of using plugins
that generate code specific to your particular RPC system.  Therefore,
these default to false.  Old code which depends on generic services should
explicitly set them to true.
optional bool cc_generic_services = 16 [default = false];
Params:
  • value – The ccGenericServices to set.
Returns:This builder for chaining.
/** * <pre> * Should generic services be generated in each language? "Generic" services * are not specific to any particular RPC system. They are generated by the * main code generators in each language (without additional plugins). * Generic services were the only kind of service generation supported by * early versions of google.protobuf. * Generic services are now considered deprecated in favor of using plugins * that generate code specific to your particular RPC system. Therefore, * these default to false. Old code which depends on generic services should * explicitly set them to true. * </pre> * * <code>optional bool cc_generic_services = 16 [default = false];</code> * @param value The ccGenericServices to set. * @return This builder for chaining. */
public Builder setCcGenericServices(boolean value) { bitField0_ |= 0x00000080; ccGenericServices_ = value; onChanged(); return this; }
Should generic services be generated in each language?  "Generic" services
are not specific to any particular RPC system.  They are generated by the
main code generators in each language (without additional plugins).
Generic services were the only kind of service generation supported by
early versions of google.protobuf.
Generic services are now considered deprecated in favor of using plugins
that generate code specific to your particular RPC system.  Therefore,
these default to false.  Old code which depends on generic services should
explicitly set them to true.
optional bool cc_generic_services = 16 [default = false];
Returns:This builder for chaining.
/** * <pre> * Should generic services be generated in each language? "Generic" services * are not specific to any particular RPC system. They are generated by the * main code generators in each language (without additional plugins). * Generic services were the only kind of service generation supported by * early versions of google.protobuf. * Generic services are now considered deprecated in favor of using plugins * that generate code specific to your particular RPC system. Therefore, * these default to false. Old code which depends on generic services should * explicitly set them to true. * </pre> * * <code>optional bool cc_generic_services = 16 [default = false];</code> * @return This builder for chaining. */
public Builder clearCcGenericServices() { bitField0_ = (bitField0_ & ~0x00000080); ccGenericServices_ = false; onChanged(); return this; } private boolean javaGenericServices_ ;
optional bool java_generic_services = 17 [default = false];
Returns:Whether the javaGenericServices field is set.
/** * <code>optional bool java_generic_services = 17 [default = false];</code> * @return Whether the javaGenericServices field is set. */
public boolean hasJavaGenericServices() { return ((bitField0_ & 0x00000100) != 0); }
optional bool java_generic_services = 17 [default = false];
Returns:The javaGenericServices.
/** * <code>optional bool java_generic_services = 17 [default = false];</code> * @return The javaGenericServices. */
public boolean getJavaGenericServices() { return javaGenericServices_; }
optional bool java_generic_services = 17 [default = false];
Params:
  • value – The javaGenericServices to set.
Returns:This builder for chaining.
/** * <code>optional bool java_generic_services = 17 [default = false];</code> * @param value The javaGenericServices to set. * @return This builder for chaining. */
public Builder setJavaGenericServices(boolean value) { bitField0_ |= 0x00000100; javaGenericServices_ = value; onChanged(); return this; }
optional bool java_generic_services = 17 [default = false];
Returns:This builder for chaining.
/** * <code>optional bool java_generic_services = 17 [default = false];</code> * @return This builder for chaining. */
public Builder clearJavaGenericServices() { bitField0_ = (bitField0_ & ~0x00000100); javaGenericServices_ = false; onChanged(); return this; } private boolean pyGenericServices_ ;
optional bool py_generic_services = 18 [default = false];
Returns:Whether the pyGenericServices field is set.
/** * <code>optional bool py_generic_services = 18 [default = false];</code> * @return Whether the pyGenericServices field is set. */
public boolean hasPyGenericServices() { return ((bitField0_ & 0x00000200) != 0); }
optional bool py_generic_services = 18 [default = false];
Returns:The pyGenericServices.
/** * <code>optional bool py_generic_services = 18 [default = false];</code> * @return The pyGenericServices. */
public boolean getPyGenericServices() { return pyGenericServices_; }
optional bool py_generic_services = 18 [default = false];
Params:
  • value – The pyGenericServices to set.
Returns:This builder for chaining.
/** * <code>optional bool py_generic_services = 18 [default = false];</code> * @param value The pyGenericServices to set. * @return This builder for chaining. */
public Builder setPyGenericServices(boolean value) { bitField0_ |= 0x00000200; pyGenericServices_ = value; onChanged(); return this; }
optional bool py_generic_services = 18 [default = false];
Returns:This builder for chaining.
/** * <code>optional bool py_generic_services = 18 [default = false];</code> * @return This builder for chaining. */
public Builder clearPyGenericServices() { bitField0_ = (bitField0_ & ~0x00000200); pyGenericServices_ = false; onChanged(); return this; } private boolean phpGenericServices_ ;
optional bool php_generic_services = 42 [default = false];
Returns:Whether the phpGenericServices field is set.
/** * <code>optional bool php_generic_services = 42 [default = false];</code> * @return Whether the phpGenericServices field is set. */
public boolean hasPhpGenericServices() { return ((bitField0_ & 0x00000400) != 0); }
optional bool php_generic_services = 42 [default = false];
Returns:The phpGenericServices.
/** * <code>optional bool php_generic_services = 42 [default = false];</code> * @return The phpGenericServices. */
public boolean getPhpGenericServices() { return phpGenericServices_; }
optional bool php_generic_services = 42 [default = false];
Params:
  • value – The phpGenericServices to set.
Returns:This builder for chaining.
/** * <code>optional bool php_generic_services = 42 [default = false];</code> * @param value The phpGenericServices to set. * @return This builder for chaining. */
public Builder setPhpGenericServices(boolean value) { bitField0_ |= 0x00000400; phpGenericServices_ = value; onChanged(); return this; }
optional bool php_generic_services = 42 [default = false];
Returns:This builder for chaining.
/** * <code>optional bool php_generic_services = 42 [default = false];</code> * @return This builder for chaining. */
public Builder clearPhpGenericServices() { bitField0_ = (bitField0_ & ~0x00000400); phpGenericServices_ = false; onChanged(); return this; } private boolean deprecated_ ;
Is this file deprecated?
Depending on the target platform, this can emit Deprecated annotations
for everything in the file, or it will be completely ignored; in the very
least, this is a formalization for deprecating files.
optional bool deprecated = 23 [default = false];
Returns:Whether the deprecated field is set.
/** * <pre> * Is this file deprecated? * Depending on the target platform, this can emit Deprecated annotations * for everything in the file, or it will be completely ignored; in the very * least, this is a formalization for deprecating files. * </pre> * * <code>optional bool deprecated = 23 [default = false];</code> * @return Whether the deprecated field is set. */
public boolean hasDeprecated() { return ((bitField0_ & 0x00000800) != 0); }
Is this file deprecated?
Depending on the target platform, this can emit Deprecated annotations
for everything in the file, or it will be completely ignored; in the very
least, this is a formalization for deprecating files.
optional bool deprecated = 23 [default = false];
Returns:The deprecated.
/** * <pre> * Is this file deprecated? * Depending on the target platform, this can emit Deprecated annotations * for everything in the file, or it will be completely ignored; in the very * least, this is a formalization for deprecating files. * </pre> * * <code>optional bool deprecated = 23 [default = false];</code> * @return The deprecated. */
public boolean getDeprecated() { return deprecated_; }
Is this file deprecated?
Depending on the target platform, this can emit Deprecated annotations
for everything in the file, or it will be completely ignored; in the very
least, this is a formalization for deprecating files.
optional bool deprecated = 23 [default = false];
Params:
  • value – The deprecated to set.
Returns:This builder for chaining.
/** * <pre> * Is this file deprecated? * Depending on the target platform, this can emit Deprecated annotations * for everything in the file, or it will be completely ignored; in the very * least, this is a formalization for deprecating files. * </pre> * * <code>optional bool deprecated = 23 [default = false];</code> * @param value The deprecated to set. * @return This builder for chaining. */
public Builder setDeprecated(boolean value) { bitField0_ |= 0x00000800; deprecated_ = value; onChanged(); return this; }
Is this file deprecated?
Depending on the target platform, this can emit Deprecated annotations
for everything in the file, or it will be completely ignored; in the very
least, this is a formalization for deprecating files.
optional bool deprecated = 23 [default = false];
Returns:This builder for chaining.
/** * <pre> * Is this file deprecated? * Depending on the target platform, this can emit Deprecated annotations * for everything in the file, or it will be completely ignored; in the very * least, this is a formalization for deprecating files. * </pre> * * <code>optional bool deprecated = 23 [default = false];</code> * @return This builder for chaining. */
public Builder clearDeprecated() { bitField0_ = (bitField0_ & ~0x00000800); deprecated_ = false; onChanged(); return this; } private boolean ccEnableArenas_ ;
Enables the use of arenas for the proto messages in this file. This applies
only to generated classes for C++.
optional bool cc_enable_arenas = 31 [default = false];
Returns:Whether the ccEnableArenas field is set.
/** * <pre> * Enables the use of arenas for the proto messages in this file. This applies * only to generated classes for C++. * </pre> * * <code>optional bool cc_enable_arenas = 31 [default = false];</code> * @return Whether the ccEnableArenas field is set. */
public boolean hasCcEnableArenas() { return ((bitField0_ & 0x00001000) != 0); }
Enables the use of arenas for the proto messages in this file. This applies
only to generated classes for C++.
optional bool cc_enable_arenas = 31 [default = false];
Returns:The ccEnableArenas.
/** * <pre> * Enables the use of arenas for the proto messages in this file. This applies * only to generated classes for C++. * </pre> * * <code>optional bool cc_enable_arenas = 31 [default = false];</code> * @return The ccEnableArenas. */
public boolean getCcEnableArenas() { return ccEnableArenas_; }
Enables the use of arenas for the proto messages in this file. This applies
only to generated classes for C++.
optional bool cc_enable_arenas = 31 [default = false];
Params:
  • value – The ccEnableArenas to set.
Returns:This builder for chaining.
/** * <pre> * Enables the use of arenas for the proto messages in this file. This applies * only to generated classes for C++. * </pre> * * <code>optional bool cc_enable_arenas = 31 [default = false];</code> * @param value The ccEnableArenas to set. * @return This builder for chaining. */
public Builder setCcEnableArenas(boolean value) { bitField0_ |= 0x00001000; ccEnableArenas_ = value; onChanged(); return this; }
Enables the use of arenas for the proto messages in this file. This applies
only to generated classes for C++.
optional bool cc_enable_arenas = 31 [default = false];
Returns:This builder for chaining.
/** * <pre> * Enables the use of arenas for the proto messages in this file. This applies * only to generated classes for C++. * </pre> * * <code>optional bool cc_enable_arenas = 31 [default = false];</code> * @return This builder for chaining. */
public Builder clearCcEnableArenas() { bitField0_ = (bitField0_ & ~0x00001000); ccEnableArenas_ = false; onChanged(); return this; } private java.lang.Object objcClassPrefix_ = "";
Sets the objective c class prefix which is prepended to all objective c
generated classes from this .proto. There is no default.
optional string objc_class_prefix = 36;
Returns:Whether the objcClassPrefix field is set.
/** * <pre> * Sets the objective c class prefix which is prepended to all objective c * generated classes from this .proto. There is no default. * </pre> * * <code>optional string objc_class_prefix = 36;</code> * @return Whether the objcClassPrefix field is set. */
public boolean hasObjcClassPrefix() { return ((bitField0_ & 0x00002000) != 0); }
Sets the objective c class prefix which is prepended to all objective c
generated classes from this .proto. There is no default.
optional string objc_class_prefix = 36;
Returns:The objcClassPrefix.
/** * <pre> * Sets the objective c class prefix which is prepended to all objective c * generated classes from this .proto. There is no default. * </pre> * * <code>optional string objc_class_prefix = 36;</code> * @return The objcClassPrefix. */
public java.lang.String getObjcClassPrefix() { java.lang.Object ref = objcClassPrefix_; 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()) { objcClassPrefix_ = s; } return s; } else { return (java.lang.String) ref; } }
Sets the objective c class prefix which is prepended to all objective c
generated classes from this .proto. There is no default.
optional string objc_class_prefix = 36;
Returns:The bytes for objcClassPrefix.
/** * <pre> * Sets the objective c class prefix which is prepended to all objective c * generated classes from this .proto. There is no default. * </pre> * * <code>optional string objc_class_prefix = 36;</code> * @return The bytes for objcClassPrefix. */
public com.google.protobuf.ByteString getObjcClassPrefixBytes() { java.lang.Object ref = objcClassPrefix_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); objcClassPrefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
Sets the objective c class prefix which is prepended to all objective c
generated classes from this .proto. There is no default.
optional string objc_class_prefix = 36;
Params:
  • value – The objcClassPrefix to set.
Returns:This builder for chaining.
/** * <pre> * Sets the objective c class prefix which is prepended to all objective c * generated classes from this .proto. There is no default. * </pre> * * <code>optional string objc_class_prefix = 36;</code> * @param value The objcClassPrefix to set. * @return This builder for chaining. */
public Builder setObjcClassPrefix( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00002000; objcClassPrefix_ = value; onChanged(); return this; }
Sets the objective c class prefix which is prepended to all objective c
generated classes from this .proto. There is no default.
optional string objc_class_prefix = 36;
Returns:This builder for chaining.
/** * <pre> * Sets the objective c class prefix which is prepended to all objective c * generated classes from this .proto. There is no default. * </pre> * * <code>optional string objc_class_prefix = 36;</code> * @return This builder for chaining. */
public Builder clearObjcClassPrefix() { bitField0_ = (bitField0_ & ~0x00002000); objcClassPrefix_ = getDefaultInstance().getObjcClassPrefix(); onChanged(); return this; }
Sets the objective c class prefix which is prepended to all objective c
generated classes from this .proto. There is no default.
optional string objc_class_prefix = 36;
Params:
  • value – The bytes for objcClassPrefix to set.
Returns:This builder for chaining.
/** * <pre> * Sets the objective c class prefix which is prepended to all objective c * generated classes from this .proto. There is no default. * </pre> * * <code>optional string objc_class_prefix = 36;</code> * @param value The bytes for objcClassPrefix to set. * @return This builder for chaining. */
public Builder setObjcClassPrefixBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00002000; objcClassPrefix_ = value; onChanged(); return this; } private java.lang.Object csharpNamespace_ = "";
Namespace for generated classes; defaults to the package.
optional string csharp_namespace = 37;
Returns:Whether the csharpNamespace field is set.
/** * <pre> * Namespace for generated classes; defaults to the package. * </pre> * * <code>optional string csharp_namespace = 37;</code> * @return Whether the csharpNamespace field is set. */
public boolean hasCsharpNamespace() { return ((bitField0_ & 0x00004000) != 0); }
Namespace for generated classes; defaults to the package.
optional string csharp_namespace = 37;
Returns:The csharpNamespace.
/** * <pre> * Namespace for generated classes; defaults to the package. * </pre> * * <code>optional string csharp_namespace = 37;</code> * @return The csharpNamespace. */
public java.lang.String getCsharpNamespace() { java.lang.Object ref = csharpNamespace_; 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()) { csharpNamespace_ = s; } return s; } else { return (java.lang.String) ref; } }
Namespace for generated classes; defaults to the package.
optional string csharp_namespace = 37;
Returns:The bytes for csharpNamespace.
/** * <pre> * Namespace for generated classes; defaults to the package. * </pre> * * <code>optional string csharp_namespace = 37;</code> * @return The bytes for csharpNamespace. */
public com.google.protobuf.ByteString getCsharpNamespaceBytes() { java.lang.Object ref = csharpNamespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); csharpNamespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
Namespace for generated classes; defaults to the package.
optional string csharp_namespace = 37;
Params:
  • value – The csharpNamespace to set.
Returns:This builder for chaining.
/** * <pre> * Namespace for generated classes; defaults to the package. * </pre> * * <code>optional string csharp_namespace = 37;</code> * @param value The csharpNamespace to set. * @return This builder for chaining. */
public Builder setCsharpNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00004000; csharpNamespace_ = value; onChanged(); return this; }
Namespace for generated classes; defaults to the package.
optional string csharp_namespace = 37;
Returns:This builder for chaining.
/** * <pre> * Namespace for generated classes; defaults to the package. * </pre> * * <code>optional string csharp_namespace = 37;</code> * @return This builder for chaining. */
public Builder clearCsharpNamespace() { bitField0_ = (bitField0_ & ~0x00004000); csharpNamespace_ = getDefaultInstance().getCsharpNamespace(); onChanged(); return this; }
Namespace for generated classes; defaults to the package.
optional string csharp_namespace = 37;
Params:
  • value – The bytes for csharpNamespace to set.
Returns:This builder for chaining.
/** * <pre> * Namespace for generated classes; defaults to the package. * </pre> * * <code>optional string csharp_namespace = 37;</code> * @param value The bytes for csharpNamespace to set. * @return This builder for chaining. */
public Builder setCsharpNamespaceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00004000; csharpNamespace_ = value; onChanged(); return this; } private java.lang.Object swiftPrefix_ = "";
By default Swift generators will take the proto package and CamelCase it
replacing '.' with underscore and use that to prefix the types/symbols
defined. When this options is provided, they will use this value instead
to prefix the types/symbols defined.
optional string swift_prefix = 39;
Returns:Whether the swiftPrefix field is set.
/** * <pre> * By default Swift generators will take the proto package and CamelCase it * replacing '.' with underscore and use that to prefix the types/symbols * defined. When this options is provided, they will use this value instead * to prefix the types/symbols defined. * </pre> * * <code>optional string swift_prefix = 39;</code> * @return Whether the swiftPrefix field is set. */
public boolean hasSwiftPrefix() { return ((bitField0_ & 0x00008000) != 0); }
By default Swift generators will take the proto package and CamelCase it
replacing '.' with underscore and use that to prefix the types/symbols
defined. When this options is provided, they will use this value instead
to prefix the types/symbols defined.
optional string swift_prefix = 39;
Returns:The swiftPrefix.
/** * <pre> * By default Swift generators will take the proto package and CamelCase it * replacing '.' with underscore and use that to prefix the types/symbols * defined. When this options is provided, they will use this value instead * to prefix the types/symbols defined. * </pre> * * <code>optional string swift_prefix = 39;</code> * @return The swiftPrefix. */
public java.lang.String getSwiftPrefix() { java.lang.Object ref = swiftPrefix_; 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()) { swiftPrefix_ = s; } return s; } else { return (java.lang.String) ref; } }
By default Swift generators will take the proto package and CamelCase it
replacing '.' with underscore and use that to prefix the types/symbols
defined. When this options is provided, they will use this value instead
to prefix the types/symbols defined.
optional string swift_prefix = 39;
Returns:The bytes for swiftPrefix.
/** * <pre> * By default Swift generators will take the proto package and CamelCase it * replacing '.' with underscore and use that to prefix the types/symbols * defined. When this options is provided, they will use this value instead * to prefix the types/symbols defined. * </pre> * * <code>optional string swift_prefix = 39;</code> * @return The bytes for swiftPrefix. */
public com.google.protobuf.ByteString getSwiftPrefixBytes() { java.lang.Object ref = swiftPrefix_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); swiftPrefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
By default Swift generators will take the proto package and CamelCase it
replacing '.' with underscore and use that to prefix the types/symbols
defined. When this options is provided, they will use this value instead
to prefix the types/symbols defined.
optional string swift_prefix = 39;
Params:
  • value – The swiftPrefix to set.
Returns:This builder for chaining.
/** * <pre> * By default Swift generators will take the proto package and CamelCase it * replacing '.' with underscore and use that to prefix the types/symbols * defined. When this options is provided, they will use this value instead * to prefix the types/symbols defined. * </pre> * * <code>optional string swift_prefix = 39;</code> * @param value The swiftPrefix to set. * @return This builder for chaining. */
public Builder setSwiftPrefix( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00008000; swiftPrefix_ = value; onChanged(); return this; }
By default Swift generators will take the proto package and CamelCase it
replacing '.' with underscore and use that to prefix the types/symbols
defined. When this options is provided, they will use this value instead
to prefix the types/symbols defined.
optional string swift_prefix = 39;
Returns:This builder for chaining.
/** * <pre> * By default Swift generators will take the proto package and CamelCase it * replacing '.' with underscore and use that to prefix the types/symbols * defined. When this options is provided, they will use this value instead * to prefix the types/symbols defined. * </pre> * * <code>optional string swift_prefix = 39;</code> * @return This builder for chaining. */
public Builder clearSwiftPrefix() { bitField0_ = (bitField0_ & ~0x00008000); swiftPrefix_ = getDefaultInstance().getSwiftPrefix(); onChanged(); return this; }
By default Swift generators will take the proto package and CamelCase it
replacing '.' with underscore and use that to prefix the types/symbols
defined. When this options is provided, they will use this value instead
to prefix the types/symbols defined.
optional string swift_prefix = 39;
Params:
  • value – The bytes for swiftPrefix to set.
Returns:This builder for chaining.
/** * <pre> * By default Swift generators will take the proto package and CamelCase it * replacing '.' with underscore and use that to prefix the types/symbols * defined. When this options is provided, they will use this value instead * to prefix the types/symbols defined. * </pre> * * <code>optional string swift_prefix = 39;</code> * @param value The bytes for swiftPrefix to set. * @return This builder for chaining. */
public Builder setSwiftPrefixBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00008000; swiftPrefix_ = value; onChanged(); return this; } private java.lang.Object phpClassPrefix_ = "";
Sets the php class prefix which is prepended to all php generated classes
from this .proto. Default is empty.
optional string php_class_prefix = 40;
Returns:Whether the phpClassPrefix field is set.
/** * <pre> * Sets the php class prefix which is prepended to all php generated classes * from this .proto. Default is empty. * </pre> * * <code>optional string php_class_prefix = 40;</code> * @return Whether the phpClassPrefix field is set. */
public boolean hasPhpClassPrefix() { return ((bitField0_ & 0x00010000) != 0); }
Sets the php class prefix which is prepended to all php generated classes
from this .proto. Default is empty.
optional string php_class_prefix = 40;
Returns:The phpClassPrefix.
/** * <pre> * Sets the php class prefix which is prepended to all php generated classes * from this .proto. Default is empty. * </pre> * * <code>optional string php_class_prefix = 40;</code> * @return The phpClassPrefix. */
public java.lang.String getPhpClassPrefix() { java.lang.Object ref = phpClassPrefix_; 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()) { phpClassPrefix_ = s; } return s; } else { return (java.lang.String) ref; } }
Sets the php class prefix which is prepended to all php generated classes
from this .proto. Default is empty.
optional string php_class_prefix = 40;
Returns:The bytes for phpClassPrefix.
/** * <pre> * Sets the php class prefix which is prepended to all php generated classes * from this .proto. Default is empty. * </pre> * * <code>optional string php_class_prefix = 40;</code> * @return The bytes for phpClassPrefix. */
public com.google.protobuf.ByteString getPhpClassPrefixBytes() { java.lang.Object ref = phpClassPrefix_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); phpClassPrefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
Sets the php class prefix which is prepended to all php generated classes
from this .proto. Default is empty.
optional string php_class_prefix = 40;
Params:
  • value – The phpClassPrefix to set.
Returns:This builder for chaining.
/** * <pre> * Sets the php class prefix which is prepended to all php generated classes * from this .proto. Default is empty. * </pre> * * <code>optional string php_class_prefix = 40;</code> * @param value The phpClassPrefix to set. * @return This builder for chaining. */
public Builder setPhpClassPrefix( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00010000; phpClassPrefix_ = value; onChanged(); return this; }
Sets the php class prefix which is prepended to all php generated classes
from this .proto. Default is empty.
optional string php_class_prefix = 40;
Returns:This builder for chaining.
/** * <pre> * Sets the php class prefix which is prepended to all php generated classes * from this .proto. Default is empty. * </pre> * * <code>optional string php_class_prefix = 40;</code> * @return This builder for chaining. */
public Builder clearPhpClassPrefix() { bitField0_ = (bitField0_ & ~0x00010000); phpClassPrefix_ = getDefaultInstance().getPhpClassPrefix(); onChanged(); return this; }
Sets the php class prefix which is prepended to all php generated classes
from this .proto. Default is empty.
optional string php_class_prefix = 40;
Params:
  • value – The bytes for phpClassPrefix to set.
Returns:This builder for chaining.
/** * <pre> * Sets the php class prefix which is prepended to all php generated classes * from this .proto. Default is empty. * </pre> * * <code>optional string php_class_prefix = 40;</code> * @param value The bytes for phpClassPrefix to set. * @return This builder for chaining. */
public Builder setPhpClassPrefixBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00010000; phpClassPrefix_ = value; onChanged(); return this; } private java.lang.Object phpNamespace_ = "";
Use this option to change the namespace of php generated classes. Default
is empty. When this option is empty, the package name will be used for
determining the namespace.
optional string php_namespace = 41;
Returns:Whether the phpNamespace field is set.
/** * <pre> * Use this option to change the namespace of php generated classes. Default * is empty. When this option is empty, the package name will be used for * determining the namespace. * </pre> * * <code>optional string php_namespace = 41;</code> * @return Whether the phpNamespace field is set. */
public boolean hasPhpNamespace() { return ((bitField0_ & 0x00020000) != 0); }
Use this option to change the namespace of php generated classes. Default
is empty. When this option is empty, the package name will be used for
determining the namespace.
optional string php_namespace = 41;
Returns:The phpNamespace.
/** * <pre> * Use this option to change the namespace of php generated classes. Default * is empty. When this option is empty, the package name will be used for * determining the namespace. * </pre> * * <code>optional string php_namespace = 41;</code> * @return The phpNamespace. */
public java.lang.String getPhpNamespace() { java.lang.Object ref = phpNamespace_; 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()) { phpNamespace_ = s; } return s; } else { return (java.lang.String) ref; } }
Use this option to change the namespace of php generated classes. Default
is empty. When this option is empty, the package name will be used for
determining the namespace.
optional string php_namespace = 41;
Returns:The bytes for phpNamespace.
/** * <pre> * Use this option to change the namespace of php generated classes. Default * is empty. When this option is empty, the package name will be used for * determining the namespace. * </pre> * * <code>optional string php_namespace = 41;</code> * @return The bytes for phpNamespace. */
public com.google.protobuf.ByteString getPhpNamespaceBytes() { java.lang.Object ref = phpNamespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); phpNamespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
Use this option to change the namespace of php generated classes. Default
is empty. When this option is empty, the package name will be used for
determining the namespace.
optional string php_namespace = 41;
Params:
  • value – The phpNamespace to set.
Returns:This builder for chaining.
/** * <pre> * Use this option to change the namespace of php generated classes. Default * is empty. When this option is empty, the package name will be used for * determining the namespace. * </pre> * * <code>optional string php_namespace = 41;</code> * @param value The phpNamespace to set. * @return This builder for chaining. */
public Builder setPhpNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00020000; phpNamespace_ = value; onChanged(); return this; }
Use this option to change the namespace of php generated classes. Default
is empty. When this option is empty, the package name will be used for
determining the namespace.
optional string php_namespace = 41;
Returns:This builder for chaining.
/** * <pre> * Use this option to change the namespace of php generated classes. Default * is empty. When this option is empty, the package name will be used for * determining the namespace. * </pre> * * <code>optional string php_namespace = 41;</code> * @return This builder for chaining. */
public Builder clearPhpNamespace() { bitField0_ = (bitField0_ & ~0x00020000); phpNamespace_ = getDefaultInstance().getPhpNamespace(); onChanged(); return this; }
Use this option to change the namespace of php generated classes. Default
is empty. When this option is empty, the package name will be used for
determining the namespace.
optional string php_namespace = 41;
Params:
  • value – The bytes for phpNamespace to set.
Returns:This builder for chaining.
/** * <pre> * Use this option to change the namespace of php generated classes. Default * is empty. When this option is empty, the package name will be used for * determining the namespace. * </pre> * * <code>optional string php_namespace = 41;</code> * @param value The bytes for phpNamespace to set. * @return This builder for chaining. */
public Builder setPhpNamespaceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00020000; phpNamespace_ = value; onChanged(); return this; } private java.lang.Object phpMetadataNamespace_ = "";
Use this option to change the namespace of php generated metadata classes.
Default is empty. When this option is empty, the proto file name will be
used for determining the namespace.
optional string php_metadata_namespace = 44;
Returns:Whether the phpMetadataNamespace field is set.
/** * <pre> * Use this option to change the namespace of php generated metadata classes. * Default is empty. When this option is empty, the proto file name will be * used for determining the namespace. * </pre> * * <code>optional string php_metadata_namespace = 44;</code> * @return Whether the phpMetadataNamespace field is set. */
public boolean hasPhpMetadataNamespace() { return ((bitField0_ & 0x00040000) != 0); }
Use this option to change the namespace of php generated metadata classes.
Default is empty. When this option is empty, the proto file name will be
used for determining the namespace.
optional string php_metadata_namespace = 44;
Returns:The phpMetadataNamespace.
/** * <pre> * Use this option to change the namespace of php generated metadata classes. * Default is empty. When this option is empty, the proto file name will be * used for determining the namespace. * </pre> * * <code>optional string php_metadata_namespace = 44;</code> * @return The phpMetadataNamespace. */
public java.lang.String getPhpMetadataNamespace() { java.lang.Object ref = phpMetadataNamespace_; 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()) { phpMetadataNamespace_ = s; } return s; } else { return (java.lang.String) ref; } }
Use this option to change the namespace of php generated metadata classes.
Default is empty. When this option is empty, the proto file name will be
used for determining the namespace.
optional string php_metadata_namespace = 44;
Returns:The bytes for phpMetadataNamespace.
/** * <pre> * Use this option to change the namespace of php generated metadata classes. * Default is empty. When this option is empty, the proto file name will be * used for determining the namespace. * </pre> * * <code>optional string php_metadata_namespace = 44;</code> * @return The bytes for phpMetadataNamespace. */
public com.google.protobuf.ByteString getPhpMetadataNamespaceBytes() { java.lang.Object ref = phpMetadataNamespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); phpMetadataNamespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
Use this option to change the namespace of php generated metadata classes.
Default is empty. When this option is empty, the proto file name will be
used for determining the namespace.
optional string php_metadata_namespace = 44;
Params:
  • value – The phpMetadataNamespace to set.
Returns:This builder for chaining.
/** * <pre> * Use this option to change the namespace of php generated metadata classes. * Default is empty. When this option is empty, the proto file name will be * used for determining the namespace. * </pre> * * <code>optional string php_metadata_namespace = 44;</code> * @param value The phpMetadataNamespace to set. * @return This builder for chaining. */
public Builder setPhpMetadataNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00040000; phpMetadataNamespace_ = value; onChanged(); return this; }
Use this option to change the namespace of php generated metadata classes.
Default is empty. When this option is empty, the proto file name will be
used for determining the namespace.
optional string php_metadata_namespace = 44;
Returns:This builder for chaining.
/** * <pre> * Use this option to change the namespace of php generated metadata classes. * Default is empty. When this option is empty, the proto file name will be * used for determining the namespace. * </pre> * * <code>optional string php_metadata_namespace = 44;</code> * @return This builder for chaining. */
public Builder clearPhpMetadataNamespace() { bitField0_ = (bitField0_ & ~0x00040000); phpMetadataNamespace_ = getDefaultInstance().getPhpMetadataNamespace(); onChanged(); return this; }
Use this option to change the namespace of php generated metadata classes.
Default is empty. When this option is empty, the proto file name will be
used for determining the namespace.
optional string php_metadata_namespace = 44;
Params:
  • value – The bytes for phpMetadataNamespace to set.
Returns:This builder for chaining.
/** * <pre> * Use this option to change the namespace of php generated metadata classes. * Default is empty. When this option is empty, the proto file name will be * used for determining the namespace. * </pre> * * <code>optional string php_metadata_namespace = 44;</code> * @param value The bytes for phpMetadataNamespace to set. * @return This builder for chaining. */
public Builder setPhpMetadataNamespaceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00040000; phpMetadataNamespace_ = value; onChanged(); return this; } private java.lang.Object rubyPackage_ = "";
Use this option to change the package of ruby generated classes. Default
is empty. When this option is not set, the package name will be used for
determining the ruby package.
optional string ruby_package = 45;
Returns:Whether the rubyPackage field is set.
/** * <pre> * Use this option to change the package of ruby generated classes. Default * is empty. When this option is not set, the package name will be used for * determining the ruby package. * </pre> * * <code>optional string ruby_package = 45;</code> * @return Whether the rubyPackage field is set. */
public boolean hasRubyPackage() { return ((bitField0_ & 0x00080000) != 0); }
Use this option to change the package of ruby generated classes. Default
is empty. When this option is not set, the package name will be used for
determining the ruby package.
optional string ruby_package = 45;
Returns:The rubyPackage.
/** * <pre> * Use this option to change the package of ruby generated classes. Default * is empty. When this option is not set, the package name will be used for * determining the ruby package. * </pre> * * <code>optional string ruby_package = 45;</code> * @return The rubyPackage. */
public java.lang.String getRubyPackage() { java.lang.Object ref = rubyPackage_; 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()) { rubyPackage_ = s; } return s; } else { return (java.lang.String) ref; } }
Use this option to change the package of ruby generated classes. Default
is empty. When this option is not set, the package name will be used for
determining the ruby package.
optional string ruby_package = 45;
Returns:The bytes for rubyPackage.
/** * <pre> * Use this option to change the package of ruby generated classes. Default * is empty. When this option is not set, the package name will be used for * determining the ruby package. * </pre> * * <code>optional string ruby_package = 45;</code> * @return The bytes for rubyPackage. */
public com.google.protobuf.ByteString getRubyPackageBytes() { java.lang.Object ref = rubyPackage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); rubyPackage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
Use this option to change the package of ruby generated classes. Default
is empty. When this option is not set, the package name will be used for
determining the ruby package.
optional string ruby_package = 45;
Params:
  • value – The rubyPackage to set.
Returns:This builder for chaining.
/** * <pre> * Use this option to change the package of ruby generated classes. Default * is empty. When this option is not set, the package name will be used for * determining the ruby package. * </pre> * * <code>optional string ruby_package = 45;</code> * @param value The rubyPackage to set. * @return This builder for chaining. */
public Builder setRubyPackage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00080000; rubyPackage_ = value; onChanged(); return this; }
Use this option to change the package of ruby generated classes. Default
is empty. When this option is not set, the package name will be used for
determining the ruby package.
optional string ruby_package = 45;
Returns:This builder for chaining.
/** * <pre> * Use this option to change the package of ruby generated classes. Default * is empty. When this option is not set, the package name will be used for * determining the ruby package. * </pre> * * <code>optional string ruby_package = 45;</code> * @return This builder for chaining. */
public Builder clearRubyPackage() { bitField0_ = (bitField0_ & ~0x00080000); rubyPackage_ = getDefaultInstance().getRubyPackage(); onChanged(); return this; }
Use this option to change the package of ruby generated classes. Default
is empty. When this option is not set, the package name will be used for
determining the ruby package.
optional string ruby_package = 45;
Params:
  • value – The bytes for rubyPackage to set.
Returns:This builder for chaining.
/** * <pre> * Use this option to change the package of ruby generated classes. Default * is empty. When this option is not set, the package name will be used for * determining the ruby package. * </pre> * * <code>optional string ruby_package = 45;</code> * @param value The bytes for rubyPackage to set. * @return This builder for chaining. */
public Builder setRubyPackageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00080000; rubyPackage_ = value; onChanged(); return this; } private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = java.util.Collections.emptyList(); private void ensureUninterpretedOptionIsMutable() { if (!((bitField0_ & 0x00100000) != 0)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); bitField0_ |= 0x00100000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_;
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { if (uninterpretedOptionBuilder_ == null) { return java.util.Collections.unmodifiableList(uninterpretedOption_); } else { return uninterpretedOptionBuilder_.getMessageList(); } }
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public int getUninterpretedOptionCount() { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.size(); } else { return uninterpretedOptionBuilder_.getCount(); } }
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessage(index); } }
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, value); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, value); } return this; }
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(value); } return this; }
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, value); } return this; }
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addAllUninterpretedOption( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, uninterpretedOption_); onChanged(); } else { uninterpretedOptionBuilder_.addAllMessages(values); } return this; }
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder clearUninterpretedOption() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00100000); onChanged(); } else { uninterpretedOptionBuilder_.clear(); } return this; }
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder removeUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.remove(index); onChanged(); } else { uninterpretedOptionBuilder_.remove(index); } return this; }
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().getBuilder(index); }
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessageOrBuilder(index); } }
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { if (uninterpretedOptionBuilder_ != null) { return uninterpretedOptionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(uninterpretedOption_); } }
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { return getUninterpretedOptionFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); }
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); }
The parser stores options it doesn't recognize here.
See the documentation for the "Options" section above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> getUninterpretedOptionBuilderList() { return getUninterpretedOptionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionFieldBuilder() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( uninterpretedOption_, ((bitField0_ & 0x00100000) != 0), getParentForChildren(), isClean()); uninterpretedOption_ = null; } return uninterpretedOptionBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.FileOptions) } // @@protoc_insertion_point(class_scope:google.protobuf.FileOptions) private static final com.google.protobuf.DescriptorProtos.FileOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.FileOptions(); } public static com.google.protobuf.DescriptorProtos.FileOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<FileOptions> PARSER = new com.google.protobuf.AbstractParser<FileOptions>() { @java.lang.Override public FileOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FileOptions(input, extensionRegistry); } }; public static com.google.protobuf.Parser<FileOptions> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<FileOptions> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.FileOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MessageOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.MessageOptions) com.google.protobuf.GeneratedMessageV3. ExtendableMessageOrBuilder<MessageOptions> {
Set true to use the old proto1 MessageSet wire format for extensions.
This is provided for backwards-compatibility with the MessageSet wire
format.  You should not use this for any other reason:  It's less
efficient, has fewer features, and is more complicated.
The message must be defined exactly as follows:
  message Foo {
    option message_set_wire_format = true;
    extensions 4 to max;
  }
Note that the message cannot have any defined fields; MessageSets only
have extensions.
All extensions of your type must be singular messages; e.g. they cannot
be int32s, enums, or repeated messages.
Because this is an option, the above two restrictions are not enforced by
the protocol compiler.
optional bool message_set_wire_format = 1 [default = false];
Returns:Whether the messageSetWireFormat field is set.
/** * <pre> * Set true to use the old proto1 MessageSet wire format for extensions. * This is provided for backwards-compatibility with the MessageSet wire * format. You should not use this for any other reason: It's less * efficient, has fewer features, and is more complicated. * The message must be defined exactly as follows: * message Foo { * option message_set_wire_format = true; * extensions 4 to max; * } * Note that the message cannot have any defined fields; MessageSets only * have extensions. * All extensions of your type must be singular messages; e.g. they cannot * be int32s, enums, or repeated messages. * Because this is an option, the above two restrictions are not enforced by * the protocol compiler. * </pre> * * <code>optional bool message_set_wire_format = 1 [default = false];</code> * @return Whether the messageSetWireFormat field is set. */
boolean hasMessageSetWireFormat();
Set true to use the old proto1 MessageSet wire format for extensions.
This is provided for backwards-compatibility with the MessageSet wire
format.  You should not use this for any other reason:  It's less
efficient, has fewer features, and is more complicated.
The message must be defined exactly as follows:
  message Foo {
    option message_set_wire_format = true;
    extensions 4 to max;
  }
Note that the message cannot have any defined fields; MessageSets only
have extensions.
All extensions of your type must be singular messages; e.g. they cannot
be int32s, enums, or repeated messages.
Because this is an option, the above two restrictions are not enforced by
the protocol compiler.
optional bool message_set_wire_format = 1 [default = false];
Returns:The messageSetWireFormat.
/** * <pre> * Set true to use the old proto1 MessageSet wire format for extensions. * This is provided for backwards-compatibility with the MessageSet wire * format. You should not use this for any other reason: It's less * efficient, has fewer features, and is more complicated. * The message must be defined exactly as follows: * message Foo { * option message_set_wire_format = true; * extensions 4 to max; * } * Note that the message cannot have any defined fields; MessageSets only * have extensions. * All extensions of your type must be singular messages; e.g. they cannot * be int32s, enums, or repeated messages. * Because this is an option, the above two restrictions are not enforced by * the protocol compiler. * </pre> * * <code>optional bool message_set_wire_format = 1 [default = false];</code> * @return The messageSetWireFormat. */
boolean getMessageSetWireFormat();
Disables the generation of the standard "descriptor()" accessor, which can
conflict with a field of the same name.  This is meant to make migration
from proto1 easier; new code should avoid fields named "descriptor".
optional bool no_standard_descriptor_accessor = 2 [default = false];
Returns:Whether the noStandardDescriptorAccessor field is set.
/** * <pre> * Disables the generation of the standard "descriptor()" accessor, which can * conflict with a field of the same name. This is meant to make migration * from proto1 easier; new code should avoid fields named "descriptor". * </pre> * * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> * @return Whether the noStandardDescriptorAccessor field is set. */
boolean hasNoStandardDescriptorAccessor();
Disables the generation of the standard "descriptor()" accessor, which can
conflict with a field of the same name.  This is meant to make migration
from proto1 easier; new code should avoid fields named "descriptor".
optional bool no_standard_descriptor_accessor = 2 [default = false];
Returns:The noStandardDescriptorAccessor.
/** * <pre> * Disables the generation of the standard "descriptor()" accessor, which can * conflict with a field of the same name. This is meant to make migration * from proto1 easier; new code should avoid fields named "descriptor". * </pre> * * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> * @return The noStandardDescriptorAccessor. */
boolean getNoStandardDescriptorAccessor();
Is this message deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the message, or it will be completely ignored; in the very least,
this is a formalization for deprecating messages.
optional bool deprecated = 3 [default = false];
Returns:Whether the deprecated field is set.
/** * <pre> * Is this message deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the message, or it will be completely ignored; in the very least, * this is a formalization for deprecating messages. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @return Whether the deprecated field is set. */
boolean hasDeprecated();
Is this message deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the message, or it will be completely ignored; in the very least,
this is a formalization for deprecating messages.
optional bool deprecated = 3 [default = false];
Returns:The deprecated.
/** * <pre> * Is this message deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the message, or it will be completely ignored; in the very least, * this is a formalization for deprecating messages. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @return The deprecated. */
boolean getDeprecated();
Whether the message is an automatically generated map entry type for the
maps field.
For maps fields:
    map<KeyType, ValueType> map_field = 1;
The parsed descriptor looks like:
    message MapFieldEntry {
        option map_entry = true;
        optional KeyType key = 1;
        optional ValueType value = 2;
    }
    repeated MapFieldEntry map_field = 1;
Implementations may choose not to generate the map_entry=true message, but
use a native map in the target language to hold the keys and values.
The reflection APIs in such implementations still need to work as
if the field is a repeated message field.
NOTE: Do not set the option in .proto files. Always use the maps syntax
instead. The option should only be implicitly set by the proto compiler
parser.
optional bool map_entry = 7;
Returns:Whether the mapEntry field is set.
/** * <pre> * Whether the message is an automatically generated map entry type for the * maps field. * For maps fields: * map&lt;KeyType, ValueType&gt; map_field = 1; * The parsed descriptor looks like: * message MapFieldEntry { * option map_entry = true; * optional KeyType key = 1; * optional ValueType value = 2; * } * repeated MapFieldEntry map_field = 1; * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * NOTE: Do not set the option in .proto files. Always use the maps syntax * instead. The option should only be implicitly set by the proto compiler * parser. * </pre> * * <code>optional bool map_entry = 7;</code> * @return Whether the mapEntry field is set. */
boolean hasMapEntry();
Whether the message is an automatically generated map entry type for the
maps field.
For maps fields:
    map<KeyType, ValueType> map_field = 1;
The parsed descriptor looks like:
    message MapFieldEntry {
        option map_entry = true;
        optional KeyType key = 1;
        optional ValueType value = 2;
    }
    repeated MapFieldEntry map_field = 1;
Implementations may choose not to generate the map_entry=true message, but
use a native map in the target language to hold the keys and values.
The reflection APIs in such implementations still need to work as
if the field is a repeated message field.
NOTE: Do not set the option in .proto files. Always use the maps syntax
instead. The option should only be implicitly set by the proto compiler
parser.
optional bool map_entry = 7;
Returns:The mapEntry.
/** * <pre> * Whether the message is an automatically generated map entry type for the * maps field. * For maps fields: * map&lt;KeyType, ValueType&gt; map_field = 1; * The parsed descriptor looks like: * message MapFieldEntry { * option map_entry = true; * optional KeyType key = 1; * optional ValueType value = 2; * } * repeated MapFieldEntry map_field = 1; * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * NOTE: Do not set the option in .proto files. Always use the maps syntax * instead. The option should only be implicitly set by the proto compiler * parser. * </pre> * * <code>optional bool map_entry = 7;</code> * @return The mapEntry. */
boolean getMapEntry();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index);
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
int getUninterpretedOptionCount();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index); }
Protobuf type google.protobuf.MessageOptions
/** * Protobuf type {@code google.protobuf.MessageOptions} */
public static final class MessageOptions extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage< MessageOptions> implements // @@protoc_insertion_point(message_implements:google.protobuf.MessageOptions) MessageOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use MessageOptions.newBuilder() to construct. private MessageOptions(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<com.google.protobuf.DescriptorProtos.MessageOptions, ?> builder) { super(builder); } private MessageOptions() { uninterpretedOption_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MessageOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MessageOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 8: { bitField0_ |= 0x00000001; messageSetWireFormat_ = input.readBool(); break; } case 16: { bitField0_ |= 0x00000002; noStandardDescriptorAccessor_ = input.readBool(); break; } case 24: { bitField0_ |= 0x00000004; deprecated_ = input.readBool(); break; } case 56: { bitField0_ |= 0x00000008; mapEntry_ = input.readBool(); break; } case 7994: { if (!((mutable_bitField0_ & 0x00000010) != 0)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); mutable_bitField0_ |= 0x00000010; } uninterpretedOption_.add( input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000010) != 0)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MessageOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MessageOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.MessageOptions.class, com.google.protobuf.DescriptorProtos.MessageOptions.Builder.class); } private int bitField0_; public static final int MESSAGE_SET_WIRE_FORMAT_FIELD_NUMBER = 1; private boolean messageSetWireFormat_;
Set true to use the old proto1 MessageSet wire format for extensions.
This is provided for backwards-compatibility with the MessageSet wire
format.  You should not use this for any other reason:  It's less
efficient, has fewer features, and is more complicated.
The message must be defined exactly as follows:
  message Foo {
    option message_set_wire_format = true;
    extensions 4 to max;
  }
Note that the message cannot have any defined fields; MessageSets only
have extensions.
All extensions of your type must be singular messages; e.g. they cannot
be int32s, enums, or repeated messages.
Because this is an option, the above two restrictions are not enforced by
the protocol compiler.
optional bool message_set_wire_format = 1 [default = false];
Returns:Whether the messageSetWireFormat field is set.
/** * <pre> * Set true to use the old proto1 MessageSet wire format for extensions. * This is provided for backwards-compatibility with the MessageSet wire * format. You should not use this for any other reason: It's less * efficient, has fewer features, and is more complicated. * The message must be defined exactly as follows: * message Foo { * option message_set_wire_format = true; * extensions 4 to max; * } * Note that the message cannot have any defined fields; MessageSets only * have extensions. * All extensions of your type must be singular messages; e.g. they cannot * be int32s, enums, or repeated messages. * Because this is an option, the above two restrictions are not enforced by * the protocol compiler. * </pre> * * <code>optional bool message_set_wire_format = 1 [default = false];</code> * @return Whether the messageSetWireFormat field is set. */
public boolean hasMessageSetWireFormat() { return ((bitField0_ & 0x00000001) != 0); }
Set true to use the old proto1 MessageSet wire format for extensions.
This is provided for backwards-compatibility with the MessageSet wire
format.  You should not use this for any other reason:  It's less
efficient, has fewer features, and is more complicated.
The message must be defined exactly as follows:
  message Foo {
    option message_set_wire_format = true;
    extensions 4 to max;
  }
Note that the message cannot have any defined fields; MessageSets only
have extensions.
All extensions of your type must be singular messages; e.g. they cannot
be int32s, enums, or repeated messages.
Because this is an option, the above two restrictions are not enforced by
the protocol compiler.
optional bool message_set_wire_format = 1 [default = false];
Returns:The messageSetWireFormat.
/** * <pre> * Set true to use the old proto1 MessageSet wire format for extensions. * This is provided for backwards-compatibility with the MessageSet wire * format. You should not use this for any other reason: It's less * efficient, has fewer features, and is more complicated. * The message must be defined exactly as follows: * message Foo { * option message_set_wire_format = true; * extensions 4 to max; * } * Note that the message cannot have any defined fields; MessageSets only * have extensions. * All extensions of your type must be singular messages; e.g. they cannot * be int32s, enums, or repeated messages. * Because this is an option, the above two restrictions are not enforced by * the protocol compiler. * </pre> * * <code>optional bool message_set_wire_format = 1 [default = false];</code> * @return The messageSetWireFormat. */
public boolean getMessageSetWireFormat() { return messageSetWireFormat_; } public static final int NO_STANDARD_DESCRIPTOR_ACCESSOR_FIELD_NUMBER = 2; private boolean noStandardDescriptorAccessor_;
Disables the generation of the standard "descriptor()" accessor, which can
conflict with a field of the same name.  This is meant to make migration
from proto1 easier; new code should avoid fields named "descriptor".
optional bool no_standard_descriptor_accessor = 2 [default = false];
Returns:Whether the noStandardDescriptorAccessor field is set.
/** * <pre> * Disables the generation of the standard "descriptor()" accessor, which can * conflict with a field of the same name. This is meant to make migration * from proto1 easier; new code should avoid fields named "descriptor". * </pre> * * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> * @return Whether the noStandardDescriptorAccessor field is set. */
public boolean hasNoStandardDescriptorAccessor() { return ((bitField0_ & 0x00000002) != 0); }
Disables the generation of the standard "descriptor()" accessor, which can
conflict with a field of the same name.  This is meant to make migration
from proto1 easier; new code should avoid fields named "descriptor".
optional bool no_standard_descriptor_accessor = 2 [default = false];
Returns:The noStandardDescriptorAccessor.
/** * <pre> * Disables the generation of the standard "descriptor()" accessor, which can * conflict with a field of the same name. This is meant to make migration * from proto1 easier; new code should avoid fields named "descriptor". * </pre> * * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> * @return The noStandardDescriptorAccessor. */
public boolean getNoStandardDescriptorAccessor() { return noStandardDescriptorAccessor_; } public static final int DEPRECATED_FIELD_NUMBER = 3; private boolean deprecated_;
Is this message deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the message, or it will be completely ignored; in the very least,
this is a formalization for deprecating messages.
optional bool deprecated = 3 [default = false];
Returns:Whether the deprecated field is set.
/** * <pre> * Is this message deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the message, or it will be completely ignored; in the very least, * this is a formalization for deprecating messages. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @return Whether the deprecated field is set. */
public boolean hasDeprecated() { return ((bitField0_ & 0x00000004) != 0); }
Is this message deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the message, or it will be completely ignored; in the very least,
this is a formalization for deprecating messages.
optional bool deprecated = 3 [default = false];
Returns:The deprecated.
/** * <pre> * Is this message deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the message, or it will be completely ignored; in the very least, * this is a formalization for deprecating messages. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @return The deprecated. */
public boolean getDeprecated() { return deprecated_; } public static final int MAP_ENTRY_FIELD_NUMBER = 7; private boolean mapEntry_;
Whether the message is an automatically generated map entry type for the
maps field.
For maps fields:
    map<KeyType, ValueType> map_field = 1;
The parsed descriptor looks like:
    message MapFieldEntry {
        option map_entry = true;
        optional KeyType key = 1;
        optional ValueType value = 2;
    }
    repeated MapFieldEntry map_field = 1;
Implementations may choose not to generate the map_entry=true message, but
use a native map in the target language to hold the keys and values.
The reflection APIs in such implementations still need to work as
if the field is a repeated message field.
NOTE: Do not set the option in .proto files. Always use the maps syntax
instead. The option should only be implicitly set by the proto compiler
parser.
optional bool map_entry = 7;
Returns:Whether the mapEntry field is set.
/** * <pre> * Whether the message is an automatically generated map entry type for the * maps field. * For maps fields: * map&lt;KeyType, ValueType&gt; map_field = 1; * The parsed descriptor looks like: * message MapFieldEntry { * option map_entry = true; * optional KeyType key = 1; * optional ValueType value = 2; * } * repeated MapFieldEntry map_field = 1; * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * NOTE: Do not set the option in .proto files. Always use the maps syntax * instead. The option should only be implicitly set by the proto compiler * parser. * </pre> * * <code>optional bool map_entry = 7;</code> * @return Whether the mapEntry field is set. */
public boolean hasMapEntry() { return ((bitField0_ & 0x00000008) != 0); }
Whether the message is an automatically generated map entry type for the
maps field.
For maps fields:
    map<KeyType, ValueType> map_field = 1;
The parsed descriptor looks like:
    message MapFieldEntry {
        option map_entry = true;
        optional KeyType key = 1;
        optional ValueType value = 2;
    }
    repeated MapFieldEntry map_field = 1;
Implementations may choose not to generate the map_entry=true message, but
use a native map in the target language to hold the keys and values.
The reflection APIs in such implementations still need to work as
if the field is a repeated message field.
NOTE: Do not set the option in .proto files. Always use the maps syntax
instead. The option should only be implicitly set by the proto compiler
parser.
optional bool map_entry = 7;
Returns:The mapEntry.
/** * <pre> * Whether the message is an automatically generated map entry type for the * maps field. * For maps fields: * map&lt;KeyType, ValueType&gt; map_field = 1; * The parsed descriptor looks like: * message MapFieldEntry { * option map_entry = true; * optional KeyType key = 1; * optional ValueType value = 2; * } * repeated MapFieldEntry map_field = 1; * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * NOTE: Do not set the option in .proto files. Always use the maps syntax * instead. The option should only be implicitly set by the proto compiler * parser. * </pre> * * <code>optional bool map_entry = 7;</code> * @return The mapEntry. */
public boolean getMapEntry() { return mapEntry_; } public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_;
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { return uninterpretedOption_; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { return uninterpretedOption_; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public int getUninterpretedOptionCount() { return uninterpretedOption_.size(); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { return uninterpretedOption_.get(index); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { return uninterpretedOption_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .ExtendableMessage<com.google.protobuf.DescriptorProtos.MessageOptions>.ExtensionWriter extensionWriter = newExtensionWriter(); if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, messageSetWireFormat_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, noStandardDescriptorAccessor_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, deprecated_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(7, mapEntry_); } for (int i = 0; i < uninterpretedOption_.size(); i++) { output.writeMessage(999, uninterpretedOption_.get(i)); } extensionWriter.writeUntil(536870912, output); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, messageSetWireFormat_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, noStandardDescriptorAccessor_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, deprecated_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, mapEntry_); } for (int i = 0; i < uninterpretedOption_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(999, uninterpretedOption_.get(i)); } size += extensionsSerializedSize(); size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.MessageOptions)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.MessageOptions other = (com.google.protobuf.DescriptorProtos.MessageOptions) obj; if (hasMessageSetWireFormat() != other.hasMessageSetWireFormat()) return false; if (hasMessageSetWireFormat()) { if (getMessageSetWireFormat() != other.getMessageSetWireFormat()) return false; } if (hasNoStandardDescriptorAccessor() != other.hasNoStandardDescriptorAccessor()) return false; if (hasNoStandardDescriptorAccessor()) { if (getNoStandardDescriptorAccessor() != other.getNoStandardDescriptorAccessor()) return false; } if (hasDeprecated() != other.hasDeprecated()) return false; if (hasDeprecated()) { if (getDeprecated() != other.getDeprecated()) return false; } if (hasMapEntry() != other.hasMapEntry()) return false; if (hasMapEntry()) { if (getMapEntry() != other.getMapEntry()) return false; } if (!getUninterpretedOptionList() .equals(other.getUninterpretedOptionList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; if (!getExtensionFields().equals(other.getExtensionFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasMessageSetWireFormat()) { hash = (37 * hash) + MESSAGE_SET_WIRE_FORMAT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMessageSetWireFormat()); } if (hasNoStandardDescriptorAccessor()) { hash = (37 * hash) + NO_STANDARD_DESCRIPTOR_ACCESSOR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNoStandardDescriptorAccessor()); } if (hasDeprecated()) { hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDeprecated()); } if (hasMapEntry()) { hash = (37 * hash) + MAP_ENTRY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMapEntry()); } if (getUninterpretedOptionCount() > 0) { hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; hash = (53 * hash) + getUninterpretedOptionList().hashCode(); } hash = hashFields(hash, getExtensionFields()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.MessageOptions 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.MessageOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.MessageOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.MessageOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.MessageOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Protobuf type google.protobuf.MessageOptions
/** * Protobuf type {@code google.protobuf.MessageOptions} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< com.google.protobuf.DescriptorProtos.MessageOptions, Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.MessageOptions) com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MessageOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MessageOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.MessageOptions.class, com.google.protobuf.DescriptorProtos.MessageOptions.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.MessageOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getUninterpretedOptionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); messageSetWireFormat_ = false; bitField0_ = (bitField0_ & ~0x00000001); noStandardDescriptorAccessor_ = false; bitField0_ = (bitField0_ & ~0x00000002); deprecated_ = false; bitField0_ = (bitField0_ & ~0x00000004); mapEntry_ = false; bitField0_ = (bitField0_ & ~0x00000008); if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { uninterpretedOptionBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MessageOptions_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.MessageOptions getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.MessageOptions build() { com.google.protobuf.DescriptorProtos.MessageOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.MessageOptions buildPartial() { com.google.protobuf.DescriptorProtos.MessageOptions result = new com.google.protobuf.DescriptorProtos.MessageOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.messageSetWireFormat_ = messageSetWireFormat_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.noStandardDescriptorAccessor_ = noStandardDescriptorAccessor_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.deprecated_ = deprecated_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.mapEntry_ = mapEntry_; to_bitField0_ |= 0x00000008; } if (uninterpretedOptionBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); bitField0_ = (bitField0_ & ~0x00000010); } result.uninterpretedOption_ = uninterpretedOption_; } else { result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public <Type> Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, Type> extension, Type value) { return super.setExtension(extension, value); } @java.lang.Override public <Type> Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, java.util.List<Type>> extension, int index, Type value) { return super.setExtension(extension, index, value); } @java.lang.Override public <Type> Builder addExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, java.util.List<Type>> extension, Type value) { return super.addExtension(extension, value); } @java.lang.Override public <Type> Builder clearExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, ?> extension) { return super.clearExtension(extension); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.MessageOptions) { return mergeFrom((com.google.protobuf.DescriptorProtos.MessageOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.MessageOptions other) { if (other == com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance()) return this; if (other.hasMessageSetWireFormat()) { setMessageSetWireFormat(other.getMessageSetWireFormat()); } if (other.hasNoStandardDescriptorAccessor()) { setNoStandardDescriptorAccessor(other.getNoStandardDescriptorAccessor()); } if (other.hasDeprecated()) { setDeprecated(other.getDeprecated()); } if (other.hasMapEntry()) { setMapEntry(other.getMapEntry()); } if (uninterpretedOptionBuilder_ == null) { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOption_.isEmpty()) { uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.addAll(other.uninterpretedOption_); } onChanged(); } } else { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOptionBuilder_.isEmpty()) { uninterpretedOptionBuilder_.dispose(); uninterpretedOptionBuilder_ = null; uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000010); uninterpretedOptionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUninterpretedOptionFieldBuilder() : null; } else { uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); } } } this.mergeExtensionFields(other); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { return false; } } if (!extensionsAreInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.MessageOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.MessageOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private boolean messageSetWireFormat_ ;
Set true to use the old proto1 MessageSet wire format for extensions.
This is provided for backwards-compatibility with the MessageSet wire
format.  You should not use this for any other reason:  It's less
efficient, has fewer features, and is more complicated.
The message must be defined exactly as follows:
  message Foo {
    option message_set_wire_format = true;
    extensions 4 to max;
  }
Note that the message cannot have any defined fields; MessageSets only
have extensions.
All extensions of your type must be singular messages; e.g. they cannot
be int32s, enums, or repeated messages.
Because this is an option, the above two restrictions are not enforced by
the protocol compiler.
optional bool message_set_wire_format = 1 [default = false];
Returns:Whether the messageSetWireFormat field is set.
/** * <pre> * Set true to use the old proto1 MessageSet wire format for extensions. * This is provided for backwards-compatibility with the MessageSet wire * format. You should not use this for any other reason: It's less * efficient, has fewer features, and is more complicated. * The message must be defined exactly as follows: * message Foo { * option message_set_wire_format = true; * extensions 4 to max; * } * Note that the message cannot have any defined fields; MessageSets only * have extensions. * All extensions of your type must be singular messages; e.g. they cannot * be int32s, enums, or repeated messages. * Because this is an option, the above two restrictions are not enforced by * the protocol compiler. * </pre> * * <code>optional bool message_set_wire_format = 1 [default = false];</code> * @return Whether the messageSetWireFormat field is set. */
public boolean hasMessageSetWireFormat() { return ((bitField0_ & 0x00000001) != 0); }
Set true to use the old proto1 MessageSet wire format for extensions.
This is provided for backwards-compatibility with the MessageSet wire
format.  You should not use this for any other reason:  It's less
efficient, has fewer features, and is more complicated.
The message must be defined exactly as follows:
  message Foo {
    option message_set_wire_format = true;
    extensions 4 to max;
  }
Note that the message cannot have any defined fields; MessageSets only
have extensions.
All extensions of your type must be singular messages; e.g. they cannot
be int32s, enums, or repeated messages.
Because this is an option, the above two restrictions are not enforced by
the protocol compiler.
optional bool message_set_wire_format = 1 [default = false];
Returns:The messageSetWireFormat.
/** * <pre> * Set true to use the old proto1 MessageSet wire format for extensions. * This is provided for backwards-compatibility with the MessageSet wire * format. You should not use this for any other reason: It's less * efficient, has fewer features, and is more complicated. * The message must be defined exactly as follows: * message Foo { * option message_set_wire_format = true; * extensions 4 to max; * } * Note that the message cannot have any defined fields; MessageSets only * have extensions. * All extensions of your type must be singular messages; e.g. they cannot * be int32s, enums, or repeated messages. * Because this is an option, the above two restrictions are not enforced by * the protocol compiler. * </pre> * * <code>optional bool message_set_wire_format = 1 [default = false];</code> * @return The messageSetWireFormat. */
public boolean getMessageSetWireFormat() { return messageSetWireFormat_; }
Set true to use the old proto1 MessageSet wire format for extensions.
This is provided for backwards-compatibility with the MessageSet wire
format.  You should not use this for any other reason:  It's less
efficient, has fewer features, and is more complicated.
The message must be defined exactly as follows:
  message Foo {
    option message_set_wire_format = true;
    extensions 4 to max;
  }
Note that the message cannot have any defined fields; MessageSets only
have extensions.
All extensions of your type must be singular messages; e.g. they cannot
be int32s, enums, or repeated messages.
Because this is an option, the above two restrictions are not enforced by
the protocol compiler.
optional bool message_set_wire_format = 1 [default = false];
Params:
  • value – The messageSetWireFormat to set.
Returns:This builder for chaining.
/** * <pre> * Set true to use the old proto1 MessageSet wire format for extensions. * This is provided for backwards-compatibility with the MessageSet wire * format. You should not use this for any other reason: It's less * efficient, has fewer features, and is more complicated. * The message must be defined exactly as follows: * message Foo { * option message_set_wire_format = true; * extensions 4 to max; * } * Note that the message cannot have any defined fields; MessageSets only * have extensions. * All extensions of your type must be singular messages; e.g. they cannot * be int32s, enums, or repeated messages. * Because this is an option, the above two restrictions are not enforced by * the protocol compiler. * </pre> * * <code>optional bool message_set_wire_format = 1 [default = false];</code> * @param value The messageSetWireFormat to set. * @return This builder for chaining. */
public Builder setMessageSetWireFormat(boolean value) { bitField0_ |= 0x00000001; messageSetWireFormat_ = value; onChanged(); return this; }
Set true to use the old proto1 MessageSet wire format for extensions.
This is provided for backwards-compatibility with the MessageSet wire
format.  You should not use this for any other reason:  It's less
efficient, has fewer features, and is more complicated.
The message must be defined exactly as follows:
  message Foo {
    option message_set_wire_format = true;
    extensions 4 to max;
  }
Note that the message cannot have any defined fields; MessageSets only
have extensions.
All extensions of your type must be singular messages; e.g. they cannot
be int32s, enums, or repeated messages.
Because this is an option, the above two restrictions are not enforced by
the protocol compiler.
optional bool message_set_wire_format = 1 [default = false];
Returns:This builder for chaining.
/** * <pre> * Set true to use the old proto1 MessageSet wire format for extensions. * This is provided for backwards-compatibility with the MessageSet wire * format. You should not use this for any other reason: It's less * efficient, has fewer features, and is more complicated. * The message must be defined exactly as follows: * message Foo { * option message_set_wire_format = true; * extensions 4 to max; * } * Note that the message cannot have any defined fields; MessageSets only * have extensions. * All extensions of your type must be singular messages; e.g. they cannot * be int32s, enums, or repeated messages. * Because this is an option, the above two restrictions are not enforced by * the protocol compiler. * </pre> * * <code>optional bool message_set_wire_format = 1 [default = false];</code> * @return This builder for chaining. */
public Builder clearMessageSetWireFormat() { bitField0_ = (bitField0_ & ~0x00000001); messageSetWireFormat_ = false; onChanged(); return this; } private boolean noStandardDescriptorAccessor_ ;
Disables the generation of the standard "descriptor()" accessor, which can
conflict with a field of the same name.  This is meant to make migration
from proto1 easier; new code should avoid fields named "descriptor".
optional bool no_standard_descriptor_accessor = 2 [default = false];
Returns:Whether the noStandardDescriptorAccessor field is set.
/** * <pre> * Disables the generation of the standard "descriptor()" accessor, which can * conflict with a field of the same name. This is meant to make migration * from proto1 easier; new code should avoid fields named "descriptor". * </pre> * * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> * @return Whether the noStandardDescriptorAccessor field is set. */
public boolean hasNoStandardDescriptorAccessor() { return ((bitField0_ & 0x00000002) != 0); }
Disables the generation of the standard "descriptor()" accessor, which can
conflict with a field of the same name.  This is meant to make migration
from proto1 easier; new code should avoid fields named "descriptor".
optional bool no_standard_descriptor_accessor = 2 [default = false];
Returns:The noStandardDescriptorAccessor.
/** * <pre> * Disables the generation of the standard "descriptor()" accessor, which can * conflict with a field of the same name. This is meant to make migration * from proto1 easier; new code should avoid fields named "descriptor". * </pre> * * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> * @return The noStandardDescriptorAccessor. */
public boolean getNoStandardDescriptorAccessor() { return noStandardDescriptorAccessor_; }
Disables the generation of the standard "descriptor()" accessor, which can
conflict with a field of the same name.  This is meant to make migration
from proto1 easier; new code should avoid fields named "descriptor".
optional bool no_standard_descriptor_accessor = 2 [default = false];
Params:
  • value – The noStandardDescriptorAccessor to set.
Returns:This builder for chaining.
/** * <pre> * Disables the generation of the standard "descriptor()" accessor, which can * conflict with a field of the same name. This is meant to make migration * from proto1 easier; new code should avoid fields named "descriptor". * </pre> * * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> * @param value The noStandardDescriptorAccessor to set. * @return This builder for chaining. */
public Builder setNoStandardDescriptorAccessor(boolean value) { bitField0_ |= 0x00000002; noStandardDescriptorAccessor_ = value; onChanged(); return this; }
Disables the generation of the standard "descriptor()" accessor, which can
conflict with a field of the same name.  This is meant to make migration
from proto1 easier; new code should avoid fields named "descriptor".
optional bool no_standard_descriptor_accessor = 2 [default = false];
Returns:This builder for chaining.
/** * <pre> * Disables the generation of the standard "descriptor()" accessor, which can * conflict with a field of the same name. This is meant to make migration * from proto1 easier; new code should avoid fields named "descriptor". * </pre> * * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> * @return This builder for chaining. */
public Builder clearNoStandardDescriptorAccessor() { bitField0_ = (bitField0_ & ~0x00000002); noStandardDescriptorAccessor_ = false; onChanged(); return this; } private boolean deprecated_ ;
Is this message deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the message, or it will be completely ignored; in the very least,
this is a formalization for deprecating messages.
optional bool deprecated = 3 [default = false];
Returns:Whether the deprecated field is set.
/** * <pre> * Is this message deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the message, or it will be completely ignored; in the very least, * this is a formalization for deprecating messages. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @return Whether the deprecated field is set. */
public boolean hasDeprecated() { return ((bitField0_ & 0x00000004) != 0); }
Is this message deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the message, or it will be completely ignored; in the very least,
this is a formalization for deprecating messages.
optional bool deprecated = 3 [default = false];
Returns:The deprecated.
/** * <pre> * Is this message deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the message, or it will be completely ignored; in the very least, * this is a formalization for deprecating messages. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @return The deprecated. */
public boolean getDeprecated() { return deprecated_; }
Is this message deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the message, or it will be completely ignored; in the very least,
this is a formalization for deprecating messages.
optional bool deprecated = 3 [default = false];
Params:
  • value – The deprecated to set.
Returns:This builder for chaining.
/** * <pre> * Is this message deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the message, or it will be completely ignored; in the very least, * this is a formalization for deprecating messages. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @param value The deprecated to set. * @return This builder for chaining. */
public Builder setDeprecated(boolean value) { bitField0_ |= 0x00000004; deprecated_ = value; onChanged(); return this; }
Is this message deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the message, or it will be completely ignored; in the very least,
this is a formalization for deprecating messages.
optional bool deprecated = 3 [default = false];
Returns:This builder for chaining.
/** * <pre> * Is this message deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the message, or it will be completely ignored; in the very least, * this is a formalization for deprecating messages. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @return This builder for chaining. */
public Builder clearDeprecated() { bitField0_ = (bitField0_ & ~0x00000004); deprecated_ = false; onChanged(); return this; } private boolean mapEntry_ ;
Whether the message is an automatically generated map entry type for the
maps field.
For maps fields:
    map<KeyType, ValueType> map_field = 1;
The parsed descriptor looks like:
    message MapFieldEntry {
        option map_entry = true;
        optional KeyType key = 1;
        optional ValueType value = 2;
    }
    repeated MapFieldEntry map_field = 1;
Implementations may choose not to generate the map_entry=true message, but
use a native map in the target language to hold the keys and values.
The reflection APIs in such implementations still need to work as
if the field is a repeated message field.
NOTE: Do not set the option in .proto files. Always use the maps syntax
instead. The option should only be implicitly set by the proto compiler
parser.
optional bool map_entry = 7;
Returns:Whether the mapEntry field is set.
/** * <pre> * Whether the message is an automatically generated map entry type for the * maps field. * For maps fields: * map&lt;KeyType, ValueType&gt; map_field = 1; * The parsed descriptor looks like: * message MapFieldEntry { * option map_entry = true; * optional KeyType key = 1; * optional ValueType value = 2; * } * repeated MapFieldEntry map_field = 1; * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * NOTE: Do not set the option in .proto files. Always use the maps syntax * instead. The option should only be implicitly set by the proto compiler * parser. * </pre> * * <code>optional bool map_entry = 7;</code> * @return Whether the mapEntry field is set. */
public boolean hasMapEntry() { return ((bitField0_ & 0x00000008) != 0); }
Whether the message is an automatically generated map entry type for the
maps field.
For maps fields:
    map<KeyType, ValueType> map_field = 1;
The parsed descriptor looks like:
    message MapFieldEntry {
        option map_entry = true;
        optional KeyType key = 1;
        optional ValueType value = 2;
    }
    repeated MapFieldEntry map_field = 1;
Implementations may choose not to generate the map_entry=true message, but
use a native map in the target language to hold the keys and values.
The reflection APIs in such implementations still need to work as
if the field is a repeated message field.
NOTE: Do not set the option in .proto files. Always use the maps syntax
instead. The option should only be implicitly set by the proto compiler
parser.
optional bool map_entry = 7;
Returns:The mapEntry.
/** * <pre> * Whether the message is an automatically generated map entry type for the * maps field. * For maps fields: * map&lt;KeyType, ValueType&gt; map_field = 1; * The parsed descriptor looks like: * message MapFieldEntry { * option map_entry = true; * optional KeyType key = 1; * optional ValueType value = 2; * } * repeated MapFieldEntry map_field = 1; * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * NOTE: Do not set the option in .proto files. Always use the maps syntax * instead. The option should only be implicitly set by the proto compiler * parser. * </pre> * * <code>optional bool map_entry = 7;</code> * @return The mapEntry. */
public boolean getMapEntry() { return mapEntry_; }
Whether the message is an automatically generated map entry type for the
maps field.
For maps fields:
    map<KeyType, ValueType> map_field = 1;
The parsed descriptor looks like:
    message MapFieldEntry {
        option map_entry = true;
        optional KeyType key = 1;
        optional ValueType value = 2;
    }
    repeated MapFieldEntry map_field = 1;
Implementations may choose not to generate the map_entry=true message, but
use a native map in the target language to hold the keys and values.
The reflection APIs in such implementations still need to work as
if the field is a repeated message field.
NOTE: Do not set the option in .proto files. Always use the maps syntax
instead. The option should only be implicitly set by the proto compiler
parser.
optional bool map_entry = 7;
Params:
  • value – The mapEntry to set.
Returns:This builder for chaining.
/** * <pre> * Whether the message is an automatically generated map entry type for the * maps field. * For maps fields: * map&lt;KeyType, ValueType&gt; map_field = 1; * The parsed descriptor looks like: * message MapFieldEntry { * option map_entry = true; * optional KeyType key = 1; * optional ValueType value = 2; * } * repeated MapFieldEntry map_field = 1; * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * NOTE: Do not set the option in .proto files. Always use the maps syntax * instead. The option should only be implicitly set by the proto compiler * parser. * </pre> * * <code>optional bool map_entry = 7;</code> * @param value The mapEntry to set. * @return This builder for chaining. */
public Builder setMapEntry(boolean value) { bitField0_ |= 0x00000008; mapEntry_ = value; onChanged(); return this; }
Whether the message is an automatically generated map entry type for the
maps field.
For maps fields:
    map<KeyType, ValueType> map_field = 1;
The parsed descriptor looks like:
    message MapFieldEntry {
        option map_entry = true;
        optional KeyType key = 1;
        optional ValueType value = 2;
    }
    repeated MapFieldEntry map_field = 1;
Implementations may choose not to generate the map_entry=true message, but
use a native map in the target language to hold the keys and values.
The reflection APIs in such implementations still need to work as
if the field is a repeated message field.
NOTE: Do not set the option in .proto files. Always use the maps syntax
instead. The option should only be implicitly set by the proto compiler
parser.
optional bool map_entry = 7;
Returns:This builder for chaining.
/** * <pre> * Whether the message is an automatically generated map entry type for the * maps field. * For maps fields: * map&lt;KeyType, ValueType&gt; map_field = 1; * The parsed descriptor looks like: * message MapFieldEntry { * option map_entry = true; * optional KeyType key = 1; * optional ValueType value = 2; * } * repeated MapFieldEntry map_field = 1; * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * NOTE: Do not set the option in .proto files. Always use the maps syntax * instead. The option should only be implicitly set by the proto compiler * parser. * </pre> * * <code>optional bool map_entry = 7;</code> * @return This builder for chaining. */
public Builder clearMapEntry() { bitField0_ = (bitField0_ & ~0x00000008); mapEntry_ = false; onChanged(); return this; } private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = java.util.Collections.emptyList(); private void ensureUninterpretedOptionIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_;
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { if (uninterpretedOptionBuilder_ == null) { return java.util.Collections.unmodifiableList(uninterpretedOption_); } else { return uninterpretedOptionBuilder_.getMessageList(); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public int getUninterpretedOptionCount() { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.size(); } else { return uninterpretedOptionBuilder_.getCount(); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessage(index); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, value); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addAllUninterpretedOption( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, uninterpretedOption_); onChanged(); } else { uninterpretedOptionBuilder_.addAllMessages(values); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder clearUninterpretedOption() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { uninterpretedOptionBuilder_.clear(); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder removeUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.remove(index); onChanged(); } else { uninterpretedOptionBuilder_.remove(index); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().getBuilder(index); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessageOrBuilder(index); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { if (uninterpretedOptionBuilder_ != null) { return uninterpretedOptionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(uninterpretedOption_); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { return getUninterpretedOptionFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> getUninterpretedOptionBuilderList() { return getUninterpretedOptionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionFieldBuilder() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( uninterpretedOption_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); uninterpretedOption_ = null; } return uninterpretedOptionBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.MessageOptions) } // @@protoc_insertion_point(class_scope:google.protobuf.MessageOptions) private static final com.google.protobuf.DescriptorProtos.MessageOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.MessageOptions(); } public static com.google.protobuf.DescriptorProtos.MessageOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<MessageOptions> PARSER = new com.google.protobuf.AbstractParser<MessageOptions>() { @java.lang.Override public MessageOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MessageOptions(input, extensionRegistry); } }; public static com.google.protobuf.Parser<MessageOptions> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<MessageOptions> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.MessageOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FieldOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.FieldOptions) com.google.protobuf.GeneratedMessageV3. ExtendableMessageOrBuilder<FieldOptions> {
The ctype option instructs the C++ code generator to use a different
representation of the field than it normally would.  See the specific
options below.  This option is not yet implemented in the open source
release -- sorry, we'll try to include it in a future version!
optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
Returns:Whether the ctype field is set.
/** * <pre> * The ctype option instructs the C++ code generator to use a different * representation of the field than it normally would. See the specific * options below. This option is not yet implemented in the open source * release -- sorry, we'll try to include it in a future version! * </pre> * * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> * @return Whether the ctype field is set. */
boolean hasCtype();
The ctype option instructs the C++ code generator to use a different
representation of the field than it normally would.  See the specific
options below.  This option is not yet implemented in the open source
release -- sorry, we'll try to include it in a future version!
optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
Returns:The ctype.
/** * <pre> * The ctype option instructs the C++ code generator to use a different * representation of the field than it normally would. See the specific * options below. This option is not yet implemented in the open source * release -- sorry, we'll try to include it in a future version! * </pre> * * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> * @return The ctype. */
com.google.protobuf.DescriptorProtos.FieldOptions.CType getCtype();
The packed option can be enabled for repeated primitive fields to enable
a more efficient representation on the wire. Rather than repeatedly
writing the tag and type for each element, the entire array is encoded as
a single length-delimited blob. In proto3, only explicit setting it to
false will avoid using packed encoding.
optional bool packed = 2;
Returns:Whether the packed field is set.
/** * <pre> * The packed option can be enabled for repeated primitive fields to enable * a more efficient representation on the wire. Rather than repeatedly * writing the tag and type for each element, the entire array is encoded as * a single length-delimited blob. In proto3, only explicit setting it to * false will avoid using packed encoding. * </pre> * * <code>optional bool packed = 2;</code> * @return Whether the packed field is set. */
boolean hasPacked();
The packed option can be enabled for repeated primitive fields to enable
a more efficient representation on the wire. Rather than repeatedly
writing the tag and type for each element, the entire array is encoded as
a single length-delimited blob. In proto3, only explicit setting it to
false will avoid using packed encoding.
optional bool packed = 2;
Returns:The packed.
/** * <pre> * The packed option can be enabled for repeated primitive fields to enable * a more efficient representation on the wire. Rather than repeatedly * writing the tag and type for each element, the entire array is encoded as * a single length-delimited blob. In proto3, only explicit setting it to * false will avoid using packed encoding. * </pre> * * <code>optional bool packed = 2;</code> * @return The packed. */
boolean getPacked();
The jstype option determines the JavaScript type used for values of the
field.  The option is permitted only for 64 bit integral and fixed types
(int64, uint64, sint64, fixed64, sfixed64).  A field with jstype JS_STRING
is represented as JavaScript string, which avoids loss of precision that
can happen when a large value is converted to a floating point JavaScript.
Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
use the JavaScript "number" type.  The behavior of the default option
JS_NORMAL is implementation dependent.
This option is an enum to permit additional types to be added, e.g.
goog.math.Integer.
optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
Returns:Whether the jstype field is set.
/** * <pre> * The jstype option determines the JavaScript type used for values of the * field. The option is permitted only for 64 bit integral and fixed types * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING * is represented as JavaScript string, which avoids loss of precision that * can happen when a large value is converted to a floating point JavaScript. * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to * use the JavaScript "number" type. The behavior of the default option * JS_NORMAL is implementation dependent. * This option is an enum to permit additional types to be added, e.g. * goog.math.Integer. * </pre> * * <code>optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];</code> * @return Whether the jstype field is set. */
boolean hasJstype();
The jstype option determines the JavaScript type used for values of the
field.  The option is permitted only for 64 bit integral and fixed types
(int64, uint64, sint64, fixed64, sfixed64).  A field with jstype JS_STRING
is represented as JavaScript string, which avoids loss of precision that
can happen when a large value is converted to a floating point JavaScript.
Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
use the JavaScript "number" type.  The behavior of the default option
JS_NORMAL is implementation dependent.
This option is an enum to permit additional types to be added, e.g.
goog.math.Integer.
optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
Returns:The jstype.
/** * <pre> * The jstype option determines the JavaScript type used for values of the * field. The option is permitted only for 64 bit integral and fixed types * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING * is represented as JavaScript string, which avoids loss of precision that * can happen when a large value is converted to a floating point JavaScript. * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to * use the JavaScript "number" type. The behavior of the default option * JS_NORMAL is implementation dependent. * This option is an enum to permit additional types to be added, e.g. * goog.math.Integer. * </pre> * * <code>optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];</code> * @return The jstype. */
com.google.protobuf.DescriptorProtos.FieldOptions.JSType getJstype();
Should this field be parsed lazily?  Lazy applies only to message-type
fields.  It means that when the outer message is initially parsed, the
inner message's contents will not be parsed but instead stored in encoded
form.  The inner message will actually be parsed when it is first accessed.
This is only a hint.  Implementations are free to choose whether to use
eager or lazy parsing regardless of the value of this option.  However,
setting this option true suggests that the protocol author believes that
using lazy parsing on this field is worth the additional bookkeeping
overhead typically needed to implement it.
This option does not affect the public interface of any generated code;
all method signatures remain the same.  Furthermore, thread-safety of the
interface is not affected by this option; const methods remain safe to
call from multiple threads concurrently, while non-const methods continue
to require exclusive access.
Note that implementations may choose not to check required fields within
a lazy sub-message.  That is, calling IsInitialized() on the outer message
may return true even if the inner message has missing required fields.
This is necessary because otherwise the inner message would have to be
parsed in order to perform the check, defeating the purpose of lazy
parsing.  An implementation which chooses not to check required fields
must be consistent about it.  That is, for any particular sub-message, the
implementation must either *always* check its required fields, or *never*
check its required fields, regardless of whether or not the message has
been parsed.
optional bool lazy = 5 [default = false];
Returns:Whether the lazy field is set.
/** * <pre> * Should this field be parsed lazily? Lazy applies only to message-type * fields. It means that when the outer message is initially parsed, the * inner message's contents will not be parsed but instead stored in encoded * form. The inner message will actually be parsed when it is first accessed. * This is only a hint. Implementations are free to choose whether to use * eager or lazy parsing regardless of the value of this option. However, * setting this option true suggests that the protocol author believes that * using lazy parsing on this field is worth the additional bookkeeping * overhead typically needed to implement it. * This option does not affect the public interface of any generated code; * all method signatures remain the same. Furthermore, thread-safety of the * interface is not affected by this option; const methods remain safe to * call from multiple threads concurrently, while non-const methods continue * to require exclusive access. * Note that implementations may choose not to check required fields within * a lazy sub-message. That is, calling IsInitialized() on the outer message * may return true even if the inner message has missing required fields. * This is necessary because otherwise the inner message would have to be * parsed in order to perform the check, defeating the purpose of lazy * parsing. An implementation which chooses not to check required fields * must be consistent about it. That is, for any particular sub-message, the * implementation must either *always* check its required fields, or *never* * check its required fields, regardless of whether or not the message has * been parsed. * </pre> * * <code>optional bool lazy = 5 [default = false];</code> * @return Whether the lazy field is set. */
boolean hasLazy();
Should this field be parsed lazily?  Lazy applies only to message-type
fields.  It means that when the outer message is initially parsed, the
inner message's contents will not be parsed but instead stored in encoded
form.  The inner message will actually be parsed when it is first accessed.
This is only a hint.  Implementations are free to choose whether to use
eager or lazy parsing regardless of the value of this option.  However,
setting this option true suggests that the protocol author believes that
using lazy parsing on this field is worth the additional bookkeeping
overhead typically needed to implement it.
This option does not affect the public interface of any generated code;
all method signatures remain the same.  Furthermore, thread-safety of the
interface is not affected by this option; const methods remain safe to
call from multiple threads concurrently, while non-const methods continue
to require exclusive access.
Note that implementations may choose not to check required fields within
a lazy sub-message.  That is, calling IsInitialized() on the outer message
may return true even if the inner message has missing required fields.
This is necessary because otherwise the inner message would have to be
parsed in order to perform the check, defeating the purpose of lazy
parsing.  An implementation which chooses not to check required fields
must be consistent about it.  That is, for any particular sub-message, the
implementation must either *always* check its required fields, or *never*
check its required fields, regardless of whether or not the message has
been parsed.
optional bool lazy = 5 [default = false];
Returns:The lazy.
/** * <pre> * Should this field be parsed lazily? Lazy applies only to message-type * fields. It means that when the outer message is initially parsed, the * inner message's contents will not be parsed but instead stored in encoded * form. The inner message will actually be parsed when it is first accessed. * This is only a hint. Implementations are free to choose whether to use * eager or lazy parsing regardless of the value of this option. However, * setting this option true suggests that the protocol author believes that * using lazy parsing on this field is worth the additional bookkeeping * overhead typically needed to implement it. * This option does not affect the public interface of any generated code; * all method signatures remain the same. Furthermore, thread-safety of the * interface is not affected by this option; const methods remain safe to * call from multiple threads concurrently, while non-const methods continue * to require exclusive access. * Note that implementations may choose not to check required fields within * a lazy sub-message. That is, calling IsInitialized() on the outer message * may return true even if the inner message has missing required fields. * This is necessary because otherwise the inner message would have to be * parsed in order to perform the check, defeating the purpose of lazy * parsing. An implementation which chooses not to check required fields * must be consistent about it. That is, for any particular sub-message, the * implementation must either *always* check its required fields, or *never* * check its required fields, regardless of whether or not the message has * been parsed. * </pre> * * <code>optional bool lazy = 5 [default = false];</code> * @return The lazy. */
boolean getLazy();
Is this field deprecated?
Depending on the target platform, this can emit Deprecated annotations
for accessors, or it will be completely ignored; in the very least, this
is a formalization for deprecating fields.
optional bool deprecated = 3 [default = false];
Returns:Whether the deprecated field is set.
/** * <pre> * Is this field deprecated? * Depending on the target platform, this can emit Deprecated annotations * for accessors, or it will be completely ignored; in the very least, this * is a formalization for deprecating fields. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @return Whether the deprecated field is set. */
boolean hasDeprecated();
Is this field deprecated?
Depending on the target platform, this can emit Deprecated annotations
for accessors, or it will be completely ignored; in the very least, this
is a formalization for deprecating fields.
optional bool deprecated = 3 [default = false];
Returns:The deprecated.
/** * <pre> * Is this field deprecated? * Depending on the target platform, this can emit Deprecated annotations * for accessors, or it will be completely ignored; in the very least, this * is a formalization for deprecating fields. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @return The deprecated. */
boolean getDeprecated();
For Google-internal migration only. Do not use.
optional bool weak = 10 [default = false];
Returns:Whether the weak field is set.
/** * <pre> * For Google-internal migration only. Do not use. * </pre> * * <code>optional bool weak = 10 [default = false];</code> * @return Whether the weak field is set. */
boolean hasWeak();
For Google-internal migration only. Do not use.
optional bool weak = 10 [default = false];
Returns:The weak.
/** * <pre> * For Google-internal migration only. Do not use. * </pre> * * <code>optional bool weak = 10 [default = false];</code> * @return The weak. */
boolean getWeak();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index);
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
int getUninterpretedOptionCount();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index); }
Protobuf type google.protobuf.FieldOptions
/** * Protobuf type {@code google.protobuf.FieldOptions} */
public static final class FieldOptions extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage< FieldOptions> implements // @@protoc_insertion_point(message_implements:google.protobuf.FieldOptions) FieldOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use FieldOptions.newBuilder() to construct. private FieldOptions(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<com.google.protobuf.DescriptorProtos.FieldOptions, ?> builder) { super(builder); } private FieldOptions() { ctype_ = 0; jstype_ = 0; uninterpretedOption_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FieldOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FieldOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 8: { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") com.google.protobuf.DescriptorProtos.FieldOptions.CType value = com.google.protobuf.DescriptorProtos.FieldOptions.CType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; ctype_ = rawValue; } break; } case 16: { bitField0_ |= 0x00000002; packed_ = input.readBool(); break; } case 24: { bitField0_ |= 0x00000010; deprecated_ = input.readBool(); break; } case 40: { bitField0_ |= 0x00000008; lazy_ = input.readBool(); break; } case 48: { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") com.google.protobuf.DescriptorProtos.FieldOptions.JSType value = com.google.protobuf.DescriptorProtos.FieldOptions.JSType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(6, rawValue); } else { bitField0_ |= 0x00000004; jstype_ = rawValue; } break; } case 80: { bitField0_ |= 0x00000020; weak_ = input.readBool(); break; } case 7994: { if (!((mutable_bitField0_ & 0x00000040) != 0)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); mutable_bitField0_ |= 0x00000040; } uninterpretedOption_.add( input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000040) != 0)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.FieldOptions.class, com.google.protobuf.DescriptorProtos.FieldOptions.Builder.class); }
Protobuf enum google.protobuf.FieldOptions.CType
/** * Protobuf enum {@code google.protobuf.FieldOptions.CType} */
public enum CType implements com.google.protobuf.ProtocolMessageEnum {
Default mode.
STRING = 0;
/** * <pre> * Default mode. * </pre> * * <code>STRING = 0;</code> */
STRING(0),
CORD = 1;
/** * <code>CORD = 1;</code> */
CORD(1),
STRING_PIECE = 2;
/** * <code>STRING_PIECE = 2;</code> */
STRING_PIECE(2), ;
Default mode.
STRING = 0;
/** * <pre> * Default mode. * </pre> * * <code>STRING = 0;</code> */
public static final int STRING_VALUE = 0;
CORD = 1;
/** * <code>CORD = 1;</code> */
public static final int CORD_VALUE = 1;
STRING_PIECE = 2;
/** * <code>STRING_PIECE = 2;</code> */
public static final int STRING_PIECE_VALUE = 2; public final int getNumber() { return value; }
Params:
  • value – The numeric wire value of the corresponding enum entry.
Returns:The enum associated with the given numeric wire value.
Deprecated:Use forNumber(int) instead.
/** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */
@java.lang.Deprecated public static CType valueOf(int value) { return forNumber(value); }
Params:
  • value – The numeric wire value of the corresponding enum entry.
Returns:The enum associated with the given numeric wire value.
/** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */
public static CType forNumber(int value) { switch (value) { case 0: return STRING; case 1: return CORD; case 2: return STRING_PIECE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<CType> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<CType>() { public CType findValueByNumber(int number) { return CType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.FieldOptions.getDescriptor().getEnumTypes().get(0); } private static final CType[] VALUES = values(); public static CType 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 value; private CType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.protobuf.FieldOptions.CType) }
Protobuf enum google.protobuf.FieldOptions.JSType
/** * Protobuf enum {@code google.protobuf.FieldOptions.JSType} */
public enum JSType implements com.google.protobuf.ProtocolMessageEnum {
Use the default type.
JS_NORMAL = 0;
/** * <pre> * Use the default type. * </pre> * * <code>JS_NORMAL = 0;</code> */
JS_NORMAL(0),
Use JavaScript strings.
JS_STRING = 1;
/** * <pre> * Use JavaScript strings. * </pre> * * <code>JS_STRING = 1;</code> */
JS_STRING(1),
Use JavaScript numbers.
JS_NUMBER = 2;
/** * <pre> * Use JavaScript numbers. * </pre> * * <code>JS_NUMBER = 2;</code> */
JS_NUMBER(2), ;
Use the default type.
JS_NORMAL = 0;
/** * <pre> * Use the default type. * </pre> * * <code>JS_NORMAL = 0;</code> */
public static final int JS_NORMAL_VALUE = 0;
Use JavaScript strings.
JS_STRING = 1;
/** * <pre> * Use JavaScript strings. * </pre> * * <code>JS_STRING = 1;</code> */
public static final int JS_STRING_VALUE = 1;
Use JavaScript numbers.
JS_NUMBER = 2;
/** * <pre> * Use JavaScript numbers. * </pre> * * <code>JS_NUMBER = 2;</code> */
public static final int JS_NUMBER_VALUE = 2; public final int getNumber() { return value; }
Params:
  • value – The numeric wire value of the corresponding enum entry.
Returns:The enum associated with the given numeric wire value.
Deprecated:Use forNumber(int) instead.
/** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */
@java.lang.Deprecated public static JSType valueOf(int value) { return forNumber(value); }
Params:
  • value – The numeric wire value of the corresponding enum entry.
Returns:The enum associated with the given numeric wire value.
/** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */
public static JSType forNumber(int value) { switch (value) { case 0: return JS_NORMAL; case 1: return JS_STRING; case 2: return JS_NUMBER; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<JSType> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< JSType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<JSType>() { public JSType findValueByNumber(int number) { return JSType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.FieldOptions.getDescriptor().getEnumTypes().get(1); } private static final JSType[] VALUES = values(); public static JSType 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 value; private JSType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.protobuf.FieldOptions.JSType) } private int bitField0_; public static final int CTYPE_FIELD_NUMBER = 1; private int ctype_;
The ctype option instructs the C++ code generator to use a different
representation of the field than it normally would.  See the specific
options below.  This option is not yet implemented in the open source
release -- sorry, we'll try to include it in a future version!
optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
Returns:Whether the ctype field is set.
/** * <pre> * The ctype option instructs the C++ code generator to use a different * representation of the field than it normally would. See the specific * options below. This option is not yet implemented in the open source * release -- sorry, we'll try to include it in a future version! * </pre> * * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> * @return Whether the ctype field is set. */
public boolean hasCtype() { return ((bitField0_ & 0x00000001) != 0); }
The ctype option instructs the C++ code generator to use a different
representation of the field than it normally would.  See the specific
options below.  This option is not yet implemented in the open source
release -- sorry, we'll try to include it in a future version!
optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
Returns:The ctype.
/** * <pre> * The ctype option instructs the C++ code generator to use a different * representation of the field than it normally would. See the specific * options below. This option is not yet implemented in the open source * release -- sorry, we'll try to include it in a future version! * </pre> * * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> * @return The ctype. */
public com.google.protobuf.DescriptorProtos.FieldOptions.CType getCtype() { @SuppressWarnings("deprecation") com.google.protobuf.DescriptorProtos.FieldOptions.CType result = com.google.protobuf.DescriptorProtos.FieldOptions.CType.valueOf(ctype_); return result == null ? com.google.protobuf.DescriptorProtos.FieldOptions.CType.STRING : result; } public static final int PACKED_FIELD_NUMBER = 2; private boolean packed_;
The packed option can be enabled for repeated primitive fields to enable
a more efficient representation on the wire. Rather than repeatedly
writing the tag and type for each element, the entire array is encoded as
a single length-delimited blob. In proto3, only explicit setting it to
false will avoid using packed encoding.
optional bool packed = 2;
Returns:Whether the packed field is set.
/** * <pre> * The packed option can be enabled for repeated primitive fields to enable * a more efficient representation on the wire. Rather than repeatedly * writing the tag and type for each element, the entire array is encoded as * a single length-delimited blob. In proto3, only explicit setting it to * false will avoid using packed encoding. * </pre> * * <code>optional bool packed = 2;</code> * @return Whether the packed field is set. */
public boolean hasPacked() { return ((bitField0_ & 0x00000002) != 0); }
The packed option can be enabled for repeated primitive fields to enable
a more efficient representation on the wire. Rather than repeatedly
writing the tag and type for each element, the entire array is encoded as
a single length-delimited blob. In proto3, only explicit setting it to
false will avoid using packed encoding.
optional bool packed = 2;
Returns:The packed.
/** * <pre> * The packed option can be enabled for repeated primitive fields to enable * a more efficient representation on the wire. Rather than repeatedly * writing the tag and type for each element, the entire array is encoded as * a single length-delimited blob. In proto3, only explicit setting it to * false will avoid using packed encoding. * </pre> * * <code>optional bool packed = 2;</code> * @return The packed. */
public boolean getPacked() { return packed_; } public static final int JSTYPE_FIELD_NUMBER = 6; private int jstype_;
The jstype option determines the JavaScript type used for values of the
field.  The option is permitted only for 64 bit integral and fixed types
(int64, uint64, sint64, fixed64, sfixed64).  A field with jstype JS_STRING
is represented as JavaScript string, which avoids loss of precision that
can happen when a large value is converted to a floating point JavaScript.
Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
use the JavaScript "number" type.  The behavior of the default option
JS_NORMAL is implementation dependent.
This option is an enum to permit additional types to be added, e.g.
goog.math.Integer.
optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
Returns:Whether the jstype field is set.
/** * <pre> * The jstype option determines the JavaScript type used for values of the * field. The option is permitted only for 64 bit integral and fixed types * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING * is represented as JavaScript string, which avoids loss of precision that * can happen when a large value is converted to a floating point JavaScript. * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to * use the JavaScript "number" type. The behavior of the default option * JS_NORMAL is implementation dependent. * This option is an enum to permit additional types to be added, e.g. * goog.math.Integer. * </pre> * * <code>optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];</code> * @return Whether the jstype field is set. */
public boolean hasJstype() { return ((bitField0_ & 0x00000004) != 0); }
The jstype option determines the JavaScript type used for values of the
field.  The option is permitted only for 64 bit integral and fixed types
(int64, uint64, sint64, fixed64, sfixed64).  A field with jstype JS_STRING
is represented as JavaScript string, which avoids loss of precision that
can happen when a large value is converted to a floating point JavaScript.
Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
use the JavaScript "number" type.  The behavior of the default option
JS_NORMAL is implementation dependent.
This option is an enum to permit additional types to be added, e.g.
goog.math.Integer.
optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
Returns:The jstype.
/** * <pre> * The jstype option determines the JavaScript type used for values of the * field. The option is permitted only for 64 bit integral and fixed types * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING * is represented as JavaScript string, which avoids loss of precision that * can happen when a large value is converted to a floating point JavaScript. * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to * use the JavaScript "number" type. The behavior of the default option * JS_NORMAL is implementation dependent. * This option is an enum to permit additional types to be added, e.g. * goog.math.Integer. * </pre> * * <code>optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];</code> * @return The jstype. */
public com.google.protobuf.DescriptorProtos.FieldOptions.JSType getJstype() { @SuppressWarnings("deprecation") com.google.protobuf.DescriptorProtos.FieldOptions.JSType result = com.google.protobuf.DescriptorProtos.FieldOptions.JSType.valueOf(jstype_); return result == null ? com.google.protobuf.DescriptorProtos.FieldOptions.JSType.JS_NORMAL : result; } public static final int LAZY_FIELD_NUMBER = 5; private boolean lazy_;
Should this field be parsed lazily?  Lazy applies only to message-type
fields.  It means that when the outer message is initially parsed, the
inner message's contents will not be parsed but instead stored in encoded
form.  The inner message will actually be parsed when it is first accessed.
This is only a hint.  Implementations are free to choose whether to use
eager or lazy parsing regardless of the value of this option.  However,
setting this option true suggests that the protocol author believes that
using lazy parsing on this field is worth the additional bookkeeping
overhead typically needed to implement it.
This option does not affect the public interface of any generated code;
all method signatures remain the same.  Furthermore, thread-safety of the
interface is not affected by this option; const methods remain safe to
call from multiple threads concurrently, while non-const methods continue
to require exclusive access.
Note that implementations may choose not to check required fields within
a lazy sub-message.  That is, calling IsInitialized() on the outer message
may return true even if the inner message has missing required fields.
This is necessary because otherwise the inner message would have to be
parsed in order to perform the check, defeating the purpose of lazy
parsing.  An implementation which chooses not to check required fields
must be consistent about it.  That is, for any particular sub-message, the
implementation must either *always* check its required fields, or *never*
check its required fields, regardless of whether or not the message has
been parsed.
optional bool lazy = 5 [default = false];
Returns:Whether the lazy field is set.
/** * <pre> * Should this field be parsed lazily? Lazy applies only to message-type * fields. It means that when the outer message is initially parsed, the * inner message's contents will not be parsed but instead stored in encoded * form. The inner message will actually be parsed when it is first accessed. * This is only a hint. Implementations are free to choose whether to use * eager or lazy parsing regardless of the value of this option. However, * setting this option true suggests that the protocol author believes that * using lazy parsing on this field is worth the additional bookkeeping * overhead typically needed to implement it. * This option does not affect the public interface of any generated code; * all method signatures remain the same. Furthermore, thread-safety of the * interface is not affected by this option; const methods remain safe to * call from multiple threads concurrently, while non-const methods continue * to require exclusive access. * Note that implementations may choose not to check required fields within * a lazy sub-message. That is, calling IsInitialized() on the outer message * may return true even if the inner message has missing required fields. * This is necessary because otherwise the inner message would have to be * parsed in order to perform the check, defeating the purpose of lazy * parsing. An implementation which chooses not to check required fields * must be consistent about it. That is, for any particular sub-message, the * implementation must either *always* check its required fields, or *never* * check its required fields, regardless of whether or not the message has * been parsed. * </pre> * * <code>optional bool lazy = 5 [default = false];</code> * @return Whether the lazy field is set. */
public boolean hasLazy() { return ((bitField0_ & 0x00000008) != 0); }
Should this field be parsed lazily?  Lazy applies only to message-type
fields.  It means that when the outer message is initially parsed, the
inner message's contents will not be parsed but instead stored in encoded
form.  The inner message will actually be parsed when it is first accessed.
This is only a hint.  Implementations are free to choose whether to use
eager or lazy parsing regardless of the value of this option.  However,
setting this option true suggests that the protocol author believes that
using lazy parsing on this field is worth the additional bookkeeping
overhead typically needed to implement it.
This option does not affect the public interface of any generated code;
all method signatures remain the same.  Furthermore, thread-safety of the
interface is not affected by this option; const methods remain safe to
call from multiple threads concurrently, while non-const methods continue
to require exclusive access.
Note that implementations may choose not to check required fields within
a lazy sub-message.  That is, calling IsInitialized() on the outer message
may return true even if the inner message has missing required fields.
This is necessary because otherwise the inner message would have to be
parsed in order to perform the check, defeating the purpose of lazy
parsing.  An implementation which chooses not to check required fields
must be consistent about it.  That is, for any particular sub-message, the
implementation must either *always* check its required fields, or *never*
check its required fields, regardless of whether or not the message has
been parsed.
optional bool lazy = 5 [default = false];
Returns:The lazy.
/** * <pre> * Should this field be parsed lazily? Lazy applies only to message-type * fields. It means that when the outer message is initially parsed, the * inner message's contents will not be parsed but instead stored in encoded * form. The inner message will actually be parsed when it is first accessed. * This is only a hint. Implementations are free to choose whether to use * eager or lazy parsing regardless of the value of this option. However, * setting this option true suggests that the protocol author believes that * using lazy parsing on this field is worth the additional bookkeeping * overhead typically needed to implement it. * This option does not affect the public interface of any generated code; * all method signatures remain the same. Furthermore, thread-safety of the * interface is not affected by this option; const methods remain safe to * call from multiple threads concurrently, while non-const methods continue * to require exclusive access. * Note that implementations may choose not to check required fields within * a lazy sub-message. That is, calling IsInitialized() on the outer message * may return true even if the inner message has missing required fields. * This is necessary because otherwise the inner message would have to be * parsed in order to perform the check, defeating the purpose of lazy * parsing. An implementation which chooses not to check required fields * must be consistent about it. That is, for any particular sub-message, the * implementation must either *always* check its required fields, or *never* * check its required fields, regardless of whether or not the message has * been parsed. * </pre> * * <code>optional bool lazy = 5 [default = false];</code> * @return The lazy. */
public boolean getLazy() { return lazy_; } public static final int DEPRECATED_FIELD_NUMBER = 3; private boolean deprecated_;
Is this field deprecated?
Depending on the target platform, this can emit Deprecated annotations
for accessors, or it will be completely ignored; in the very least, this
is a formalization for deprecating fields.
optional bool deprecated = 3 [default = false];
Returns:Whether the deprecated field is set.
/** * <pre> * Is this field deprecated? * Depending on the target platform, this can emit Deprecated annotations * for accessors, or it will be completely ignored; in the very least, this * is a formalization for deprecating fields. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @return Whether the deprecated field is set. */
public boolean hasDeprecated() { return ((bitField0_ & 0x00000010) != 0); }
Is this field deprecated?
Depending on the target platform, this can emit Deprecated annotations
for accessors, or it will be completely ignored; in the very least, this
is a formalization for deprecating fields.
optional bool deprecated = 3 [default = false];
Returns:The deprecated.
/** * <pre> * Is this field deprecated? * Depending on the target platform, this can emit Deprecated annotations * for accessors, or it will be completely ignored; in the very least, this * is a formalization for deprecating fields. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @return The deprecated. */
public boolean getDeprecated() { return deprecated_; } public static final int WEAK_FIELD_NUMBER = 10; private boolean weak_;
For Google-internal migration only. Do not use.
optional bool weak = 10 [default = false];
Returns:Whether the weak field is set.
/** * <pre> * For Google-internal migration only. Do not use. * </pre> * * <code>optional bool weak = 10 [default = false];</code> * @return Whether the weak field is set. */
public boolean hasWeak() { return ((bitField0_ & 0x00000020) != 0); }
For Google-internal migration only. Do not use.
optional bool weak = 10 [default = false];
Returns:The weak.
/** * <pre> * For Google-internal migration only. Do not use. * </pre> * * <code>optional bool weak = 10 [default = false];</code> * @return The weak. */
public boolean getWeak() { return weak_; } public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_;
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { return uninterpretedOption_; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { return uninterpretedOption_; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public int getUninterpretedOptionCount() { return uninterpretedOption_.size(); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { return uninterpretedOption_.get(index); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { return uninterpretedOption_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .ExtendableMessage<com.google.protobuf.DescriptorProtos.FieldOptions>.ExtensionWriter extensionWriter = newExtensionWriter(); if (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(1, ctype_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, packed_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(3, deprecated_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(5, lazy_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeEnum(6, jstype_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(10, weak_); } for (int i = 0; i < uninterpretedOption_.size(); i++) { output.writeMessage(999, uninterpretedOption_.get(i)); } extensionWriter.writeUntil(536870912, output); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, ctype_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, packed_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, deprecated_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, lazy_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, jstype_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, weak_); } for (int i = 0; i < uninterpretedOption_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(999, uninterpretedOption_.get(i)); } size += extensionsSerializedSize(); size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.FieldOptions)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.FieldOptions other = (com.google.protobuf.DescriptorProtos.FieldOptions) obj; if (hasCtype() != other.hasCtype()) return false; if (hasCtype()) { if (ctype_ != other.ctype_) return false; } if (hasPacked() != other.hasPacked()) return false; if (hasPacked()) { if (getPacked() != other.getPacked()) return false; } if (hasJstype() != other.hasJstype()) return false; if (hasJstype()) { if (jstype_ != other.jstype_) return false; } if (hasLazy() != other.hasLazy()) return false; if (hasLazy()) { if (getLazy() != other.getLazy()) return false; } if (hasDeprecated() != other.hasDeprecated()) return false; if (hasDeprecated()) { if (getDeprecated() != other.getDeprecated()) return false; } if (hasWeak() != other.hasWeak()) return false; if (hasWeak()) { if (getWeak() != other.getWeak()) return false; } if (!getUninterpretedOptionList() .equals(other.getUninterpretedOptionList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; if (!getExtensionFields().equals(other.getExtensionFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCtype()) { hash = (37 * hash) + CTYPE_FIELD_NUMBER; hash = (53 * hash) + ctype_; } if (hasPacked()) { hash = (37 * hash) + PACKED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPacked()); } if (hasJstype()) { hash = (37 * hash) + JSTYPE_FIELD_NUMBER; hash = (53 * hash) + jstype_; } if (hasLazy()) { hash = (37 * hash) + LAZY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getLazy()); } if (hasDeprecated()) { hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDeprecated()); } if (hasWeak()) { hash = (37 * hash) + WEAK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getWeak()); } if (getUninterpretedOptionCount() > 0) { hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; hash = (53 * hash) + getUninterpretedOptionList().hashCode(); } hash = hashFields(hash, getExtensionFields()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.FieldOptions 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.FieldOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FieldOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.FieldOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FieldOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Protobuf type google.protobuf.FieldOptions
/** * Protobuf type {@code google.protobuf.FieldOptions} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< com.google.protobuf.DescriptorProtos.FieldOptions, Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.FieldOptions) com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.FieldOptions.class, com.google.protobuf.DescriptorProtos.FieldOptions.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.FieldOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getUninterpretedOptionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); ctype_ = 0; bitField0_ = (bitField0_ & ~0x00000001); packed_ = false; bitField0_ = (bitField0_ & ~0x00000002); jstype_ = 0; bitField0_ = (bitField0_ & ~0x00000004); lazy_ = false; bitField0_ = (bitField0_ & ~0x00000008); deprecated_ = false; bitField0_ = (bitField0_ & ~0x00000010); weak_ = false; bitField0_ = (bitField0_ & ~0x00000020); if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { uninterpretedOptionBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldOptions_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.FieldOptions getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.FieldOptions build() { com.google.protobuf.DescriptorProtos.FieldOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.FieldOptions buildPartial() { com.google.protobuf.DescriptorProtos.FieldOptions result = new com.google.protobuf.DescriptorProtos.FieldOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.ctype_ = ctype_; if (((from_bitField0_ & 0x00000002) != 0)) { result.packed_ = packed_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.jstype_ = jstype_; if (((from_bitField0_ & 0x00000008) != 0)) { result.lazy_ = lazy_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.deprecated_ = deprecated_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.weak_ = weak_; to_bitField0_ |= 0x00000020; } if (uninterpretedOptionBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); bitField0_ = (bitField0_ & ~0x00000040); } result.uninterpretedOption_ = uninterpretedOption_; } else { result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public <Type> Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FieldOptions, Type> extension, Type value) { return super.setExtension(extension, value); } @java.lang.Override public <Type> Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FieldOptions, java.util.List<Type>> extension, int index, Type value) { return super.setExtension(extension, index, value); } @java.lang.Override public <Type> Builder addExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FieldOptions, java.util.List<Type>> extension, Type value) { return super.addExtension(extension, value); } @java.lang.Override public <Type> Builder clearExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FieldOptions, ?> extension) { return super.clearExtension(extension); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.FieldOptions) { return mergeFrom((com.google.protobuf.DescriptorProtos.FieldOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.FieldOptions other) { if (other == com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance()) return this; if (other.hasCtype()) { setCtype(other.getCtype()); } if (other.hasPacked()) { setPacked(other.getPacked()); } if (other.hasJstype()) { setJstype(other.getJstype()); } if (other.hasLazy()) { setLazy(other.getLazy()); } if (other.hasDeprecated()) { setDeprecated(other.getDeprecated()); } if (other.hasWeak()) { setWeak(other.getWeak()); } if (uninterpretedOptionBuilder_ == null) { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOption_.isEmpty()) { uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.addAll(other.uninterpretedOption_); } onChanged(); } } else { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOptionBuilder_.isEmpty()) { uninterpretedOptionBuilder_.dispose(); uninterpretedOptionBuilder_ = null; uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000040); uninterpretedOptionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUninterpretedOptionFieldBuilder() : null; } else { uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); } } } this.mergeExtensionFields(other); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { return false; } } if (!extensionsAreInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.FieldOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.FieldOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int ctype_ = 0;
The ctype option instructs the C++ code generator to use a different
representation of the field than it normally would.  See the specific
options below.  This option is not yet implemented in the open source
release -- sorry, we'll try to include it in a future version!
optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
Returns:Whether the ctype field is set.
/** * <pre> * The ctype option instructs the C++ code generator to use a different * representation of the field than it normally would. See the specific * options below. This option is not yet implemented in the open source * release -- sorry, we'll try to include it in a future version! * </pre> * * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> * @return Whether the ctype field is set. */
public boolean hasCtype() { return ((bitField0_ & 0x00000001) != 0); }
The ctype option instructs the C++ code generator to use a different
representation of the field than it normally would.  See the specific
options below.  This option is not yet implemented in the open source
release -- sorry, we'll try to include it in a future version!
optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
Returns:The ctype.
/** * <pre> * The ctype option instructs the C++ code generator to use a different * representation of the field than it normally would. See the specific * options below. This option is not yet implemented in the open source * release -- sorry, we'll try to include it in a future version! * </pre> * * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> * @return The ctype. */
public com.google.protobuf.DescriptorProtos.FieldOptions.CType getCtype() { @SuppressWarnings("deprecation") com.google.protobuf.DescriptorProtos.FieldOptions.CType result = com.google.protobuf.DescriptorProtos.FieldOptions.CType.valueOf(ctype_); return result == null ? com.google.protobuf.DescriptorProtos.FieldOptions.CType.STRING : result; }
The ctype option instructs the C++ code generator to use a different
representation of the field than it normally would.  See the specific
options below.  This option is not yet implemented in the open source
release -- sorry, we'll try to include it in a future version!
optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
Params:
  • value – The ctype to set.
Returns:This builder for chaining.
/** * <pre> * The ctype option instructs the C++ code generator to use a different * representation of the field than it normally would. See the specific * options below. This option is not yet implemented in the open source * release -- sorry, we'll try to include it in a future version! * </pre> * * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> * @param value The ctype to set. * @return This builder for chaining. */
public Builder setCtype(com.google.protobuf.DescriptorProtos.FieldOptions.CType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; ctype_ = value.getNumber(); onChanged(); return this; }
The ctype option instructs the C++ code generator to use a different
representation of the field than it normally would.  See the specific
options below.  This option is not yet implemented in the open source
release -- sorry, we'll try to include it in a future version!
optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
Returns:This builder for chaining.
/** * <pre> * The ctype option instructs the C++ code generator to use a different * representation of the field than it normally would. See the specific * options below. This option is not yet implemented in the open source * release -- sorry, we'll try to include it in a future version! * </pre> * * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> * @return This builder for chaining. */
public Builder clearCtype() { bitField0_ = (bitField0_ & ~0x00000001); ctype_ = 0; onChanged(); return this; } private boolean packed_ ;
The packed option can be enabled for repeated primitive fields to enable
a more efficient representation on the wire. Rather than repeatedly
writing the tag and type for each element, the entire array is encoded as
a single length-delimited blob. In proto3, only explicit setting it to
false will avoid using packed encoding.
optional bool packed = 2;
Returns:Whether the packed field is set.
/** * <pre> * The packed option can be enabled for repeated primitive fields to enable * a more efficient representation on the wire. Rather than repeatedly * writing the tag and type for each element, the entire array is encoded as * a single length-delimited blob. In proto3, only explicit setting it to * false will avoid using packed encoding. * </pre> * * <code>optional bool packed = 2;</code> * @return Whether the packed field is set. */
public boolean hasPacked() { return ((bitField0_ & 0x00000002) != 0); }
The packed option can be enabled for repeated primitive fields to enable
a more efficient representation on the wire. Rather than repeatedly
writing the tag and type for each element, the entire array is encoded as
a single length-delimited blob. In proto3, only explicit setting it to
false will avoid using packed encoding.
optional bool packed = 2;
Returns:The packed.
/** * <pre> * The packed option can be enabled for repeated primitive fields to enable * a more efficient representation on the wire. Rather than repeatedly * writing the tag and type for each element, the entire array is encoded as * a single length-delimited blob. In proto3, only explicit setting it to * false will avoid using packed encoding. * </pre> * * <code>optional bool packed = 2;</code> * @return The packed. */
public boolean getPacked() { return packed_; }
The packed option can be enabled for repeated primitive fields to enable
a more efficient representation on the wire. Rather than repeatedly
writing the tag and type for each element, the entire array is encoded as
a single length-delimited blob. In proto3, only explicit setting it to
false will avoid using packed encoding.
optional bool packed = 2;
Params:
  • value – The packed to set.
Returns:This builder for chaining.
/** * <pre> * The packed option can be enabled for repeated primitive fields to enable * a more efficient representation on the wire. Rather than repeatedly * writing the tag and type for each element, the entire array is encoded as * a single length-delimited blob. In proto3, only explicit setting it to * false will avoid using packed encoding. * </pre> * * <code>optional bool packed = 2;</code> * @param value The packed to set. * @return This builder for chaining. */
public Builder setPacked(boolean value) { bitField0_ |= 0x00000002; packed_ = value; onChanged(); return this; }
The packed option can be enabled for repeated primitive fields to enable
a more efficient representation on the wire. Rather than repeatedly
writing the tag and type for each element, the entire array is encoded as
a single length-delimited blob. In proto3, only explicit setting it to
false will avoid using packed encoding.
optional bool packed = 2;
Returns:This builder for chaining.
/** * <pre> * The packed option can be enabled for repeated primitive fields to enable * a more efficient representation on the wire. Rather than repeatedly * writing the tag and type for each element, the entire array is encoded as * a single length-delimited blob. In proto3, only explicit setting it to * false will avoid using packed encoding. * </pre> * * <code>optional bool packed = 2;</code> * @return This builder for chaining. */
public Builder clearPacked() { bitField0_ = (bitField0_ & ~0x00000002); packed_ = false; onChanged(); return this; } private int jstype_ = 0;
The jstype option determines the JavaScript type used for values of the
field.  The option is permitted only for 64 bit integral and fixed types
(int64, uint64, sint64, fixed64, sfixed64).  A field with jstype JS_STRING
is represented as JavaScript string, which avoids loss of precision that
can happen when a large value is converted to a floating point JavaScript.
Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
use the JavaScript "number" type.  The behavior of the default option
JS_NORMAL is implementation dependent.
This option is an enum to permit additional types to be added, e.g.
goog.math.Integer.
optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
Returns:Whether the jstype field is set.
/** * <pre> * The jstype option determines the JavaScript type used for values of the * field. The option is permitted only for 64 bit integral and fixed types * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING * is represented as JavaScript string, which avoids loss of precision that * can happen when a large value is converted to a floating point JavaScript. * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to * use the JavaScript "number" type. The behavior of the default option * JS_NORMAL is implementation dependent. * This option is an enum to permit additional types to be added, e.g. * goog.math.Integer. * </pre> * * <code>optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];</code> * @return Whether the jstype field is set. */
public boolean hasJstype() { return ((bitField0_ & 0x00000004) != 0); }
The jstype option determines the JavaScript type used for values of the
field.  The option is permitted only for 64 bit integral and fixed types
(int64, uint64, sint64, fixed64, sfixed64).  A field with jstype JS_STRING
is represented as JavaScript string, which avoids loss of precision that
can happen when a large value is converted to a floating point JavaScript.
Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
use the JavaScript "number" type.  The behavior of the default option
JS_NORMAL is implementation dependent.
This option is an enum to permit additional types to be added, e.g.
goog.math.Integer.
optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
Returns:The jstype.
/** * <pre> * The jstype option determines the JavaScript type used for values of the * field. The option is permitted only for 64 bit integral and fixed types * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING * is represented as JavaScript string, which avoids loss of precision that * can happen when a large value is converted to a floating point JavaScript. * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to * use the JavaScript "number" type. The behavior of the default option * JS_NORMAL is implementation dependent. * This option is an enum to permit additional types to be added, e.g. * goog.math.Integer. * </pre> * * <code>optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];</code> * @return The jstype. */
public com.google.protobuf.DescriptorProtos.FieldOptions.JSType getJstype() { @SuppressWarnings("deprecation") com.google.protobuf.DescriptorProtos.FieldOptions.JSType result = com.google.protobuf.DescriptorProtos.FieldOptions.JSType.valueOf(jstype_); return result == null ? com.google.protobuf.DescriptorProtos.FieldOptions.JSType.JS_NORMAL : result; }
The jstype option determines the JavaScript type used for values of the
field.  The option is permitted only for 64 bit integral and fixed types
(int64, uint64, sint64, fixed64, sfixed64).  A field with jstype JS_STRING
is represented as JavaScript string, which avoids loss of precision that
can happen when a large value is converted to a floating point JavaScript.
Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
use the JavaScript "number" type.  The behavior of the default option
JS_NORMAL is implementation dependent.
This option is an enum to permit additional types to be added, e.g.
goog.math.Integer.
optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
Params:
  • value – The jstype to set.
Returns:This builder for chaining.
/** * <pre> * The jstype option determines the JavaScript type used for values of the * field. The option is permitted only for 64 bit integral and fixed types * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING * is represented as JavaScript string, which avoids loss of precision that * can happen when a large value is converted to a floating point JavaScript. * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to * use the JavaScript "number" type. The behavior of the default option * JS_NORMAL is implementation dependent. * This option is an enum to permit additional types to be added, e.g. * goog.math.Integer. * </pre> * * <code>optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];</code> * @param value The jstype to set. * @return This builder for chaining. */
public Builder setJstype(com.google.protobuf.DescriptorProtos.FieldOptions.JSType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; jstype_ = value.getNumber(); onChanged(); return this; }
The jstype option determines the JavaScript type used for values of the
field.  The option is permitted only for 64 bit integral and fixed types
(int64, uint64, sint64, fixed64, sfixed64).  A field with jstype JS_STRING
is represented as JavaScript string, which avoids loss of precision that
can happen when a large value is converted to a floating point JavaScript.
Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
use the JavaScript "number" type.  The behavior of the default option
JS_NORMAL is implementation dependent.
This option is an enum to permit additional types to be added, e.g.
goog.math.Integer.
optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
Returns:This builder for chaining.
/** * <pre> * The jstype option determines the JavaScript type used for values of the * field. The option is permitted only for 64 bit integral and fixed types * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING * is represented as JavaScript string, which avoids loss of precision that * can happen when a large value is converted to a floating point JavaScript. * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to * use the JavaScript "number" type. The behavior of the default option * JS_NORMAL is implementation dependent. * This option is an enum to permit additional types to be added, e.g. * goog.math.Integer. * </pre> * * <code>optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];</code> * @return This builder for chaining. */
public Builder clearJstype() { bitField0_ = (bitField0_ & ~0x00000004); jstype_ = 0; onChanged(); return this; } private boolean lazy_ ;
Should this field be parsed lazily?  Lazy applies only to message-type
fields.  It means that when the outer message is initially parsed, the
inner message's contents will not be parsed but instead stored in encoded
form.  The inner message will actually be parsed when it is first accessed.
This is only a hint.  Implementations are free to choose whether to use
eager or lazy parsing regardless of the value of this option.  However,
setting this option true suggests that the protocol author believes that
using lazy parsing on this field is worth the additional bookkeeping
overhead typically needed to implement it.
This option does not affect the public interface of any generated code;
all method signatures remain the same.  Furthermore, thread-safety of the
interface is not affected by this option; const methods remain safe to
call from multiple threads concurrently, while non-const methods continue
to require exclusive access.
Note that implementations may choose not to check required fields within
a lazy sub-message.  That is, calling IsInitialized() on the outer message
may return true even if the inner message has missing required fields.
This is necessary because otherwise the inner message would have to be
parsed in order to perform the check, defeating the purpose of lazy
parsing.  An implementation which chooses not to check required fields
must be consistent about it.  That is, for any particular sub-message, the
implementation must either *always* check its required fields, or *never*
check its required fields, regardless of whether or not the message has
been parsed.
optional bool lazy = 5 [default = false];
Returns:Whether the lazy field is set.
/** * <pre> * Should this field be parsed lazily? Lazy applies only to message-type * fields. It means that when the outer message is initially parsed, the * inner message's contents will not be parsed but instead stored in encoded * form. The inner message will actually be parsed when it is first accessed. * This is only a hint. Implementations are free to choose whether to use * eager or lazy parsing regardless of the value of this option. However, * setting this option true suggests that the protocol author believes that * using lazy parsing on this field is worth the additional bookkeeping * overhead typically needed to implement it. * This option does not affect the public interface of any generated code; * all method signatures remain the same. Furthermore, thread-safety of the * interface is not affected by this option; const methods remain safe to * call from multiple threads concurrently, while non-const methods continue * to require exclusive access. * Note that implementations may choose not to check required fields within * a lazy sub-message. That is, calling IsInitialized() on the outer message * may return true even if the inner message has missing required fields. * This is necessary because otherwise the inner message would have to be * parsed in order to perform the check, defeating the purpose of lazy * parsing. An implementation which chooses not to check required fields * must be consistent about it. That is, for any particular sub-message, the * implementation must either *always* check its required fields, or *never* * check its required fields, regardless of whether or not the message has * been parsed. * </pre> * * <code>optional bool lazy = 5 [default = false];</code> * @return Whether the lazy field is set. */
public boolean hasLazy() { return ((bitField0_ & 0x00000008) != 0); }
Should this field be parsed lazily?  Lazy applies only to message-type
fields.  It means that when the outer message is initially parsed, the
inner message's contents will not be parsed but instead stored in encoded
form.  The inner message will actually be parsed when it is first accessed.
This is only a hint.  Implementations are free to choose whether to use
eager or lazy parsing regardless of the value of this option.  However,
setting this option true suggests that the protocol author believes that
using lazy parsing on this field is worth the additional bookkeeping
overhead typically needed to implement it.
This option does not affect the public interface of any generated code;
all method signatures remain the same.  Furthermore, thread-safety of the
interface is not affected by this option; const methods remain safe to
call from multiple threads concurrently, while non-const methods continue
to require exclusive access.
Note that implementations may choose not to check required fields within
a lazy sub-message.  That is, calling IsInitialized() on the outer message
may return true even if the inner message has missing required fields.
This is necessary because otherwise the inner message would have to be
parsed in order to perform the check, defeating the purpose of lazy
parsing.  An implementation which chooses not to check required fields
must be consistent about it.  That is, for any particular sub-message, the
implementation must either *always* check its required fields, or *never*
check its required fields, regardless of whether or not the message has
been parsed.
optional bool lazy = 5 [default = false];
Returns:The lazy.
/** * <pre> * Should this field be parsed lazily? Lazy applies only to message-type * fields. It means that when the outer message is initially parsed, the * inner message's contents will not be parsed but instead stored in encoded * form. The inner message will actually be parsed when it is first accessed. * This is only a hint. Implementations are free to choose whether to use * eager or lazy parsing regardless of the value of this option. However, * setting this option true suggests that the protocol author believes that * using lazy parsing on this field is worth the additional bookkeeping * overhead typically needed to implement it. * This option does not affect the public interface of any generated code; * all method signatures remain the same. Furthermore, thread-safety of the * interface is not affected by this option; const methods remain safe to * call from multiple threads concurrently, while non-const methods continue * to require exclusive access. * Note that implementations may choose not to check required fields within * a lazy sub-message. That is, calling IsInitialized() on the outer message * may return true even if the inner message has missing required fields. * This is necessary because otherwise the inner message would have to be * parsed in order to perform the check, defeating the purpose of lazy * parsing. An implementation which chooses not to check required fields * must be consistent about it. That is, for any particular sub-message, the * implementation must either *always* check its required fields, or *never* * check its required fields, regardless of whether or not the message has * been parsed. * </pre> * * <code>optional bool lazy = 5 [default = false];</code> * @return The lazy. */
public boolean getLazy() { return lazy_; }
Should this field be parsed lazily?  Lazy applies only to message-type
fields.  It means that when the outer message is initially parsed, the
inner message's contents will not be parsed but instead stored in encoded
form.  The inner message will actually be parsed when it is first accessed.
This is only a hint.  Implementations are free to choose whether to use
eager or lazy parsing regardless of the value of this option.  However,
setting this option true suggests that the protocol author believes that
using lazy parsing on this field is worth the additional bookkeeping
overhead typically needed to implement it.
This option does not affect the public interface of any generated code;
all method signatures remain the same.  Furthermore, thread-safety of the
interface is not affected by this option; const methods remain safe to
call from multiple threads concurrently, while non-const methods continue
to require exclusive access.
Note that implementations may choose not to check required fields within
a lazy sub-message.  That is, calling IsInitialized() on the outer message
may return true even if the inner message has missing required fields.
This is necessary because otherwise the inner message would have to be
parsed in order to perform the check, defeating the purpose of lazy
parsing.  An implementation which chooses not to check required fields
must be consistent about it.  That is, for any particular sub-message, the
implementation must either *always* check its required fields, or *never*
check its required fields, regardless of whether or not the message has
been parsed.
optional bool lazy = 5 [default = false];
Params:
  • value – The lazy to set.
Returns:This builder for chaining.
/** * <pre> * Should this field be parsed lazily? Lazy applies only to message-type * fields. It means that when the outer message is initially parsed, the * inner message's contents will not be parsed but instead stored in encoded * form. The inner message will actually be parsed when it is first accessed. * This is only a hint. Implementations are free to choose whether to use * eager or lazy parsing regardless of the value of this option. However, * setting this option true suggests that the protocol author believes that * using lazy parsing on this field is worth the additional bookkeeping * overhead typically needed to implement it. * This option does not affect the public interface of any generated code; * all method signatures remain the same. Furthermore, thread-safety of the * interface is not affected by this option; const methods remain safe to * call from multiple threads concurrently, while non-const methods continue * to require exclusive access. * Note that implementations may choose not to check required fields within * a lazy sub-message. That is, calling IsInitialized() on the outer message * may return true even if the inner message has missing required fields. * This is necessary because otherwise the inner message would have to be * parsed in order to perform the check, defeating the purpose of lazy * parsing. An implementation which chooses not to check required fields * must be consistent about it. That is, for any particular sub-message, the * implementation must either *always* check its required fields, or *never* * check its required fields, regardless of whether or not the message has * been parsed. * </pre> * * <code>optional bool lazy = 5 [default = false];</code> * @param value The lazy to set. * @return This builder for chaining. */
public Builder setLazy(boolean value) { bitField0_ |= 0x00000008; lazy_ = value; onChanged(); return this; }
Should this field be parsed lazily?  Lazy applies only to message-type
fields.  It means that when the outer message is initially parsed, the
inner message's contents will not be parsed but instead stored in encoded
form.  The inner message will actually be parsed when it is first accessed.
This is only a hint.  Implementations are free to choose whether to use
eager or lazy parsing regardless of the value of this option.  However,
setting this option true suggests that the protocol author believes that
using lazy parsing on this field is worth the additional bookkeeping
overhead typically needed to implement it.
This option does not affect the public interface of any generated code;
all method signatures remain the same.  Furthermore, thread-safety of the
interface is not affected by this option; const methods remain safe to
call from multiple threads concurrently, while non-const methods continue
to require exclusive access.
Note that implementations may choose not to check required fields within
a lazy sub-message.  That is, calling IsInitialized() on the outer message
may return true even if the inner message has missing required fields.
This is necessary because otherwise the inner message would have to be
parsed in order to perform the check, defeating the purpose of lazy
parsing.  An implementation which chooses not to check required fields
must be consistent about it.  That is, for any particular sub-message, the
implementation must either *always* check its required fields, or *never*
check its required fields, regardless of whether or not the message has
been parsed.
optional bool lazy = 5 [default = false];
Returns:This builder for chaining.
/** * <pre> * Should this field be parsed lazily? Lazy applies only to message-type * fields. It means that when the outer message is initially parsed, the * inner message's contents will not be parsed but instead stored in encoded * form. The inner message will actually be parsed when it is first accessed. * This is only a hint. Implementations are free to choose whether to use * eager or lazy parsing regardless of the value of this option. However, * setting this option true suggests that the protocol author believes that * using lazy parsing on this field is worth the additional bookkeeping * overhead typically needed to implement it. * This option does not affect the public interface of any generated code; * all method signatures remain the same. Furthermore, thread-safety of the * interface is not affected by this option; const methods remain safe to * call from multiple threads concurrently, while non-const methods continue * to require exclusive access. * Note that implementations may choose not to check required fields within * a lazy sub-message. That is, calling IsInitialized() on the outer message * may return true even if the inner message has missing required fields. * This is necessary because otherwise the inner message would have to be * parsed in order to perform the check, defeating the purpose of lazy * parsing. An implementation which chooses not to check required fields * must be consistent about it. That is, for any particular sub-message, the * implementation must either *always* check its required fields, or *never* * check its required fields, regardless of whether or not the message has * been parsed. * </pre> * * <code>optional bool lazy = 5 [default = false];</code> * @return This builder for chaining. */
public Builder clearLazy() { bitField0_ = (bitField0_ & ~0x00000008); lazy_ = false; onChanged(); return this; } private boolean deprecated_ ;
Is this field deprecated?
Depending on the target platform, this can emit Deprecated annotations
for accessors, or it will be completely ignored; in the very least, this
is a formalization for deprecating fields.
optional bool deprecated = 3 [default = false];
Returns:Whether the deprecated field is set.
/** * <pre> * Is this field deprecated? * Depending on the target platform, this can emit Deprecated annotations * for accessors, or it will be completely ignored; in the very least, this * is a formalization for deprecating fields. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @return Whether the deprecated field is set. */
public boolean hasDeprecated() { return ((bitField0_ & 0x00000010) != 0); }
Is this field deprecated?
Depending on the target platform, this can emit Deprecated annotations
for accessors, or it will be completely ignored; in the very least, this
is a formalization for deprecating fields.
optional bool deprecated = 3 [default = false];
Returns:The deprecated.
/** * <pre> * Is this field deprecated? * Depending on the target platform, this can emit Deprecated annotations * for accessors, or it will be completely ignored; in the very least, this * is a formalization for deprecating fields. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @return The deprecated. */
public boolean getDeprecated() { return deprecated_; }
Is this field deprecated?
Depending on the target platform, this can emit Deprecated annotations
for accessors, or it will be completely ignored; in the very least, this
is a formalization for deprecating fields.
optional bool deprecated = 3 [default = false];
Params:
  • value – The deprecated to set.
Returns:This builder for chaining.
/** * <pre> * Is this field deprecated? * Depending on the target platform, this can emit Deprecated annotations * for accessors, or it will be completely ignored; in the very least, this * is a formalization for deprecating fields. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @param value The deprecated to set. * @return This builder for chaining. */
public Builder setDeprecated(boolean value) { bitField0_ |= 0x00000010; deprecated_ = value; onChanged(); return this; }
Is this field deprecated?
Depending on the target platform, this can emit Deprecated annotations
for accessors, or it will be completely ignored; in the very least, this
is a formalization for deprecating fields.
optional bool deprecated = 3 [default = false];
Returns:This builder for chaining.
/** * <pre> * Is this field deprecated? * Depending on the target platform, this can emit Deprecated annotations * for accessors, or it will be completely ignored; in the very least, this * is a formalization for deprecating fields. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @return This builder for chaining. */
public Builder clearDeprecated() { bitField0_ = (bitField0_ & ~0x00000010); deprecated_ = false; onChanged(); return this; } private boolean weak_ ;
For Google-internal migration only. Do not use.
optional bool weak = 10 [default = false];
Returns:Whether the weak field is set.
/** * <pre> * For Google-internal migration only. Do not use. * </pre> * * <code>optional bool weak = 10 [default = false];</code> * @return Whether the weak field is set. */
public boolean hasWeak() { return ((bitField0_ & 0x00000020) != 0); }
For Google-internal migration only. Do not use.
optional bool weak = 10 [default = false];
Returns:The weak.
/** * <pre> * For Google-internal migration only. Do not use. * </pre> * * <code>optional bool weak = 10 [default = false];</code> * @return The weak. */
public boolean getWeak() { return weak_; }
For Google-internal migration only. Do not use.
optional bool weak = 10 [default = false];
Params:
  • value – The weak to set.
Returns:This builder for chaining.
/** * <pre> * For Google-internal migration only. Do not use. * </pre> * * <code>optional bool weak = 10 [default = false];</code> * @param value The weak to set. * @return This builder for chaining. */
public Builder setWeak(boolean value) { bitField0_ |= 0x00000020; weak_ = value; onChanged(); return this; }
For Google-internal migration only. Do not use.
optional bool weak = 10 [default = false];
Returns:This builder for chaining.
/** * <pre> * For Google-internal migration only. Do not use. * </pre> * * <code>optional bool weak = 10 [default = false];</code> * @return This builder for chaining. */
public Builder clearWeak() { bitField0_ = (bitField0_ & ~0x00000020); weak_ = false; onChanged(); return this; } private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = java.util.Collections.emptyList(); private void ensureUninterpretedOptionIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_;
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { if (uninterpretedOptionBuilder_ == null) { return java.util.Collections.unmodifiableList(uninterpretedOption_); } else { return uninterpretedOptionBuilder_.getMessageList(); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public int getUninterpretedOptionCount() { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.size(); } else { return uninterpretedOptionBuilder_.getCount(); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessage(index); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, value); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addAllUninterpretedOption( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, uninterpretedOption_); onChanged(); } else { uninterpretedOptionBuilder_.addAllMessages(values); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder clearUninterpretedOption() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { uninterpretedOptionBuilder_.clear(); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder removeUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.remove(index); onChanged(); } else { uninterpretedOptionBuilder_.remove(index); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().getBuilder(index); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessageOrBuilder(index); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { if (uninterpretedOptionBuilder_ != null) { return uninterpretedOptionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(uninterpretedOption_); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { return getUninterpretedOptionFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> getUninterpretedOptionBuilderList() { return getUninterpretedOptionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionFieldBuilder() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( uninterpretedOption_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); uninterpretedOption_ = null; } return uninterpretedOptionBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.FieldOptions) } // @@protoc_insertion_point(class_scope:google.protobuf.FieldOptions) private static final com.google.protobuf.DescriptorProtos.FieldOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.FieldOptions(); } public static com.google.protobuf.DescriptorProtos.FieldOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<FieldOptions> PARSER = new com.google.protobuf.AbstractParser<FieldOptions>() { @java.lang.Override public FieldOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FieldOptions(input, extensionRegistry); } }; public static com.google.protobuf.Parser<FieldOptions> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<FieldOptions> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.FieldOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OneofOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.OneofOptions) com.google.protobuf.GeneratedMessageV3. ExtendableMessageOrBuilder<OneofOptions> {
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index);
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
int getUninterpretedOptionCount();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index); }
Protobuf type google.protobuf.OneofOptions
/** * Protobuf type {@code google.protobuf.OneofOptions} */
public static final class OneofOptions extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage< OneofOptions> implements // @@protoc_insertion_point(message_implements:google.protobuf.OneofOptions) OneofOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use OneofOptions.newBuilder() to construct. private OneofOptions(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<com.google.protobuf.DescriptorProtos.OneofOptions, ?> builder) { super(builder); } private OneofOptions() { uninterpretedOption_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OneofOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OneofOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 7994: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); mutable_bitField0_ |= 0x00000001; } uninterpretedOption_.add( input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_OneofOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_OneofOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.OneofOptions.class, com.google.protobuf.DescriptorProtos.OneofOptions.Builder.class); } public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_;
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { return uninterpretedOption_; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { return uninterpretedOption_; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public int getUninterpretedOptionCount() { return uninterpretedOption_.size(); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { return uninterpretedOption_.get(index); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { return uninterpretedOption_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .ExtendableMessage<com.google.protobuf.DescriptorProtos.OneofOptions>.ExtensionWriter extensionWriter = newExtensionWriter(); for (int i = 0; i < uninterpretedOption_.size(); i++) { output.writeMessage(999, uninterpretedOption_.get(i)); } extensionWriter.writeUntil(536870912, output); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < uninterpretedOption_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(999, uninterpretedOption_.get(i)); } size += extensionsSerializedSize(); size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.OneofOptions)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.OneofOptions other = (com.google.protobuf.DescriptorProtos.OneofOptions) obj; if (!getUninterpretedOptionList() .equals(other.getUninterpretedOptionList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; if (!getExtensionFields().equals(other.getExtensionFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getUninterpretedOptionCount() > 0) { hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; hash = (53 * hash) + getUninterpretedOptionList().hashCode(); } hash = hashFields(hash, getExtensionFields()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.OneofOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.OneofOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.OneofOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.OneofOptions 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.OneofOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.OneofOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.OneofOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.OneofOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.OneofOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.OneofOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.OneofOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.OneofOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.OneofOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Protobuf type google.protobuf.OneofOptions
/** * Protobuf type {@code google.protobuf.OneofOptions} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< com.google.protobuf.DescriptorProtos.OneofOptions, Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.OneofOptions) com.google.protobuf.DescriptorProtos.OneofOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_OneofOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_OneofOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.OneofOptions.class, com.google.protobuf.DescriptorProtos.OneofOptions.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.OneofOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getUninterpretedOptionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { uninterpretedOptionBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_OneofOptions_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.OneofOptions getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.OneofOptions.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.OneofOptions build() { com.google.protobuf.DescriptorProtos.OneofOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.OneofOptions buildPartial() { com.google.protobuf.DescriptorProtos.OneofOptions result = new com.google.protobuf.DescriptorProtos.OneofOptions(this); int from_bitField0_ = bitField0_; if (uninterpretedOptionBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); bitField0_ = (bitField0_ & ~0x00000001); } result.uninterpretedOption_ = uninterpretedOption_; } else { result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public <Type> Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.OneofOptions, Type> extension, Type value) { return super.setExtension(extension, value); } @java.lang.Override public <Type> Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.OneofOptions, java.util.List<Type>> extension, int index, Type value) { return super.setExtension(extension, index, value); } @java.lang.Override public <Type> Builder addExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.OneofOptions, java.util.List<Type>> extension, Type value) { return super.addExtension(extension, value); } @java.lang.Override public <Type> Builder clearExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.OneofOptions, ?> extension) { return super.clearExtension(extension); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.OneofOptions) { return mergeFrom((com.google.protobuf.DescriptorProtos.OneofOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.OneofOptions other) { if (other == com.google.protobuf.DescriptorProtos.OneofOptions.getDefaultInstance()) return this; if (uninterpretedOptionBuilder_ == null) { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOption_.isEmpty()) { uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.addAll(other.uninterpretedOption_); } onChanged(); } } else { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOptionBuilder_.isEmpty()) { uninterpretedOptionBuilder_.dispose(); uninterpretedOptionBuilder_ = null; uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000001); uninterpretedOptionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUninterpretedOptionFieldBuilder() : null; } else { uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); } } } this.mergeExtensionFields(other); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { return false; } } if (!extensionsAreInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.OneofOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.OneofOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = java.util.Collections.emptyList(); private void ensureUninterpretedOptionIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_;
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { if (uninterpretedOptionBuilder_ == null) { return java.util.Collections.unmodifiableList(uninterpretedOption_); } else { return uninterpretedOptionBuilder_.getMessageList(); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public int getUninterpretedOptionCount() { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.size(); } else { return uninterpretedOptionBuilder_.getCount(); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessage(index); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, value); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addAllUninterpretedOption( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, uninterpretedOption_); onChanged(); } else { uninterpretedOptionBuilder_.addAllMessages(values); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder clearUninterpretedOption() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { uninterpretedOptionBuilder_.clear(); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder removeUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.remove(index); onChanged(); } else { uninterpretedOptionBuilder_.remove(index); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().getBuilder(index); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessageOrBuilder(index); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { if (uninterpretedOptionBuilder_ != null) { return uninterpretedOptionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(uninterpretedOption_); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { return getUninterpretedOptionFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> getUninterpretedOptionBuilderList() { return getUninterpretedOptionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionFieldBuilder() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( uninterpretedOption_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); uninterpretedOption_ = null; } return uninterpretedOptionBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.OneofOptions) } // @@protoc_insertion_point(class_scope:google.protobuf.OneofOptions) private static final com.google.protobuf.DescriptorProtos.OneofOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.OneofOptions(); } public static com.google.protobuf.DescriptorProtos.OneofOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<OneofOptions> PARSER = new com.google.protobuf.AbstractParser<OneofOptions>() { @java.lang.Override public OneofOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OneofOptions(input, extensionRegistry); } }; public static com.google.protobuf.Parser<OneofOptions> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<OneofOptions> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.OneofOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnumOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.EnumOptions) com.google.protobuf.GeneratedMessageV3. ExtendableMessageOrBuilder<EnumOptions> {
Set this option to true to allow mapping different tag names to the same
value.
optional bool allow_alias = 2;
Returns:Whether the allowAlias field is set.
/** * <pre> * Set this option to true to allow mapping different tag names to the same * value. * </pre> * * <code>optional bool allow_alias = 2;</code> * @return Whether the allowAlias field is set. */
boolean hasAllowAlias();
Set this option to true to allow mapping different tag names to the same
value.
optional bool allow_alias = 2;
Returns:The allowAlias.
/** * <pre> * Set this option to true to allow mapping different tag names to the same * value. * </pre> * * <code>optional bool allow_alias = 2;</code> * @return The allowAlias. */
boolean getAllowAlias();
Is this enum deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the enum, or it will be completely ignored; in the very least, this
is a formalization for deprecating enums.
optional bool deprecated = 3 [default = false];
Returns:Whether the deprecated field is set.
/** * <pre> * Is this enum deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum, or it will be completely ignored; in the very least, this * is a formalization for deprecating enums. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @return Whether the deprecated field is set. */
boolean hasDeprecated();
Is this enum deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the enum, or it will be completely ignored; in the very least, this
is a formalization for deprecating enums.
optional bool deprecated = 3 [default = false];
Returns:The deprecated.
/** * <pre> * Is this enum deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum, or it will be completely ignored; in the very least, this * is a formalization for deprecating enums. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @return The deprecated. */
boolean getDeprecated();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index);
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
int getUninterpretedOptionCount();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index); }
Protobuf type google.protobuf.EnumOptions
/** * Protobuf type {@code google.protobuf.EnumOptions} */
public static final class EnumOptions extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage< EnumOptions> implements // @@protoc_insertion_point(message_implements:google.protobuf.EnumOptions) EnumOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use EnumOptions.newBuilder() to construct. private EnumOptions(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<com.google.protobuf.DescriptorProtos.EnumOptions, ?> builder) { super(builder); } private EnumOptions() { uninterpretedOption_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EnumOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EnumOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 16: { bitField0_ |= 0x00000001; allowAlias_ = input.readBool(); break; } case 24: { bitField0_ |= 0x00000002; deprecated_ = input.readBool(); break; } case 7994: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); mutable_bitField0_ |= 0x00000004; } uninterpretedOption_.add( input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) != 0)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.EnumOptions.class, com.google.protobuf.DescriptorProtos.EnumOptions.Builder.class); } private int bitField0_; public static final int ALLOW_ALIAS_FIELD_NUMBER = 2; private boolean allowAlias_;
Set this option to true to allow mapping different tag names to the same
value.
optional bool allow_alias = 2;
Returns:Whether the allowAlias field is set.
/** * <pre> * Set this option to true to allow mapping different tag names to the same * value. * </pre> * * <code>optional bool allow_alias = 2;</code> * @return Whether the allowAlias field is set. */
public boolean hasAllowAlias() { return ((bitField0_ & 0x00000001) != 0); }
Set this option to true to allow mapping different tag names to the same
value.
optional bool allow_alias = 2;
Returns:The allowAlias.
/** * <pre> * Set this option to true to allow mapping different tag names to the same * value. * </pre> * * <code>optional bool allow_alias = 2;</code> * @return The allowAlias. */
public boolean getAllowAlias() { return allowAlias_; } public static final int DEPRECATED_FIELD_NUMBER = 3; private boolean deprecated_;
Is this enum deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the enum, or it will be completely ignored; in the very least, this
is a formalization for deprecating enums.
optional bool deprecated = 3 [default = false];
Returns:Whether the deprecated field is set.
/** * <pre> * Is this enum deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum, or it will be completely ignored; in the very least, this * is a formalization for deprecating enums. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @return Whether the deprecated field is set. */
public boolean hasDeprecated() { return ((bitField0_ & 0x00000002) != 0); }
Is this enum deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the enum, or it will be completely ignored; in the very least, this
is a formalization for deprecating enums.
optional bool deprecated = 3 [default = false];
Returns:The deprecated.
/** * <pre> * Is this enum deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum, or it will be completely ignored; in the very least, this * is a formalization for deprecating enums. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @return The deprecated. */
public boolean getDeprecated() { return deprecated_; } public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_;
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { return uninterpretedOption_; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { return uninterpretedOption_; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public int getUninterpretedOptionCount() { return uninterpretedOption_.size(); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { return uninterpretedOption_.get(index); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { return uninterpretedOption_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .ExtendableMessage<com.google.protobuf.DescriptorProtos.EnumOptions>.ExtensionWriter extensionWriter = newExtensionWriter(); if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(2, allowAlias_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(3, deprecated_); } for (int i = 0; i < uninterpretedOption_.size(); i++) { output.writeMessage(999, uninterpretedOption_.get(i)); } extensionWriter.writeUntil(536870912, output); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, allowAlias_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, deprecated_); } for (int i = 0; i < uninterpretedOption_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(999, uninterpretedOption_.get(i)); } size += extensionsSerializedSize(); size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.EnumOptions)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.EnumOptions other = (com.google.protobuf.DescriptorProtos.EnumOptions) obj; if (hasAllowAlias() != other.hasAllowAlias()) return false; if (hasAllowAlias()) { if (getAllowAlias() != other.getAllowAlias()) return false; } if (hasDeprecated() != other.hasDeprecated()) return false; if (hasDeprecated()) { if (getDeprecated() != other.getDeprecated()) return false; } if (!getUninterpretedOptionList() .equals(other.getUninterpretedOptionList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; if (!getExtensionFields().equals(other.getExtensionFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAllowAlias()) { hash = (37 * hash) + ALLOW_ALIAS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAllowAlias()); } if (hasDeprecated()) { hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDeprecated()); } if (getUninterpretedOptionCount() > 0) { hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; hash = (53 * hash) + getUninterpretedOptionList().hashCode(); } hash = hashFields(hash, getExtensionFields()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.EnumOptions 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.EnumOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.EnumOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.EnumOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Protobuf type google.protobuf.EnumOptions
/** * Protobuf type {@code google.protobuf.EnumOptions} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< com.google.protobuf.DescriptorProtos.EnumOptions, Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.EnumOptions) com.google.protobuf.DescriptorProtos.EnumOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.EnumOptions.class, com.google.protobuf.DescriptorProtos.EnumOptions.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.EnumOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getUninterpretedOptionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); allowAlias_ = false; bitField0_ = (bitField0_ & ~0x00000001); deprecated_ = false; bitField0_ = (bitField0_ & ~0x00000002); if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { uninterpretedOptionBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumOptions_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.EnumOptions getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.EnumOptions.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.EnumOptions build() { com.google.protobuf.DescriptorProtos.EnumOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.EnumOptions buildPartial() { com.google.protobuf.DescriptorProtos.EnumOptions result = new com.google.protobuf.DescriptorProtos.EnumOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.allowAlias_ = allowAlias_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.deprecated_ = deprecated_; to_bitField0_ |= 0x00000002; } if (uninterpretedOptionBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); bitField0_ = (bitField0_ & ~0x00000004); } result.uninterpretedOption_ = uninterpretedOption_; } else { result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public <Type> Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.EnumOptions, Type> extension, Type value) { return super.setExtension(extension, value); } @java.lang.Override public <Type> Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.EnumOptions, java.util.List<Type>> extension, int index, Type value) { return super.setExtension(extension, index, value); } @java.lang.Override public <Type> Builder addExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.EnumOptions, java.util.List<Type>> extension, Type value) { return super.addExtension(extension, value); } @java.lang.Override public <Type> Builder clearExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.EnumOptions, ?> extension) { return super.clearExtension(extension); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.EnumOptions) { return mergeFrom((com.google.protobuf.DescriptorProtos.EnumOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.EnumOptions other) { if (other == com.google.protobuf.DescriptorProtos.EnumOptions.getDefaultInstance()) return this; if (other.hasAllowAlias()) { setAllowAlias(other.getAllowAlias()); } if (other.hasDeprecated()) { setDeprecated(other.getDeprecated()); } if (uninterpretedOptionBuilder_ == null) { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOption_.isEmpty()) { uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.addAll(other.uninterpretedOption_); } onChanged(); } } else { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOptionBuilder_.isEmpty()) { uninterpretedOptionBuilder_.dispose(); uninterpretedOptionBuilder_ = null; uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000004); uninterpretedOptionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUninterpretedOptionFieldBuilder() : null; } else { uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); } } } this.mergeExtensionFields(other); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { return false; } } if (!extensionsAreInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.EnumOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.EnumOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private boolean allowAlias_ ;
Set this option to true to allow mapping different tag names to the same
value.
optional bool allow_alias = 2;
Returns:Whether the allowAlias field is set.
/** * <pre> * Set this option to true to allow mapping different tag names to the same * value. * </pre> * * <code>optional bool allow_alias = 2;</code> * @return Whether the allowAlias field is set. */
public boolean hasAllowAlias() { return ((bitField0_ & 0x00000001) != 0); }
Set this option to true to allow mapping different tag names to the same
value.
optional bool allow_alias = 2;
Returns:The allowAlias.
/** * <pre> * Set this option to true to allow mapping different tag names to the same * value. * </pre> * * <code>optional bool allow_alias = 2;</code> * @return The allowAlias. */
public boolean getAllowAlias() { return allowAlias_; }
Set this option to true to allow mapping different tag names to the same
value.
optional bool allow_alias = 2;
Params:
  • value – The allowAlias to set.
Returns:This builder for chaining.
/** * <pre> * Set this option to true to allow mapping different tag names to the same * value. * </pre> * * <code>optional bool allow_alias = 2;</code> * @param value The allowAlias to set. * @return This builder for chaining. */
public Builder setAllowAlias(boolean value) { bitField0_ |= 0x00000001; allowAlias_ = value; onChanged(); return this; }
Set this option to true to allow mapping different tag names to the same
value.
optional bool allow_alias = 2;
Returns:This builder for chaining.
/** * <pre> * Set this option to true to allow mapping different tag names to the same * value. * </pre> * * <code>optional bool allow_alias = 2;</code> * @return This builder for chaining. */
public Builder clearAllowAlias() { bitField0_ = (bitField0_ & ~0x00000001); allowAlias_ = false; onChanged(); return this; } private boolean deprecated_ ;
Is this enum deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the enum, or it will be completely ignored; in the very least, this
is a formalization for deprecating enums.
optional bool deprecated = 3 [default = false];
Returns:Whether the deprecated field is set.
/** * <pre> * Is this enum deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum, or it will be completely ignored; in the very least, this * is a formalization for deprecating enums. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @return Whether the deprecated field is set. */
public boolean hasDeprecated() { return ((bitField0_ & 0x00000002) != 0); }
Is this enum deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the enum, or it will be completely ignored; in the very least, this
is a formalization for deprecating enums.
optional bool deprecated = 3 [default = false];
Returns:The deprecated.
/** * <pre> * Is this enum deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum, or it will be completely ignored; in the very least, this * is a formalization for deprecating enums. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @return The deprecated. */
public boolean getDeprecated() { return deprecated_; }
Is this enum deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the enum, or it will be completely ignored; in the very least, this
is a formalization for deprecating enums.
optional bool deprecated = 3 [default = false];
Params:
  • value – The deprecated to set.
Returns:This builder for chaining.
/** * <pre> * Is this enum deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum, or it will be completely ignored; in the very least, this * is a formalization for deprecating enums. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @param value The deprecated to set. * @return This builder for chaining. */
public Builder setDeprecated(boolean value) { bitField0_ |= 0x00000002; deprecated_ = value; onChanged(); return this; }
Is this enum deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the enum, or it will be completely ignored; in the very least, this
is a formalization for deprecating enums.
optional bool deprecated = 3 [default = false];
Returns:This builder for chaining.
/** * <pre> * Is this enum deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum, or it will be completely ignored; in the very least, this * is a formalization for deprecating enums. * </pre> * * <code>optional bool deprecated = 3 [default = false];</code> * @return This builder for chaining. */
public Builder clearDeprecated() { bitField0_ = (bitField0_ & ~0x00000002); deprecated_ = false; onChanged(); return this; } private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = java.util.Collections.emptyList(); private void ensureUninterpretedOptionIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_;
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { if (uninterpretedOptionBuilder_ == null) { return java.util.Collections.unmodifiableList(uninterpretedOption_); } else { return uninterpretedOptionBuilder_.getMessageList(); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public int getUninterpretedOptionCount() { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.size(); } else { return uninterpretedOptionBuilder_.getCount(); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessage(index); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, value); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addAllUninterpretedOption( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, uninterpretedOption_); onChanged(); } else { uninterpretedOptionBuilder_.addAllMessages(values); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder clearUninterpretedOption() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { uninterpretedOptionBuilder_.clear(); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder removeUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.remove(index); onChanged(); } else { uninterpretedOptionBuilder_.remove(index); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().getBuilder(index); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessageOrBuilder(index); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { if (uninterpretedOptionBuilder_ != null) { return uninterpretedOptionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(uninterpretedOption_); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { return getUninterpretedOptionFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> getUninterpretedOptionBuilderList() { return getUninterpretedOptionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionFieldBuilder() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( uninterpretedOption_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); uninterpretedOption_ = null; } return uninterpretedOptionBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.EnumOptions) } // @@protoc_insertion_point(class_scope:google.protobuf.EnumOptions) private static final com.google.protobuf.DescriptorProtos.EnumOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.EnumOptions(); } public static com.google.protobuf.DescriptorProtos.EnumOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<EnumOptions> PARSER = new com.google.protobuf.AbstractParser<EnumOptions>() { @java.lang.Override public EnumOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EnumOptions(input, extensionRegistry); } }; public static com.google.protobuf.Parser<EnumOptions> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<EnumOptions> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.EnumOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnumValueOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.EnumValueOptions) com.google.protobuf.GeneratedMessageV3. ExtendableMessageOrBuilder<EnumValueOptions> {
Is this enum value deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the enum value, or it will be completely ignored; in the very least,
this is a formalization for deprecating enum values.
optional bool deprecated = 1 [default = false];
Returns:Whether the deprecated field is set.
/** * <pre> * Is this enum value deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum value, or it will be completely ignored; in the very least, * this is a formalization for deprecating enum values. * </pre> * * <code>optional bool deprecated = 1 [default = false];</code> * @return Whether the deprecated field is set. */
boolean hasDeprecated();
Is this enum value deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the enum value, or it will be completely ignored; in the very least,
this is a formalization for deprecating enum values.
optional bool deprecated = 1 [default = false];
Returns:The deprecated.
/** * <pre> * Is this enum value deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum value, or it will be completely ignored; in the very least, * this is a formalization for deprecating enum values. * </pre> * * <code>optional bool deprecated = 1 [default = false];</code> * @return The deprecated. */
boolean getDeprecated();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index);
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
int getUninterpretedOptionCount();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index); }
Protobuf type google.protobuf.EnumValueOptions
/** * Protobuf type {@code google.protobuf.EnumValueOptions} */
public static final class EnumValueOptions extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage< EnumValueOptions> implements // @@protoc_insertion_point(message_implements:google.protobuf.EnumValueOptions) EnumValueOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use EnumValueOptions.newBuilder() to construct. private EnumValueOptions(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<com.google.protobuf.DescriptorProtos.EnumValueOptions, ?> builder) { super(builder); } private EnumValueOptions() { uninterpretedOption_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EnumValueOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EnumValueOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 8: { bitField0_ |= 0x00000001; deprecated_ = input.readBool(); break; } case 7994: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); mutable_bitField0_ |= 0x00000002; } uninterpretedOption_.add( input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.EnumValueOptions.class, com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder.class); } private int bitField0_; public static final int DEPRECATED_FIELD_NUMBER = 1; private boolean deprecated_;
Is this enum value deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the enum value, or it will be completely ignored; in the very least,
this is a formalization for deprecating enum values.
optional bool deprecated = 1 [default = false];
Returns:Whether the deprecated field is set.
/** * <pre> * Is this enum value deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum value, or it will be completely ignored; in the very least, * this is a formalization for deprecating enum values. * </pre> * * <code>optional bool deprecated = 1 [default = false];</code> * @return Whether the deprecated field is set. */
public boolean hasDeprecated() { return ((bitField0_ & 0x00000001) != 0); }
Is this enum value deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the enum value, or it will be completely ignored; in the very least,
this is a formalization for deprecating enum values.
optional bool deprecated = 1 [default = false];
Returns:The deprecated.
/** * <pre> * Is this enum value deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum value, or it will be completely ignored; in the very least, * this is a formalization for deprecating enum values. * </pre> * * <code>optional bool deprecated = 1 [default = false];</code> * @return The deprecated. */
public boolean getDeprecated() { return deprecated_; } public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_;
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { return uninterpretedOption_; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { return uninterpretedOption_; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public int getUninterpretedOptionCount() { return uninterpretedOption_.size(); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { return uninterpretedOption_.get(index); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { return uninterpretedOption_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .ExtendableMessage<com.google.protobuf.DescriptorProtos.EnumValueOptions>.ExtensionWriter extensionWriter = newExtensionWriter(); if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, deprecated_); } for (int i = 0; i < uninterpretedOption_.size(); i++) { output.writeMessage(999, uninterpretedOption_.get(i)); } extensionWriter.writeUntil(536870912, output); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, deprecated_); } for (int i = 0; i < uninterpretedOption_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(999, uninterpretedOption_.get(i)); } size += extensionsSerializedSize(); size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.EnumValueOptions)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.EnumValueOptions other = (com.google.protobuf.DescriptorProtos.EnumValueOptions) obj; if (hasDeprecated() != other.hasDeprecated()) return false; if (hasDeprecated()) { if (getDeprecated() != other.getDeprecated()) return false; } if (!getUninterpretedOptionList() .equals(other.getUninterpretedOptionList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; if (!getExtensionFields().equals(other.getExtensionFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDeprecated()) { hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDeprecated()); } if (getUninterpretedOptionCount() > 0) { hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; hash = (53 * hash) + getUninterpretedOptionList().hashCode(); } hash = hashFields(hash, getExtensionFields()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.EnumValueOptions 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.EnumValueOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.EnumValueOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Protobuf type google.protobuf.EnumValueOptions
/** * Protobuf type {@code google.protobuf.EnumValueOptions} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< com.google.protobuf.DescriptorProtos.EnumValueOptions, Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.EnumValueOptions) com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.EnumValueOptions.class, com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.EnumValueOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getUninterpretedOptionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); deprecated_ = false; bitField0_ = (bitField0_ & ~0x00000001); if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { uninterpretedOptionBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueOptions_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.EnumValueOptions getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.EnumValueOptions build() { com.google.protobuf.DescriptorProtos.EnumValueOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.EnumValueOptions buildPartial() { com.google.protobuf.DescriptorProtos.EnumValueOptions result = new com.google.protobuf.DescriptorProtos.EnumValueOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.deprecated_ = deprecated_; to_bitField0_ |= 0x00000001; } if (uninterpretedOptionBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); bitField0_ = (bitField0_ & ~0x00000002); } result.uninterpretedOption_ = uninterpretedOption_; } else { result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public <Type> Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.EnumValueOptions, Type> extension, Type value) { return super.setExtension(extension, value); } @java.lang.Override public <Type> Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.EnumValueOptions, java.util.List<Type>> extension, int index, Type value) { return super.setExtension(extension, index, value); } @java.lang.Override public <Type> Builder addExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.EnumValueOptions, java.util.List<Type>> extension, Type value) { return super.addExtension(extension, value); } @java.lang.Override public <Type> Builder clearExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.EnumValueOptions, ?> extension) { return super.clearExtension(extension); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.EnumValueOptions) { return mergeFrom((com.google.protobuf.DescriptorProtos.EnumValueOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.EnumValueOptions other) { if (other == com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance()) return this; if (other.hasDeprecated()) { setDeprecated(other.getDeprecated()); } if (uninterpretedOptionBuilder_ == null) { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOption_.isEmpty()) { uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.addAll(other.uninterpretedOption_); } onChanged(); } } else { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOptionBuilder_.isEmpty()) { uninterpretedOptionBuilder_.dispose(); uninterpretedOptionBuilder_ = null; uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000002); uninterpretedOptionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUninterpretedOptionFieldBuilder() : null; } else { uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); } } } this.mergeExtensionFields(other); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { return false; } } if (!extensionsAreInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.EnumValueOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.EnumValueOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private boolean deprecated_ ;
Is this enum value deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the enum value, or it will be completely ignored; in the very least,
this is a formalization for deprecating enum values.
optional bool deprecated = 1 [default = false];
Returns:Whether the deprecated field is set.
/** * <pre> * Is this enum value deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum value, or it will be completely ignored; in the very least, * this is a formalization for deprecating enum values. * </pre> * * <code>optional bool deprecated = 1 [default = false];</code> * @return Whether the deprecated field is set. */
public boolean hasDeprecated() { return ((bitField0_ & 0x00000001) != 0); }
Is this enum value deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the enum value, or it will be completely ignored; in the very least,
this is a formalization for deprecating enum values.
optional bool deprecated = 1 [default = false];
Returns:The deprecated.
/** * <pre> * Is this enum value deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum value, or it will be completely ignored; in the very least, * this is a formalization for deprecating enum values. * </pre> * * <code>optional bool deprecated = 1 [default = false];</code> * @return The deprecated. */
public boolean getDeprecated() { return deprecated_; }
Is this enum value deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the enum value, or it will be completely ignored; in the very least,
this is a formalization for deprecating enum values.
optional bool deprecated = 1 [default = false];
Params:
  • value – The deprecated to set.
Returns:This builder for chaining.
/** * <pre> * Is this enum value deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum value, or it will be completely ignored; in the very least, * this is a formalization for deprecating enum values. * </pre> * * <code>optional bool deprecated = 1 [default = false];</code> * @param value The deprecated to set. * @return This builder for chaining. */
public Builder setDeprecated(boolean value) { bitField0_ |= 0x00000001; deprecated_ = value; onChanged(); return this; }
Is this enum value deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the enum value, or it will be completely ignored; in the very least,
this is a formalization for deprecating enum values.
optional bool deprecated = 1 [default = false];
Returns:This builder for chaining.
/** * <pre> * Is this enum value deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum value, or it will be completely ignored; in the very least, * this is a formalization for deprecating enum values. * </pre> * * <code>optional bool deprecated = 1 [default = false];</code> * @return This builder for chaining. */
public Builder clearDeprecated() { bitField0_ = (bitField0_ & ~0x00000001); deprecated_ = false; onChanged(); return this; } private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = java.util.Collections.emptyList(); private void ensureUninterpretedOptionIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_;
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { if (uninterpretedOptionBuilder_ == null) { return java.util.Collections.unmodifiableList(uninterpretedOption_); } else { return uninterpretedOptionBuilder_.getMessageList(); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public int getUninterpretedOptionCount() { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.size(); } else { return uninterpretedOptionBuilder_.getCount(); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessage(index); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, value); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addAllUninterpretedOption( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, uninterpretedOption_); onChanged(); } else { uninterpretedOptionBuilder_.addAllMessages(values); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder clearUninterpretedOption() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { uninterpretedOptionBuilder_.clear(); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder removeUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.remove(index); onChanged(); } else { uninterpretedOptionBuilder_.remove(index); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().getBuilder(index); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessageOrBuilder(index); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { if (uninterpretedOptionBuilder_ != null) { return uninterpretedOptionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(uninterpretedOption_); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { return getUninterpretedOptionFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> getUninterpretedOptionBuilderList() { return getUninterpretedOptionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionFieldBuilder() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( uninterpretedOption_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); uninterpretedOption_ = null; } return uninterpretedOptionBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.EnumValueOptions) } // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueOptions) private static final com.google.protobuf.DescriptorProtos.EnumValueOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.EnumValueOptions(); } public static com.google.protobuf.DescriptorProtos.EnumValueOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<EnumValueOptions> PARSER = new com.google.protobuf.AbstractParser<EnumValueOptions>() { @java.lang.Override public EnumValueOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EnumValueOptions(input, extensionRegistry); } }; public static com.google.protobuf.Parser<EnumValueOptions> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<EnumValueOptions> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.EnumValueOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ServiceOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.ServiceOptions) com.google.protobuf.GeneratedMessageV3. ExtendableMessageOrBuilder<ServiceOptions> {
Is this service deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the service, or it will be completely ignored; in the very least,
this is a formalization for deprecating services.
optional bool deprecated = 33 [default = false];
Returns:Whether the deprecated field is set.
/** * <pre> * Is this service deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the service, or it will be completely ignored; in the very least, * this is a formalization for deprecating services. * </pre> * * <code>optional bool deprecated = 33 [default = false];</code> * @return Whether the deprecated field is set. */
boolean hasDeprecated();
Is this service deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the service, or it will be completely ignored; in the very least,
this is a formalization for deprecating services.
optional bool deprecated = 33 [default = false];
Returns:The deprecated.
/** * <pre> * Is this service deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the service, or it will be completely ignored; in the very least, * this is a formalization for deprecating services. * </pre> * * <code>optional bool deprecated = 33 [default = false];</code> * @return The deprecated. */
boolean getDeprecated();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index);
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
int getUninterpretedOptionCount();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index); }
Protobuf type google.protobuf.ServiceOptions
/** * Protobuf type {@code google.protobuf.ServiceOptions} */
public static final class ServiceOptions extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage< ServiceOptions> implements // @@protoc_insertion_point(message_implements:google.protobuf.ServiceOptions) ServiceOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use ServiceOptions.newBuilder() to construct. private ServiceOptions(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<com.google.protobuf.DescriptorProtos.ServiceOptions, ?> builder) { super(builder); } private ServiceOptions() { uninterpretedOption_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ServiceOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ServiceOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 264: { bitField0_ |= 0x00000001; deprecated_ = input.readBool(); break; } case 7994: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); mutable_bitField0_ |= 0x00000002; } uninterpretedOption_.add( input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.ServiceOptions.class, com.google.protobuf.DescriptorProtos.ServiceOptions.Builder.class); } private int bitField0_; public static final int DEPRECATED_FIELD_NUMBER = 33; private boolean deprecated_;
Is this service deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the service, or it will be completely ignored; in the very least,
this is a formalization for deprecating services.
optional bool deprecated = 33 [default = false];
Returns:Whether the deprecated field is set.
/** * <pre> * Is this service deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the service, or it will be completely ignored; in the very least, * this is a formalization for deprecating services. * </pre> * * <code>optional bool deprecated = 33 [default = false];</code> * @return Whether the deprecated field is set. */
public boolean hasDeprecated() { return ((bitField0_ & 0x00000001) != 0); }
Is this service deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the service, or it will be completely ignored; in the very least,
this is a formalization for deprecating services.
optional bool deprecated = 33 [default = false];
Returns:The deprecated.
/** * <pre> * Is this service deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the service, or it will be completely ignored; in the very least, * this is a formalization for deprecating services. * </pre> * * <code>optional bool deprecated = 33 [default = false];</code> * @return The deprecated. */
public boolean getDeprecated() { return deprecated_; } public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_;
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { return uninterpretedOption_; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { return uninterpretedOption_; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public int getUninterpretedOptionCount() { return uninterpretedOption_.size(); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { return uninterpretedOption_.get(index); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { return uninterpretedOption_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .ExtendableMessage<com.google.protobuf.DescriptorProtos.ServiceOptions>.ExtensionWriter extensionWriter = newExtensionWriter(); if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(33, deprecated_); } for (int i = 0; i < uninterpretedOption_.size(); i++) { output.writeMessage(999, uninterpretedOption_.get(i)); } extensionWriter.writeUntil(536870912, output); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(33, deprecated_); } for (int i = 0; i < uninterpretedOption_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(999, uninterpretedOption_.get(i)); } size += extensionsSerializedSize(); size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.ServiceOptions)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.ServiceOptions other = (com.google.protobuf.DescriptorProtos.ServiceOptions) obj; if (hasDeprecated() != other.hasDeprecated()) return false; if (hasDeprecated()) { if (getDeprecated() != other.getDeprecated()) return false; } if (!getUninterpretedOptionList() .equals(other.getUninterpretedOptionList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; if (!getExtensionFields().equals(other.getExtensionFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDeprecated()) { hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDeprecated()); } if (getUninterpretedOptionCount() > 0) { hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; hash = (53 * hash) + getUninterpretedOptionList().hashCode(); } hash = hashFields(hash, getExtensionFields()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.ServiceOptions 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.ServiceOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.ServiceOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.ServiceOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.ServiceOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Protobuf type google.protobuf.ServiceOptions
/** * Protobuf type {@code google.protobuf.ServiceOptions} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< com.google.protobuf.DescriptorProtos.ServiceOptions, Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.ServiceOptions) com.google.protobuf.DescriptorProtos.ServiceOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.ServiceOptions.class, com.google.protobuf.DescriptorProtos.ServiceOptions.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.ServiceOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getUninterpretedOptionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); deprecated_ = false; bitField0_ = (bitField0_ & ~0x00000001); if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { uninterpretedOptionBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceOptions_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.ServiceOptions getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.ServiceOptions build() { com.google.protobuf.DescriptorProtos.ServiceOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.ServiceOptions buildPartial() { com.google.protobuf.DescriptorProtos.ServiceOptions result = new com.google.protobuf.DescriptorProtos.ServiceOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.deprecated_ = deprecated_; to_bitField0_ |= 0x00000001; } if (uninterpretedOptionBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); bitField0_ = (bitField0_ & ~0x00000002); } result.uninterpretedOption_ = uninterpretedOption_; } else { result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public <Type> Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.ServiceOptions, Type> extension, Type value) { return super.setExtension(extension, value); } @java.lang.Override public <Type> Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.ServiceOptions, java.util.List<Type>> extension, int index, Type value) { return super.setExtension(extension, index, value); } @java.lang.Override public <Type> Builder addExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.ServiceOptions, java.util.List<Type>> extension, Type value) { return super.addExtension(extension, value); } @java.lang.Override public <Type> Builder clearExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.ServiceOptions, ?> extension) { return super.clearExtension(extension); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.ServiceOptions) { return mergeFrom((com.google.protobuf.DescriptorProtos.ServiceOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.ServiceOptions other) { if (other == com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance()) return this; if (other.hasDeprecated()) { setDeprecated(other.getDeprecated()); } if (uninterpretedOptionBuilder_ == null) { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOption_.isEmpty()) { uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.addAll(other.uninterpretedOption_); } onChanged(); } } else { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOptionBuilder_.isEmpty()) { uninterpretedOptionBuilder_.dispose(); uninterpretedOptionBuilder_ = null; uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000002); uninterpretedOptionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUninterpretedOptionFieldBuilder() : null; } else { uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); } } } this.mergeExtensionFields(other); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { return false; } } if (!extensionsAreInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.ServiceOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.ServiceOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private boolean deprecated_ ;
Is this service deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the service, or it will be completely ignored; in the very least,
this is a formalization for deprecating services.
optional bool deprecated = 33 [default = false];
Returns:Whether the deprecated field is set.
/** * <pre> * Is this service deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the service, or it will be completely ignored; in the very least, * this is a formalization for deprecating services. * </pre> * * <code>optional bool deprecated = 33 [default = false];</code> * @return Whether the deprecated field is set. */
public boolean hasDeprecated() { return ((bitField0_ & 0x00000001) != 0); }
Is this service deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the service, or it will be completely ignored; in the very least,
this is a formalization for deprecating services.
optional bool deprecated = 33 [default = false];
Returns:The deprecated.
/** * <pre> * Is this service deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the service, or it will be completely ignored; in the very least, * this is a formalization for deprecating services. * </pre> * * <code>optional bool deprecated = 33 [default = false];</code> * @return The deprecated. */
public boolean getDeprecated() { return deprecated_; }
Is this service deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the service, or it will be completely ignored; in the very least,
this is a formalization for deprecating services.
optional bool deprecated = 33 [default = false];
Params:
  • value – The deprecated to set.
Returns:This builder for chaining.
/** * <pre> * Is this service deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the service, or it will be completely ignored; in the very least, * this is a formalization for deprecating services. * </pre> * * <code>optional bool deprecated = 33 [default = false];</code> * @param value The deprecated to set. * @return This builder for chaining. */
public Builder setDeprecated(boolean value) { bitField0_ |= 0x00000001; deprecated_ = value; onChanged(); return this; }
Is this service deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the service, or it will be completely ignored; in the very least,
this is a formalization for deprecating services.
optional bool deprecated = 33 [default = false];
Returns:This builder for chaining.
/** * <pre> * Is this service deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the service, or it will be completely ignored; in the very least, * this is a formalization for deprecating services. * </pre> * * <code>optional bool deprecated = 33 [default = false];</code> * @return This builder for chaining. */
public Builder clearDeprecated() { bitField0_ = (bitField0_ & ~0x00000001); deprecated_ = false; onChanged(); return this; } private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = java.util.Collections.emptyList(); private void ensureUninterpretedOptionIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_;
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { if (uninterpretedOptionBuilder_ == null) { return java.util.Collections.unmodifiableList(uninterpretedOption_); } else { return uninterpretedOptionBuilder_.getMessageList(); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public int getUninterpretedOptionCount() { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.size(); } else { return uninterpretedOptionBuilder_.getCount(); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessage(index); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, value); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addAllUninterpretedOption( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, uninterpretedOption_); onChanged(); } else { uninterpretedOptionBuilder_.addAllMessages(values); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder clearUninterpretedOption() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { uninterpretedOptionBuilder_.clear(); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder removeUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.remove(index); onChanged(); } else { uninterpretedOptionBuilder_.remove(index); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().getBuilder(index); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessageOrBuilder(index); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { if (uninterpretedOptionBuilder_ != null) { return uninterpretedOptionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(uninterpretedOption_); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { return getUninterpretedOptionFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> getUninterpretedOptionBuilderList() { return getUninterpretedOptionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionFieldBuilder() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( uninterpretedOption_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); uninterpretedOption_ = null; } return uninterpretedOptionBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.ServiceOptions) } // @@protoc_insertion_point(class_scope:google.protobuf.ServiceOptions) private static final com.google.protobuf.DescriptorProtos.ServiceOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.ServiceOptions(); } public static com.google.protobuf.DescriptorProtos.ServiceOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<ServiceOptions> PARSER = new com.google.protobuf.AbstractParser<ServiceOptions>() { @java.lang.Override public ServiceOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ServiceOptions(input, extensionRegistry); } }; public static com.google.protobuf.Parser<ServiceOptions> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ServiceOptions> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.ServiceOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MethodOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.MethodOptions) com.google.protobuf.GeneratedMessageV3. ExtendableMessageOrBuilder<MethodOptions> {
Is this method deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the method, or it will be completely ignored; in the very least,
this is a formalization for deprecating methods.
optional bool deprecated = 33 [default = false];
Returns:Whether the deprecated field is set.
/** * <pre> * Is this method deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the method, or it will be completely ignored; in the very least, * this is a formalization for deprecating methods. * </pre> * * <code>optional bool deprecated = 33 [default = false];</code> * @return Whether the deprecated field is set. */
boolean hasDeprecated();
Is this method deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the method, or it will be completely ignored; in the very least,
this is a formalization for deprecating methods.
optional bool deprecated = 33 [default = false];
Returns:The deprecated.
/** * <pre> * Is this method deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the method, or it will be completely ignored; in the very least, * this is a formalization for deprecating methods. * </pre> * * <code>optional bool deprecated = 33 [default = false];</code> * @return The deprecated. */
boolean getDeprecated();
optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
Returns:Whether the idempotencyLevel field is set.
/** * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> * @return Whether the idempotencyLevel field is set. */
boolean hasIdempotencyLevel();
optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
Returns:The idempotencyLevel.
/** * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> * @return The idempotencyLevel. */
com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel getIdempotencyLevel();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index);
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
int getUninterpretedOptionCount();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList();
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index); }
Protobuf type google.protobuf.MethodOptions
/** * Protobuf type {@code google.protobuf.MethodOptions} */
public static final class MethodOptions extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage< MethodOptions> implements // @@protoc_insertion_point(message_implements:google.protobuf.MethodOptions) MethodOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use MethodOptions.newBuilder() to construct. private MethodOptions(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<com.google.protobuf.DescriptorProtos.MethodOptions, ?> builder) { super(builder); } private MethodOptions() { idempotencyLevel_ = 0; uninterpretedOption_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MethodOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MethodOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 264: { bitField0_ |= 0x00000001; deprecated_ = input.readBool(); break; } case 272: { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel value = com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(34, rawValue); } else { bitField0_ |= 0x00000002; idempotencyLevel_ = rawValue; } break; } case 7994: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); mutable_bitField0_ |= 0x00000004; } uninterpretedOption_.add( input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) != 0)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.MethodOptions.class, com.google.protobuf.DescriptorProtos.MethodOptions.Builder.class); }
Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
or neither? HTTP based RPC implementation may choose GET verb for safe
methods, and PUT verb for idempotent methods instead of the default POST.
Protobuf enum google.protobuf.MethodOptions.IdempotencyLevel
/** * <pre> * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, * or neither? HTTP based RPC implementation may choose GET verb for safe * methods, and PUT verb for idempotent methods instead of the default POST. * </pre> * * Protobuf enum {@code google.protobuf.MethodOptions.IdempotencyLevel} */
public enum IdempotencyLevel implements com.google.protobuf.ProtocolMessageEnum {
IDEMPOTENCY_UNKNOWN = 0;
/** * <code>IDEMPOTENCY_UNKNOWN = 0;</code> */
IDEMPOTENCY_UNKNOWN(0),
implies idempotent
NO_SIDE_EFFECTS = 1;
/** * <pre> * implies idempotent * </pre> * * <code>NO_SIDE_EFFECTS = 1;</code> */
NO_SIDE_EFFECTS(1),
idempotent, but may have side effects
IDEMPOTENT = 2;
/** * <pre> * idempotent, but may have side effects * </pre> * * <code>IDEMPOTENT = 2;</code> */
IDEMPOTENT(2), ;
IDEMPOTENCY_UNKNOWN = 0;
/** * <code>IDEMPOTENCY_UNKNOWN = 0;</code> */
public static final int IDEMPOTENCY_UNKNOWN_VALUE = 0;
implies idempotent
NO_SIDE_EFFECTS = 1;
/** * <pre> * implies idempotent * </pre> * * <code>NO_SIDE_EFFECTS = 1;</code> */
public static final int NO_SIDE_EFFECTS_VALUE = 1;
idempotent, but may have side effects
IDEMPOTENT = 2;
/** * <pre> * idempotent, but may have side effects * </pre> * * <code>IDEMPOTENT = 2;</code> */
public static final int IDEMPOTENT_VALUE = 2; public final int getNumber() { return value; }
Params:
  • value – The numeric wire value of the corresponding enum entry.
Returns:The enum associated with the given numeric wire value.
Deprecated:Use forNumber(int) instead.
/** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */
@java.lang.Deprecated public static IdempotencyLevel valueOf(int value) { return forNumber(value); }
Params:
  • value – The numeric wire value of the corresponding enum entry.
Returns:The enum associated with the given numeric wire value.
/** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */
public static IdempotencyLevel forNumber(int value) { switch (value) { case 0: return IDEMPOTENCY_UNKNOWN; case 1: return NO_SIDE_EFFECTS; case 2: return IDEMPOTENT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<IdempotencyLevel> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< IdempotencyLevel> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<IdempotencyLevel>() { public IdempotencyLevel findValueByNumber(int number) { return IdempotencyLevel.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.MethodOptions.getDescriptor().getEnumTypes().get(0); } private static final IdempotencyLevel[] VALUES = values(); public static IdempotencyLevel 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 value; private IdempotencyLevel(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.protobuf.MethodOptions.IdempotencyLevel) } private int bitField0_; public static final int DEPRECATED_FIELD_NUMBER = 33; private boolean deprecated_;
Is this method deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the method, or it will be completely ignored; in the very least,
this is a formalization for deprecating methods.
optional bool deprecated = 33 [default = false];
Returns:Whether the deprecated field is set.
/** * <pre> * Is this method deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the method, or it will be completely ignored; in the very least, * this is a formalization for deprecating methods. * </pre> * * <code>optional bool deprecated = 33 [default = false];</code> * @return Whether the deprecated field is set. */
public boolean hasDeprecated() { return ((bitField0_ & 0x00000001) != 0); }
Is this method deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the method, or it will be completely ignored; in the very least,
this is a formalization for deprecating methods.
optional bool deprecated = 33 [default = false];
Returns:The deprecated.
/** * <pre> * Is this method deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the method, or it will be completely ignored; in the very least, * this is a formalization for deprecating methods. * </pre> * * <code>optional bool deprecated = 33 [default = false];</code> * @return The deprecated. */
public boolean getDeprecated() { return deprecated_; } public static final int IDEMPOTENCY_LEVEL_FIELD_NUMBER = 34; private int idempotencyLevel_;
optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
Returns:Whether the idempotencyLevel field is set.
/** * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> * @return Whether the idempotencyLevel field is set. */
public boolean hasIdempotencyLevel() { return ((bitField0_ & 0x00000002) != 0); }
optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
Returns:The idempotencyLevel.
/** * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> * @return The idempotencyLevel. */
public com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel getIdempotencyLevel() { @SuppressWarnings("deprecation") com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel result = com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel.valueOf(idempotencyLevel_); return result == null ? com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel.IDEMPOTENCY_UNKNOWN : result; } public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_;
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { return uninterpretedOption_; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { return uninterpretedOption_; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public int getUninterpretedOptionCount() { return uninterpretedOption_.size(); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { return uninterpretedOption_.get(index); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { return uninterpretedOption_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .ExtendableMessage<com.google.protobuf.DescriptorProtos.MethodOptions>.ExtensionWriter extensionWriter = newExtensionWriter(); if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(33, deprecated_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeEnum(34, idempotencyLevel_); } for (int i = 0; i < uninterpretedOption_.size(); i++) { output.writeMessage(999, uninterpretedOption_.get(i)); } extensionWriter.writeUntil(536870912, output); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(33, deprecated_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(34, idempotencyLevel_); } for (int i = 0; i < uninterpretedOption_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(999, uninterpretedOption_.get(i)); } size += extensionsSerializedSize(); size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.MethodOptions)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.MethodOptions other = (com.google.protobuf.DescriptorProtos.MethodOptions) obj; if (hasDeprecated() != other.hasDeprecated()) return false; if (hasDeprecated()) { if (getDeprecated() != other.getDeprecated()) return false; } if (hasIdempotencyLevel() != other.hasIdempotencyLevel()) return false; if (hasIdempotencyLevel()) { if (idempotencyLevel_ != other.idempotencyLevel_) return false; } if (!getUninterpretedOptionList() .equals(other.getUninterpretedOptionList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; if (!getExtensionFields().equals(other.getExtensionFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDeprecated()) { hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDeprecated()); } if (hasIdempotencyLevel()) { hash = (37 * hash) + IDEMPOTENCY_LEVEL_FIELD_NUMBER; hash = (53 * hash) + idempotencyLevel_; } if (getUninterpretedOptionCount() > 0) { hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; hash = (53 * hash) + getUninterpretedOptionList().hashCode(); } hash = hashFields(hash, getExtensionFields()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.MethodOptions 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.MethodOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.MethodOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.MethodOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.MethodOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Protobuf type google.protobuf.MethodOptions
/** * Protobuf type {@code google.protobuf.MethodOptions} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< com.google.protobuf.DescriptorProtos.MethodOptions, Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.MethodOptions) com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.MethodOptions.class, com.google.protobuf.DescriptorProtos.MethodOptions.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.MethodOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getUninterpretedOptionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); deprecated_ = false; bitField0_ = (bitField0_ & ~0x00000001); idempotencyLevel_ = 0; bitField0_ = (bitField0_ & ~0x00000002); if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { uninterpretedOptionBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodOptions_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.MethodOptions getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.MethodOptions build() { com.google.protobuf.DescriptorProtos.MethodOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.MethodOptions buildPartial() { com.google.protobuf.DescriptorProtos.MethodOptions result = new com.google.protobuf.DescriptorProtos.MethodOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.deprecated_ = deprecated_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.idempotencyLevel_ = idempotencyLevel_; if (uninterpretedOptionBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); bitField0_ = (bitField0_ & ~0x00000004); } result.uninterpretedOption_ = uninterpretedOption_; } else { result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public <Type> Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MethodOptions, Type> extension, Type value) { return super.setExtension(extension, value); } @java.lang.Override public <Type> Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MethodOptions, java.util.List<Type>> extension, int index, Type value) { return super.setExtension(extension, index, value); } @java.lang.Override public <Type> Builder addExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MethodOptions, java.util.List<Type>> extension, Type value) { return super.addExtension(extension, value); } @java.lang.Override public <Type> Builder clearExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MethodOptions, ?> extension) { return super.clearExtension(extension); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.MethodOptions) { return mergeFrom((com.google.protobuf.DescriptorProtos.MethodOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.MethodOptions other) { if (other == com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance()) return this; if (other.hasDeprecated()) { setDeprecated(other.getDeprecated()); } if (other.hasIdempotencyLevel()) { setIdempotencyLevel(other.getIdempotencyLevel()); } if (uninterpretedOptionBuilder_ == null) { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOption_.isEmpty()) { uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.addAll(other.uninterpretedOption_); } onChanged(); } } else { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOptionBuilder_.isEmpty()) { uninterpretedOptionBuilder_.dispose(); uninterpretedOptionBuilder_ = null; uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000004); uninterpretedOptionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUninterpretedOptionFieldBuilder() : null; } else { uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); } } } this.mergeExtensionFields(other); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { return false; } } if (!extensionsAreInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.MethodOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.MethodOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private boolean deprecated_ ;
Is this method deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the method, or it will be completely ignored; in the very least,
this is a formalization for deprecating methods.
optional bool deprecated = 33 [default = false];
Returns:Whether the deprecated field is set.
/** * <pre> * Is this method deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the method, or it will be completely ignored; in the very least, * this is a formalization for deprecating methods. * </pre> * * <code>optional bool deprecated = 33 [default = false];</code> * @return Whether the deprecated field is set. */
public boolean hasDeprecated() { return ((bitField0_ & 0x00000001) != 0); }
Is this method deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the method, or it will be completely ignored; in the very least,
this is a formalization for deprecating methods.
optional bool deprecated = 33 [default = false];
Returns:The deprecated.
/** * <pre> * Is this method deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the method, or it will be completely ignored; in the very least, * this is a formalization for deprecating methods. * </pre> * * <code>optional bool deprecated = 33 [default = false];</code> * @return The deprecated. */
public boolean getDeprecated() { return deprecated_; }
Is this method deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the method, or it will be completely ignored; in the very least,
this is a formalization for deprecating methods.
optional bool deprecated = 33 [default = false];
Params:
  • value – The deprecated to set.
Returns:This builder for chaining.
/** * <pre> * Is this method deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the method, or it will be completely ignored; in the very least, * this is a formalization for deprecating methods. * </pre> * * <code>optional bool deprecated = 33 [default = false];</code> * @param value The deprecated to set. * @return This builder for chaining. */
public Builder setDeprecated(boolean value) { bitField0_ |= 0x00000001; deprecated_ = value; onChanged(); return this; }
Is this method deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the method, or it will be completely ignored; in the very least,
this is a formalization for deprecating methods.
optional bool deprecated = 33 [default = false];
Returns:This builder for chaining.
/** * <pre> * Is this method deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the method, or it will be completely ignored; in the very least, * this is a formalization for deprecating methods. * </pre> * * <code>optional bool deprecated = 33 [default = false];</code> * @return This builder for chaining. */
public Builder clearDeprecated() { bitField0_ = (bitField0_ & ~0x00000001); deprecated_ = false; onChanged(); return this; } private int idempotencyLevel_ = 0;
optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
Returns:Whether the idempotencyLevel field is set.
/** * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> * @return Whether the idempotencyLevel field is set. */
public boolean hasIdempotencyLevel() { return ((bitField0_ & 0x00000002) != 0); }
optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
Returns:The idempotencyLevel.
/** * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> * @return The idempotencyLevel. */
public com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel getIdempotencyLevel() { @SuppressWarnings("deprecation") com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel result = com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel.valueOf(idempotencyLevel_); return result == null ? com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel.IDEMPOTENCY_UNKNOWN : result; }
optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
Params:
  • value – The idempotencyLevel to set.
Returns:This builder for chaining.
/** * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> * @param value The idempotencyLevel to set. * @return This builder for chaining. */
public Builder setIdempotencyLevel(com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; idempotencyLevel_ = value.getNumber(); onChanged(); return this; }
optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
Returns:This builder for chaining.
/** * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> * @return This builder for chaining. */
public Builder clearIdempotencyLevel() { bitField0_ = (bitField0_ & ~0x00000002); idempotencyLevel_ = 0; onChanged(); return this; } private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = java.util.Collections.emptyList(); private void ensureUninterpretedOptionIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_;
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { if (uninterpretedOptionBuilder_ == null) { return java.util.Collections.unmodifiableList(uninterpretedOption_); } else { return uninterpretedOptionBuilder_.getMessageList(); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public int getUninterpretedOptionCount() { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.size(); } else { return uninterpretedOptionBuilder_.getCount(); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessage(index); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, value); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, value); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, builderForValue.build()); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder addAllUninterpretedOption( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, uninterpretedOption_); onChanged(); } else { uninterpretedOptionBuilder_.addAllMessages(values); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder clearUninterpretedOption() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { uninterpretedOptionBuilder_.clear(); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public Builder removeUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.remove(index); onChanged(); } else { uninterpretedOptionBuilder_.remove(index); } return this; }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().getBuilder(index); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessageOrBuilder(index); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { if (uninterpretedOptionBuilder_ != null) { return uninterpretedOptionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(uninterpretedOption_); } }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { return getUninterpretedOptionFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); }
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
/** * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> * * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> getUninterpretedOptionBuilderList() { return getUninterpretedOptionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionFieldBuilder() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( uninterpretedOption_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); uninterpretedOption_ = null; } return uninterpretedOptionBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.MethodOptions) } // @@protoc_insertion_point(class_scope:google.protobuf.MethodOptions) private static final com.google.protobuf.DescriptorProtos.MethodOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.MethodOptions(); } public static com.google.protobuf.DescriptorProtos.MethodOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<MethodOptions> PARSER = new com.google.protobuf.AbstractParser<MethodOptions>() { @java.lang.Override public MethodOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MethodOptions(input, extensionRegistry); } }; public static com.google.protobuf.Parser<MethodOptions> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<MethodOptions> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.MethodOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UninterpretedOptionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.UninterpretedOption) com.google.protobuf.MessageOrBuilder {
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> getNameList();
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getName(int index);
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
int getNameCount();
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> getNameOrBuilderList();
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder getNameOrBuilder( int index);
The value of the uninterpreted option, in whatever type the tokenizer
identified it as during parsing. Exactly one of these should be set.
optional string identifier_value = 3;
Returns:Whether the identifierValue field is set.
/** * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> * * <code>optional string identifier_value = 3;</code> * @return Whether the identifierValue field is set. */
boolean hasIdentifierValue();
The value of the uninterpreted option, in whatever type the tokenizer
identified it as during parsing. Exactly one of these should be set.
optional string identifier_value = 3;
Returns:The identifierValue.
/** * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> * * <code>optional string identifier_value = 3;</code> * @return The identifierValue. */
java.lang.String getIdentifierValue();
The value of the uninterpreted option, in whatever type the tokenizer
identified it as during parsing. Exactly one of these should be set.
optional string identifier_value = 3;
Returns:The bytes for identifierValue.
/** * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> * * <code>optional string identifier_value = 3;</code> * @return The bytes for identifierValue. */
com.google.protobuf.ByteString getIdentifierValueBytes();
optional uint64 positive_int_value = 4;
Returns:Whether the positiveIntValue field is set.
/** * <code>optional uint64 positive_int_value = 4;</code> * @return Whether the positiveIntValue field is set. */
boolean hasPositiveIntValue();
optional uint64 positive_int_value = 4;
Returns:The positiveIntValue.
/** * <code>optional uint64 positive_int_value = 4;</code> * @return The positiveIntValue. */
long getPositiveIntValue();
optional int64 negative_int_value = 5;
Returns:Whether the negativeIntValue field is set.
/** * <code>optional int64 negative_int_value = 5;</code> * @return Whether the negativeIntValue field is set. */
boolean hasNegativeIntValue();
optional int64 negative_int_value = 5;
Returns:The negativeIntValue.
/** * <code>optional int64 negative_int_value = 5;</code> * @return The negativeIntValue. */
long getNegativeIntValue();
optional double double_value = 6;
Returns:Whether the doubleValue field is set.
/** * <code>optional double double_value = 6;</code> * @return Whether the doubleValue field is set. */
boolean hasDoubleValue();
optional double double_value = 6;
Returns:The doubleValue.
/** * <code>optional double double_value = 6;</code> * @return The doubleValue. */
double getDoubleValue();
optional bytes string_value = 7;
Returns:Whether the stringValue field is set.
/** * <code>optional bytes string_value = 7;</code> * @return Whether the stringValue field is set. */
boolean hasStringValue();
optional bytes string_value = 7;
Returns:The stringValue.
/** * <code>optional bytes string_value = 7;</code> * @return The stringValue. */
com.google.protobuf.ByteString getStringValue();
optional string aggregate_value = 8;
Returns:Whether the aggregateValue field is set.
/** * <code>optional string aggregate_value = 8;</code> * @return Whether the aggregateValue field is set. */
boolean hasAggregateValue();
optional string aggregate_value = 8;
Returns:The aggregateValue.
/** * <code>optional string aggregate_value = 8;</code> * @return The aggregateValue. */
java.lang.String getAggregateValue();
optional string aggregate_value = 8;
Returns:The bytes for aggregateValue.
/** * <code>optional string aggregate_value = 8;</code> * @return The bytes for aggregateValue. */
com.google.protobuf.ByteString getAggregateValueBytes(); }
A message representing a option the parser does not recognize. This only
appears in options protos created by the compiler::Parser class.
DescriptorPool resolves these when building Descriptor objects. Therefore,
options protos in descriptor objects (e.g. returned by Descriptor::options(),
or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
in them.
Protobuf type google.protobuf.UninterpretedOption
/** * <pre> * A message representing a option the parser does not recognize. This only * appears in options protos created by the compiler::Parser class. * DescriptorPool resolves these when building Descriptor objects. Therefore, * options protos in descriptor objects (e.g. returned by Descriptor::options(), * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions * in them. * </pre> * * Protobuf type {@code google.protobuf.UninterpretedOption} */
public static final class UninterpretedOption extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.protobuf.UninterpretedOption) UninterpretedOptionOrBuilder { private static final long serialVersionUID = 0L; // Use UninterpretedOption.newBuilder() to construct. private UninterpretedOption(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private UninterpretedOption() { name_ = java.util.Collections.emptyList(); identifierValue_ = ""; stringValue_ = com.google.protobuf.ByteString.EMPTY; aggregateValue_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UninterpretedOption(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UninterpretedOption( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { name_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart>(); mutable_bitField0_ |= 0x00000001; } name_.add( input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.PARSER, extensionRegistry)); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; identifierValue_ = bs; break; } case 32: { bitField0_ |= 0x00000002; positiveIntValue_ = input.readUInt64(); break; } case 40: { bitField0_ |= 0x00000004; negativeIntValue_ = input.readInt64(); break; } case 49: { bitField0_ |= 0x00000008; doubleValue_ = input.readDouble(); break; } case 58: { bitField0_ |= 0x00000010; stringValue_ = input.readBytes(); break; } case 66: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; aggregateValue_ = bs; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { name_ = java.util.Collections.unmodifiableList(name_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.UninterpretedOption.class, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder.class); } public interface NamePartOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.UninterpretedOption.NamePart) com.google.protobuf.MessageOrBuilder {
required string name_part = 1;
Returns:Whether the namePart field is set.
/** * <code>required string name_part = 1;</code> * @return Whether the namePart field is set. */
boolean hasNamePart();
required string name_part = 1;
Returns:The namePart.
/** * <code>required string name_part = 1;</code> * @return The namePart. */
java.lang.String getNamePart();
required string name_part = 1;
Returns:The bytes for namePart.
/** * <code>required string name_part = 1;</code> * @return The bytes for namePart. */
com.google.protobuf.ByteString getNamePartBytes();
required bool is_extension = 2;
Returns:Whether the isExtension field is set.
/** * <code>required bool is_extension = 2;</code> * @return Whether the isExtension field is set. */
boolean hasIsExtension();
required bool is_extension = 2;
Returns:The isExtension.
/** * <code>required bool is_extension = 2;</code> * @return The isExtension. */
boolean getIsExtension(); }
The name of the uninterpreted option.  Each string represents a segment in
a dot-separated name.  is_extension is true iff a segment represents an
extension (denoted with parentheses in options specs in .proto files).
E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
"foo.(bar.baz).qux".
Protobuf type google.protobuf.UninterpretedOption.NamePart
/** * <pre> * The name of the uninterpreted option. Each string represents a segment in * a dot-separated name. is_extension is true iff a segment represents an * extension (denoted with parentheses in options specs in .proto files). * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents * "foo.(bar.baz).qux". * </pre> * * Protobuf type {@code google.protobuf.UninterpretedOption.NamePart} */
public static final class NamePart extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.protobuf.UninterpretedOption.NamePart) NamePartOrBuilder { private static final long serialVersionUID = 0L; // Use NamePart.newBuilder() to construct. private NamePart(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private NamePart() { namePart_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NamePart(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NamePart( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; namePart_ = bs; break; } case 16: { bitField0_ |= 0x00000002; isExtension_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).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_UninterpretedOption_NamePart_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_NamePart_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.class, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder.class); } private int bitField0_; public static final int NAME_PART_FIELD_NUMBER = 1; private volatile java.lang.Object namePart_;
required string name_part = 1;
Returns:Whether the namePart field is set.
/** * <code>required string name_part = 1;</code> * @return Whether the namePart field is set. */
public boolean hasNamePart() { return ((bitField0_ & 0x00000001) != 0); }
required string name_part = 1;
Returns:The namePart.
/** * <code>required string name_part = 1;</code> * @return The namePart. */
public java.lang.String getNamePart() { java.lang.Object ref = namePart_; 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()) { namePart_ = s; } return s; } }
required string name_part = 1;
Returns:The bytes for namePart.
/** * <code>required string name_part = 1;</code> * @return The bytes for namePart. */
public com.google.protobuf.ByteString getNamePartBytes() { java.lang.Object ref = namePart_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namePart_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IS_EXTENSION_FIELD_NUMBER = 2; private boolean isExtension_;
required bool is_extension = 2;
Returns:Whether the isExtension field is set.
/** * <code>required bool is_extension = 2;</code> * @return Whether the isExtension field is set. */
public boolean hasIsExtension() { return ((bitField0_ & 0x00000002) != 0); }
required bool is_extension = 2;
Returns:The isExtension.
/** * <code>required bool is_extension = 2;</code> * @return The isExtension. */
public boolean getIsExtension() { return isExtension_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasNamePart()) { memoizedIsInitialized = 0; return false; } if (!hasIsExtension()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namePart_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, isExtension_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namePart_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, isExtension_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart other = (com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart) obj; if (hasNamePart() != other.hasNamePart()) return false; if (hasNamePart()) { if (!getNamePart() .equals(other.getNamePart())) return false; } if (hasIsExtension() != other.hasIsExtension()) return false; if (hasIsExtension()) { if (getIsExtension() != other.getIsExtension()) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasNamePart()) { hash = (37 * hash) + NAME_PART_FIELD_NUMBER; hash = (53 * hash) + getNamePart().hashCode(); } if (hasIsExtension()) { hash = (37 * hash) + IS_EXTENSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsExtension()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart 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.UninterpretedOption.NamePart parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
The name of the uninterpreted option.  Each string represents a segment in
a dot-separated name.  is_extension is true iff a segment represents an
extension (denoted with parentheses in options specs in .proto files).
E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
"foo.(bar.baz).qux".
Protobuf type google.protobuf.UninterpretedOption.NamePart
/** * <pre> * The name of the uninterpreted option. Each string represents a segment in * a dot-separated name. is_extension is true iff a segment represents an * extension (denoted with parentheses in options specs in .proto files). * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents * "foo.(bar.baz).qux". * </pre> * * Protobuf type {@code google.protobuf.UninterpretedOption.NamePart} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.UninterpretedOption.NamePart) com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_NamePart_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_NamePart_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.class, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); namePart_ = ""; bitField0_ = (bitField0_ & ~0x00000001); isExtension_ = false; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_NamePart_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart build() { com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart buildPartial() { com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart result = new com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.namePart_ = namePart_; if (((from_bitField0_ & 0x00000002) != 0)) { result.isExtension_ = isExtension_; to_bitField0_ |= 0x00000002; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart) { return mergeFrom((com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart other) { if (other == com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.getDefaultInstance()) return this; if (other.hasNamePart()) { bitField0_ |= 0x00000001; namePart_ = other.namePart_; onChanged(); } if (other.hasIsExtension()) { setIsExtension(other.getIsExtension()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasNamePart()) { return false; } if (!hasIsExtension()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object namePart_ = "";
required string name_part = 1;
Returns:Whether the namePart field is set.
/** * <code>required string name_part = 1;</code> * @return Whether the namePart field is set. */
public boolean hasNamePart() { return ((bitField0_ & 0x00000001) != 0); }
required string name_part = 1;
Returns:The namePart.
/** * <code>required string name_part = 1;</code> * @return The namePart. */
public java.lang.String getNamePart() { java.lang.Object ref = namePart_; 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()) { namePart_ = s; } return s; } else { return (java.lang.String) ref; } }
required string name_part = 1;
Returns:The bytes for namePart.
/** * <code>required string name_part = 1;</code> * @return The bytes for namePart. */
public com.google.protobuf.ByteString getNamePartBytes() { java.lang.Object ref = namePart_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namePart_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
required string name_part = 1;
Params:
  • value – The namePart to set.
Returns:This builder for chaining.
/** * <code>required string name_part = 1;</code> * @param value The namePart to set. * @return This builder for chaining. */
public Builder setNamePart( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; namePart_ = value; onChanged(); return this; }
required string name_part = 1;
Returns:This builder for chaining.
/** * <code>required string name_part = 1;</code> * @return This builder for chaining. */
public Builder clearNamePart() { bitField0_ = (bitField0_ & ~0x00000001); namePart_ = getDefaultInstance().getNamePart(); onChanged(); return this; }
required string name_part = 1;
Params:
  • value – The bytes for namePart to set.
Returns:This builder for chaining.
/** * <code>required string name_part = 1;</code> * @param value The bytes for namePart to set. * @return This builder for chaining. */
public Builder setNamePartBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; namePart_ = value; onChanged(); return this; } private boolean isExtension_ ;
required bool is_extension = 2;
Returns:Whether the isExtension field is set.
/** * <code>required bool is_extension = 2;</code> * @return Whether the isExtension field is set. */
public boolean hasIsExtension() { return ((bitField0_ & 0x00000002) != 0); }
required bool is_extension = 2;
Returns:The isExtension.
/** * <code>required bool is_extension = 2;</code> * @return The isExtension. */
public boolean getIsExtension() { return isExtension_; }
required bool is_extension = 2;
Params:
  • value – The isExtension to set.
Returns:This builder for chaining.
/** * <code>required bool is_extension = 2;</code> * @param value The isExtension to set. * @return This builder for chaining. */
public Builder setIsExtension(boolean value) { bitField0_ |= 0x00000002; isExtension_ = value; onChanged(); return this; }
required bool is_extension = 2;
Returns:This builder for chaining.
/** * <code>required bool is_extension = 2;</code> * @return This builder for chaining. */
public Builder clearIsExtension() { bitField0_ = (bitField0_ & ~0x00000002); isExtension_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.UninterpretedOption.NamePart) } // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption.NamePart) private static final com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart(); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<NamePart> PARSER = new com.google.protobuf.AbstractParser<NamePart>() { @java.lang.Override public NamePart parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NamePart(input, extensionRegistry); } }; public static com.google.protobuf.Parser<NamePart> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<NamePart> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int NAME_FIELD_NUMBER = 2; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> name_;
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> getNameList() { return name_; }
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> getNameOrBuilderList() { return name_; }
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public int getNameCount() { return name_.size(); }
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getName(int index) { return name_.get(index); }
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder getNameOrBuilder( int index) { return name_.get(index); } public static final int IDENTIFIER_VALUE_FIELD_NUMBER = 3; private volatile java.lang.Object identifierValue_;
The value of the uninterpreted option, in whatever type the tokenizer
identified it as during parsing. Exactly one of these should be set.
optional string identifier_value = 3;
Returns:Whether the identifierValue field is set.
/** * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> * * <code>optional string identifier_value = 3;</code> * @return Whether the identifierValue field is set. */
public boolean hasIdentifierValue() { return ((bitField0_ & 0x00000001) != 0); }
The value of the uninterpreted option, in whatever type the tokenizer
identified it as during parsing. Exactly one of these should be set.
optional string identifier_value = 3;
Returns:The identifierValue.
/** * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> * * <code>optional string identifier_value = 3;</code> * @return The identifierValue. */
public java.lang.String getIdentifierValue() { java.lang.Object ref = identifierValue_; 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()) { identifierValue_ = s; } return s; } }
The value of the uninterpreted option, in whatever type the tokenizer
identified it as during parsing. Exactly one of these should be set.
optional string identifier_value = 3;
Returns:The bytes for identifierValue.
/** * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> * * <code>optional string identifier_value = 3;</code> * @return The bytes for identifierValue. */
public com.google.protobuf.ByteString getIdentifierValueBytes() { java.lang.Object ref = identifierValue_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); identifierValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int POSITIVE_INT_VALUE_FIELD_NUMBER = 4; private long positiveIntValue_;
optional uint64 positive_int_value = 4;
Returns:Whether the positiveIntValue field is set.
/** * <code>optional uint64 positive_int_value = 4;</code> * @return Whether the positiveIntValue field is set. */
public boolean hasPositiveIntValue() { return ((bitField0_ & 0x00000002) != 0); }
optional uint64 positive_int_value = 4;
Returns:The positiveIntValue.
/** * <code>optional uint64 positive_int_value = 4;</code> * @return The positiveIntValue. */
public long getPositiveIntValue() { return positiveIntValue_; } public static final int NEGATIVE_INT_VALUE_FIELD_NUMBER = 5; private long negativeIntValue_;
optional int64 negative_int_value = 5;
Returns:Whether the negativeIntValue field is set.
/** * <code>optional int64 negative_int_value = 5;</code> * @return Whether the negativeIntValue field is set. */
public boolean hasNegativeIntValue() { return ((bitField0_ & 0x00000004) != 0); }
optional int64 negative_int_value = 5;
Returns:The negativeIntValue.
/** * <code>optional int64 negative_int_value = 5;</code> * @return The negativeIntValue. */
public long getNegativeIntValue() { return negativeIntValue_; } public static final int DOUBLE_VALUE_FIELD_NUMBER = 6; private double doubleValue_;
optional double double_value = 6;
Returns:Whether the doubleValue field is set.
/** * <code>optional double double_value = 6;</code> * @return Whether the doubleValue field is set. */
public boolean hasDoubleValue() { return ((bitField0_ & 0x00000008) != 0); }
optional double double_value = 6;
Returns:The doubleValue.
/** * <code>optional double double_value = 6;</code> * @return The doubleValue. */
public double getDoubleValue() { return doubleValue_; } public static final int STRING_VALUE_FIELD_NUMBER = 7; private com.google.protobuf.ByteString stringValue_;
optional bytes string_value = 7;
Returns:Whether the stringValue field is set.
/** * <code>optional bytes string_value = 7;</code> * @return Whether the stringValue field is set. */
public boolean hasStringValue() { return ((bitField0_ & 0x00000010) != 0); }
optional bytes string_value = 7;
Returns:The stringValue.
/** * <code>optional bytes string_value = 7;</code> * @return The stringValue. */
public com.google.protobuf.ByteString getStringValue() { return stringValue_; } public static final int AGGREGATE_VALUE_FIELD_NUMBER = 8; private volatile java.lang.Object aggregateValue_;
optional string aggregate_value = 8;
Returns:Whether the aggregateValue field is set.
/** * <code>optional string aggregate_value = 8;</code> * @return Whether the aggregateValue field is set. */
public boolean hasAggregateValue() { return ((bitField0_ & 0x00000020) != 0); }
optional string aggregate_value = 8;
Returns:The aggregateValue.
/** * <code>optional string aggregate_value = 8;</code> * @return The aggregateValue. */
public java.lang.String getAggregateValue() { java.lang.Object ref = aggregateValue_; 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()) { aggregateValue_ = s; } return s; } }
optional string aggregate_value = 8;
Returns:The bytes for aggregateValue.
/** * <code>optional string aggregate_value = 8;</code> * @return The bytes for aggregateValue. */
public com.google.protobuf.ByteString getAggregateValueBytes() { java.lang.Object ref = aggregateValue_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); aggregateValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getNameCount(); i++) { if (!getName(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < name_.size(); i++) { output.writeMessage(2, name_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, identifierValue_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt64(4, positiveIntValue_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt64(5, negativeIntValue_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeDouble(6, doubleValue_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBytes(7, stringValue_); } if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, aggregateValue_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < name_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, name_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, identifierValue_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, positiveIntValue_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, negativeIntValue_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(6, doubleValue_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, stringValue_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, aggregateValue_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.UninterpretedOption)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.UninterpretedOption other = (com.google.protobuf.DescriptorProtos.UninterpretedOption) obj; if (!getNameList() .equals(other.getNameList())) return false; if (hasIdentifierValue() != other.hasIdentifierValue()) return false; if (hasIdentifierValue()) { if (!getIdentifierValue() .equals(other.getIdentifierValue())) return false; } if (hasPositiveIntValue() != other.hasPositiveIntValue()) return false; if (hasPositiveIntValue()) { if (getPositiveIntValue() != other.getPositiveIntValue()) return false; } if (hasNegativeIntValue() != other.hasNegativeIntValue()) return false; if (hasNegativeIntValue()) { if (getNegativeIntValue() != other.getNegativeIntValue()) return false; } if (hasDoubleValue() != other.hasDoubleValue()) return false; if (hasDoubleValue()) { if (java.lang.Double.doubleToLongBits(getDoubleValue()) != java.lang.Double.doubleToLongBits( other.getDoubleValue())) return false; } if (hasStringValue() != other.hasStringValue()) return false; if (hasStringValue()) { if (!getStringValue() .equals(other.getStringValue())) return false; } if (hasAggregateValue() != other.hasAggregateValue()) return false; if (hasAggregateValue()) { if (!getAggregateValue() .equals(other.getAggregateValue())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getNameCount() > 0) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getNameList().hashCode(); } if (hasIdentifierValue()) { hash = (37 * hash) + IDENTIFIER_VALUE_FIELD_NUMBER; hash = (53 * hash) + getIdentifierValue().hashCode(); } if (hasPositiveIntValue()) { hash = (37 * hash) + POSITIVE_INT_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPositiveIntValue()); } if (hasNegativeIntValue()) { hash = (37 * hash) + NEGATIVE_INT_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNegativeIntValue()); } if (hasDoubleValue()) { hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDoubleValue())); } if (hasStringValue()) { hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; hash = (53 * hash) + getStringValue().hashCode(); } if (hasAggregateValue()) { hash = (37 * hash) + AGGREGATE_VALUE_FIELD_NUMBER; hash = (53 * hash) + getAggregateValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption 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.UninterpretedOption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.UninterpretedOption prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
A message representing a option the parser does not recognize. This only
appears in options protos created by the compiler::Parser class.
DescriptorPool resolves these when building Descriptor objects. Therefore,
options protos in descriptor objects (e.g. returned by Descriptor::options(),
or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
in them.
Protobuf type google.protobuf.UninterpretedOption
/** * <pre> * A message representing a option the parser does not recognize. This only * appears in options protos created by the compiler::Parser class. * DescriptorPool resolves these when building Descriptor objects. Therefore, * options protos in descriptor objects (e.g. returned by Descriptor::options(), * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions * in them. * </pre> * * Protobuf type {@code google.protobuf.UninterpretedOption} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.UninterpretedOption) com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.UninterpretedOption.class, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.UninterpretedOption.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getNameFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (nameBuilder_ == null) { name_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { nameBuilder_.clear(); } identifierValue_ = ""; bitField0_ = (bitField0_ & ~0x00000002); positiveIntValue_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); negativeIntValue_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); doubleValue_ = 0D; bitField0_ = (bitField0_ & ~0x00000010); stringValue_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); aggregateValue_ = ""; bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.UninterpretedOption getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.UninterpretedOption build() { com.google.protobuf.DescriptorProtos.UninterpretedOption result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.UninterpretedOption buildPartial() { com.google.protobuf.DescriptorProtos.UninterpretedOption result = new com.google.protobuf.DescriptorProtos.UninterpretedOption(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (nameBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { name_ = java.util.Collections.unmodifiableList(name_); bitField0_ = (bitField0_ & ~0x00000001); } result.name_ = name_; } else { result.name_ = nameBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000001; } result.identifierValue_ = identifierValue_; if (((from_bitField0_ & 0x00000004) != 0)) { result.positiveIntValue_ = positiveIntValue_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.negativeIntValue_ = negativeIntValue_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.doubleValue_ = doubleValue_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { to_bitField0_ |= 0x00000010; } result.stringValue_ = stringValue_; if (((from_bitField0_ & 0x00000040) != 0)) { to_bitField0_ |= 0x00000020; } result.aggregateValue_ = aggregateValue_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.UninterpretedOption) { return mergeFrom((com.google.protobuf.DescriptorProtos.UninterpretedOption)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.UninterpretedOption other) { if (other == com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()) return this; if (nameBuilder_ == null) { if (!other.name_.isEmpty()) { if (name_.isEmpty()) { name_ = other.name_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNameIsMutable(); name_.addAll(other.name_); } onChanged(); } } else { if (!other.name_.isEmpty()) { if (nameBuilder_.isEmpty()) { nameBuilder_.dispose(); nameBuilder_ = null; name_ = other.name_; bitField0_ = (bitField0_ & ~0x00000001); nameBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNameFieldBuilder() : null; } else { nameBuilder_.addAllMessages(other.name_); } } } if (other.hasIdentifierValue()) { bitField0_ |= 0x00000002; identifierValue_ = other.identifierValue_; onChanged(); } if (other.hasPositiveIntValue()) { setPositiveIntValue(other.getPositiveIntValue()); } if (other.hasNegativeIntValue()) { setNegativeIntValue(other.getNegativeIntValue()); } if (other.hasDoubleValue()) { setDoubleValue(other.getDoubleValue()); } if (other.hasStringValue()) { setStringValue(other.getStringValue()); } if (other.hasAggregateValue()) { bitField0_ |= 0x00000040; aggregateValue_ = other.aggregateValue_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getNameCount(); i++) { if (!getName(i).isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.UninterpretedOption parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.UninterpretedOption) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> name_ = java.util.Collections.emptyList(); private void ensureNameIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { name_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart>(name_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> nameBuilder_;
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> getNameList() { if (nameBuilder_ == null) { return java.util.Collections.unmodifiableList(name_); } else { return nameBuilder_.getMessageList(); } }
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public int getNameCount() { if (nameBuilder_ == null) { return name_.size(); } else { return nameBuilder_.getCount(); } }
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getName(int index) { if (nameBuilder_ == null) { return name_.get(index); } else { return nameBuilder_.getMessage(index); } }
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public Builder setName( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart value) { if (nameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNameIsMutable(); name_.set(index, value); onChanged(); } else { nameBuilder_.setMessage(index, value); } return this; }
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public Builder setName( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder builderForValue) { if (nameBuilder_ == null) { ensureNameIsMutable(); name_.set(index, builderForValue.build()); onChanged(); } else { nameBuilder_.setMessage(index, builderForValue.build()); } return this; }
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public Builder addName(com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart value) { if (nameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNameIsMutable(); name_.add(value); onChanged(); } else { nameBuilder_.addMessage(value); } return this; }
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public Builder addName( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart value) { if (nameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNameIsMutable(); name_.add(index, value); onChanged(); } else { nameBuilder_.addMessage(index, value); } return this; }
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public Builder addName( com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder builderForValue) { if (nameBuilder_ == null) { ensureNameIsMutable(); name_.add(builderForValue.build()); onChanged(); } else { nameBuilder_.addMessage(builderForValue.build()); } return this; }
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public Builder addName( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder builderForValue) { if (nameBuilder_ == null) { ensureNameIsMutable(); name_.add(index, builderForValue.build()); onChanged(); } else { nameBuilder_.addMessage(index, builderForValue.build()); } return this; }
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public Builder addAllName( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> values) { if (nameBuilder_ == null) { ensureNameIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, name_); onChanged(); } else { nameBuilder_.addAllMessages(values); } return this; }
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public Builder clearName() { if (nameBuilder_ == null) { name_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { nameBuilder_.clear(); } return this; }
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public Builder removeName(int index) { if (nameBuilder_ == null) { ensureNameIsMutable(); name_.remove(index); onChanged(); } else { nameBuilder_.remove(index); } return this; }
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder getNameBuilder( int index) { return getNameFieldBuilder().getBuilder(index); }
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder getNameOrBuilder( int index) { if (nameBuilder_ == null) { return name_.get(index); } else { return nameBuilder_.getMessageOrBuilder(index); } }
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> getNameOrBuilderList() { if (nameBuilder_ != null) { return nameBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(name_); } }
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder addNameBuilder() { return getNameFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.getDefaultInstance()); }
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder addNameBuilder( int index) { return getNameFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.getDefaultInstance()); }
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
/** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder> getNameBuilderList() { return getNameFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> getNameFieldBuilder() { if (nameBuilder_ == null) { nameBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder>( name_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); name_ = null; } return nameBuilder_; } private java.lang.Object identifierValue_ = "";
The value of the uninterpreted option, in whatever type the tokenizer
identified it as during parsing. Exactly one of these should be set.
optional string identifier_value = 3;
Returns:Whether the identifierValue field is set.
/** * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> * * <code>optional string identifier_value = 3;</code> * @return Whether the identifierValue field is set. */
public boolean hasIdentifierValue() { return ((bitField0_ & 0x00000002) != 0); }
The value of the uninterpreted option, in whatever type the tokenizer
identified it as during parsing. Exactly one of these should be set.
optional string identifier_value = 3;
Returns:The identifierValue.
/** * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> * * <code>optional string identifier_value = 3;</code> * @return The identifierValue. */
public java.lang.String getIdentifierValue() { java.lang.Object ref = identifierValue_; 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()) { identifierValue_ = s; } return s; } else { return (java.lang.String) ref; } }
The value of the uninterpreted option, in whatever type the tokenizer
identified it as during parsing. Exactly one of these should be set.
optional string identifier_value = 3;
Returns:The bytes for identifierValue.
/** * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> * * <code>optional string identifier_value = 3;</code> * @return The bytes for identifierValue. */
public com.google.protobuf.ByteString getIdentifierValueBytes() { java.lang.Object ref = identifierValue_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); identifierValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
The value of the uninterpreted option, in whatever type the tokenizer
identified it as during parsing. Exactly one of these should be set.
optional string identifier_value = 3;
Params:
  • value – The identifierValue to set.
Returns:This builder for chaining.
/** * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> * * <code>optional string identifier_value = 3;</code> * @param value The identifierValue to set. * @return This builder for chaining. */
public Builder setIdentifierValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; identifierValue_ = value; onChanged(); return this; }
The value of the uninterpreted option, in whatever type the tokenizer
identified it as during parsing. Exactly one of these should be set.
optional string identifier_value = 3;
Returns:This builder for chaining.
/** * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> * * <code>optional string identifier_value = 3;</code> * @return This builder for chaining. */
public Builder clearIdentifierValue() { bitField0_ = (bitField0_ & ~0x00000002); identifierValue_ = getDefaultInstance().getIdentifierValue(); onChanged(); return this; }
The value of the uninterpreted option, in whatever type the tokenizer
identified it as during parsing. Exactly one of these should be set.
optional string identifier_value = 3;
Params:
  • value – The bytes for identifierValue to set.
Returns:This builder for chaining.
/** * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> * * <code>optional string identifier_value = 3;</code> * @param value The bytes for identifierValue to set. * @return This builder for chaining. */
public Builder setIdentifierValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; identifierValue_ = value; onChanged(); return this; } private long positiveIntValue_ ;
optional uint64 positive_int_value = 4;
Returns:Whether the positiveIntValue field is set.
/** * <code>optional uint64 positive_int_value = 4;</code> * @return Whether the positiveIntValue field is set. */
public boolean hasPositiveIntValue() { return ((bitField0_ & 0x00000004) != 0); }
optional uint64 positive_int_value = 4;
Returns:The positiveIntValue.
/** * <code>optional uint64 positive_int_value = 4;</code> * @return The positiveIntValue. */
public long getPositiveIntValue() { return positiveIntValue_; }
optional uint64 positive_int_value = 4;
Params:
  • value – The positiveIntValue to set.
Returns:This builder for chaining.
/** * <code>optional uint64 positive_int_value = 4;</code> * @param value The positiveIntValue to set. * @return This builder for chaining. */
public Builder setPositiveIntValue(long value) { bitField0_ |= 0x00000004; positiveIntValue_ = value; onChanged(); return this; }
optional uint64 positive_int_value = 4;
Returns:This builder for chaining.
/** * <code>optional uint64 positive_int_value = 4;</code> * @return This builder for chaining. */
public Builder clearPositiveIntValue() { bitField0_ = (bitField0_ & ~0x00000004); positiveIntValue_ = 0L; onChanged(); return this; } private long negativeIntValue_ ;
optional int64 negative_int_value = 5;
Returns:Whether the negativeIntValue field is set.
/** * <code>optional int64 negative_int_value = 5;</code> * @return Whether the negativeIntValue field is set. */
public boolean hasNegativeIntValue() { return ((bitField0_ & 0x00000008) != 0); }
optional int64 negative_int_value = 5;
Returns:The negativeIntValue.
/** * <code>optional int64 negative_int_value = 5;</code> * @return The negativeIntValue. */
public long getNegativeIntValue() { return negativeIntValue_; }
optional int64 negative_int_value = 5;
Params:
  • value – The negativeIntValue to set.
Returns:This builder for chaining.
/** * <code>optional int64 negative_int_value = 5;</code> * @param value The negativeIntValue to set. * @return This builder for chaining. */
public Builder setNegativeIntValue(long value) { bitField0_ |= 0x00000008; negativeIntValue_ = value; onChanged(); return this; }
optional int64 negative_int_value = 5;
Returns:This builder for chaining.
/** * <code>optional int64 negative_int_value = 5;</code> * @return This builder for chaining. */
public Builder clearNegativeIntValue() { bitField0_ = (bitField0_ & ~0x00000008); negativeIntValue_ = 0L; onChanged(); return this; } private double doubleValue_ ;
optional double double_value = 6;
Returns:Whether the doubleValue field is set.
/** * <code>optional double double_value = 6;</code> * @return Whether the doubleValue field is set. */
public boolean hasDoubleValue() { return ((bitField0_ & 0x00000010) != 0); }
optional double double_value = 6;
Returns:The doubleValue.
/** * <code>optional double double_value = 6;</code> * @return The doubleValue. */
public double getDoubleValue() { return doubleValue_; }
optional double double_value = 6;
Params:
  • value – The doubleValue to set.
Returns:This builder for chaining.
/** * <code>optional double double_value = 6;</code> * @param value The doubleValue to set. * @return This builder for chaining. */
public Builder setDoubleValue(double value) { bitField0_ |= 0x00000010; doubleValue_ = value; onChanged(); return this; }
optional double double_value = 6;
Returns:This builder for chaining.
/** * <code>optional double double_value = 6;</code> * @return This builder for chaining. */
public Builder clearDoubleValue() { bitField0_ = (bitField0_ & ~0x00000010); doubleValue_ = 0D; onChanged(); return this; } private com.google.protobuf.ByteString stringValue_ = com.google.protobuf.ByteString.EMPTY;
optional bytes string_value = 7;
Returns:Whether the stringValue field is set.
/** * <code>optional bytes string_value = 7;</code> * @return Whether the stringValue field is set. */
public boolean hasStringValue() { return ((bitField0_ & 0x00000020) != 0); }
optional bytes string_value = 7;
Returns:The stringValue.
/** * <code>optional bytes string_value = 7;</code> * @return The stringValue. */
public com.google.protobuf.ByteString getStringValue() { return stringValue_; }
optional bytes string_value = 7;
Params:
  • value – The stringValue to set.
Returns:This builder for chaining.
/** * <code>optional bytes string_value = 7;</code> * @param value The stringValue to set. * @return This builder for chaining. */
public Builder setStringValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; stringValue_ = value; onChanged(); return this; }
optional bytes string_value = 7;
Returns:This builder for chaining.
/** * <code>optional bytes string_value = 7;</code> * @return This builder for chaining. */
public Builder clearStringValue() { bitField0_ = (bitField0_ & ~0x00000020); stringValue_ = getDefaultInstance().getStringValue(); onChanged(); return this; } private java.lang.Object aggregateValue_ = "";
optional string aggregate_value = 8;
Returns:Whether the aggregateValue field is set.
/** * <code>optional string aggregate_value = 8;</code> * @return Whether the aggregateValue field is set. */
public boolean hasAggregateValue() { return ((bitField0_ & 0x00000040) != 0); }
optional string aggregate_value = 8;
Returns:The aggregateValue.
/** * <code>optional string aggregate_value = 8;</code> * @return The aggregateValue. */
public java.lang.String getAggregateValue() { java.lang.Object ref = aggregateValue_; 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()) { aggregateValue_ = s; } return s; } else { return (java.lang.String) ref; } }
optional string aggregate_value = 8;
Returns:The bytes for aggregateValue.
/** * <code>optional string aggregate_value = 8;</code> * @return The bytes for aggregateValue. */
public com.google.protobuf.ByteString getAggregateValueBytes() { java.lang.Object ref = aggregateValue_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); aggregateValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
optional string aggregate_value = 8;
Params:
  • value – The aggregateValue to set.
Returns:This builder for chaining.
/** * <code>optional string aggregate_value = 8;</code> * @param value The aggregateValue to set. * @return This builder for chaining. */
public Builder setAggregateValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; aggregateValue_ = value; onChanged(); return this; }
optional string aggregate_value = 8;
Returns:This builder for chaining.
/** * <code>optional string aggregate_value = 8;</code> * @return This builder for chaining. */
public Builder clearAggregateValue() { bitField0_ = (bitField0_ & ~0x00000040); aggregateValue_ = getDefaultInstance().getAggregateValue(); onChanged(); return this; }
optional string aggregate_value = 8;
Params:
  • value – The bytes for aggregateValue to set.
Returns:This builder for chaining.
/** * <code>optional string aggregate_value = 8;</code> * @param value The bytes for aggregateValue to set. * @return This builder for chaining. */
public Builder setAggregateValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; aggregateValue_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.UninterpretedOption) } // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption) private static final com.google.protobuf.DescriptorProtos.UninterpretedOption DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.UninterpretedOption(); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<UninterpretedOption> PARSER = new com.google.protobuf.AbstractParser<UninterpretedOption>() { @java.lang.Override public UninterpretedOption parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UninterpretedOption(input, extensionRegistry); } }; public static com.google.protobuf.Parser<UninterpretedOption> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<UninterpretedOption> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.UninterpretedOption getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SourceCodeInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.SourceCodeInfo) com.google.protobuf.MessageOrBuilder {
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> getLocationList();
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getLocation(int index);
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
int getLocationCount();
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> getLocationOrBuilderList();
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder getLocationOrBuilder( int index); }
Encapsulates information about the original source file from which a
FileDescriptorProto was generated.
Protobuf type google.protobuf.SourceCodeInfo
/** * <pre> * Encapsulates information about the original source file from which a * FileDescriptorProto was generated. * </pre> * * Protobuf type {@code google.protobuf.SourceCodeInfo} */
public static final class SourceCodeInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.protobuf.SourceCodeInfo) SourceCodeInfoOrBuilder { private static final long serialVersionUID = 0L; // Use SourceCodeInfo.newBuilder() to construct. private SourceCodeInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private SourceCodeInfo() { location_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SourceCodeInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SourceCodeInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { location_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location>(); mutable_bitField0_ |= 0x00000001; } location_.add( input.readMessage(com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.PARSER, extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { location_ = java.util.Collections.unmodifiableList(location_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.SourceCodeInfo.class, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder.class); } public interface LocationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.SourceCodeInfo.Location) com.google.protobuf.MessageOrBuilder {
Identifies which part of the FileDescriptorProto was defined at this
location.
Each element is a field number or an index.  They form a path from
the root FileDescriptorProto to the place where the definition.  For
example, this path:
  [ 4, 3, 2, 7, 1 ]
refers to:
  file.message_type(3)  // 4, 3
      .field(7)         // 2, 7
      .name()           // 1
This is because FileDescriptorProto.message_type has field number 4:
  repeated DescriptorProto message_type = 4;
and DescriptorProto.field has field number 2:
  repeated FieldDescriptorProto field = 2;
and FieldDescriptorProto.name has field number 1:
  optional string name = 1;
Thus, the above path gives the location of a field name.  If we removed
the last element:
  [ 4, 3, 2, 7 ]
this path refers to the whole field declaration (from the beginning
of the label to the terminating semicolon).
repeated int32 path = 1 [packed = true];
Returns:A list containing the path.
/** * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @return A list containing the path. */
java.util.List<java.lang.Integer> getPathList();
Identifies which part of the FileDescriptorProto was defined at this
location.
Each element is a field number or an index.  They form a path from
the root FileDescriptorProto to the place where the definition.  For
example, this path:
  [ 4, 3, 2, 7, 1 ]
refers to:
  file.message_type(3)  // 4, 3
      .field(7)         // 2, 7
      .name()           // 1
This is because FileDescriptorProto.message_type has field number 4:
  repeated DescriptorProto message_type = 4;
and DescriptorProto.field has field number 2:
  repeated FieldDescriptorProto field = 2;
and FieldDescriptorProto.name has field number 1:
  optional string name = 1;
Thus, the above path gives the location of a field name.  If we removed
the last element:
  [ 4, 3, 2, 7 ]
this path refers to the whole field declaration (from the beginning
of the label to the terminating semicolon).
repeated int32 path = 1 [packed = true];
Returns:The count of path.
/** * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @return The count of path. */
int getPathCount();
Identifies which part of the FileDescriptorProto was defined at this
location.
Each element is a field number or an index.  They form a path from
the root FileDescriptorProto to the place where the definition.  For
example, this path:
  [ 4, 3, 2, 7, 1 ]
refers to:
  file.message_type(3)  // 4, 3
      .field(7)         // 2, 7
      .name()           // 1
This is because FileDescriptorProto.message_type has field number 4:
  repeated DescriptorProto message_type = 4;
and DescriptorProto.field has field number 2:
  repeated FieldDescriptorProto field = 2;
and FieldDescriptorProto.name has field number 1:
  optional string name = 1;
Thus, the above path gives the location of a field name.  If we removed
the last element:
  [ 4, 3, 2, 7 ]
this path refers to the whole field declaration (from the beginning
of the label to the terminating semicolon).
repeated int32 path = 1 [packed = true];
Params:
  • index – The index of the element to return.
Returns:The path at the given index.
/** * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @param index The index of the element to return. * @return The path at the given index. */
int getPath(int index);
Always has exactly three or four elements: start line, start column,
end line (optional, otherwise assumed same as start line), end column.
These are packed into a single field for efficiency.  Note that line
and column numbers are zero-based -- typically you will want to add
1 to each before displaying to a user.
repeated int32 span = 2 [packed = true];
Returns:A list containing the span.
/** * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> * * <code>repeated int32 span = 2 [packed = true];</code> * @return A list containing the span. */
java.util.List<java.lang.Integer> getSpanList();
Always has exactly three or four elements: start line, start column,
end line (optional, otherwise assumed same as start line), end column.
These are packed into a single field for efficiency.  Note that line
and column numbers are zero-based -- typically you will want to add
1 to each before displaying to a user.
repeated int32 span = 2 [packed = true];
Returns:The count of span.
/** * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> * * <code>repeated int32 span = 2 [packed = true];</code> * @return The count of span. */
int getSpanCount();
Always has exactly three or four elements: start line, start column,
end line (optional, otherwise assumed same as start line), end column.
These are packed into a single field for efficiency.  Note that line
and column numbers are zero-based -- typically you will want to add
1 to each before displaying to a user.
repeated int32 span = 2 [packed = true];
Params:
  • index – The index of the element to return.
Returns:The span at the given index.
/** * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> * * <code>repeated int32 span = 2 [packed = true];</code> * @param index The index of the element to return. * @return The span at the given index. */
int getSpan(int index);
If this SourceCodeInfo represents a complete declaration, these are any
comments appearing before and after the declaration which appear to be
attached to the declaration.
A series of line comments appearing on consecutive lines, with no other
tokens appearing on those lines, will be treated as a single comment.
leading_detached_comments will keep paragraphs of comments that appear
before (but not connected to) the current element. Each paragraph,
separated by empty lines, will be one comment element in the repeated
field.
Only the comment content is provided; comment markers (e.g. //) are
stripped out.  For block comments, leading whitespace and an asterisk
will be stripped from the beginning of each line other than the first.
Newlines are included in the output.
Examples:
  optional int32 foo = 1;  // Comment attached to foo.
  // Comment attached to bar.
  optional int32 bar = 2;
  optional string baz = 3;
  // Comment attached to baz.
  // Another line attached to baz.
  // Comment attached to qux.
  //
  // Another line attached to qux.
  optional double qux = 4;
  // Detached comment for corge. This is not leading or trailing comments
  // to qux or corge because there are blank lines separating it from
  // both.
  // Detached comment for corge paragraph 2.
  optional string corge = 5;
  /* Block comment attached
   * to corge.  Leading asterisks
   * will be removed. */
  /* Block comment attached to
   * grault. */
  optional int32 grault = 6;
  // ignored detached comments.
optional string leading_comments = 3;
Returns:Whether the leadingComments field is set.
/** * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * leading_detached_comments will keep paragraphs of comments that appear * before (but not connected to) the current element. Each paragraph, * separated by empty lines, will be one comment element in the repeated * field. * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * Examples: * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * // Detached comment for corge. This is not leading or trailing comments * // to qux or corge because there are blank lines separating it from * // both. * // Detached comment for corge paragraph 2. * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * // ignored detached comments. * </pre> * * <code>optional string leading_comments = 3;</code> * @return Whether the leadingComments field is set. */
boolean hasLeadingComments();
If this SourceCodeInfo represents a complete declaration, these are any
comments appearing before and after the declaration which appear to be
attached to the declaration.
A series of line comments appearing on consecutive lines, with no other
tokens appearing on those lines, will be treated as a single comment.
leading_detached_comments will keep paragraphs of comments that appear
before (but not connected to) the current element. Each paragraph,
separated by empty lines, will be one comment element in the repeated
field.
Only the comment content is provided; comment markers (e.g. //) are
stripped out.  For block comments, leading whitespace and an asterisk
will be stripped from the beginning of each line other than the first.
Newlines are included in the output.
Examples:
  optional int32 foo = 1;  // Comment attached to foo.
  // Comment attached to bar.
  optional int32 bar = 2;
  optional string baz = 3;
  // Comment attached to baz.
  // Another line attached to baz.
  // Comment attached to qux.
  //
  // Another line attached to qux.
  optional double qux = 4;
  // Detached comment for corge. This is not leading or trailing comments
  // to qux or corge because there are blank lines separating it from
  // both.
  // Detached comment for corge paragraph 2.
  optional string corge = 5;
  /* Block comment attached
   * to corge.  Leading asterisks
   * will be removed. */
  /* Block comment attached to
   * grault. */
  optional int32 grault = 6;
  // ignored detached comments.
optional string leading_comments = 3;
Returns:The leadingComments.
/** * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * leading_detached_comments will keep paragraphs of comments that appear * before (but not connected to) the current element. Each paragraph, * separated by empty lines, will be one comment element in the repeated * field. * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * Examples: * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * // Detached comment for corge. This is not leading or trailing comments * // to qux or corge because there are blank lines separating it from * // both. * // Detached comment for corge paragraph 2. * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * // ignored detached comments. * </pre> * * <code>optional string leading_comments = 3;</code> * @return The leadingComments. */
java.lang.String getLeadingComments();
If this SourceCodeInfo represents a complete declaration, these are any
comments appearing before and after the declaration which appear to be
attached to the declaration.
A series of line comments appearing on consecutive lines, with no other
tokens appearing on those lines, will be treated as a single comment.
leading_detached_comments will keep paragraphs of comments that appear
before (but not connected to) the current element. Each paragraph,
separated by empty lines, will be one comment element in the repeated
field.
Only the comment content is provided; comment markers (e.g. //) are
stripped out.  For block comments, leading whitespace and an asterisk
will be stripped from the beginning of each line other than the first.
Newlines are included in the output.
Examples:
  optional int32 foo = 1;  // Comment attached to foo.
  // Comment attached to bar.
  optional int32 bar = 2;
  optional string baz = 3;
  // Comment attached to baz.
  // Another line attached to baz.
  // Comment attached to qux.
  //
  // Another line attached to qux.
  optional double qux = 4;
  // Detached comment for corge. This is not leading or trailing comments
  // to qux or corge because there are blank lines separating it from
  // both.
  // Detached comment for corge paragraph 2.
  optional string corge = 5;
  /* Block comment attached
   * to corge.  Leading asterisks
   * will be removed. */
  /* Block comment attached to
   * grault. */
  optional int32 grault = 6;
  // ignored detached comments.
optional string leading_comments = 3;
Returns:The bytes for leadingComments.
/** * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * leading_detached_comments will keep paragraphs of comments that appear * before (but not connected to) the current element. Each paragraph, * separated by empty lines, will be one comment element in the repeated * field. * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * Examples: * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * // Detached comment for corge. This is not leading or trailing comments * // to qux or corge because there are blank lines separating it from * // both. * // Detached comment for corge paragraph 2. * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * // ignored detached comments. * </pre> * * <code>optional string leading_comments = 3;</code> * @return The bytes for leadingComments. */
com.google.protobuf.ByteString getLeadingCommentsBytes();
optional string trailing_comments = 4;
Returns:Whether the trailingComments field is set.
/** * <code>optional string trailing_comments = 4;</code> * @return Whether the trailingComments field is set. */
boolean hasTrailingComments();
optional string trailing_comments = 4;
Returns:The trailingComments.
/** * <code>optional string trailing_comments = 4;</code> * @return The trailingComments. */
java.lang.String getTrailingComments();
optional string trailing_comments = 4;
Returns:The bytes for trailingComments.
/** * <code>optional string trailing_comments = 4;</code> * @return The bytes for trailingComments. */
com.google.protobuf.ByteString getTrailingCommentsBytes();
repeated string leading_detached_comments = 6;
Returns:A list containing the leadingDetachedComments.
/** * <code>repeated string leading_detached_comments = 6;</code> * @return A list containing the leadingDetachedComments. */
java.util.List<java.lang.String> getLeadingDetachedCommentsList();
repeated string leading_detached_comments = 6;
Returns:The count of leadingDetachedComments.
/** * <code>repeated string leading_detached_comments = 6;</code> * @return The count of leadingDetachedComments. */
int getLeadingDetachedCommentsCount();
repeated string leading_detached_comments = 6;
Params:
  • index – The index of the element to return.
Returns:The leadingDetachedComments at the given index.
/** * <code>repeated string leading_detached_comments = 6;</code> * @param index The index of the element to return. * @return The leadingDetachedComments at the given index. */
java.lang.String getLeadingDetachedComments(int index);
repeated string leading_detached_comments = 6;
Params:
  • index – The index of the value to return.
Returns:The bytes of the leadingDetachedComments at the given index.
/** * <code>repeated string leading_detached_comments = 6;</code> * @param index The index of the value to return. * @return The bytes of the leadingDetachedComments at the given index. */
com.google.protobuf.ByteString getLeadingDetachedCommentsBytes(int index); }
Protobuf type google.protobuf.SourceCodeInfo.Location
/** * Protobuf type {@code google.protobuf.SourceCodeInfo.Location} */
public static final class Location extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.protobuf.SourceCodeInfo.Location) LocationOrBuilder { private static final long serialVersionUID = 0L; // Use Location.newBuilder() to construct. private Location(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Location() { path_ = emptyIntList(); span_ = emptyIntList(); leadingComments_ = ""; trailingComments_ = ""; leadingDetachedComments_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Location(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Location( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 8: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { path_ = newIntList(); mutable_bitField0_ |= 0x00000001; } path_.addInt(input.readInt32()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { path_ = newIntList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { path_.addInt(input.readInt32()); } input.popLimit(limit); break; } case 16: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { span_ = newIntList(); mutable_bitField0_ |= 0x00000002; } span_.addInt(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { span_ = newIntList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { span_.addInt(input.readInt32()); } input.popLimit(limit); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; leadingComments_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; trailingComments_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000010) != 0)) { leadingDetachedComments_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000010; } leadingDetachedComments_.add(bs); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { path_.makeImmutable(); // C } if (((mutable_bitField0_ & 0x00000002) != 0)) { span_.makeImmutable(); // C } if (((mutable_bitField0_ & 0x00000010) != 0)) { leadingDetachedComments_ = leadingDetachedComments_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.class, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder.class); } private int bitField0_; public static final int PATH_FIELD_NUMBER = 1; private com.google.protobuf.Internal.IntList path_;
Identifies which part of the FileDescriptorProto was defined at this
location.
Each element is a field number or an index.  They form a path from
the root FileDescriptorProto to the place where the definition.  For
example, this path:
  [ 4, 3, 2, 7, 1 ]
refers to:
  file.message_type(3)  // 4, 3
      .field(7)         // 2, 7
      .name()           // 1
This is because FileDescriptorProto.message_type has field number 4:
  repeated DescriptorProto message_type = 4;
and DescriptorProto.field has field number 2:
  repeated FieldDescriptorProto field = 2;
and FieldDescriptorProto.name has field number 1:
  optional string name = 1;
Thus, the above path gives the location of a field name.  If we removed
the last element:
  [ 4, 3, 2, 7 ]
this path refers to the whole field declaration (from the beginning
of the label to the terminating semicolon).
repeated int32 path = 1 [packed = true];
Returns:A list containing the path.
/** * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @return A list containing the path. */
public java.util.List<java.lang.Integer> getPathList() { return path_; }
Identifies which part of the FileDescriptorProto was defined at this
location.
Each element is a field number or an index.  They form a path from
the root FileDescriptorProto to the place where the definition.  For
example, this path:
  [ 4, 3, 2, 7, 1 ]
refers to:
  file.message_type(3)  // 4, 3
      .field(7)         // 2, 7
      .name()           // 1
This is because FileDescriptorProto.message_type has field number 4:
  repeated DescriptorProto message_type = 4;
and DescriptorProto.field has field number 2:
  repeated FieldDescriptorProto field = 2;
and FieldDescriptorProto.name has field number 1:
  optional string name = 1;
Thus, the above path gives the location of a field name.  If we removed
the last element:
  [ 4, 3, 2, 7 ]
this path refers to the whole field declaration (from the beginning
of the label to the terminating semicolon).
repeated int32 path = 1 [packed = true];
Returns:The count of path.
/** * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @return The count of path. */
public int getPathCount() { return path_.size(); }
Identifies which part of the FileDescriptorProto was defined at this
location.
Each element is a field number or an index.  They form a path from
the root FileDescriptorProto to the place where the definition.  For
example, this path:
  [ 4, 3, 2, 7, 1 ]
refers to:
  file.message_type(3)  // 4, 3
      .field(7)         // 2, 7
      .name()           // 1
This is because FileDescriptorProto.message_type has field number 4:
  repeated DescriptorProto message_type = 4;
and DescriptorProto.field has field number 2:
  repeated FieldDescriptorProto field = 2;
and FieldDescriptorProto.name has field number 1:
  optional string name = 1;
Thus, the above path gives the location of a field name.  If we removed
the last element:
  [ 4, 3, 2, 7 ]
this path refers to the whole field declaration (from the beginning
of the label to the terminating semicolon).
repeated int32 path = 1 [packed = true];
Params:
  • index – The index of the element to return.
Returns:The path at the given index.
/** * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @param index The index of the element to return. * @return The path at the given index. */
public int getPath(int index) { return path_.getInt(index); } private int pathMemoizedSerializedSize = -1; public static final int SPAN_FIELD_NUMBER = 2; private com.google.protobuf.Internal.IntList span_;
Always has exactly three or four elements: start line, start column,
end line (optional, otherwise assumed same as start line), end column.
These are packed into a single field for efficiency.  Note that line
and column numbers are zero-based -- typically you will want to add
1 to each before displaying to a user.
repeated int32 span = 2 [packed = true];
Returns:A list containing the span.
/** * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> * * <code>repeated int32 span = 2 [packed = true];</code> * @return A list containing the span. */
public java.util.List<java.lang.Integer> getSpanList() { return span_; }
Always has exactly three or four elements: start line, start column,
end line (optional, otherwise assumed same as start line), end column.
These are packed into a single field for efficiency.  Note that line
and column numbers are zero-based -- typically you will want to add
1 to each before displaying to a user.
repeated int32 span = 2 [packed = true];
Returns:The count of span.
/** * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> * * <code>repeated int32 span = 2 [packed = true];</code> * @return The count of span. */
public int getSpanCount() { return span_.size(); }
Always has exactly three or four elements: start line, start column,
end line (optional, otherwise assumed same as start line), end column.
These are packed into a single field for efficiency.  Note that line
and column numbers are zero-based -- typically you will want to add
1 to each before displaying to a user.
repeated int32 span = 2 [packed = true];
Params:
  • index – The index of the element to return.
Returns:The span at the given index.
/** * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> * * <code>repeated int32 span = 2 [packed = true];</code> * @param index The index of the element to return. * @return The span at the given index. */
public int getSpan(int index) { return span_.getInt(index); } private int spanMemoizedSerializedSize = -1; public static final int LEADING_COMMENTS_FIELD_NUMBER = 3; private volatile java.lang.Object leadingComments_;
If this SourceCodeInfo represents a complete declaration, these are any
comments appearing before and after the declaration which appear to be
attached to the declaration.
A series of line comments appearing on consecutive lines, with no other
tokens appearing on those lines, will be treated as a single comment.
leading_detached_comments will keep paragraphs of comments that appear
before (but not connected to) the current element. Each paragraph,
separated by empty lines, will be one comment element in the repeated
field.
Only the comment content is provided; comment markers (e.g. //) are
stripped out.  For block comments, leading whitespace and an asterisk
will be stripped from the beginning of each line other than the first.
Newlines are included in the output.
Examples:
  optional int32 foo = 1;  // Comment attached to foo.
  // Comment attached to bar.
  optional int32 bar = 2;
  optional string baz = 3;
  // Comment attached to baz.
  // Another line attached to baz.
  // Comment attached to qux.
  //
  // Another line attached to qux.
  optional double qux = 4;
  // Detached comment for corge. This is not leading or trailing comments
  // to qux or corge because there are blank lines separating it from
  // both.
  // Detached comment for corge paragraph 2.
  optional string corge = 5;
  /* Block comment attached
   * to corge.  Leading asterisks
   * will be removed. */
  /* Block comment attached to
   * grault. */
  optional int32 grault = 6;
  // ignored detached comments.
optional string leading_comments = 3;
Returns:Whether the leadingComments field is set.
/** * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * leading_detached_comments will keep paragraphs of comments that appear * before (but not connected to) the current element. Each paragraph, * separated by empty lines, will be one comment element in the repeated * field. * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * Examples: * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * // Detached comment for corge. This is not leading or trailing comments * // to qux or corge because there are blank lines separating it from * // both. * // Detached comment for corge paragraph 2. * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * // ignored detached comments. * </pre> * * <code>optional string leading_comments = 3;</code> * @return Whether the leadingComments field is set. */
public boolean hasLeadingComments() { return ((bitField0_ & 0x00000001) != 0); }
If this SourceCodeInfo represents a complete declaration, these are any
comments appearing before and after the declaration which appear to be
attached to the declaration.
A series of line comments appearing on consecutive lines, with no other
tokens appearing on those lines, will be treated as a single comment.
leading_detached_comments will keep paragraphs of comments that appear
before (but not connected to) the current element. Each paragraph,
separated by empty lines, will be one comment element in the repeated
field.
Only the comment content is provided; comment markers (e.g. //) are
stripped out.  For block comments, leading whitespace and an asterisk
will be stripped from the beginning of each line other than the first.
Newlines are included in the output.
Examples:
  optional int32 foo = 1;  // Comment attached to foo.
  // Comment attached to bar.
  optional int32 bar = 2;
  optional string baz = 3;
  // Comment attached to baz.
  // Another line attached to baz.
  // Comment attached to qux.
  //
  // Another line attached to qux.
  optional double qux = 4;
  // Detached comment for corge. This is not leading or trailing comments
  // to qux or corge because there are blank lines separating it from
  // both.
  // Detached comment for corge paragraph 2.
  optional string corge = 5;
  /* Block comment attached
   * to corge.  Leading asterisks
   * will be removed. */
  /* Block comment attached to
   * grault. */
  optional int32 grault = 6;
  // ignored detached comments.
optional string leading_comments = 3;
Returns:The leadingComments.
/** * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * leading_detached_comments will keep paragraphs of comments that appear * before (but not connected to) the current element. Each paragraph, * separated by empty lines, will be one comment element in the repeated * field. * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * Examples: * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * // Detached comment for corge. This is not leading or trailing comments * // to qux or corge because there are blank lines separating it from * // both. * // Detached comment for corge paragraph 2. * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * // ignored detached comments. * </pre> * * <code>optional string leading_comments = 3;</code> * @return The leadingComments. */
public java.lang.String getLeadingComments() { java.lang.Object ref = leadingComments_; 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()) { leadingComments_ = s; } return s; } }
If this SourceCodeInfo represents a complete declaration, these are any
comments appearing before and after the declaration which appear to be
attached to the declaration.
A series of line comments appearing on consecutive lines, with no other
tokens appearing on those lines, will be treated as a single comment.
leading_detached_comments will keep paragraphs of comments that appear
before (but not connected to) the current element. Each paragraph,
separated by empty lines, will be one comment element in the repeated
field.
Only the comment content is provided; comment markers (e.g. //) are
stripped out.  For block comments, leading whitespace and an asterisk
will be stripped from the beginning of each line other than the first.
Newlines are included in the output.
Examples:
  optional int32 foo = 1;  // Comment attached to foo.
  // Comment attached to bar.
  optional int32 bar = 2;
  optional string baz = 3;
  // Comment attached to baz.
  // Another line attached to baz.
  // Comment attached to qux.
  //
  // Another line attached to qux.
  optional double qux = 4;
  // Detached comment for corge. This is not leading or trailing comments
  // to qux or corge because there are blank lines separating it from
  // both.
  // Detached comment for corge paragraph 2.
  optional string corge = 5;
  /* Block comment attached
   * to corge.  Leading asterisks
   * will be removed. */
  /* Block comment attached to
   * grault. */
  optional int32 grault = 6;
  // ignored detached comments.
optional string leading_comments = 3;
Returns:The bytes for leadingComments.
/** * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * leading_detached_comments will keep paragraphs of comments that appear * before (but not connected to) the current element. Each paragraph, * separated by empty lines, will be one comment element in the repeated * field. * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * Examples: * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * // Detached comment for corge. This is not leading or trailing comments * // to qux or corge because there are blank lines separating it from * // both. * // Detached comment for corge paragraph 2. * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * // ignored detached comments. * </pre> * * <code>optional string leading_comments = 3;</code> * @return The bytes for leadingComments. */
public com.google.protobuf.ByteString getLeadingCommentsBytes() { java.lang.Object ref = leadingComments_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); leadingComments_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TRAILING_COMMENTS_FIELD_NUMBER = 4; private volatile java.lang.Object trailingComments_;
optional string trailing_comments = 4;
Returns:Whether the trailingComments field is set.
/** * <code>optional string trailing_comments = 4;</code> * @return Whether the trailingComments field is set. */
public boolean hasTrailingComments() { return ((bitField0_ & 0x00000002) != 0); }
optional string trailing_comments = 4;
Returns:The trailingComments.
/** * <code>optional string trailing_comments = 4;</code> * @return The trailingComments. */
public java.lang.String getTrailingComments() { java.lang.Object ref = trailingComments_; 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()) { trailingComments_ = s; } return s; } }
optional string trailing_comments = 4;
Returns:The bytes for trailingComments.
/** * <code>optional string trailing_comments = 4;</code> * @return The bytes for trailingComments. */
public com.google.protobuf.ByteString getTrailingCommentsBytes() { java.lang.Object ref = trailingComments_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); trailingComments_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LEADING_DETACHED_COMMENTS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList leadingDetachedComments_;
repeated string leading_detached_comments = 6;
Returns:A list containing the leadingDetachedComments.
/** * <code>repeated string leading_detached_comments = 6;</code> * @return A list containing the leadingDetachedComments. */
public com.google.protobuf.ProtocolStringList getLeadingDetachedCommentsList() { return leadingDetachedComments_; }
repeated string leading_detached_comments = 6;
Returns:The count of leadingDetachedComments.
/** * <code>repeated string leading_detached_comments = 6;</code> * @return The count of leadingDetachedComments. */
public int getLeadingDetachedCommentsCount() { return leadingDetachedComments_.size(); }
repeated string leading_detached_comments = 6;
Params:
  • index – The index of the element to return.
Returns:The leadingDetachedComments at the given index.
/** * <code>repeated string leading_detached_comments = 6;</code> * @param index The index of the element to return. * @return The leadingDetachedComments at the given index. */
public java.lang.String getLeadingDetachedComments(int index) { return leadingDetachedComments_.get(index); }
repeated string leading_detached_comments = 6;
Params:
  • index – The index of the value to return.
Returns:The bytes of the leadingDetachedComments at the given index.
/** * <code>repeated string leading_detached_comments = 6;</code> * @param index The index of the value to return. * @return The bytes of the leadingDetachedComments at the given index. */
public com.google.protobuf.ByteString getLeadingDetachedCommentsBytes(int index) { return leadingDetachedComments_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getPathList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(pathMemoizedSerializedSize); } for (int i = 0; i < path_.size(); i++) { output.writeInt32NoTag(path_.getInt(i)); } if (getSpanList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(spanMemoizedSerializedSize); } for (int i = 0; i < span_.size(); i++) { output.writeInt32NoTag(span_.getInt(i)); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, leadingComments_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, trailingComments_); } for (int i = 0; i < leadingDetachedComments_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, leadingDetachedComments_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < path_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(path_.getInt(i)); } size += dataSize; if (!getPathList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } pathMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < span_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(span_.getInt(i)); } size += dataSize; if (!getSpanList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } spanMemoizedSerializedSize = dataSize; } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, leadingComments_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, trailingComments_); } { int dataSize = 0; for (int i = 0; i < leadingDetachedComments_.size(); i++) { dataSize += computeStringSizeNoTag(leadingDetachedComments_.getRaw(i)); } size += dataSize; size += 1 * getLeadingDetachedCommentsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location other = (com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location) obj; if (!getPathList() .equals(other.getPathList())) return false; if (!getSpanList() .equals(other.getSpanList())) return false; if (hasLeadingComments() != other.hasLeadingComments()) return false; if (hasLeadingComments()) { if (!getLeadingComments() .equals(other.getLeadingComments())) return false; } if (hasTrailingComments() != other.hasTrailingComments()) return false; if (hasTrailingComments()) { if (!getTrailingComments() .equals(other.getTrailingComments())) return false; } if (!getLeadingDetachedCommentsList() .equals(other.getLeadingDetachedCommentsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getPathCount() > 0) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPathList().hashCode(); } if (getSpanCount() > 0) { hash = (37 * hash) + SPAN_FIELD_NUMBER; hash = (53 * hash) + getSpanList().hashCode(); } if (hasLeadingComments()) { hash = (37 * hash) + LEADING_COMMENTS_FIELD_NUMBER; hash = (53 * hash) + getLeadingComments().hashCode(); } if (hasTrailingComments()) { hash = (37 * hash) + TRAILING_COMMENTS_FIELD_NUMBER; hash = (53 * hash) + getTrailingComments().hashCode(); } if (getLeadingDetachedCommentsCount() > 0) { hash = (37 * hash) + LEADING_DETACHED_COMMENTS_FIELD_NUMBER; hash = (53 * hash) + getLeadingDetachedCommentsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location 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.SourceCodeInfo.Location parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Protobuf type google.protobuf.SourceCodeInfo.Location
/** * Protobuf type {@code google.protobuf.SourceCodeInfo.Location} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.SourceCodeInfo.Location) com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.class, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); path_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); span_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000002); leadingComments_ = ""; bitField0_ = (bitField0_ & ~0x00000004); trailingComments_ = ""; bitField0_ = (bitField0_ & ~0x00000008); leadingDetachedComments_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_Location_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location build() { com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location buildPartial() { com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location result = new com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) != 0)) { path_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.path_ = path_; if (((bitField0_ & 0x00000002) != 0)) { span_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000002); } result.span_ = span_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000001; } result.leadingComments_ = leadingComments_; if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000002; } result.trailingComments_ = trailingComments_; if (((bitField0_ & 0x00000010) != 0)) { leadingDetachedComments_ = leadingDetachedComments_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); } result.leadingDetachedComments_ = leadingDetachedComments_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location) { return mergeFrom((com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location other) { if (other == com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.getDefaultInstance()) return this; if (!other.path_.isEmpty()) { if (path_.isEmpty()) { path_ = other.path_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePathIsMutable(); path_.addAll(other.path_); } onChanged(); } if (!other.span_.isEmpty()) { if (span_.isEmpty()) { span_ = other.span_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSpanIsMutable(); span_.addAll(other.span_); } onChanged(); } if (other.hasLeadingComments()) { bitField0_ |= 0x00000004; leadingComments_ = other.leadingComments_; onChanged(); } if (other.hasTrailingComments()) { bitField0_ |= 0x00000008; trailingComments_ = other.trailingComments_; onChanged(); } if (!other.leadingDetachedComments_.isEmpty()) { if (leadingDetachedComments_.isEmpty()) { leadingDetachedComments_ = other.leadingDetachedComments_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureLeadingDetachedCommentsIsMutable(); leadingDetachedComments_.addAll(other.leadingDetachedComments_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.Internal.IntList path_ = emptyIntList(); private void ensurePathIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { path_ = mutableCopy(path_); bitField0_ |= 0x00000001; } }
Identifies which part of the FileDescriptorProto was defined at this
location.
Each element is a field number or an index.  They form a path from
the root FileDescriptorProto to the place where the definition.  For
example, this path:
  [ 4, 3, 2, 7, 1 ]
refers to:
  file.message_type(3)  // 4, 3
      .field(7)         // 2, 7
      .name()           // 1
This is because FileDescriptorProto.message_type has field number 4:
  repeated DescriptorProto message_type = 4;
and DescriptorProto.field has field number 2:
  repeated FieldDescriptorProto field = 2;
and FieldDescriptorProto.name has field number 1:
  optional string name = 1;
Thus, the above path gives the location of a field name.  If we removed
the last element:
  [ 4, 3, 2, 7 ]
this path refers to the whole field declaration (from the beginning
of the label to the terminating semicolon).
repeated int32 path = 1 [packed = true];
Returns:A list containing the path.
/** * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @return A list containing the path. */
public java.util.List<java.lang.Integer> getPathList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(path_) : path_; }
Identifies which part of the FileDescriptorProto was defined at this
location.
Each element is a field number or an index.  They form a path from
the root FileDescriptorProto to the place where the definition.  For
example, this path:
  [ 4, 3, 2, 7, 1 ]
refers to:
  file.message_type(3)  // 4, 3
      .field(7)         // 2, 7
      .name()           // 1
This is because FileDescriptorProto.message_type has field number 4:
  repeated DescriptorProto message_type = 4;
and DescriptorProto.field has field number 2:
  repeated FieldDescriptorProto field = 2;
and FieldDescriptorProto.name has field number 1:
  optional string name = 1;
Thus, the above path gives the location of a field name.  If we removed
the last element:
  [ 4, 3, 2, 7 ]
this path refers to the whole field declaration (from the beginning
of the label to the terminating semicolon).
repeated int32 path = 1 [packed = true];
Returns:The count of path.
/** * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @return The count of path. */
public int getPathCount() { return path_.size(); }
Identifies which part of the FileDescriptorProto was defined at this
location.
Each element is a field number or an index.  They form a path from
the root FileDescriptorProto to the place where the definition.  For
example, this path:
  [ 4, 3, 2, 7, 1 ]
refers to:
  file.message_type(3)  // 4, 3
      .field(7)         // 2, 7
      .name()           // 1
This is because FileDescriptorProto.message_type has field number 4:
  repeated DescriptorProto message_type = 4;
and DescriptorProto.field has field number 2:
  repeated FieldDescriptorProto field = 2;
and FieldDescriptorProto.name has field number 1:
  optional string name = 1;
Thus, the above path gives the location of a field name.  If we removed
the last element:
  [ 4, 3, 2, 7 ]
this path refers to the whole field declaration (from the beginning
of the label to the terminating semicolon).
repeated int32 path = 1 [packed = true];
Params:
  • index – The index of the element to return.
Returns:The path at the given index.
/** * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @param index The index of the element to return. * @return The path at the given index. */
public int getPath(int index) { return path_.getInt(index); }
Identifies which part of the FileDescriptorProto was defined at this
location.
Each element is a field number or an index.  They form a path from
the root FileDescriptorProto to the place where the definition.  For
example, this path:
  [ 4, 3, 2, 7, 1 ]
refers to:
  file.message_type(3)  // 4, 3
      .field(7)         // 2, 7
      .name()           // 1
This is because FileDescriptorProto.message_type has field number 4:
  repeated DescriptorProto message_type = 4;
and DescriptorProto.field has field number 2:
  repeated FieldDescriptorProto field = 2;
and FieldDescriptorProto.name has field number 1:
  optional string name = 1;
Thus, the above path gives the location of a field name.  If we removed
the last element:
  [ 4, 3, 2, 7 ]
this path refers to the whole field declaration (from the beginning
of the label to the terminating semicolon).
repeated int32 path = 1 [packed = true];
Params:
  • index – The index to set the value at.
  • value – The path to set.
Returns:This builder for chaining.
/** * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @param index The index to set the value at. * @param value The path to set. * @return This builder for chaining. */
public Builder setPath( int index, int value) { ensurePathIsMutable(); path_.setInt(index, value); onChanged(); return this; }
Identifies which part of the FileDescriptorProto was defined at this
location.
Each element is a field number or an index.  They form a path from
the root FileDescriptorProto to the place where the definition.  For
example, this path:
  [ 4, 3, 2, 7, 1 ]
refers to:
  file.message_type(3)  // 4, 3
      .field(7)         // 2, 7
      .name()           // 1
This is because FileDescriptorProto.message_type has field number 4:
  repeated DescriptorProto message_type = 4;
and DescriptorProto.field has field number 2:
  repeated FieldDescriptorProto field = 2;
and FieldDescriptorProto.name has field number 1:
  optional string name = 1;
Thus, the above path gives the location of a field name.  If we removed
the last element:
  [ 4, 3, 2, 7 ]
this path refers to the whole field declaration (from the beginning
of the label to the terminating semicolon).
repeated int32 path = 1 [packed = true];
Params:
  • value – The path to add.
Returns:This builder for chaining.
/** * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @param value The path to add. * @return This builder for chaining. */
public Builder addPath(int value) { ensurePathIsMutable(); path_.addInt(value); onChanged(); return this; }
Identifies which part of the FileDescriptorProto was defined at this
location.
Each element is a field number or an index.  They form a path from
the root FileDescriptorProto to the place where the definition.  For
example, this path:
  [ 4, 3, 2, 7, 1 ]
refers to:
  file.message_type(3)  // 4, 3
      .field(7)         // 2, 7
      .name()           // 1
This is because FileDescriptorProto.message_type has field number 4:
  repeated DescriptorProto message_type = 4;
and DescriptorProto.field has field number 2:
  repeated FieldDescriptorProto field = 2;
and FieldDescriptorProto.name has field number 1:
  optional string name = 1;
Thus, the above path gives the location of a field name.  If we removed
the last element:
  [ 4, 3, 2, 7 ]
this path refers to the whole field declaration (from the beginning
of the label to the terminating semicolon).
repeated int32 path = 1 [packed = true];
Params:
  • values – The path to add.
Returns:This builder for chaining.
/** * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @param values The path to add. * @return This builder for chaining. */
public Builder addAllPath( java.lang.Iterable<? extends java.lang.Integer> values) { ensurePathIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, path_); onChanged(); return this; }
Identifies which part of the FileDescriptorProto was defined at this
location.
Each element is a field number or an index.  They form a path from
the root FileDescriptorProto to the place where the definition.  For
example, this path:
  [ 4, 3, 2, 7, 1 ]
refers to:
  file.message_type(3)  // 4, 3
      .field(7)         // 2, 7
      .name()           // 1
This is because FileDescriptorProto.message_type has field number 4:
  repeated DescriptorProto message_type = 4;
and DescriptorProto.field has field number 2:
  repeated FieldDescriptorProto field = 2;
and FieldDescriptorProto.name has field number 1:
  optional string name = 1;
Thus, the above path gives the location of a field name.  If we removed
the last element:
  [ 4, 3, 2, 7 ]
this path refers to the whole field declaration (from the beginning
of the label to the terminating semicolon).
repeated int32 path = 1 [packed = true];
Returns:This builder for chaining.
/** * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @return This builder for chaining. */
public Builder clearPath() { path_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private com.google.protobuf.Internal.IntList span_ = emptyIntList(); private void ensureSpanIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { span_ = mutableCopy(span_); bitField0_ |= 0x00000002; } }
Always has exactly three or four elements: start line, start column,
end line (optional, otherwise assumed same as start line), end column.
These are packed into a single field for efficiency.  Note that line
and column numbers are zero-based -- typically you will want to add
1 to each before displaying to a user.
repeated int32 span = 2 [packed = true];
Returns:A list containing the span.
/** * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> * * <code>repeated int32 span = 2 [packed = true];</code> * @return A list containing the span. */
public java.util.List<java.lang.Integer> getSpanList() { return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(span_) : span_; }
Always has exactly three or four elements: start line, start column,
end line (optional, otherwise assumed same as start line), end column.
These are packed into a single field for efficiency.  Note that line
and column numbers are zero-based -- typically you will want to add
1 to each before displaying to a user.
repeated int32 span = 2 [packed = true];
Returns:The count of span.
/** * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> * * <code>repeated int32 span = 2 [packed = true];</code> * @return The count of span. */
public int getSpanCount() { return span_.size(); }
Always has exactly three or four elements: start line, start column,
end line (optional, otherwise assumed same as start line), end column.
These are packed into a single field for efficiency.  Note that line
and column numbers are zero-based -- typically you will want to add
1 to each before displaying to a user.
repeated int32 span = 2 [packed = true];
Params:
  • index – The index of the element to return.
Returns:The span at the given index.
/** * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> * * <code>repeated int32 span = 2 [packed = true];</code> * @param index The index of the element to return. * @return The span at the given index. */
public int getSpan(int index) { return span_.getInt(index); }
Always has exactly three or four elements: start line, start column,
end line (optional, otherwise assumed same as start line), end column.
These are packed into a single field for efficiency.  Note that line
and column numbers are zero-based -- typically you will want to add
1 to each before displaying to a user.
repeated int32 span = 2 [packed = true];
Params:
  • index – The index to set the value at.
  • value – The span to set.
Returns:This builder for chaining.
/** * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> * * <code>repeated int32 span = 2 [packed = true];</code> * @param index The index to set the value at. * @param value The span to set. * @return This builder for chaining. */
public Builder setSpan( int index, int value) { ensureSpanIsMutable(); span_.setInt(index, value); onChanged(); return this; }
Always has exactly three or four elements: start line, start column,
end line (optional, otherwise assumed same as start line), end column.
These are packed into a single field for efficiency.  Note that line
and column numbers are zero-based -- typically you will want to add
1 to each before displaying to a user.
repeated int32 span = 2 [packed = true];
Params:
  • value – The span to add.
Returns:This builder for chaining.
/** * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> * * <code>repeated int32 span = 2 [packed = true];</code> * @param value The span to add. * @return This builder for chaining. */
public Builder addSpan(int value) { ensureSpanIsMutable(); span_.addInt(value); onChanged(); return this; }
Always has exactly three or four elements: start line, start column,
end line (optional, otherwise assumed same as start line), end column.
These are packed into a single field for efficiency.  Note that line
and column numbers are zero-based -- typically you will want to add
1 to each before displaying to a user.
repeated int32 span = 2 [packed = true];
Params:
  • values – The span to add.
Returns:This builder for chaining.
/** * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> * * <code>repeated int32 span = 2 [packed = true];</code> * @param values The span to add. * @return This builder for chaining. */
public Builder addAllSpan( java.lang.Iterable<? extends java.lang.Integer> values) { ensureSpanIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, span_); onChanged(); return this; }
Always has exactly three or four elements: start line, start column,
end line (optional, otherwise assumed same as start line), end column.
These are packed into a single field for efficiency.  Note that line
and column numbers are zero-based -- typically you will want to add
1 to each before displaying to a user.
repeated int32 span = 2 [packed = true];
Returns:This builder for chaining.
/** * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> * * <code>repeated int32 span = 2 [packed = true];</code> * @return This builder for chaining. */
public Builder clearSpan() { span_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private java.lang.Object leadingComments_ = "";
If this SourceCodeInfo represents a complete declaration, these are any
comments appearing before and after the declaration which appear to be
attached to the declaration.
A series of line comments appearing on consecutive lines, with no other
tokens appearing on those lines, will be treated as a single comment.
leading_detached_comments will keep paragraphs of comments that appear
before (but not connected to) the current element. Each paragraph,
separated by empty lines, will be one comment element in the repeated
field.
Only the comment content is provided; comment markers (e.g. //) are
stripped out.  For block comments, leading whitespace and an asterisk
will be stripped from the beginning of each line other than the first.
Newlines are included in the output.
Examples:
  optional int32 foo = 1;  // Comment attached to foo.
  // Comment attached to bar.
  optional int32 bar = 2;
  optional string baz = 3;
  // Comment attached to baz.
  // Another line attached to baz.
  // Comment attached to qux.
  //
  // Another line attached to qux.
  optional double qux = 4;
  // Detached comment for corge. This is not leading or trailing comments
  // to qux or corge because there are blank lines separating it from
  // both.
  // Detached comment for corge paragraph 2.
  optional string corge = 5;
  /* Block comment attached
   * to corge.  Leading asterisks
   * will be removed. */
  /* Block comment attached to
   * grault. */
  optional int32 grault = 6;
  // ignored detached comments.
optional string leading_comments = 3;
Returns:Whether the leadingComments field is set.
/** * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * leading_detached_comments will keep paragraphs of comments that appear * before (but not connected to) the current element. Each paragraph, * separated by empty lines, will be one comment element in the repeated * field. * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * Examples: * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * // Detached comment for corge. This is not leading or trailing comments * // to qux or corge because there are blank lines separating it from * // both. * // Detached comment for corge paragraph 2. * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * // ignored detached comments. * </pre> * * <code>optional string leading_comments = 3;</code> * @return Whether the leadingComments field is set. */
public boolean hasLeadingComments() { return ((bitField0_ & 0x00000004) != 0); }
If this SourceCodeInfo represents a complete declaration, these are any
comments appearing before and after the declaration which appear to be
attached to the declaration.
A series of line comments appearing on consecutive lines, with no other
tokens appearing on those lines, will be treated as a single comment.
leading_detached_comments will keep paragraphs of comments that appear
before (but not connected to) the current element. Each paragraph,
separated by empty lines, will be one comment element in the repeated
field.
Only the comment content is provided; comment markers (e.g. //) are
stripped out.  For block comments, leading whitespace and an asterisk
will be stripped from the beginning of each line other than the first.
Newlines are included in the output.
Examples:
  optional int32 foo = 1;  // Comment attached to foo.
  // Comment attached to bar.
  optional int32 bar = 2;
  optional string baz = 3;
  // Comment attached to baz.
  // Another line attached to baz.
  // Comment attached to qux.
  //
  // Another line attached to qux.
  optional double qux = 4;
  // Detached comment for corge. This is not leading or trailing comments
  // to qux or corge because there are blank lines separating it from
  // both.
  // Detached comment for corge paragraph 2.
  optional string corge = 5;
  /* Block comment attached
   * to corge.  Leading asterisks
   * will be removed. */
  /* Block comment attached to
   * grault. */
  optional int32 grault = 6;
  // ignored detached comments.
optional string leading_comments = 3;
Returns:The leadingComments.
/** * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * leading_detached_comments will keep paragraphs of comments that appear * before (but not connected to) the current element. Each paragraph, * separated by empty lines, will be one comment element in the repeated * field. * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * Examples: * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * // Detached comment for corge. This is not leading or trailing comments * // to qux or corge because there are blank lines separating it from * // both. * // Detached comment for corge paragraph 2. * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * // ignored detached comments. * </pre> * * <code>optional string leading_comments = 3;</code> * @return The leadingComments. */
public java.lang.String getLeadingComments() { java.lang.Object ref = leadingComments_; 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()) { leadingComments_ = s; } return s; } else { return (java.lang.String) ref; } }
If this SourceCodeInfo represents a complete declaration, these are any
comments appearing before and after the declaration which appear to be
attached to the declaration.
A series of line comments appearing on consecutive lines, with no other
tokens appearing on those lines, will be treated as a single comment.
leading_detached_comments will keep paragraphs of comments that appear
before (but not connected to) the current element. Each paragraph,
separated by empty lines, will be one comment element in the repeated
field.
Only the comment content is provided; comment markers (e.g. //) are
stripped out.  For block comments, leading whitespace and an asterisk
will be stripped from the beginning of each line other than the first.
Newlines are included in the output.
Examples:
  optional int32 foo = 1;  // Comment attached to foo.
  // Comment attached to bar.
  optional int32 bar = 2;
  optional string baz = 3;
  // Comment attached to baz.
  // Another line attached to baz.
  // Comment attached to qux.
  //
  // Another line attached to qux.
  optional double qux = 4;
  // Detached comment for corge. This is not leading or trailing comments
  // to qux or corge because there are blank lines separating it from
  // both.
  // Detached comment for corge paragraph 2.
  optional string corge = 5;
  /* Block comment attached
   * to corge.  Leading asterisks
   * will be removed. */
  /* Block comment attached to
   * grault. */
  optional int32 grault = 6;
  // ignored detached comments.
optional string leading_comments = 3;
Returns:The bytes for leadingComments.
/** * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * leading_detached_comments will keep paragraphs of comments that appear * before (but not connected to) the current element. Each paragraph, * separated by empty lines, will be one comment element in the repeated * field. * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * Examples: * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * // Detached comment for corge. This is not leading or trailing comments * // to qux or corge because there are blank lines separating it from * // both. * // Detached comment for corge paragraph 2. * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * // ignored detached comments. * </pre> * * <code>optional string leading_comments = 3;</code> * @return The bytes for leadingComments. */
public com.google.protobuf.ByteString getLeadingCommentsBytes() { java.lang.Object ref = leadingComments_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); leadingComments_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
If this SourceCodeInfo represents a complete declaration, these are any
comments appearing before and after the declaration which appear to be
attached to the declaration.
A series of line comments appearing on consecutive lines, with no other
tokens appearing on those lines, will be treated as a single comment.
leading_detached_comments will keep paragraphs of comments that appear
before (but not connected to) the current element. Each paragraph,
separated by empty lines, will be one comment element in the repeated
field.
Only the comment content is provided; comment markers (e.g. //) are
stripped out.  For block comments, leading whitespace and an asterisk
will be stripped from the beginning of each line other than the first.
Newlines are included in the output.
Examples:
  optional int32 foo = 1;  // Comment attached to foo.
  // Comment attached to bar.
  optional int32 bar = 2;
  optional string baz = 3;
  // Comment attached to baz.
  // Another line attached to baz.
  // Comment attached to qux.
  //
  // Another line attached to qux.
  optional double qux = 4;
  // Detached comment for corge. This is not leading or trailing comments
  // to qux or corge because there are blank lines separating it from
  // both.
  // Detached comment for corge paragraph 2.
  optional string corge = 5;
  /* Block comment attached
   * to corge.  Leading asterisks
   * will be removed. */
  /* Block comment attached to
   * grault. */
  optional int32 grault = 6;
  // ignored detached comments.
optional string leading_comments = 3;
Params:
  • value – The leadingComments to set.
Returns:This builder for chaining.
/** * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * leading_detached_comments will keep paragraphs of comments that appear * before (but not connected to) the current element. Each paragraph, * separated by empty lines, will be one comment element in the repeated * field. * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * Examples: * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * // Detached comment for corge. This is not leading or trailing comments * // to qux or corge because there are blank lines separating it from * // both. * // Detached comment for corge paragraph 2. * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * // ignored detached comments. * </pre> * * <code>optional string leading_comments = 3;</code> * @param value The leadingComments to set. * @return This builder for chaining. */
public Builder setLeadingComments( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; leadingComments_ = value; onChanged(); return this; }
If this SourceCodeInfo represents a complete declaration, these are any
comments appearing before and after the declaration which appear to be
attached to the declaration.
A series of line comments appearing on consecutive lines, with no other
tokens appearing on those lines, will be treated as a single comment.
leading_detached_comments will keep paragraphs of comments that appear
before (but not connected to) the current element. Each paragraph,
separated by empty lines, will be one comment element in the repeated
field.
Only the comment content is provided; comment markers (e.g. //) are
stripped out.  For block comments, leading whitespace and an asterisk
will be stripped from the beginning of each line other than the first.
Newlines are included in the output.
Examples:
  optional int32 foo = 1;  // Comment attached to foo.
  // Comment attached to bar.
  optional int32 bar = 2;
  optional string baz = 3;
  // Comment attached to baz.
  // Another line attached to baz.
  // Comment attached to qux.
  //
  // Another line attached to qux.
  optional double qux = 4;
  // Detached comment for corge. This is not leading or trailing comments
  // to qux or corge because there are blank lines separating it from
  // both.
  // Detached comment for corge paragraph 2.
  optional string corge = 5;
  /* Block comment attached
   * to corge.  Leading asterisks
   * will be removed. */
  /* Block comment attached to
   * grault. */
  optional int32 grault = 6;
  // ignored detached comments.
optional string leading_comments = 3;
Returns:This builder for chaining.
/** * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * leading_detached_comments will keep paragraphs of comments that appear * before (but not connected to) the current element. Each paragraph, * separated by empty lines, will be one comment element in the repeated * field. * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * Examples: * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * // Detached comment for corge. This is not leading or trailing comments * // to qux or corge because there are blank lines separating it from * // both. * // Detached comment for corge paragraph 2. * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * // ignored detached comments. * </pre> * * <code>optional string leading_comments = 3;</code> * @return This builder for chaining. */
public Builder clearLeadingComments() { bitField0_ = (bitField0_ & ~0x00000004); leadingComments_ = getDefaultInstance().getLeadingComments(); onChanged(); return this; }
If this SourceCodeInfo represents a complete declaration, these are any
comments appearing before and after the declaration which appear to be
attached to the declaration.
A series of line comments appearing on consecutive lines, with no other
tokens appearing on those lines, will be treated as a single comment.
leading_detached_comments will keep paragraphs of comments that appear
before (but not connected to) the current element. Each paragraph,
separated by empty lines, will be one comment element in the repeated
field.
Only the comment content is provided; comment markers (e.g. //) are
stripped out.  For block comments, leading whitespace and an asterisk
will be stripped from the beginning of each line other than the first.
Newlines are included in the output.
Examples:
  optional int32 foo = 1;  // Comment attached to foo.
  // Comment attached to bar.
  optional int32 bar = 2;
  optional string baz = 3;
  // Comment attached to baz.
  // Another line attached to baz.
  // Comment attached to qux.
  //
  // Another line attached to qux.
  optional double qux = 4;
  // Detached comment for corge. This is not leading or trailing comments
  // to qux or corge because there are blank lines separating it from
  // both.
  // Detached comment for corge paragraph 2.
  optional string corge = 5;
  /* Block comment attached
   * to corge.  Leading asterisks
   * will be removed. */
  /* Block comment attached to
   * grault. */
  optional int32 grault = 6;
  // ignored detached comments.
optional string leading_comments = 3;
Params:
  • value – The bytes for leadingComments to set.
Returns:This builder for chaining.
/** * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * leading_detached_comments will keep paragraphs of comments that appear * before (but not connected to) the current element. Each paragraph, * separated by empty lines, will be one comment element in the repeated * field. * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * Examples: * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * // Detached comment for corge. This is not leading or trailing comments * // to qux or corge because there are blank lines separating it from * // both. * // Detached comment for corge paragraph 2. * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * // ignored detached comments. * </pre> * * <code>optional string leading_comments = 3;</code> * @param value The bytes for leadingComments to set. * @return This builder for chaining. */
public Builder setLeadingCommentsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; leadingComments_ = value; onChanged(); return this; } private java.lang.Object trailingComments_ = "";
optional string trailing_comments = 4;
Returns:Whether the trailingComments field is set.
/** * <code>optional string trailing_comments = 4;</code> * @return Whether the trailingComments field is set. */
public boolean hasTrailingComments() { return ((bitField0_ & 0x00000008) != 0); }
optional string trailing_comments = 4;
Returns:The trailingComments.
/** * <code>optional string trailing_comments = 4;</code> * @return The trailingComments. */
public java.lang.String getTrailingComments() { java.lang.Object ref = trailingComments_; 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()) { trailingComments_ = s; } return s; } else { return (java.lang.String) ref; } }
optional string trailing_comments = 4;
Returns:The bytes for trailingComments.
/** * <code>optional string trailing_comments = 4;</code> * @return The bytes for trailingComments. */
public com.google.protobuf.ByteString getTrailingCommentsBytes() { java.lang.Object ref = trailingComments_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); trailingComments_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
optional string trailing_comments = 4;
Params:
  • value – The trailingComments to set.
Returns:This builder for chaining.
/** * <code>optional string trailing_comments = 4;</code> * @param value The trailingComments to set. * @return This builder for chaining. */
public Builder setTrailingComments( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; trailingComments_ = value; onChanged(); return this; }
optional string trailing_comments = 4;
Returns:This builder for chaining.
/** * <code>optional string trailing_comments = 4;</code> * @return This builder for chaining. */
public Builder clearTrailingComments() { bitField0_ = (bitField0_ & ~0x00000008); trailingComments_ = getDefaultInstance().getTrailingComments(); onChanged(); return this; }
optional string trailing_comments = 4;
Params:
  • value – The bytes for trailingComments to set.
Returns:This builder for chaining.
/** * <code>optional string trailing_comments = 4;</code> * @param value The bytes for trailingComments to set. * @return This builder for chaining. */
public Builder setTrailingCommentsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; trailingComments_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList leadingDetachedComments_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLeadingDetachedCommentsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { leadingDetachedComments_ = new com.google.protobuf.LazyStringArrayList(leadingDetachedComments_); bitField0_ |= 0x00000010; } }
repeated string leading_detached_comments = 6;
Returns:A list containing the leadingDetachedComments.
/** * <code>repeated string leading_detached_comments = 6;</code> * @return A list containing the leadingDetachedComments. */
public com.google.protobuf.ProtocolStringList getLeadingDetachedCommentsList() { return leadingDetachedComments_.getUnmodifiableView(); }
repeated string leading_detached_comments = 6;
Returns:The count of leadingDetachedComments.
/** * <code>repeated string leading_detached_comments = 6;</code> * @return The count of leadingDetachedComments. */
public int getLeadingDetachedCommentsCount() { return leadingDetachedComments_.size(); }
repeated string leading_detached_comments = 6;
Params:
  • index – The index of the element to return.
Returns:The leadingDetachedComments at the given index.
/** * <code>repeated string leading_detached_comments = 6;</code> * @param index The index of the element to return. * @return The leadingDetachedComments at the given index. */
public java.lang.String getLeadingDetachedComments(int index) { return leadingDetachedComments_.get(index); }
repeated string leading_detached_comments = 6;
Params:
  • index – The index of the value to return.
Returns:The bytes of the leadingDetachedComments at the given index.
/** * <code>repeated string leading_detached_comments = 6;</code> * @param index The index of the value to return. * @return The bytes of the leadingDetachedComments at the given index. */
public com.google.protobuf.ByteString getLeadingDetachedCommentsBytes(int index) { return leadingDetachedComments_.getByteString(index); }
repeated string leading_detached_comments = 6;
Params:
  • index – The index to set the value at.
  • value – The leadingDetachedComments to set.
Returns:This builder for chaining.
/** * <code>repeated string leading_detached_comments = 6;</code> * @param index The index to set the value at. * @param value The leadingDetachedComments to set. * @return This builder for chaining. */
public Builder setLeadingDetachedComments( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLeadingDetachedCommentsIsMutable(); leadingDetachedComments_.set(index, value); onChanged(); return this; }
repeated string leading_detached_comments = 6;
Params:
  • value – The leadingDetachedComments to add.
Returns:This builder for chaining.
/** * <code>repeated string leading_detached_comments = 6;</code> * @param value The leadingDetachedComments to add. * @return This builder for chaining. */
public Builder addLeadingDetachedComments( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLeadingDetachedCommentsIsMutable(); leadingDetachedComments_.add(value); onChanged(); return this; }
repeated string leading_detached_comments = 6;
Params:
  • values – The leadingDetachedComments to add.
Returns:This builder for chaining.
/** * <code>repeated string leading_detached_comments = 6;</code> * @param values The leadingDetachedComments to add. * @return This builder for chaining. */
public Builder addAllLeadingDetachedComments( java.lang.Iterable<java.lang.String> values) { ensureLeadingDetachedCommentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, leadingDetachedComments_); onChanged(); return this; }
repeated string leading_detached_comments = 6;
Returns:This builder for chaining.
/** * <code>repeated string leading_detached_comments = 6;</code> * @return This builder for chaining. */
public Builder clearLeadingDetachedComments() { leadingDetachedComments_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; }
repeated string leading_detached_comments = 6;
Params:
  • value – The bytes of the leadingDetachedComments to add.
Returns:This builder for chaining.
/** * <code>repeated string leading_detached_comments = 6;</code> * @param value The bytes of the leadingDetachedComments to add. * @return This builder for chaining. */
public Builder addLeadingDetachedCommentsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureLeadingDetachedCommentsIsMutable(); leadingDetachedComments_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.SourceCodeInfo.Location) } // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo.Location) private static final com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location(); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<Location> PARSER = new com.google.protobuf.AbstractParser<Location>() { @java.lang.Override public Location parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Location(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Location> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Location> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int LOCATION_FIELD_NUMBER = 1; private java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> location_;
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> getLocationList() { return location_; }
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> getLocationOrBuilderList() { return location_; }
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public int getLocationCount() { return location_.size(); }
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getLocation(int index) { return location_.get(index); }
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder getLocationOrBuilder( int index) { return location_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < location_.size(); i++) { output.writeMessage(1, location_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < location_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, location_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.SourceCodeInfo)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.SourceCodeInfo other = (com.google.protobuf.DescriptorProtos.SourceCodeInfo) obj; if (!getLocationList() .equals(other.getLocationList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getLocationCount() > 0) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocationList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo 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.SourceCodeInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.SourceCodeInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Encapsulates information about the original source file from which a
FileDescriptorProto was generated.
Protobuf type google.protobuf.SourceCodeInfo
/** * <pre> * Encapsulates information about the original source file from which a * FileDescriptorProto was generated. * </pre> * * Protobuf type {@code google.protobuf.SourceCodeInfo} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.SourceCodeInfo) com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.SourceCodeInfo.class, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.SourceCodeInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLocationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (locationBuilder_ == null) { location_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { locationBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.SourceCodeInfo getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.SourceCodeInfo build() { com.google.protobuf.DescriptorProtos.SourceCodeInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.SourceCodeInfo buildPartial() { com.google.protobuf.DescriptorProtos.SourceCodeInfo result = new com.google.protobuf.DescriptorProtos.SourceCodeInfo(this); int from_bitField0_ = bitField0_; if (locationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { location_ = java.util.Collections.unmodifiableList(location_); bitField0_ = (bitField0_ & ~0x00000001); } result.location_ = location_; } else { result.location_ = locationBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.SourceCodeInfo) { return mergeFrom((com.google.protobuf.DescriptorProtos.SourceCodeInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.SourceCodeInfo other) { if (other == com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance()) return this; if (locationBuilder_ == null) { if (!other.location_.isEmpty()) { if (location_.isEmpty()) { location_ = other.location_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLocationIsMutable(); location_.addAll(other.location_); } onChanged(); } } else { if (!other.location_.isEmpty()) { if (locationBuilder_.isEmpty()) { locationBuilder_.dispose(); locationBuilder_ = null; location_ = other.location_; bitField0_ = (bitField0_ & ~0x00000001); locationBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLocationFieldBuilder() : null; } else { locationBuilder_.addAllMessages(other.location_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.SourceCodeInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.SourceCodeInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> location_ = java.util.Collections.emptyList(); private void ensureLocationIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { location_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location>(location_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> locationBuilder_;
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> getLocationList() { if (locationBuilder_ == null) { return java.util.Collections.unmodifiableList(location_); } else { return locationBuilder_.getMessageList(); } }
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public int getLocationCount() { if (locationBuilder_ == null) { return location_.size(); } else { return locationBuilder_.getCount(); } }
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getLocation(int index) { if (locationBuilder_ == null) { return location_.get(index); } else { return locationBuilder_.getMessage(index); } }
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public Builder setLocation( int index, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationIsMutable(); location_.set(index, value); onChanged(); } else { locationBuilder_.setMessage(index, value); } return this; }
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public Builder setLocation( int index, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder builderForValue) { if (locationBuilder_ == null) { ensureLocationIsMutable(); location_.set(index, builderForValue.build()); onChanged(); } else { locationBuilder_.setMessage(index, builderForValue.build()); } return this; }
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public Builder addLocation(com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationIsMutable(); location_.add(value); onChanged(); } else { locationBuilder_.addMessage(value); } return this; }
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public Builder addLocation( int index, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationIsMutable(); location_.add(index, value); onChanged(); } else { locationBuilder_.addMessage(index, value); } return this; }
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public Builder addLocation( com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder builderForValue) { if (locationBuilder_ == null) { ensureLocationIsMutable(); location_.add(builderForValue.build()); onChanged(); } else { locationBuilder_.addMessage(builderForValue.build()); } return this; }
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public Builder addLocation( int index, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder builderForValue) { if (locationBuilder_ == null) { ensureLocationIsMutable(); location_.add(index, builderForValue.build()); onChanged(); } else { locationBuilder_.addMessage(index, builderForValue.build()); } return this; }
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public Builder addAllLocation( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> values) { if (locationBuilder_ == null) { ensureLocationIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, location_); onChanged(); } else { locationBuilder_.addAllMessages(values); } return this; }
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public Builder clearLocation() { if (locationBuilder_ == null) { location_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { locationBuilder_.clear(); } return this; }
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public Builder removeLocation(int index) { if (locationBuilder_ == null) { ensureLocationIsMutable(); location_.remove(index); onChanged(); } else { locationBuilder_.remove(index); } return this; }
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder getLocationBuilder( int index) { return getLocationFieldBuilder().getBuilder(index); }
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder getLocationOrBuilder( int index) { if (locationBuilder_ == null) { return location_.get(index); } else { return locationBuilder_.getMessageOrBuilder(index); } }
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> getLocationOrBuilderList() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(location_); } }
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder addLocationBuilder() { return getLocationFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.getDefaultInstance()); }
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder addLocationBuilder( int index) { return getLocationFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.getDefaultInstance()); }
A Location identifies a piece of source code in a .proto file which
corresponds to a particular definition.  This information is intended
to be useful to IDEs, code indexers, documentation generators, and similar
tools.
For example, say we have a file like:
  message Foo {
    optional string foo = 1;
  }
Let's look at just the field definition:
  optional string foo = 1;
  ^       ^^     ^^  ^  ^^^
  a       bc     de  f  ghi
We have the following locations:
  span   path               represents
  [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
  [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
  [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
  [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
  [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
Notes:
- A location may refer to a repeated field itself (i.e. not to any
  particular index within it).  This is used whenever a set of elements are
  logically enclosed in a single code segment.  For example, an entire
  extend block (possibly containing multiple extension definitions) will
  have an outer location whose path refers to the "extensions" repeated
  field without an index.
- Multiple locations may have the same path.  This happens when a single
  logical declaration is spread out across multiple places.  The most
  obvious example is the "extend" block again -- there may be multiple
  extend blocks in the same scope, each of which will have the same path.
- A location's span is not always a subset of its parent's span.  For
  example, the "extendee" of an extension declaration appears at the
  beginning of the "extend" block and is shared by all extensions within
  the block.
- Just because a location's span is a subset of some other location's span
  does not mean that it is a descendant.  For example, a "group" defines
  both a type and a field in a single declaration.  Thus, the locations
  corresponding to the type and field and their components will overlap.
- Code which tries to interpret locations should probably be designed to
  ignore those that it doesn't understand, as more types of locations could
  be recorded in the future.
repeated .google.protobuf.SourceCodeInfo.Location location = 1;
/** * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> * * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder> getLocationBuilderList() { return getLocationFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder>( location_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.SourceCodeInfo) } // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo) private static final com.google.protobuf.DescriptorProtos.SourceCodeInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.SourceCodeInfo(); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<SourceCodeInfo> PARSER = new com.google.protobuf.AbstractParser<SourceCodeInfo>() { @java.lang.Override public SourceCodeInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SourceCodeInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser<SourceCodeInfo> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<SourceCodeInfo> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.SourceCodeInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GeneratedCodeInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.GeneratedCodeInfo) com.google.protobuf.MessageOrBuilder {
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
java.util.List<com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation> getAnnotationList();
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation getAnnotation(int index);
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
int getAnnotationCount();
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
java.util.List<? extends com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder> getAnnotationOrBuilderList();
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder getAnnotationOrBuilder( int index); }
Describes the relationship between generated code and its original source
file. A GeneratedCodeInfo message is associated with only one generated
source file, but may contain references to different source .proto files.
Protobuf type google.protobuf.GeneratedCodeInfo
/** * <pre> * Describes the relationship between generated code and its original source * file. A GeneratedCodeInfo message is associated with only one generated * source file, but may contain references to different source .proto files. * </pre> * * Protobuf type {@code google.protobuf.GeneratedCodeInfo} */
public static final class GeneratedCodeInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.protobuf.GeneratedCodeInfo) GeneratedCodeInfoOrBuilder { private static final long serialVersionUID = 0L; // Use GeneratedCodeInfo.newBuilder() to construct. private GeneratedCodeInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private GeneratedCodeInfo() { annotation_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GeneratedCodeInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GeneratedCodeInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { annotation_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation>(); mutable_bitField0_ |= 0x00000001; } annotation_.add( input.readMessage(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.PARSER, extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { annotation_ = java.util.Collections.unmodifiableList(annotation_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_GeneratedCodeInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_GeneratedCodeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.class, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Builder.class); } public interface AnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.protobuf.GeneratedCodeInfo.Annotation) com.google.protobuf.MessageOrBuilder {
Identifies the element in the original source .proto file. This field
is formatted the same as SourceCodeInfo.Location.path.
repeated int32 path = 1 [packed = true];
Returns:A list containing the path.
/** * <pre> * Identifies the element in the original source .proto file. This field * is formatted the same as SourceCodeInfo.Location.path. * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @return A list containing the path. */
java.util.List<java.lang.Integer> getPathList();
Identifies the element in the original source .proto file. This field
is formatted the same as SourceCodeInfo.Location.path.
repeated int32 path = 1 [packed = true];
Returns:The count of path.
/** * <pre> * Identifies the element in the original source .proto file. This field * is formatted the same as SourceCodeInfo.Location.path. * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @return The count of path. */
int getPathCount();
Identifies the element in the original source .proto file. This field
is formatted the same as SourceCodeInfo.Location.path.
repeated int32 path = 1 [packed = true];
Params:
  • index – The index of the element to return.
Returns:The path at the given index.
/** * <pre> * Identifies the element in the original source .proto file. This field * is formatted the same as SourceCodeInfo.Location.path. * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @param index The index of the element to return. * @return The path at the given index. */
int getPath(int index);
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;
Returns:Whether the sourceFile field is set.
/** * <pre> * Identifies the filesystem path to the original source .proto. * </pre> * * <code>optional string source_file = 2;</code> * @return Whether the sourceFile field is set. */
boolean hasSourceFile();
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;
Returns:The sourceFile.
/** * <pre> * Identifies the filesystem path to the original source .proto. * </pre> * * <code>optional string source_file = 2;</code> * @return The sourceFile. */
java.lang.String getSourceFile();
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;
Returns:The bytes for sourceFile.
/** * <pre> * Identifies the filesystem path to the original source .proto. * </pre> * * <code>optional string source_file = 2;</code> * @return The bytes for sourceFile. */
com.google.protobuf.ByteString getSourceFileBytes();
Identifies the starting offset in bytes in the generated code
that relates to the identified object.
optional int32 begin = 3;
Returns:Whether the begin field is set.
/** * <pre> * Identifies the starting offset in bytes in the generated code * that relates to the identified object. * </pre> * * <code>optional int32 begin = 3;</code> * @return Whether the begin field is set. */
boolean hasBegin();
Identifies the starting offset in bytes in the generated code
that relates to the identified object.
optional int32 begin = 3;
Returns:The begin.
/** * <pre> * Identifies the starting offset in bytes in the generated code * that relates to the identified object. * </pre> * * <code>optional int32 begin = 3;</code> * @return The begin. */
int getBegin();
Identifies the ending offset in bytes in the generated code that
relates to the identified offset. The end offset should be one past
the last relevant byte (so the length of the text = end - begin).
optional int32 end = 4;
Returns:Whether the end field is set.
/** * <pre> * Identifies the ending offset in bytes in the generated code that * relates to the identified offset. The end offset should be one past * the last relevant byte (so the length of the text = end - begin). * </pre> * * <code>optional int32 end = 4;</code> * @return Whether the end field is set. */
boolean hasEnd();
Identifies the ending offset in bytes in the generated code that
relates to the identified offset. The end offset should be one past
the last relevant byte (so the length of the text = end - begin).
optional int32 end = 4;
Returns:The end.
/** * <pre> * Identifies the ending offset in bytes in the generated code that * relates to the identified offset. The end offset should be one past * the last relevant byte (so the length of the text = end - begin). * </pre> * * <code>optional int32 end = 4;</code> * @return The end. */
int getEnd(); }
Protobuf type google.protobuf.GeneratedCodeInfo.Annotation
/** * Protobuf type {@code google.protobuf.GeneratedCodeInfo.Annotation} */
public static final class Annotation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.protobuf.GeneratedCodeInfo.Annotation) AnnotationOrBuilder { private static final long serialVersionUID = 0L; // Use Annotation.newBuilder() to construct. private Annotation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Annotation() { path_ = emptyIntList(); sourceFile_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Annotation(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Annotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 8: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { path_ = newIntList(); mutable_bitField0_ |= 0x00000001; } path_.addInt(input.readInt32()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { path_ = newIntList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { path_.addInt(input.readInt32()); } input.popLimit(limit); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; sourceFile_ = bs; break; } case 24: { bitField0_ |= 0x00000002; begin_ = input.readInt32(); break; } case 32: { bitField0_ |= 0x00000004; end_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { path_.makeImmutable(); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_GeneratedCodeInfo_Annotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_GeneratedCodeInfo_Annotation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.class, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder.class); } private int bitField0_; public static final int PATH_FIELD_NUMBER = 1; private com.google.protobuf.Internal.IntList path_;
Identifies the element in the original source .proto file. This field
is formatted the same as SourceCodeInfo.Location.path.
repeated int32 path = 1 [packed = true];
Returns:A list containing the path.
/** * <pre> * Identifies the element in the original source .proto file. This field * is formatted the same as SourceCodeInfo.Location.path. * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @return A list containing the path. */
public java.util.List<java.lang.Integer> getPathList() { return path_; }
Identifies the element in the original source .proto file. This field
is formatted the same as SourceCodeInfo.Location.path.
repeated int32 path = 1 [packed = true];
Returns:The count of path.
/** * <pre> * Identifies the element in the original source .proto file. This field * is formatted the same as SourceCodeInfo.Location.path. * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @return The count of path. */
public int getPathCount() { return path_.size(); }
Identifies the element in the original source .proto file. This field
is formatted the same as SourceCodeInfo.Location.path.
repeated int32 path = 1 [packed = true];
Params:
  • index – The index of the element to return.
Returns:The path at the given index.
/** * <pre> * Identifies the element in the original source .proto file. This field * is formatted the same as SourceCodeInfo.Location.path. * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @param index The index of the element to return. * @return The path at the given index. */
public int getPath(int index) { return path_.getInt(index); } private int pathMemoizedSerializedSize = -1; public static final int SOURCE_FILE_FIELD_NUMBER = 2; private volatile java.lang.Object sourceFile_;
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;
Returns:Whether the sourceFile field is set.
/** * <pre> * Identifies the filesystem path to the original source .proto. * </pre> * * <code>optional string source_file = 2;</code> * @return Whether the sourceFile field is set. */
public boolean hasSourceFile() { return ((bitField0_ & 0x00000001) != 0); }
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;
Returns:The sourceFile.
/** * <pre> * Identifies the filesystem path to the original source .proto. * </pre> * * <code>optional string source_file = 2;</code> * @return The sourceFile. */
public java.lang.String getSourceFile() { java.lang.Object ref = sourceFile_; 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()) { sourceFile_ = s; } return s; } }
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;
Returns:The bytes for sourceFile.
/** * <pre> * Identifies the filesystem path to the original source .proto. * </pre> * * <code>optional string source_file = 2;</code> * @return The bytes for sourceFile. */
public com.google.protobuf.ByteString getSourceFileBytes() { java.lang.Object ref = sourceFile_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sourceFile_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BEGIN_FIELD_NUMBER = 3; private int begin_;
Identifies the starting offset in bytes in the generated code
that relates to the identified object.
optional int32 begin = 3;
Returns:Whether the begin field is set.
/** * <pre> * Identifies the starting offset in bytes in the generated code * that relates to the identified object. * </pre> * * <code>optional int32 begin = 3;</code> * @return Whether the begin field is set. */
public boolean hasBegin() { return ((bitField0_ & 0x00000002) != 0); }
Identifies the starting offset in bytes in the generated code
that relates to the identified object.
optional int32 begin = 3;
Returns:The begin.
/** * <pre> * Identifies the starting offset in bytes in the generated code * that relates to the identified object. * </pre> * * <code>optional int32 begin = 3;</code> * @return The begin. */
public int getBegin() { return begin_; } public static final int END_FIELD_NUMBER = 4; private int end_;
Identifies the ending offset in bytes in the generated code that
relates to the identified offset. The end offset should be one past
the last relevant byte (so the length of the text = end - begin).
optional int32 end = 4;
Returns:Whether the end field is set.
/** * <pre> * Identifies the ending offset in bytes in the generated code that * relates to the identified offset. The end offset should be one past * the last relevant byte (so the length of the text = end - begin). * </pre> * * <code>optional int32 end = 4;</code> * @return Whether the end field is set. */
public boolean hasEnd() { return ((bitField0_ & 0x00000004) != 0); }
Identifies the ending offset in bytes in the generated code that
relates to the identified offset. The end offset should be one past
the last relevant byte (so the length of the text = end - begin).
optional int32 end = 4;
Returns:The end.
/** * <pre> * Identifies the ending offset in bytes in the generated code that * relates to the identified offset. The end offset should be one past * the last relevant byte (so the length of the text = end - begin). * </pre> * * <code>optional int32 end = 4;</code> * @return The end. */
public int getEnd() { return end_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getPathList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(pathMemoizedSerializedSize); } for (int i = 0; i < path_.size(); i++) { output.writeInt32NoTag(path_.getInt(i)); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceFile_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(3, begin_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt32(4, end_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < path_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(path_.getInt(i)); } size += dataSize; if (!getPathList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } pathMemoizedSerializedSize = dataSize; } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceFile_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, begin_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, end_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation other = (com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation) obj; if (!getPathList() .equals(other.getPathList())) return false; if (hasSourceFile() != other.hasSourceFile()) return false; if (hasSourceFile()) { if (!getSourceFile() .equals(other.getSourceFile())) return false; } if (hasBegin() != other.hasBegin()) return false; if (hasBegin()) { if (getBegin() != other.getBegin()) return false; } if (hasEnd() != other.hasEnd()) return false; if (hasEnd()) { if (getEnd() != other.getEnd()) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getPathCount() > 0) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPathList().hashCode(); } if (hasSourceFile()) { hash = (37 * hash) + SOURCE_FILE_FIELD_NUMBER; hash = (53 * hash) + getSourceFile().hashCode(); } if (hasBegin()) { hash = (37 * hash) + BEGIN_FIELD_NUMBER; hash = (53 * hash) + getBegin(); } if (hasEnd()) { hash = (37 * hash) + END_FIELD_NUMBER; hash = (53 * hash) + getEnd(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation 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.GeneratedCodeInfo.Annotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Protobuf type google.protobuf.GeneratedCodeInfo.Annotation
/** * Protobuf type {@code google.protobuf.GeneratedCodeInfo.Annotation} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.GeneratedCodeInfo.Annotation) com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_GeneratedCodeInfo_Annotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_GeneratedCodeInfo_Annotation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.class, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); path_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); sourceFile_ = ""; bitField0_ = (bitField0_ & ~0x00000002); begin_ = 0; bitField0_ = (bitField0_ & ~0x00000004); end_ = 0; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_GeneratedCodeInfo_Annotation_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation build() { com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation buildPartial() { com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation result = new com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) != 0)) { path_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.path_ = path_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000001; } result.sourceFile_ = sourceFile_; if (((from_bitField0_ & 0x00000004) != 0)) { result.begin_ = begin_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.end_ = end_; to_bitField0_ |= 0x00000004; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation) { return mergeFrom((com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation other) { if (other == com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.getDefaultInstance()) return this; if (!other.path_.isEmpty()) { if (path_.isEmpty()) { path_ = other.path_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePathIsMutable(); path_.addAll(other.path_); } onChanged(); } if (other.hasSourceFile()) { bitField0_ |= 0x00000002; sourceFile_ = other.sourceFile_; onChanged(); } if (other.hasBegin()) { setBegin(other.getBegin()); } if (other.hasEnd()) { setEnd(other.getEnd()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.Internal.IntList path_ = emptyIntList(); private void ensurePathIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { path_ = mutableCopy(path_); bitField0_ |= 0x00000001; } }
Identifies the element in the original source .proto file. This field
is formatted the same as SourceCodeInfo.Location.path.
repeated int32 path = 1 [packed = true];
Returns:A list containing the path.
/** * <pre> * Identifies the element in the original source .proto file. This field * is formatted the same as SourceCodeInfo.Location.path. * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @return A list containing the path. */
public java.util.List<java.lang.Integer> getPathList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(path_) : path_; }
Identifies the element in the original source .proto file. This field
is formatted the same as SourceCodeInfo.Location.path.
repeated int32 path = 1 [packed = true];
Returns:The count of path.
/** * <pre> * Identifies the element in the original source .proto file. This field * is formatted the same as SourceCodeInfo.Location.path. * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @return The count of path. */
public int getPathCount() { return path_.size(); }
Identifies the element in the original source .proto file. This field
is formatted the same as SourceCodeInfo.Location.path.
repeated int32 path = 1 [packed = true];
Params:
  • index – The index of the element to return.
Returns:The path at the given index.
/** * <pre> * Identifies the element in the original source .proto file. This field * is formatted the same as SourceCodeInfo.Location.path. * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @param index The index of the element to return. * @return The path at the given index. */
public int getPath(int index) { return path_.getInt(index); }
Identifies the element in the original source .proto file. This field
is formatted the same as SourceCodeInfo.Location.path.
repeated int32 path = 1 [packed = true];
Params:
  • index – The index to set the value at.
  • value – The path to set.
Returns:This builder for chaining.
/** * <pre> * Identifies the element in the original source .proto file. This field * is formatted the same as SourceCodeInfo.Location.path. * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @param index The index to set the value at. * @param value The path to set. * @return This builder for chaining. */
public Builder setPath( int index, int value) { ensurePathIsMutable(); path_.setInt(index, value); onChanged(); return this; }
Identifies the element in the original source .proto file. This field
is formatted the same as SourceCodeInfo.Location.path.
repeated int32 path = 1 [packed = true];
Params:
  • value – The path to add.
Returns:This builder for chaining.
/** * <pre> * Identifies the element in the original source .proto file. This field * is formatted the same as SourceCodeInfo.Location.path. * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @param value The path to add. * @return This builder for chaining. */
public Builder addPath(int value) { ensurePathIsMutable(); path_.addInt(value); onChanged(); return this; }
Identifies the element in the original source .proto file. This field
is formatted the same as SourceCodeInfo.Location.path.
repeated int32 path = 1 [packed = true];
Params:
  • values – The path to add.
Returns:This builder for chaining.
/** * <pre> * Identifies the element in the original source .proto file. This field * is formatted the same as SourceCodeInfo.Location.path. * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @param values The path to add. * @return This builder for chaining. */
public Builder addAllPath( java.lang.Iterable<? extends java.lang.Integer> values) { ensurePathIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, path_); onChanged(); return this; }
Identifies the element in the original source .proto file. This field
is formatted the same as SourceCodeInfo.Location.path.
repeated int32 path = 1 [packed = true];
Returns:This builder for chaining.
/** * <pre> * Identifies the element in the original source .proto file. This field * is formatted the same as SourceCodeInfo.Location.path. * </pre> * * <code>repeated int32 path = 1 [packed = true];</code> * @return This builder for chaining. */
public Builder clearPath() { path_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private java.lang.Object sourceFile_ = "";
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;
Returns:Whether the sourceFile field is set.
/** * <pre> * Identifies the filesystem path to the original source .proto. * </pre> * * <code>optional string source_file = 2;</code> * @return Whether the sourceFile field is set. */
public boolean hasSourceFile() { return ((bitField0_ & 0x00000002) != 0); }
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;
Returns:The sourceFile.
/** * <pre> * Identifies the filesystem path to the original source .proto. * </pre> * * <code>optional string source_file = 2;</code> * @return The sourceFile. */
public java.lang.String getSourceFile() { java.lang.Object ref = sourceFile_; 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()) { sourceFile_ = s; } return s; } else { return (java.lang.String) ref; } }
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;
Returns:The bytes for sourceFile.
/** * <pre> * Identifies the filesystem path to the original source .proto. * </pre> * * <code>optional string source_file = 2;</code> * @return The bytes for sourceFile. */
public com.google.protobuf.ByteString getSourceFileBytes() { java.lang.Object ref = sourceFile_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sourceFile_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;
Params:
  • value – The sourceFile to set.
Returns:This builder for chaining.
/** * <pre> * Identifies the filesystem path to the original source .proto. * </pre> * * <code>optional string source_file = 2;</code> * @param value The sourceFile to set. * @return This builder for chaining. */
public Builder setSourceFile( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; sourceFile_ = value; onChanged(); return this; }
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;
Returns:This builder for chaining.
/** * <pre> * Identifies the filesystem path to the original source .proto. * </pre> * * <code>optional string source_file = 2;</code> * @return This builder for chaining. */
public Builder clearSourceFile() { bitField0_ = (bitField0_ & ~0x00000002); sourceFile_ = getDefaultInstance().getSourceFile(); onChanged(); return this; }
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;
Params:
  • value – The bytes for sourceFile to set.
Returns:This builder for chaining.
/** * <pre> * Identifies the filesystem path to the original source .proto. * </pre> * * <code>optional string source_file = 2;</code> * @param value The bytes for sourceFile to set. * @return This builder for chaining. */
public Builder setSourceFileBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; sourceFile_ = value; onChanged(); return this; } private int begin_ ;
Identifies the starting offset in bytes in the generated code
that relates to the identified object.
optional int32 begin = 3;
Returns:Whether the begin field is set.
/** * <pre> * Identifies the starting offset in bytes in the generated code * that relates to the identified object. * </pre> * * <code>optional int32 begin = 3;</code> * @return Whether the begin field is set. */
public boolean hasBegin() { return ((bitField0_ & 0x00000004) != 0); }
Identifies the starting offset in bytes in the generated code
that relates to the identified object.
optional int32 begin = 3;
Returns:The begin.
/** * <pre> * Identifies the starting offset in bytes in the generated code * that relates to the identified object. * </pre> * * <code>optional int32 begin = 3;</code> * @return The begin. */
public int getBegin() { return begin_; }
Identifies the starting offset in bytes in the generated code
that relates to the identified object.
optional int32 begin = 3;
Params:
  • value – The begin to set.
Returns:This builder for chaining.
/** * <pre> * Identifies the starting offset in bytes in the generated code * that relates to the identified object. * </pre> * * <code>optional int32 begin = 3;</code> * @param value The begin to set. * @return This builder for chaining. */
public Builder setBegin(int value) { bitField0_ |= 0x00000004; begin_ = value; onChanged(); return this; }
Identifies the starting offset in bytes in the generated code
that relates to the identified object.
optional int32 begin = 3;
Returns:This builder for chaining.
/** * <pre> * Identifies the starting offset in bytes in the generated code * that relates to the identified object. * </pre> * * <code>optional int32 begin = 3;</code> * @return This builder for chaining. */
public Builder clearBegin() { bitField0_ = (bitField0_ & ~0x00000004); begin_ = 0; onChanged(); return this; } private int end_ ;
Identifies the ending offset in bytes in the generated code that
relates to the identified offset. The end offset should be one past
the last relevant byte (so the length of the text = end - begin).
optional int32 end = 4;
Returns:Whether the end field is set.
/** * <pre> * Identifies the ending offset in bytes in the generated code that * relates to the identified offset. The end offset should be one past * the last relevant byte (so the length of the text = end - begin). * </pre> * * <code>optional int32 end = 4;</code> * @return Whether the end field is set. */
public boolean hasEnd() { return ((bitField0_ & 0x00000008) != 0); }
Identifies the ending offset in bytes in the generated code that
relates to the identified offset. The end offset should be one past
the last relevant byte (so the length of the text = end - begin).
optional int32 end = 4;
Returns:The end.
/** * <pre> * Identifies the ending offset in bytes in the generated code that * relates to the identified offset. The end offset should be one past * the last relevant byte (so the length of the text = end - begin). * </pre> * * <code>optional int32 end = 4;</code> * @return The end. */
public int getEnd() { return end_; }
Identifies the ending offset in bytes in the generated code that
relates to the identified offset. The end offset should be one past
the last relevant byte (so the length of the text = end - begin).
optional int32 end = 4;
Params:
  • value – The end to set.
Returns:This builder for chaining.
/** * <pre> * Identifies the ending offset in bytes in the generated code that * relates to the identified offset. The end offset should be one past * the last relevant byte (so the length of the text = end - begin). * </pre> * * <code>optional int32 end = 4;</code> * @param value The end to set. * @return This builder for chaining. */
public Builder setEnd(int value) { bitField0_ |= 0x00000008; end_ = value; onChanged(); return this; }
Identifies the ending offset in bytes in the generated code that
relates to the identified offset. The end offset should be one past
the last relevant byte (so the length of the text = end - begin).
optional int32 end = 4;
Returns:This builder for chaining.
/** * <pre> * Identifies the ending offset in bytes in the generated code that * relates to the identified offset. The end offset should be one past * the last relevant byte (so the length of the text = end - begin). * </pre> * * <code>optional int32 end = 4;</code> * @return This builder for chaining. */
public Builder clearEnd() { bitField0_ = (bitField0_ & ~0x00000008); end_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.GeneratedCodeInfo.Annotation) } // @@protoc_insertion_point(class_scope:google.protobuf.GeneratedCodeInfo.Annotation) private static final com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation(); } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<Annotation> PARSER = new com.google.protobuf.AbstractParser<Annotation>() { @java.lang.Override public Annotation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Annotation(input, extensionRegistry); } }; public static com.google.protobuf.Parser<Annotation> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Annotation> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ANNOTATION_FIELD_NUMBER = 1; private java.util.List<com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation> annotation_;
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation> getAnnotationList() { return annotation_; }
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder> getAnnotationOrBuilderList() { return annotation_; }
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public int getAnnotationCount() { return annotation_.size(); }
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation getAnnotation(int index) { return annotation_.get(index); }
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder getAnnotationOrBuilder( int index) { return annotation_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < annotation_.size(); i++) { output.writeMessage(1, annotation_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < annotation_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, annotation_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.GeneratedCodeInfo)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.GeneratedCodeInfo other = (com.google.protobuf.DescriptorProtos.GeneratedCodeInfo) obj; if (!getAnnotationList() .equals(other.getAnnotationList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getAnnotationCount() > 0) { hash = (37 * hash) + ANNOTATION_FIELD_NUMBER; hash = (53 * hash) + getAnnotationList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo 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.GeneratedCodeInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; }
Describes the relationship between generated code and its original source
file. A GeneratedCodeInfo message is associated with only one generated
source file, but may contain references to different source .proto files.
Protobuf type google.protobuf.GeneratedCodeInfo
/** * <pre> * Describes the relationship between generated code and its original source * file. A GeneratedCodeInfo message is associated with only one generated * source file, but may contain references to different source .proto files. * </pre> * * Protobuf type {@code google.protobuf.GeneratedCodeInfo} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.GeneratedCodeInfo) com.google.protobuf.DescriptorProtos.GeneratedCodeInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_GeneratedCodeInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_GeneratedCodeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.class, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAnnotationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (annotationBuilder_ == null) { annotation_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { annotationBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_GeneratedCodeInfo_descriptor; } @java.lang.Override public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo build() { com.google.protobuf.DescriptorProtos.GeneratedCodeInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo buildPartial() { com.google.protobuf.DescriptorProtos.GeneratedCodeInfo result = new com.google.protobuf.DescriptorProtos.GeneratedCodeInfo(this); int from_bitField0_ = bitField0_; if (annotationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { annotation_ = java.util.Collections.unmodifiableList(annotation_); bitField0_ = (bitField0_ & ~0x00000001); } result.annotation_ = annotation_; } else { result.annotation_ = annotationBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.GeneratedCodeInfo) { return mergeFrom((com.google.protobuf.DescriptorProtos.GeneratedCodeInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo other) { if (other == com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.getDefaultInstance()) return this; if (annotationBuilder_ == null) { if (!other.annotation_.isEmpty()) { if (annotation_.isEmpty()) { annotation_ = other.annotation_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAnnotationIsMutable(); annotation_.addAll(other.annotation_); } onChanged(); } } else { if (!other.annotation_.isEmpty()) { if (annotationBuilder_.isEmpty()) { annotationBuilder_.dispose(); annotationBuilder_ = null; annotation_ = other.annotation_; bitField0_ = (bitField0_ & ~0x00000001); annotationBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAnnotationFieldBuilder() : null; } else { annotationBuilder_.addAllMessages(other.annotation_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.GeneratedCodeInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List<com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation> annotation_ = java.util.Collections.emptyList(); private void ensureAnnotationIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { annotation_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation>(annotation_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder> annotationBuilder_;
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation> getAnnotationList() { if (annotationBuilder_ == null) { return java.util.Collections.unmodifiableList(annotation_); } else { return annotationBuilder_.getMessageList(); } }
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public int getAnnotationCount() { if (annotationBuilder_ == null) { return annotation_.size(); } else { return annotationBuilder_.getCount(); } }
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation getAnnotation(int index) { if (annotationBuilder_ == null) { return annotation_.get(index); } else { return annotationBuilder_.getMessage(index); } }
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public Builder setAnnotation( int index, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation value) { if (annotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAnnotationIsMutable(); annotation_.set(index, value); onChanged(); } else { annotationBuilder_.setMessage(index, value); } return this; }
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public Builder setAnnotation( int index, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder builderForValue) { if (annotationBuilder_ == null) { ensureAnnotationIsMutable(); annotation_.set(index, builderForValue.build()); onChanged(); } else { annotationBuilder_.setMessage(index, builderForValue.build()); } return this; }
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public Builder addAnnotation(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation value) { if (annotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAnnotationIsMutable(); annotation_.add(value); onChanged(); } else { annotationBuilder_.addMessage(value); } return this; }
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public Builder addAnnotation( int index, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation value) { if (annotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAnnotationIsMutable(); annotation_.add(index, value); onChanged(); } else { annotationBuilder_.addMessage(index, value); } return this; }
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public Builder addAnnotation( com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder builderForValue) { if (annotationBuilder_ == null) { ensureAnnotationIsMutable(); annotation_.add(builderForValue.build()); onChanged(); } else { annotationBuilder_.addMessage(builderForValue.build()); } return this; }
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public Builder addAnnotation( int index, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder builderForValue) { if (annotationBuilder_ == null) { ensureAnnotationIsMutable(); annotation_.add(index, builderForValue.build()); onChanged(); } else { annotationBuilder_.addMessage(index, builderForValue.build()); } return this; }
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public Builder addAllAnnotation( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation> values) { if (annotationBuilder_ == null) { ensureAnnotationIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, annotation_); onChanged(); } else { annotationBuilder_.addAllMessages(values); } return this; }
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public Builder clearAnnotation() { if (annotationBuilder_ == null) { annotation_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { annotationBuilder_.clear(); } return this; }
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public Builder removeAnnotation(int index) { if (annotationBuilder_ == null) { ensureAnnotationIsMutable(); annotation_.remove(index); onChanged(); } else { annotationBuilder_.remove(index); } return this; }
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder getAnnotationBuilder( int index) { return getAnnotationFieldBuilder().getBuilder(index); }
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder getAnnotationOrBuilder( int index) { if (annotationBuilder_ == null) { return annotation_.get(index); } else { return annotationBuilder_.getMessageOrBuilder(index); } }
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public java.util.List<? extends com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder> getAnnotationOrBuilderList() { if (annotationBuilder_ != null) { return annotationBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(annotation_); } }
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder addAnnotationBuilder() { return getAnnotationFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.getDefaultInstance()); }
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder addAnnotationBuilder( int index) { return getAnnotationFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.getDefaultInstance()); }
An Annotation connects some span of text in generated code to an element
of its generating .proto file.
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
/** * <pre> * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * </pre> * * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> */
public java.util.List<com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder> getAnnotationBuilderList() { return getAnnotationFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder> getAnnotationFieldBuilder() { if (annotationBuilder_ == null) { annotationBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder>( annotation_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); annotation_ = null; } return annotationBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.protobuf.GeneratedCodeInfo) } // @@protoc_insertion_point(class_scope:google.protobuf.GeneratedCodeInfo) private static final com.google.protobuf.DescriptorProtos.GeneratedCodeInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.GeneratedCodeInfo(); } public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser<GeneratedCodeInfo> PARSER = new com.google.protobuf.AbstractParser<GeneratedCodeInfo>() { @java.lang.Override public GeneratedCodeInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GeneratedCodeInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser<GeneratedCodeInfo> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<GeneratedCodeInfo> getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_FileDescriptorSet_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_FileDescriptorSet_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_FileDescriptorProto_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_FileDescriptorProto_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_DescriptorProto_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_DescriptorProto_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_DescriptorProto_ExtensionRange_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_DescriptorProto_ReservedRange_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_DescriptorProto_ReservedRange_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_ExtensionRangeOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_ExtensionRangeOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_FieldDescriptorProto_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_FieldDescriptorProto_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_OneofDescriptorProto_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_OneofDescriptorProto_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_EnumDescriptorProto_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_EnumDescriptorProto_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_EnumDescriptorProto_EnumReservedRange_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_EnumDescriptorProto_EnumReservedRange_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_EnumValueDescriptorProto_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_EnumValueDescriptorProto_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_ServiceDescriptorProto_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_ServiceDescriptorProto_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_MethodDescriptorProto_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_MethodDescriptorProto_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_FileOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_FileOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_MessageOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_MessageOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_FieldOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_FieldOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_OneofOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_OneofOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_EnumOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_EnumOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_EnumValueOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_EnumValueOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_ServiceOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_ServiceOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_MethodOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_MethodOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_UninterpretedOption_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_UninterpretedOption_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_UninterpretedOption_NamePart_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_UninterpretedOption_NamePart_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_SourceCodeInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_SourceCodeInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_SourceCodeInfo_Location_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_SourceCodeInfo_Location_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_GeneratedCodeInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_GeneratedCodeInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_GeneratedCodeInfo_Annotation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_protobuf_GeneratedCodeInfo_Annotation_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n google/protobuf/descriptor.proto\022\017goog" + "le.protobuf\"G\n\021FileDescriptorSet\0222\n\004file" + "\030\001 \003(\0132$.google.protobuf.FileDescriptorP" + "roto\"\333\003\n\023FileDescriptorProto\022\014\n\004name\030\001 \001" + "(\t\022\017\n\007package\030\002 \001(\t\022\022\n\ndependency\030\003 \003(\t\022" + "\031\n\021public_dependency\030\n \003(\005\022\027\n\017weak_depen" + "dency\030\013 \003(\005\0226\n\014message_type\030\004 \003(\0132 .goog" + "le.protobuf.DescriptorProto\0227\n\tenum_type" + "\030\005 \003(\0132$.google.protobuf.EnumDescriptorP" + "roto\0228\n\007service\030\006 \003(\0132\'.google.protobuf." + "ServiceDescriptorProto\0228\n\textension\030\007 \003(" + "\0132%.google.protobuf.FieldDescriptorProto" + "\022-\n\007options\030\010 \001(\0132\034.google.protobuf.File" + "Options\0229\n\020source_code_info\030\t \001(\0132\037.goog" + "le.protobuf.SourceCodeInfo\022\016\n\006syntax\030\014 \001" + "(\t\"\251\005\n\017DescriptorProto\022\014\n\004name\030\001 \001(\t\0224\n\005" + "field\030\002 \003(\0132%.google.protobuf.FieldDescr" + "iptorProto\0228\n\textension\030\006 \003(\0132%.google.p" + "rotobuf.FieldDescriptorProto\0225\n\013nested_t" + "ype\030\003 \003(\0132 .google.protobuf.DescriptorPr" + "oto\0227\n\tenum_type\030\004 \003(\0132$.google.protobuf" + ".EnumDescriptorProto\022H\n\017extension_range\030" + "\005 \003(\0132/.google.protobuf.DescriptorProto." + "ExtensionRange\0229\n\noneof_decl\030\010 \003(\0132%.goo" + "gle.protobuf.OneofDescriptorProto\0220\n\007opt" + "ions\030\007 \001(\0132\037.google.protobuf.MessageOpti" + "ons\022F\n\016reserved_range\030\t \003(\0132..google.pro" + "tobuf.DescriptorProto.ReservedRange\022\025\n\rr" + "eserved_name\030\n \003(\t\032e\n\016ExtensionRange\022\r\n\005" + "start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\0227\n\007options\030\003 \001(" + "\0132&.google.protobuf.ExtensionRangeOption" + "s\032+\n\rReservedRange\022\r\n\005start\030\001 \001(\005\022\013\n\003end" + "\030\002 \001(\005\"g\n\025ExtensionRangeOptions\022C\n\024unint" + "erpreted_option\030\347\007 \003(\0132$.google.protobuf" + ".UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\"\274\005\n\024Fiel" + "dDescriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n\006number" + "\030\003 \001(\005\022:\n\005label\030\004 \001(\0162+.google.protobuf." + "FieldDescriptorProto.Label\0228\n\004type\030\005 \001(\016" + "2*.google.protobuf.FieldDescriptorProto." + "Type\022\021\n\ttype_name\030\006 \001(\t\022\020\n\010extendee\030\002 \001(" + "\t\022\025\n\rdefault_value\030\007 \001(\t\022\023\n\013oneof_index\030" + "\t \001(\005\022\021\n\tjson_name\030\n \001(\t\022.\n\007options\030\010 \001(" + "\0132\035.google.protobuf.FieldOptions\"\266\002\n\004Typ" + "e\022\017\n\013TYPE_DOUBLE\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTY" + "PE_INT64\020\003\022\017\n\013TYPE_UINT64\020\004\022\016\n\nTYPE_INT3" + "2\020\005\022\020\n\014TYPE_FIXED64\020\006\022\020\n\014TYPE_FIXED32\020\007\022" + "\r\n\tTYPE_BOOL\020\010\022\017\n\013TYPE_STRING\020\t\022\016\n\nTYPE_" + "GROUP\020\n\022\020\n\014TYPE_MESSAGE\020\013\022\016\n\nTYPE_BYTES\020" + "\014\022\017\n\013TYPE_UINT32\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYP" + "E_SFIXED32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017\n\013TYPE_" + "SINT32\020\021\022\017\n\013TYPE_SINT64\020\022\"C\n\005Label\022\022\n\016LA" + "BEL_OPTIONAL\020\001\022\022\n\016LABEL_REQUIRED\020\002\022\022\n\016LA" + "BEL_REPEATED\020\003\"T\n\024OneofDescriptorProto\022\014" + "\n\004name\030\001 \001(\t\022.\n\007options\030\002 \001(\0132\035.google.p" + "rotobuf.OneofOptions\"\244\002\n\023EnumDescriptorP" + "roto\022\014\n\004name\030\001 \001(\t\0228\n\005value\030\002 \003(\0132).goog" + "le.protobuf.EnumValueDescriptorProto\022-\n\007" + "options\030\003 \001(\0132\034.google.protobuf.EnumOpti" + "ons\022N\n\016reserved_range\030\004 \003(\01326.google.pro" + "tobuf.EnumDescriptorProto.EnumReservedRa" + "nge\022\025\n\rreserved_name\030\005 \003(\t\032/\n\021EnumReserv" + "edRange\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"l\n\030E" + "numValueDescriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n" + "\006number\030\002 \001(\005\0222\n\007options\030\003 \001(\0132!.google." + "protobuf.EnumValueOptions\"\220\001\n\026ServiceDes" + "criptorProto\022\014\n\004name\030\001 \001(\t\0226\n\006method\030\002 \003" + "(\0132&.google.protobuf.MethodDescriptorPro" + "to\0220\n\007options\030\003 \001(\0132\037.google.protobuf.Se" + "rviceOptions\"\301\001\n\025MethodDescriptorProto\022\014" + "\n\004name\030\001 \001(\t\022\022\n\ninput_type\030\002 \001(\t\022\023\n\013outp" + "ut_type\030\003 \001(\t\022/\n\007options\030\004 \001(\0132\036.google." + "protobuf.MethodOptions\022\037\n\020client_streami" + "ng\030\005 \001(\010:\005false\022\037\n\020server_streaming\030\006 \001(" + "\010:\005false\"\246\006\n\013FileOptions\022\024\n\014java_package" + "\030\001 \001(\t\022\034\n\024java_outer_classname\030\010 \001(\t\022\"\n\023" + "java_multiple_files\030\n \001(\010:\005false\022)\n\035java" + "_generate_equals_and_hash\030\024 \001(\010B\002\030\001\022%\n\026j" + "ava_string_check_utf8\030\033 \001(\010:\005false\022F\n\014op" + "timize_for\030\t \001(\0162).google.protobuf.FileO" + "ptions.OptimizeMode:\005SPEED\022\022\n\ngo_package" + "\030\013 \001(\t\022\"\n\023cc_generic_services\030\020 \001(\010:\005fal" + "se\022$\n\025java_generic_services\030\021 \001(\010:\005false" + "\022\"\n\023py_generic_services\030\022 \001(\010:\005false\022#\n\024" + "php_generic_services\030* \001(\010:\005false\022\031\n\ndep" + "recated\030\027 \001(\010:\005false\022\037\n\020cc_enable_arenas" + "\030\037 \001(\010:\005false\022\031\n\021objc_class_prefix\030$ \001(\t" + "\022\030\n\020csharp_namespace\030% \001(\t\022\024\n\014swift_pref" + "ix\030\' \001(\t\022\030\n\020php_class_prefix\030( \001(\t\022\025\n\rph" + "p_namespace\030) \001(\t\022\036\n\026php_metadata_namesp" + "ace\030, \001(\t\022\024\n\014ruby_package\030- \001(\t\022C\n\024unint" + "erpreted_option\030\347\007 \003(\0132$.google.protobuf" + ".UninterpretedOption\":\n\014OptimizeMode\022\t\n\005" + "SPEED\020\001\022\r\n\tCODE_SIZE\020\002\022\020\n\014LITE_RUNTIME\020\003" + "*\t\010\350\007\020\200\200\200\200\002J\004\010&\020\'\"\362\001\n\016MessageOptions\022&\n\027" + "message_set_wire_format\030\001 \001(\010:\005false\022.\n\037" + "no_standard_descriptor_accessor\030\002 \001(\010:\005f" + "alse\022\031\n\ndeprecated\030\003 \001(\010:\005false\022\021\n\tmap_e" + "ntry\030\007 \001(\010\022C\n\024uninterpreted_option\030\347\007 \003(" + "\0132$.google.protobuf.UninterpretedOption*" + "\t\010\350\007\020\200\200\200\200\002J\004\010\010\020\tJ\004\010\t\020\n\"\236\003\n\014FieldOptions\022" + ":\n\005ctype\030\001 \001(\0162#.google.protobuf.FieldOp" + "tions.CType:\006STRING\022\016\n\006packed\030\002 \001(\010\022?\n\006j" + "stype\030\006 \001(\0162$.google.protobuf.FieldOptio" + "ns.JSType:\tJS_NORMAL\022\023\n\004lazy\030\005 \001(\010:\005fals" + "e\022\031\n\ndeprecated\030\003 \001(\010:\005false\022\023\n\004weak\030\n \001" + "(\010:\005false\022C\n\024uninterpreted_option\030\347\007 \003(\013" + "2$.google.protobuf.UninterpretedOption\"/" + "\n\005CType\022\n\n\006STRING\020\000\022\010\n\004CORD\020\001\022\020\n\014STRING_" + "PIECE\020\002\"5\n\006JSType\022\r\n\tJS_NORMAL\020\000\022\r\n\tJS_S" + "TRING\020\001\022\r\n\tJS_NUMBER\020\002*\t\010\350\007\020\200\200\200\200\002J\004\010\004\020\005\"" + "^\n\014OneofOptions\022C\n\024uninterpreted_option\030" + "\347\007 \003(\0132$.google.protobuf.UninterpretedOp" + "tion*\t\010\350\007\020\200\200\200\200\002\"\223\001\n\013EnumOptions\022\023\n\013allow" + "_alias\030\002 \001(\010\022\031\n\ndeprecated\030\003 \001(\010:\005false\022" + "C\n\024uninterpreted_option\030\347\007 \003(\0132$.google." + "protobuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002J" + "\004\010\005\020\006\"}\n\020EnumValueOptions\022\031\n\ndeprecated\030" + "\001 \001(\010:\005false\022C\n\024uninterpreted_option\030\347\007 " + "\003(\0132$.google.protobuf.UninterpretedOptio" + "n*\t\010\350\007\020\200\200\200\200\002\"{\n\016ServiceOptions\022\031\n\ndeprec" + "ated\030! \001(\010:\005false\022C\n\024uninterpreted_optio" + "n\030\347\007 \003(\0132$.google.protobuf.Uninterpreted" + "Option*\t\010\350\007\020\200\200\200\200\002\"\255\002\n\rMethodOptions\022\031\n\nd" + "eprecated\030! \001(\010:\005false\022_\n\021idempotency_le" + "vel\030\" \001(\0162/.google.protobuf.MethodOption" + "s.IdempotencyLevel:\023IDEMPOTENCY_UNKNOWN\022" + "C\n\024uninterpreted_option\030\347\007 \003(\0132$.google." + "protobuf.UninterpretedOption\"P\n\020Idempote" + "ncyLevel\022\027\n\023IDEMPOTENCY_UNKNOWN\020\000\022\023\n\017NO_" + "SIDE_EFFECTS\020\001\022\016\n\nIDEMPOTENT\020\002*\t\010\350\007\020\200\200\200\200" + "\002\"\236\002\n\023UninterpretedOption\022;\n\004name\030\002 \003(\0132" + "-.google.protobuf.UninterpretedOption.Na" + "mePart\022\030\n\020identifier_value\030\003 \001(\t\022\032\n\022posi" + "tive_int_value\030\004 \001(\004\022\032\n\022negative_int_val" + "ue\030\005 \001(\003\022\024\n\014double_value\030\006 \001(\001\022\024\n\014string" + "_value\030\007 \001(\014\022\027\n\017aggregate_value\030\010 \001(\t\0323\n" + "\010NamePart\022\021\n\tname_part\030\001 \002(\t\022\024\n\014is_exten" + "sion\030\002 \002(\010\"\325\001\n\016SourceCodeInfo\022:\n\010locatio" + "n\030\001 \003(\0132(.google.protobuf.SourceCodeInfo" + ".Location\032\206\001\n\010Location\022\020\n\004path\030\001 \003(\005B\002\020\001" + "\022\020\n\004span\030\002 \003(\005B\002\020\001\022\030\n\020leading_comments\030\003" + " \001(\t\022\031\n\021trailing_comments\030\004 \001(\t\022!\n\031leadi" + "ng_detached_comments\030\006 \003(\t\"\247\001\n\021Generated" + "CodeInfo\022A\n\nannotation\030\001 \003(\0132-.google.pr" + "otobuf.GeneratedCodeInfo.Annotation\032O\n\nA" + "nnotation\022\020\n\004path\030\001 \003(\005B\002\020\001\022\023\n\013source_fi" + "le\030\002 \001(\t\022\r\n\005begin\030\003 \001(\005\022\013\n\003end\030\004 \001(\005B\217\001\n" + "\023com.google.protobufB\020DescriptorProtosH\001" + "Z>github.com/golang/protobuf/protoc-gen-" + "go/descriptor;descriptor\370\001\001\242\002\003GPB\252\002\032Goog" + "le.Protobuf.Reflection" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_google_protobuf_FileDescriptorSet_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_protobuf_FileDescriptorSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_FileDescriptorSet_descriptor, new java.lang.String[] { "File", }); internal_static_google_protobuf_FileDescriptorProto_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_protobuf_FileDescriptorProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_FileDescriptorProto_descriptor, new java.lang.String[] { "Name", "Package", "Dependency", "PublicDependency", "WeakDependency", "MessageType", "EnumType", "Service", "Extension", "Options", "SourceCodeInfo", "Syntax", }); internal_static_google_protobuf_DescriptorProto_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_protobuf_DescriptorProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_DescriptorProto_descriptor, new java.lang.String[] { "Name", "Field", "Extension", "NestedType", "EnumType", "ExtensionRange", "OneofDecl", "Options", "ReservedRange", "ReservedName", }); internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor = internal_static_google_protobuf_DescriptorProto_descriptor.getNestedTypes().get(0); internal_static_google_protobuf_DescriptorProto_ExtensionRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor, new java.lang.String[] { "Start", "End", "Options", }); internal_static_google_protobuf_DescriptorProto_ReservedRange_descriptor = internal_static_google_protobuf_DescriptorProto_descriptor.getNestedTypes().get(1); internal_static_google_protobuf_DescriptorProto_ReservedRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_DescriptorProto_ReservedRange_descriptor, new java.lang.String[] { "Start", "End", }); internal_static_google_protobuf_ExtensionRangeOptions_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_google_protobuf_ExtensionRangeOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_ExtensionRangeOptions_descriptor, new java.lang.String[] { "UninterpretedOption", }); internal_static_google_protobuf_FieldDescriptorProto_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_protobuf_FieldDescriptorProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_FieldDescriptorProto_descriptor, new java.lang.String[] { "Name", "Number", "Label", "Type", "TypeName", "Extendee", "DefaultValue", "OneofIndex", "JsonName", "Options", }); internal_static_google_protobuf_OneofDescriptorProto_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_google_protobuf_OneofDescriptorProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_OneofDescriptorProto_descriptor, new java.lang.String[] { "Name", "Options", }); internal_static_google_protobuf_EnumDescriptorProto_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_google_protobuf_EnumDescriptorProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_EnumDescriptorProto_descriptor, new java.lang.String[] { "Name", "Value", "Options", "ReservedRange", "ReservedName", }); internal_static_google_protobuf_EnumDescriptorProto_EnumReservedRange_descriptor = internal_static_google_protobuf_EnumDescriptorProto_descriptor.getNestedTypes().get(0); internal_static_google_protobuf_EnumDescriptorProto_EnumReservedRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_EnumDescriptorProto_EnumReservedRange_descriptor, new java.lang.String[] { "Start", "End", }); internal_static_google_protobuf_EnumValueDescriptorProto_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_google_protobuf_EnumValueDescriptorProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_EnumValueDescriptorProto_descriptor, new java.lang.String[] { "Name", "Number", "Options", }); internal_static_google_protobuf_ServiceDescriptorProto_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_google_protobuf_ServiceDescriptorProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_ServiceDescriptorProto_descriptor, new java.lang.String[] { "Name", "Method", "Options", }); internal_static_google_protobuf_MethodDescriptorProto_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_google_protobuf_MethodDescriptorProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_MethodDescriptorProto_descriptor, new java.lang.String[] { "Name", "InputType", "OutputType", "Options", "ClientStreaming", "ServerStreaming", }); internal_static_google_protobuf_FileOptions_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_google_protobuf_FileOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_FileOptions_descriptor, new java.lang.String[] { "JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAndHash", "JavaStringCheckUtf8", "OptimizeFor", "GoPackage", "CcGenericServices", "JavaGenericServices", "PyGenericServices", "PhpGenericServices", "Deprecated", "CcEnableArenas", "ObjcClassPrefix", "CsharpNamespace", "SwiftPrefix", "PhpClassPrefix", "PhpNamespace", "PhpMetadataNamespace", "RubyPackage", "UninterpretedOption", }); internal_static_google_protobuf_MessageOptions_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_google_protobuf_MessageOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_MessageOptions_descriptor, new java.lang.String[] { "MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", "MapEntry", "UninterpretedOption", }); internal_static_google_protobuf_FieldOptions_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_google_protobuf_FieldOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_FieldOptions_descriptor, new java.lang.String[] { "Ctype", "Packed", "Jstype", "Lazy", "Deprecated", "Weak", "UninterpretedOption", }); internal_static_google_protobuf_OneofOptions_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_google_protobuf_OneofOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_OneofOptions_descriptor, new java.lang.String[] { "UninterpretedOption", }); internal_static_google_protobuf_EnumOptions_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_google_protobuf_EnumOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_EnumOptions_descriptor, new java.lang.String[] { "AllowAlias", "Deprecated", "UninterpretedOption", }); internal_static_google_protobuf_EnumValueOptions_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_google_protobuf_EnumValueOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_EnumValueOptions_descriptor, new java.lang.String[] { "Deprecated", "UninterpretedOption", }); internal_static_google_protobuf_ServiceOptions_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_google_protobuf_ServiceOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_ServiceOptions_descriptor, new java.lang.String[] { "Deprecated", "UninterpretedOption", }); internal_static_google_protobuf_MethodOptions_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_google_protobuf_MethodOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_MethodOptions_descriptor, new java.lang.String[] { "Deprecated", "IdempotencyLevel", "UninterpretedOption", }); internal_static_google_protobuf_UninterpretedOption_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_google_protobuf_UninterpretedOption_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_UninterpretedOption_descriptor, new java.lang.String[] { "Name", "IdentifierValue", "PositiveIntValue", "NegativeIntValue", "DoubleValue", "StringValue", "AggregateValue", }); internal_static_google_protobuf_UninterpretedOption_NamePart_descriptor = internal_static_google_protobuf_UninterpretedOption_descriptor.getNestedTypes().get(0); internal_static_google_protobuf_UninterpretedOption_NamePart_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_UninterpretedOption_NamePart_descriptor, new java.lang.String[] { "NamePart", "IsExtension", }); internal_static_google_protobuf_SourceCodeInfo_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_google_protobuf_SourceCodeInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_SourceCodeInfo_descriptor, new java.lang.String[] { "Location", }); internal_static_google_protobuf_SourceCodeInfo_Location_descriptor = internal_static_google_protobuf_SourceCodeInfo_descriptor.getNestedTypes().get(0); internal_static_google_protobuf_SourceCodeInfo_Location_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_SourceCodeInfo_Location_descriptor, new java.lang.String[] { "Path", "Span", "LeadingComments", "TrailingComments", "LeadingDetachedComments", }); internal_static_google_protobuf_GeneratedCodeInfo_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_google_protobuf_GeneratedCodeInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_GeneratedCodeInfo_descriptor, new java.lang.String[] { "Annotation", }); internal_static_google_protobuf_GeneratedCodeInfo_Annotation_descriptor = internal_static_google_protobuf_GeneratedCodeInfo_descriptor.getNestedTypes().get(0); internal_static_google_protobuf_GeneratedCodeInfo_Annotation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_protobuf_GeneratedCodeInfo_Annotation_descriptor, new java.lang.String[] { "Path", "SourceFile", "Begin", "End", }); } // @@protoc_insertion_point(outer_class_scope) }