diff options
Diffstat (limited to 'src/main/java/com/google')
65 files changed, 0 insertions, 74376 deletions
diff --git a/src/main/java/com/google/protobuf/Any.java b/src/main/java/com/google/protobuf/Any.java deleted file mode 100644 index 74b3b7a..0000000 --- a/src/main/java/com/google/protobuf/Any.java +++ /dev/null @@ -1,1072 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/any.proto - -package com.google.protobuf; - -/** - * <pre> - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * // or ... - * if (any.isSameTypeAs(Foo.getDefaultInstance())) { - * foo = any.unpack(Foo.getDefaultInstance()); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := anypb.New(foo) - * if err != nil { - * ... - * } - * ... - * foo := &pb.Foo{} - * if err := any.UnmarshalTo(foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * JSON - * - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": <string>, - * "lastName": <string> - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - * </pre> - * - * Protobuf type {@code google.protobuf.Any} - */ -public final class Any extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.Any) - AnyOrBuilder { -private static final long serialVersionUID = 0L; - // Use Any.newBuilder() to construct. - private Any(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Any() { - typeUrl_ = ""; - value_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Any(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.AnyProto.internal_static_google_protobuf_Any_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.AnyProto.internal_static_google_protobuf_Any_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Any.class, com.google.protobuf.Any.Builder.class); - } - - private static String getTypeUrl( - java.lang.String typeUrlPrefix, - com.google.protobuf.Descriptors.Descriptor descriptor) { - return typeUrlPrefix.endsWith("/") - ? typeUrlPrefix + descriptor.getFullName() - : typeUrlPrefix + "/" + descriptor.getFullName(); - } - - private static String getTypeNameFromTypeUrl( - java.lang.String typeUrl) { - int pos = typeUrl.lastIndexOf('/'); - return pos == -1 ? "" : typeUrl.substring(pos + 1); - } - - public static <T extends com.google.protobuf.Message> Any pack( - T message) { - return Any.newBuilder() - .setTypeUrl(getTypeUrl("type.googleapis.com", - message.getDescriptorForType())) - .setValue(message.toByteString()) - .build(); - } - - /** - * Packs a message using the given type URL prefix. The type URL will - * be constructed by concatenating the message type's full name to the - * prefix with an optional "/" separator if the prefix doesn't end - * with "/" already. - */ - public static <T extends com.google.protobuf.Message> Any pack( - T message, java.lang.String typeUrlPrefix) { - return Any.newBuilder() - .setTypeUrl(getTypeUrl(typeUrlPrefix, - message.getDescriptorForType())) - .setValue(message.toByteString()) - .build(); - } - - public <T extends com.google.protobuf.Message> boolean is( - java.lang.Class<T> clazz) { - T defaultInstance = - com.google.protobuf.Internal.getDefaultInstance(clazz); - return getTypeNameFromTypeUrl(getTypeUrl()).equals( - defaultInstance.getDescriptorForType().getFullName()); - } - - public boolean isSameTypeAs(com.google.protobuf.Message message) { - return getTypeNameFromTypeUrl(getTypeUrl()).equals( - message.getDescriptorForType().getFullName()); - } - - @SuppressWarnings("serial") - private volatile com.google.protobuf.Message cachedUnpackValue; - - @java.lang.SuppressWarnings("unchecked") - public <T extends com.google.protobuf.Message> T unpack( - java.lang.Class<T> clazz) - throws com.google.protobuf.InvalidProtocolBufferException { - boolean invalidClazz = false; - if (cachedUnpackValue != null) { - if (cachedUnpackValue.getClass() == clazz) { - return (T) cachedUnpackValue; - } - invalidClazz = true; - } - if (invalidClazz || !is(clazz)) { - throw new com.google.protobuf.InvalidProtocolBufferException( - "Type of the Any message does not match the given class."); - } - T defaultInstance = - com.google.protobuf.Internal.getDefaultInstance(clazz); - T result = (T) defaultInstance.getParserForType() - .parseFrom(getValue()); - cachedUnpackValue = result; - return result; - } - - @java.lang.SuppressWarnings("unchecked") - public <T extends com.google.protobuf.Message> T unpackSameTypeAs(T message) - throws com.google.protobuf.InvalidProtocolBufferException { - boolean invalidValue = false; - if (cachedUnpackValue != null) { - if (cachedUnpackValue.getClass() == message.getClass()) { - return (T) cachedUnpackValue; - } - invalidValue = true; - } - if (invalidValue || !isSameTypeAs(message)) { - throw new com.google.protobuf.InvalidProtocolBufferException( - "Type of the Any message does not match the given exemplar."); - } - T result = (T) message.getParserForType().parseFrom(getValue()); - cachedUnpackValue = result; - return result; - } - - public static final int TYPE_URL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object typeUrl_ = ""; - /** - * <pre> - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - * </pre> - * - * <code>string type_url = 1;</code> - * @return The typeUrl. - */ - @java.lang.Override - public java.lang.String getTypeUrl() { - java.lang.Object ref = typeUrl_; - 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(); - typeUrl_ = s; - return s; - } - } - /** - * <pre> - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - * </pre> - * - * <code>string type_url = 1;</code> - * @return The bytes for typeUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTypeUrlBytes() { - java.lang.Object ref = typeUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - typeUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * <pre> - * Must be a valid serialized protocol buffer of the above specified type. - * </pre> - * - * <code>bytes value = 2;</code> - * @return The value. - */ - @java.lang.Override - public com.google.protobuf.ByteString getValue() { - return value_; - } - - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeUrl_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, typeUrl_); - } - if (!value_.isEmpty()) { - output.writeBytes(2, value_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeUrl_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, typeUrl_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, value_); - } - size += getUnknownFields().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.Any)) { - return super.equals(obj); - } - com.google.protobuf.Any other = (com.google.protobuf.Any) obj; - - if (!getTypeUrl() - .equals(other.getTypeUrl())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_URL_FIELD_NUMBER; - hash = (53 * hash) + getTypeUrl().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.Any parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Any 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.Any parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Any 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.Any parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Any parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.Any parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Any 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.Any parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.Any 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.Any parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Any 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.Any 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; - } - /** - * <pre> - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * // or ... - * if (any.isSameTypeAs(Foo.getDefaultInstance())) { - * foo = any.unpack(Foo.getDefaultInstance()); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := anypb.New(foo) - * if err != nil { - * ... - * } - * ... - * foo := &pb.Foo{} - * if err := any.UnmarshalTo(foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * JSON - * - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": <string>, - * "lastName": <string> - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - * </pre> - * - * Protobuf type {@code google.protobuf.Any} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.Any) - com.google.protobuf.AnyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.AnyProto.internal_static_google_protobuf_Any_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.AnyProto.internal_static_google_protobuf_Any_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Any.class, com.google.protobuf.Any.Builder.class); - } - - // Construct using com.google.protobuf.Any.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - typeUrl_ = ""; - value_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.AnyProto.internal_static_google_protobuf_Any_descriptor; - } - - @java.lang.Override - public com.google.protobuf.Any getDefaultInstanceForType() { - return com.google.protobuf.Any.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.Any build() { - com.google.protobuf.Any result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.Any buildPartial() { - com.google.protobuf.Any result = new com.google.protobuf.Any(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.Any result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.typeUrl_ = typeUrl_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.value_ = value_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.Any) { - return mergeFrom((com.google.protobuf.Any)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.Any other) { - if (other == com.google.protobuf.Any.getDefaultInstance()) return this; - if (!other.getTypeUrl().isEmpty()) { - typeUrl_ = other.typeUrl_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - typeUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - value_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object typeUrl_ = ""; - /** - * <pre> - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - * </pre> - * - * <code>string type_url = 1;</code> - * @return The typeUrl. - */ - public java.lang.String getTypeUrl() { - java.lang.Object ref = typeUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - typeUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <pre> - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - * </pre> - * - * <code>string type_url = 1;</code> - * @return The bytes for typeUrl. - */ - public com.google.protobuf.ByteString - getTypeUrlBytes() { - java.lang.Object ref = typeUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - typeUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <pre> - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - * </pre> - * - * <code>string type_url = 1;</code> - * @param value The typeUrl to set. - * @return This builder for chaining. - */ - public Builder setTypeUrl( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - typeUrl_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - * </pre> - * - * <code>string type_url = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTypeUrl() { - typeUrl_ = getDefaultInstance().getTypeUrl(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * <pre> - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - * </pre> - * - * <code>string type_url = 1;</code> - * @param value The bytes for typeUrl to set. - * @return This builder for chaining. - */ - public Builder setTypeUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - typeUrl_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * <pre> - * Must be a valid serialized protocol buffer of the above specified type. - * </pre> - * - * <code>bytes value = 2;</code> - * @return The value. - */ - @java.lang.Override - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * <pre> - * Must be a valid serialized protocol buffer of the above specified type. - * </pre> - * - * <code>bytes value = 2;</code> - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - value_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <pre> - * Must be a valid serialized protocol buffer of the above specified type. - * </pre> - * - * <code>bytes value = 2;</code> - * @return This builder for chaining. - */ - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000002); - value_ = getDefaultInstance().getValue(); - 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.Any) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.Any) - private static final com.google.protobuf.Any DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.Any(); - } - - public static com.google.protobuf.Any getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Any> - PARSER = new com.google.protobuf.AbstractParser<Any>() { - @java.lang.Override - public Any parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<Any> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Any> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Any getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/AnyOrBuilder.java b/src/main/java/com/google/protobuf/AnyOrBuilder.java deleted file mode 100644 index 1571350..0000000 --- a/src/main/java/com/google/protobuf/AnyOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/any.proto - -package com.google.protobuf; - -public interface AnyOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.Any) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - * </pre> - * - * <code>string type_url = 1;</code> - * @return The typeUrl. - */ - java.lang.String getTypeUrl(); - /** - * <pre> - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - * </pre> - * - * <code>string type_url = 1;</code> - * @return The bytes for typeUrl. - */ - com.google.protobuf.ByteString - getTypeUrlBytes(); - - /** - * <pre> - * Must be a valid serialized protocol buffer of the above specified type. - * </pre> - * - * <code>bytes value = 2;</code> - * @return The value. - */ - com.google.protobuf.ByteString getValue(); -} diff --git a/src/main/java/com/google/protobuf/AnyProto.java b/src/main/java/com/google/protobuf/AnyProto.java deleted file mode 100644 index 6ed7de5..0000000 --- a/src/main/java/com/google/protobuf/AnyProto.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/any.proto - -package com.google.protobuf; - -public final class AnyProto { - private AnyProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_Any_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_Any_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\031google/protobuf/any.proto\022\017google.prot" + - "obuf\"&\n\003Any\022\020\n\010type_url\030\001 \001(\t\022\r\n\005value\030\002" + - " \001(\014Bv\n\023com.google.protobufB\010AnyProtoP\001Z" + - ",google.golang.org/protobuf/types/known/" + - "anypb\242\002\003GPB\252\002\036Google.Protobuf.WellKnownT" + - "ypesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_protobuf_Any_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_protobuf_Any_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_Any_descriptor, - new java.lang.String[] { "TypeUrl", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/com/google/protobuf/Api.java b/src/main/java/com/google/protobuf/Api.java deleted file mode 100644 index 4cc32bb..0000000 --- a/src/main/java/com/google/protobuf/Api.java +++ /dev/null @@ -1,2549 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/api.proto - -package com.google.protobuf; - -/** - * <pre> - * Api is a light-weight descriptor for an API Interface. - * - * Interfaces are also described as "protocol buffer services" in some contexts, - * such as by the "service" keyword in a .proto file, but they are different - * from API Services, which represent a concrete implementation of an interface - * as opposed to simply a description of methods and bindings. They are also - * sometimes simply referred to as "APIs" in other contexts, such as the name of - * this message itself. See https://cloud.google.com/apis/design/glossary for - * detailed terminology. - * </pre> - * - * Protobuf type {@code google.protobuf.Api} - */ -public final class Api extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.Api) - ApiOrBuilder { -private static final long serialVersionUID = 0L; - // Use Api.newBuilder() to construct. - private Api(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Api() { - name_ = ""; - methods_ = java.util.Collections.emptyList(); - options_ = java.util.Collections.emptyList(); - version_ = ""; - mixins_ = java.util.Collections.emptyList(); - syntax_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Api(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.ApiProto.internal_static_google_protobuf_Api_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.ApiProto.internal_static_google_protobuf_Api_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Api.class, com.google.protobuf.Api.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * <pre> - * The fully qualified name of this interface, including package name - * followed by the interface's simple name. - * </pre> - * - * <code>string name = 1;</code> - * @return The name. - */ - @java.lang.Override - 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(); - name_ = s; - return s; - } - } - /** - * <pre> - * The fully qualified name of this interface, including package name - * followed by the interface's simple name. - * </pre> - * - * <code>string name = 1;</code> - * @return The bytes for name. - */ - @java.lang.Override - 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 METHODS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.Method> methods_; - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.Method> getMethodsList() { - return methods_; - } - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.MethodOrBuilder> - getMethodsOrBuilderList() { - return methods_; - } - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - @java.lang.Override - public int getMethodsCount() { - return methods_.size(); - } - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - @java.lang.Override - public com.google.protobuf.Method getMethods(int index) { - return methods_.get(index); - } - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - @java.lang.Override - public com.google.protobuf.MethodOrBuilder getMethodsOrBuilder( - int index) { - return methods_.get(index); - } - - public static final int OPTIONS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.Option> options_; - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.Option> getOptionsList() { - return options_; - } - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.OptionOrBuilder> - getOptionsOrBuilderList() { - return options_; - } - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - @java.lang.Override - public int getOptionsCount() { - return options_.size(); - } - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - @java.lang.Override - public com.google.protobuf.Option getOptions(int index) { - return options_.get(index); - } - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - @java.lang.Override - public com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( - int index) { - return options_.get(index); - } - - public static final int VERSION_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object version_ = ""; - /** - * <pre> - * A version string for this interface. If specified, must have the form - * `major-version.minor-version`, as in `1.10`. If the minor version is - * omitted, it defaults to zero. If the entire version field is empty, the - * major version is derived from the package name, as outlined below. If the - * field is not empty, the version in the package name will be verified to be - * consistent with what is provided here. - * - * The versioning schema uses [semantic - * versioning](http://semver.org) where the major version number - * indicates a breaking change and the minor version an additive, - * non-breaking change. Both version numbers are signals to users - * what to expect from different versions, and should be carefully - * chosen based on the product plan. - * - * The major version is also reflected in the package name of the - * interface, which must end in `v<major-version>`, as in - * `google.feature.v1`. For major versions 0 and 1, the suffix can - * be omitted. Zero major versions must only be used for - * experimental, non-GA interfaces. - * </pre> - * - * <code>string version = 4;</code> - * @return The version. - */ - @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; - 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(); - version_ = s; - return s; - } - } - /** - * <pre> - * A version string for this interface. If specified, must have the form - * `major-version.minor-version`, as in `1.10`. If the minor version is - * omitted, it defaults to zero. If the entire version field is empty, the - * major version is derived from the package name, as outlined below. If the - * field is not empty, the version in the package name will be verified to be - * consistent with what is provided here. - * - * The versioning schema uses [semantic - * versioning](http://semver.org) where the major version number - * indicates a breaking change and the minor version an additive, - * non-breaking change. Both version numbers are signals to users - * what to expect from different versions, and should be carefully - * chosen based on the product plan. - * - * The major version is also reflected in the package name of the - * interface, which must end in `v<major-version>`, as in - * `google.feature.v1`. For major versions 0 and 1, the suffix can - * be omitted. Zero major versions must only be used for - * experimental, non-GA interfaces. - * </pre> - * - * <code>string version = 4;</code> - * @return The bytes for version. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SOURCE_CONTEXT_FIELD_NUMBER = 5; - private com.google.protobuf.SourceContext sourceContext_; - /** - * <pre> - * Source context for the protocol buffer service represented by this - * message. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - * @return Whether the sourceContext field is set. - */ - @java.lang.Override - public boolean hasSourceContext() { - return sourceContext_ != null; - } - /** - * <pre> - * Source context for the protocol buffer service represented by this - * message. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - * @return The sourceContext. - */ - @java.lang.Override - public com.google.protobuf.SourceContext getSourceContext() { - return sourceContext_ == null ? com.google.protobuf.SourceContext.getDefaultInstance() : sourceContext_; - } - /** - * <pre> - * Source context for the protocol buffer service represented by this - * message. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - */ - @java.lang.Override - public com.google.protobuf.SourceContextOrBuilder getSourceContextOrBuilder() { - return sourceContext_ == null ? com.google.protobuf.SourceContext.getDefaultInstance() : sourceContext_; - } - - public static final int MIXINS_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.Mixin> mixins_; - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.Mixin> getMixinsList() { - return mixins_; - } - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.MixinOrBuilder> - getMixinsOrBuilderList() { - return mixins_; - } - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - @java.lang.Override - public int getMixinsCount() { - return mixins_.size(); - } - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - @java.lang.Override - public com.google.protobuf.Mixin getMixins(int index) { - return mixins_.get(index); - } - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - @java.lang.Override - public com.google.protobuf.MixinOrBuilder getMixinsOrBuilder( - int index) { - return mixins_.get(index); - } - - public static final int SYNTAX_FIELD_NUMBER = 7; - private int syntax_ = 0; - /** - * <pre> - * The source syntax of the service. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 7;</code> - * @return The enum numeric value on the wire for syntax. - */ - @java.lang.Override public int getSyntaxValue() { - return syntax_; - } - /** - * <pre> - * The source syntax of the service. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 7;</code> - * @return The syntax. - */ - @java.lang.Override public com.google.protobuf.Syntax getSyntax() { - com.google.protobuf.Syntax result = com.google.protobuf.Syntax.forNumber(syntax_); - return result == null ? com.google.protobuf.Syntax.UNRECOGNIZED : result; - } - - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - for (int i = 0; i < methods_.size(); i++) { - output.writeMessage(2, methods_.get(i)); - } - for (int i = 0; i < options_.size(); i++) { - output.writeMessage(3, options_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, version_); - } - if (sourceContext_ != null) { - output.writeMessage(5, getSourceContext()); - } - for (int i = 0; i < mixins_.size(); i++) { - output.writeMessage(6, mixins_.get(i)); - } - if (syntax_ != com.google.protobuf.Syntax.SYNTAX_PROTO2.getNumber()) { - output.writeEnum(7, syntax_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - for (int i = 0; i < methods_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, methods_.get(i)); - } - for (int i = 0; i < options_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, options_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, version_); - } - if (sourceContext_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSourceContext()); - } - for (int i = 0; i < mixins_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, mixins_.get(i)); - } - if (syntax_ != com.google.protobuf.Syntax.SYNTAX_PROTO2.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, syntax_); - } - size += getUnknownFields().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.Api)) { - return super.equals(obj); - } - com.google.protobuf.Api other = (com.google.protobuf.Api) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getMethodsList() - .equals(other.getMethodsList())) return false; - if (!getOptionsList() - .equals(other.getOptionsList())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (hasSourceContext() != other.hasSourceContext()) return false; - if (hasSourceContext()) { - if (!getSourceContext() - .equals(other.getSourceContext())) return false; - } - if (!getMixinsList() - .equals(other.getMixinsList())) return false; - if (syntax_ != other.syntax_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (getMethodsCount() > 0) { - hash = (37 * hash) + METHODS_FIELD_NUMBER; - hash = (53 * hash) + getMethodsList().hashCode(); - } - if (getOptionsCount() > 0) { - hash = (37 * hash) + OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getOptionsList().hashCode(); - } - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - if (hasSourceContext()) { - hash = (37 * hash) + SOURCE_CONTEXT_FIELD_NUMBER; - hash = (53 * hash) + getSourceContext().hashCode(); - } - if (getMixinsCount() > 0) { - hash = (37 * hash) + MIXINS_FIELD_NUMBER; - hash = (53 * hash) + getMixinsList().hashCode(); - } - hash = (37 * hash) + SYNTAX_FIELD_NUMBER; - hash = (53 * hash) + syntax_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.Api parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Api 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.Api parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Api 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.Api parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Api parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.Api parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Api 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.Api parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.Api 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.Api parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Api 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.Api 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; - } - /** - * <pre> - * Api is a light-weight descriptor for an API Interface. - * - * Interfaces are also described as "protocol buffer services" in some contexts, - * such as by the "service" keyword in a .proto file, but they are different - * from API Services, which represent a concrete implementation of an interface - * as opposed to simply a description of methods and bindings. They are also - * sometimes simply referred to as "APIs" in other contexts, such as the name of - * this message itself. See https://cloud.google.com/apis/design/glossary for - * detailed terminology. - * </pre> - * - * Protobuf type {@code google.protobuf.Api} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.Api) - com.google.protobuf.ApiOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.ApiProto.internal_static_google_protobuf_Api_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.ApiProto.internal_static_google_protobuf_Api_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Api.class, com.google.protobuf.Api.Builder.class); - } - - // Construct using com.google.protobuf.Api.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - if (methodsBuilder_ == null) { - methods_ = java.util.Collections.emptyList(); - } else { - methods_ = null; - methodsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (optionsBuilder_ == null) { - options_ = java.util.Collections.emptyList(); - } else { - options_ = null; - optionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - version_ = ""; - sourceContext_ = null; - if (sourceContextBuilder_ != null) { - sourceContextBuilder_.dispose(); - sourceContextBuilder_ = null; - } - if (mixinsBuilder_ == null) { - mixins_ = java.util.Collections.emptyList(); - } else { - mixins_ = null; - mixinsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - syntax_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.ApiProto.internal_static_google_protobuf_Api_descriptor; - } - - @java.lang.Override - public com.google.protobuf.Api getDefaultInstanceForType() { - return com.google.protobuf.Api.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.Api build() { - com.google.protobuf.Api result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.Api buildPartial() { - com.google.protobuf.Api result = new com.google.protobuf.Api(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.Api result) { - if (methodsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - methods_ = java.util.Collections.unmodifiableList(methods_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.methods_ = methods_; - } else { - result.methods_ = methodsBuilder_.build(); - } - if (optionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - options_ = java.util.Collections.unmodifiableList(options_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.options_ = options_; - } else { - result.options_ = optionsBuilder_.build(); - } - if (mixinsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - mixins_ = java.util.Collections.unmodifiableList(mixins_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.mixins_ = mixins_; - } else { - result.mixins_ = mixinsBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.Api result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.version_ = version_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.sourceContext_ = sourceContextBuilder_ == null - ? sourceContext_ - : sourceContextBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.syntax_ = syntax_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.Api) { - return mergeFrom((com.google.protobuf.Api)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.Api other) { - if (other == com.google.protobuf.Api.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (methodsBuilder_ == null) { - if (!other.methods_.isEmpty()) { - if (methods_.isEmpty()) { - methods_ = other.methods_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMethodsIsMutable(); - methods_.addAll(other.methods_); - } - onChanged(); - } - } else { - if (!other.methods_.isEmpty()) { - if (methodsBuilder_.isEmpty()) { - methodsBuilder_.dispose(); - methodsBuilder_ = null; - methods_ = other.methods_; - bitField0_ = (bitField0_ & ~0x00000002); - methodsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMethodsFieldBuilder() : null; - } else { - methodsBuilder_.addAllMessages(other.methods_); - } - } - } - if (optionsBuilder_ == null) { - if (!other.options_.isEmpty()) { - if (options_.isEmpty()) { - options_ = other.options_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureOptionsIsMutable(); - options_.addAll(other.options_); - } - onChanged(); - } - } else { - if (!other.options_.isEmpty()) { - if (optionsBuilder_.isEmpty()) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - options_ = other.options_; - bitField0_ = (bitField0_ & ~0x00000004); - optionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOptionsFieldBuilder() : null; - } else { - optionsBuilder_.addAllMessages(other.options_); - } - } - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.hasSourceContext()) { - mergeSourceContext(other.getSourceContext()); - } - if (mixinsBuilder_ == null) { - if (!other.mixins_.isEmpty()) { - if (mixins_.isEmpty()) { - mixins_ = other.mixins_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureMixinsIsMutable(); - mixins_.addAll(other.mixins_); - } - onChanged(); - } - } else { - if (!other.mixins_.isEmpty()) { - if (mixinsBuilder_.isEmpty()) { - mixinsBuilder_.dispose(); - mixinsBuilder_ = null; - mixins_ = other.mixins_; - bitField0_ = (bitField0_ & ~0x00000020); - mixinsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMixinsFieldBuilder() : null; - } else { - mixinsBuilder_.addAllMessages(other.mixins_); - } - } - } - if (other.syntax_ != 0) { - setSyntaxValue(other.getSyntaxValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.protobuf.Method m = - input.readMessage( - com.google.protobuf.Method.parser(), - extensionRegistry); - if (methodsBuilder_ == null) { - ensureMethodsIsMutable(); - methods_.add(m); - } else { - methodsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: { - com.google.protobuf.Option m = - input.readMessage( - com.google.protobuf.Option.parser(), - extensionRegistry); - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.add(m); - } else { - optionsBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: { - version_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getSourceContextFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - com.google.protobuf.Mixin m = - input.readMessage( - com.google.protobuf.Mixin.parser(), - extensionRegistry); - if (mixinsBuilder_ == null) { - ensureMixinsIsMutable(); - mixins_.add(m); - } else { - mixinsBuilder_.addMessage(m); - } - break; - } // case 50 - case 56: { - syntax_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 56 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * <pre> - * The fully qualified name of this interface, including package name - * followed by the interface's simple name. - * </pre> - * - * <code>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(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <pre> - * The fully qualified name of this interface, including package name - * followed by the interface's simple name. - * </pre> - * - * <code>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; - } - } - /** - * <pre> - * The fully qualified name of this interface, including package name - * followed by the interface's simple name. - * </pre> - * - * <code>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(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * The fully qualified name of this interface, including package name - * followed by the interface's simple name. - * </pre> - * - * <code>string name = 1;</code> - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * <pre> - * The fully qualified name of this interface, including package name - * followed by the interface's simple name. - * </pre> - * - * <code>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(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.util.List<com.google.protobuf.Method> methods_ = - java.util.Collections.emptyList(); - private void ensureMethodsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - methods_ = new java.util.ArrayList<com.google.protobuf.Method>(methods_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Method, com.google.protobuf.Method.Builder, com.google.protobuf.MethodOrBuilder> methodsBuilder_; - - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - public java.util.List<com.google.protobuf.Method> getMethodsList() { - if (methodsBuilder_ == null) { - return java.util.Collections.unmodifiableList(methods_); - } else { - return methodsBuilder_.getMessageList(); - } - } - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - public int getMethodsCount() { - if (methodsBuilder_ == null) { - return methods_.size(); - } else { - return methodsBuilder_.getCount(); - } - } - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - public com.google.protobuf.Method getMethods(int index) { - if (methodsBuilder_ == null) { - return methods_.get(index); - } else { - return methodsBuilder_.getMessage(index); - } - } - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - public Builder setMethods( - int index, com.google.protobuf.Method value) { - if (methodsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMethodsIsMutable(); - methods_.set(index, value); - onChanged(); - } else { - methodsBuilder_.setMessage(index, value); - } - return this; - } - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - public Builder setMethods( - int index, com.google.protobuf.Method.Builder builderForValue) { - if (methodsBuilder_ == null) { - ensureMethodsIsMutable(); - methods_.set(index, builderForValue.build()); - onChanged(); - } else { - methodsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - public Builder addMethods(com.google.protobuf.Method value) { - if (methodsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMethodsIsMutable(); - methods_.add(value); - onChanged(); - } else { - methodsBuilder_.addMessage(value); - } - return this; - } - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - public Builder addMethods( - int index, com.google.protobuf.Method value) { - if (methodsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMethodsIsMutable(); - methods_.add(index, value); - onChanged(); - } else { - methodsBuilder_.addMessage(index, value); - } - return this; - } - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - public Builder addMethods( - com.google.protobuf.Method.Builder builderForValue) { - if (methodsBuilder_ == null) { - ensureMethodsIsMutable(); - methods_.add(builderForValue.build()); - onChanged(); - } else { - methodsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - public Builder addMethods( - int index, com.google.protobuf.Method.Builder builderForValue) { - if (methodsBuilder_ == null) { - ensureMethodsIsMutable(); - methods_.add(index, builderForValue.build()); - onChanged(); - } else { - methodsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - public Builder addAllMethods( - java.lang.Iterable<? extends com.google.protobuf.Method> values) { - if (methodsBuilder_ == null) { - ensureMethodsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, methods_); - onChanged(); - } else { - methodsBuilder_.addAllMessages(values); - } - return this; - } - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - public Builder clearMethods() { - if (methodsBuilder_ == null) { - methods_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - methodsBuilder_.clear(); - } - return this; - } - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - public Builder removeMethods(int index) { - if (methodsBuilder_ == null) { - ensureMethodsIsMutable(); - methods_.remove(index); - onChanged(); - } else { - methodsBuilder_.remove(index); - } - return this; - } - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - public com.google.protobuf.Method.Builder getMethodsBuilder( - int index) { - return getMethodsFieldBuilder().getBuilder(index); - } - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - public com.google.protobuf.MethodOrBuilder getMethodsOrBuilder( - int index) { - if (methodsBuilder_ == null) { - return methods_.get(index); } else { - return methodsBuilder_.getMessageOrBuilder(index); - } - } - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - public java.util.List<? extends com.google.protobuf.MethodOrBuilder> - getMethodsOrBuilderList() { - if (methodsBuilder_ != null) { - return methodsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(methods_); - } - } - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - public com.google.protobuf.Method.Builder addMethodsBuilder() { - return getMethodsFieldBuilder().addBuilder( - com.google.protobuf.Method.getDefaultInstance()); - } - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - public com.google.protobuf.Method.Builder addMethodsBuilder( - int index) { - return getMethodsFieldBuilder().addBuilder( - index, com.google.protobuf.Method.getDefaultInstance()); - } - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - public java.util.List<com.google.protobuf.Method.Builder> - getMethodsBuilderList() { - return getMethodsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Method, com.google.protobuf.Method.Builder, com.google.protobuf.MethodOrBuilder> - getMethodsFieldBuilder() { - if (methodsBuilder_ == null) { - methodsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Method, com.google.protobuf.Method.Builder, com.google.protobuf.MethodOrBuilder>( - methods_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - methods_ = null; - } - return methodsBuilder_; - } - - private java.util.List<com.google.protobuf.Option> options_ = - java.util.Collections.emptyList(); - private void ensureOptionsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - options_ = new java.util.ArrayList<com.google.protobuf.Option>(options_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Option, com.google.protobuf.Option.Builder, com.google.protobuf.OptionOrBuilder> optionsBuilder_; - - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public java.util.List<com.google.protobuf.Option> getOptionsList() { - if (optionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(options_); - } else { - return optionsBuilder_.getMessageList(); - } - } - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public int getOptionsCount() { - if (optionsBuilder_ == null) { - return options_.size(); - } else { - return optionsBuilder_.getCount(); - } - } - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public com.google.protobuf.Option getOptions(int index) { - if (optionsBuilder_ == null) { - return options_.get(index); - } else { - return optionsBuilder_.getMessage(index); - } - } - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder setOptions( - int index, com.google.protobuf.Option value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionsIsMutable(); - options_.set(index, value); - onChanged(); - } else { - optionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder setOptions( - int index, com.google.protobuf.Option.Builder builderForValue) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.set(index, builderForValue.build()); - onChanged(); - } else { - optionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder addOptions(com.google.protobuf.Option value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionsIsMutable(); - options_.add(value); - onChanged(); - } else { - optionsBuilder_.addMessage(value); - } - return this; - } - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder addOptions( - int index, com.google.protobuf.Option value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionsIsMutable(); - options_.add(index, value); - onChanged(); - } else { - optionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder addOptions( - com.google.protobuf.Option.Builder builderForValue) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.add(builderForValue.build()); - onChanged(); - } else { - optionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder addOptions( - int index, com.google.protobuf.Option.Builder builderForValue) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.add(index, builderForValue.build()); - onChanged(); - } else { - optionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder addAllOptions( - java.lang.Iterable<? extends com.google.protobuf.Option> values) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, options_); - onChanged(); - } else { - optionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder clearOptions() { - if (optionsBuilder_ == null) { - options_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - optionsBuilder_.clear(); - } - return this; - } - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder removeOptions(int index) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.remove(index); - onChanged(); - } else { - optionsBuilder_.remove(index); - } - return this; - } - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public com.google.protobuf.Option.Builder getOptionsBuilder( - int index) { - return getOptionsFieldBuilder().getBuilder(index); - } - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( - int index) { - if (optionsBuilder_ == null) { - return options_.get(index); } else { - return optionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public java.util.List<? extends com.google.protobuf.OptionOrBuilder> - getOptionsOrBuilderList() { - if (optionsBuilder_ != null) { - return optionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(options_); - } - } - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public com.google.protobuf.Option.Builder addOptionsBuilder() { - return getOptionsFieldBuilder().addBuilder( - com.google.protobuf.Option.getDefaultInstance()); - } - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public com.google.protobuf.Option.Builder addOptionsBuilder( - int index) { - return getOptionsFieldBuilder().addBuilder( - index, com.google.protobuf.Option.getDefaultInstance()); - } - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public java.util.List<com.google.protobuf.Option.Builder> - getOptionsBuilderList() { - return getOptionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Option, com.google.protobuf.Option.Builder, com.google.protobuf.OptionOrBuilder> - getOptionsFieldBuilder() { - if (optionsBuilder_ == null) { - optionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Option, com.google.protobuf.Option.Builder, com.google.protobuf.OptionOrBuilder>( - options_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - options_ = null; - } - return optionsBuilder_; - } - - private java.lang.Object version_ = ""; - /** - * <pre> - * A version string for this interface. If specified, must have the form - * `major-version.minor-version`, as in `1.10`. If the minor version is - * omitted, it defaults to zero. If the entire version field is empty, the - * major version is derived from the package name, as outlined below. If the - * field is not empty, the version in the package name will be verified to be - * consistent with what is provided here. - * - * The versioning schema uses [semantic - * versioning](http://semver.org) where the major version number - * indicates a breaking change and the minor version an additive, - * non-breaking change. Both version numbers are signals to users - * what to expect from different versions, and should be carefully - * chosen based on the product plan. - * - * The major version is also reflected in the package name of the - * interface, which must end in `v<major-version>`, as in - * `google.feature.v1`. For major versions 0 and 1, the suffix can - * be omitted. Zero major versions must only be used for - * experimental, non-GA interfaces. - * </pre> - * - * <code>string version = 4;</code> - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <pre> - * A version string for this interface. If specified, must have the form - * `major-version.minor-version`, as in `1.10`. If the minor version is - * omitted, it defaults to zero. If the entire version field is empty, the - * major version is derived from the package name, as outlined below. If the - * field is not empty, the version in the package name will be verified to be - * consistent with what is provided here. - * - * The versioning schema uses [semantic - * versioning](http://semver.org) where the major version number - * indicates a breaking change and the minor version an additive, - * non-breaking change. Both version numbers are signals to users - * what to expect from different versions, and should be carefully - * chosen based on the product plan. - * - * The major version is also reflected in the package name of the - * interface, which must end in `v<major-version>`, as in - * `google.feature.v1`. For major versions 0 and 1, the suffix can - * be omitted. Zero major versions must only be used for - * experimental, non-GA interfaces. - * </pre> - * - * <code>string version = 4;</code> - * @return The bytes for version. - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <pre> - * A version string for this interface. If specified, must have the form - * `major-version.minor-version`, as in `1.10`. If the minor version is - * omitted, it defaults to zero. If the entire version field is empty, the - * major version is derived from the package name, as outlined below. If the - * field is not empty, the version in the package name will be verified to be - * consistent with what is provided here. - * - * The versioning schema uses [semantic - * versioning](http://semver.org) where the major version number - * indicates a breaking change and the minor version an additive, - * non-breaking change. Both version numbers are signals to users - * what to expect from different versions, and should be carefully - * chosen based on the product plan. - * - * The major version is also reflected in the package name of the - * interface, which must end in `v<major-version>`, as in - * `google.feature.v1`. For major versions 0 and 1, the suffix can - * be omitted. Zero major versions must only be used for - * experimental, non-GA interfaces. - * </pre> - * - * <code>string version = 4;</code> - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - version_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * <pre> - * A version string for this interface. If specified, must have the form - * `major-version.minor-version`, as in `1.10`. If the minor version is - * omitted, it defaults to zero. If the entire version field is empty, the - * major version is derived from the package name, as outlined below. If the - * field is not empty, the version in the package name will be verified to be - * consistent with what is provided here. - * - * The versioning schema uses [semantic - * versioning](http://semver.org) where the major version number - * indicates a breaking change and the minor version an additive, - * non-breaking change. Both version numbers are signals to users - * what to expect from different versions, and should be carefully - * chosen based on the product plan. - * - * The major version is also reflected in the package name of the - * interface, which must end in `v<major-version>`, as in - * `google.feature.v1`. For major versions 0 and 1, the suffix can - * be omitted. Zero major versions must only be used for - * experimental, non-GA interfaces. - * </pre> - * - * <code>string version = 4;</code> - * @return This builder for chaining. - */ - public Builder clearVersion() { - version_ = getDefaultInstance().getVersion(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * <pre> - * A version string for this interface. If specified, must have the form - * `major-version.minor-version`, as in `1.10`. If the minor version is - * omitted, it defaults to zero. If the entire version field is empty, the - * major version is derived from the package name, as outlined below. If the - * field is not empty, the version in the package name will be verified to be - * consistent with what is provided here. - * - * The versioning schema uses [semantic - * versioning](http://semver.org) where the major version number - * indicates a breaking change and the minor version an additive, - * non-breaking change. Both version numbers are signals to users - * what to expect from different versions, and should be carefully - * chosen based on the product plan. - * - * The major version is also reflected in the package name of the - * interface, which must end in `v<major-version>`, as in - * `google.feature.v1`. For major versions 0 and 1, the suffix can - * be omitted. Zero major versions must only be used for - * experimental, non-GA interfaces. - * </pre> - * - * <code>string version = 4;</code> - * @param value The bytes for version to set. - * @return This builder for chaining. - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - version_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private com.google.protobuf.SourceContext sourceContext_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.SourceContext, com.google.protobuf.SourceContext.Builder, com.google.protobuf.SourceContextOrBuilder> sourceContextBuilder_; - /** - * <pre> - * Source context for the protocol buffer service represented by this - * message. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - * @return Whether the sourceContext field is set. - */ - public boolean hasSourceContext() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * <pre> - * Source context for the protocol buffer service represented by this - * message. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - * @return The sourceContext. - */ - public com.google.protobuf.SourceContext getSourceContext() { - if (sourceContextBuilder_ == null) { - return sourceContext_ == null ? com.google.protobuf.SourceContext.getDefaultInstance() : sourceContext_; - } else { - return sourceContextBuilder_.getMessage(); - } - } - /** - * <pre> - * Source context for the protocol buffer service represented by this - * message. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - */ - public Builder setSourceContext(com.google.protobuf.SourceContext value) { - if (sourceContextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sourceContext_ = value; - } else { - sourceContextBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * <pre> - * Source context for the protocol buffer service represented by this - * message. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - */ - public Builder setSourceContext( - com.google.protobuf.SourceContext.Builder builderForValue) { - if (sourceContextBuilder_ == null) { - sourceContext_ = builderForValue.build(); - } else { - sourceContextBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * <pre> - * Source context for the protocol buffer service represented by this - * message. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - */ - public Builder mergeSourceContext(com.google.protobuf.SourceContext value) { - if (sourceContextBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - sourceContext_ != null && - sourceContext_ != com.google.protobuf.SourceContext.getDefaultInstance()) { - getSourceContextBuilder().mergeFrom(value); - } else { - sourceContext_ = value; - } - } else { - sourceContextBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * <pre> - * Source context for the protocol buffer service represented by this - * message. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - */ - public Builder clearSourceContext() { - bitField0_ = (bitField0_ & ~0x00000010); - sourceContext_ = null; - if (sourceContextBuilder_ != null) { - sourceContextBuilder_.dispose(); - sourceContextBuilder_ = null; - } - onChanged(); - return this; - } - /** - * <pre> - * Source context for the protocol buffer service represented by this - * message. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - */ - public com.google.protobuf.SourceContext.Builder getSourceContextBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getSourceContextFieldBuilder().getBuilder(); - } - /** - * <pre> - * Source context for the protocol buffer service represented by this - * message. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - */ - public com.google.protobuf.SourceContextOrBuilder getSourceContextOrBuilder() { - if (sourceContextBuilder_ != null) { - return sourceContextBuilder_.getMessageOrBuilder(); - } else { - return sourceContext_ == null ? - com.google.protobuf.SourceContext.getDefaultInstance() : sourceContext_; - } - } - /** - * <pre> - * Source context for the protocol buffer service represented by this - * message. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.SourceContext, com.google.protobuf.SourceContext.Builder, com.google.protobuf.SourceContextOrBuilder> - getSourceContextFieldBuilder() { - if (sourceContextBuilder_ == null) { - sourceContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.SourceContext, com.google.protobuf.SourceContext.Builder, com.google.protobuf.SourceContextOrBuilder>( - getSourceContext(), - getParentForChildren(), - isClean()); - sourceContext_ = null; - } - return sourceContextBuilder_; - } - - private java.util.List<com.google.protobuf.Mixin> mixins_ = - java.util.Collections.emptyList(); - private void ensureMixinsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - mixins_ = new java.util.ArrayList<com.google.protobuf.Mixin>(mixins_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Mixin, com.google.protobuf.Mixin.Builder, com.google.protobuf.MixinOrBuilder> mixinsBuilder_; - - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - public java.util.List<com.google.protobuf.Mixin> getMixinsList() { - if (mixinsBuilder_ == null) { - return java.util.Collections.unmodifiableList(mixins_); - } else { - return mixinsBuilder_.getMessageList(); - } - } - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - public int getMixinsCount() { - if (mixinsBuilder_ == null) { - return mixins_.size(); - } else { - return mixinsBuilder_.getCount(); - } - } - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - public com.google.protobuf.Mixin getMixins(int index) { - if (mixinsBuilder_ == null) { - return mixins_.get(index); - } else { - return mixinsBuilder_.getMessage(index); - } - } - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - public Builder setMixins( - int index, com.google.protobuf.Mixin value) { - if (mixinsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMixinsIsMutable(); - mixins_.set(index, value); - onChanged(); - } else { - mixinsBuilder_.setMessage(index, value); - } - return this; - } - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - public Builder setMixins( - int index, com.google.protobuf.Mixin.Builder builderForValue) { - if (mixinsBuilder_ == null) { - ensureMixinsIsMutable(); - mixins_.set(index, builderForValue.build()); - onChanged(); - } else { - mixinsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - public Builder addMixins(com.google.protobuf.Mixin value) { - if (mixinsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMixinsIsMutable(); - mixins_.add(value); - onChanged(); - } else { - mixinsBuilder_.addMessage(value); - } - return this; - } - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - public Builder addMixins( - int index, com.google.protobuf.Mixin value) { - if (mixinsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMixinsIsMutable(); - mixins_.add(index, value); - onChanged(); - } else { - mixinsBuilder_.addMessage(index, value); - } - return this; - } - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - public Builder addMixins( - com.google.protobuf.Mixin.Builder builderForValue) { - if (mixinsBuilder_ == null) { - ensureMixinsIsMutable(); - mixins_.add(builderForValue.build()); - onChanged(); - } else { - mixinsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - public Builder addMixins( - int index, com.google.protobuf.Mixin.Builder builderForValue) { - if (mixinsBuilder_ == null) { - ensureMixinsIsMutable(); - mixins_.add(index, builderForValue.build()); - onChanged(); - } else { - mixinsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - public Builder addAllMixins( - java.lang.Iterable<? extends com.google.protobuf.Mixin> values) { - if (mixinsBuilder_ == null) { - ensureMixinsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, mixins_); - onChanged(); - } else { - mixinsBuilder_.addAllMessages(values); - } - return this; - } - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - public Builder clearMixins() { - if (mixinsBuilder_ == null) { - mixins_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - mixinsBuilder_.clear(); - } - return this; - } - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - public Builder removeMixins(int index) { - if (mixinsBuilder_ == null) { - ensureMixinsIsMutable(); - mixins_.remove(index); - onChanged(); - } else { - mixinsBuilder_.remove(index); - } - return this; - } - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - public com.google.protobuf.Mixin.Builder getMixinsBuilder( - int index) { - return getMixinsFieldBuilder().getBuilder(index); - } - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - public com.google.protobuf.MixinOrBuilder getMixinsOrBuilder( - int index) { - if (mixinsBuilder_ == null) { - return mixins_.get(index); } else { - return mixinsBuilder_.getMessageOrBuilder(index); - } - } - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - public java.util.List<? extends com.google.protobuf.MixinOrBuilder> - getMixinsOrBuilderList() { - if (mixinsBuilder_ != null) { - return mixinsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(mixins_); - } - } - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - public com.google.protobuf.Mixin.Builder addMixinsBuilder() { - return getMixinsFieldBuilder().addBuilder( - com.google.protobuf.Mixin.getDefaultInstance()); - } - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - public com.google.protobuf.Mixin.Builder addMixinsBuilder( - int index) { - return getMixinsFieldBuilder().addBuilder( - index, com.google.protobuf.Mixin.getDefaultInstance()); - } - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - public java.util.List<com.google.protobuf.Mixin.Builder> - getMixinsBuilderList() { - return getMixinsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Mixin, com.google.protobuf.Mixin.Builder, com.google.protobuf.MixinOrBuilder> - getMixinsFieldBuilder() { - if (mixinsBuilder_ == null) { - mixinsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Mixin, com.google.protobuf.Mixin.Builder, com.google.protobuf.MixinOrBuilder>( - mixins_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - mixins_ = null; - } - return mixinsBuilder_; - } - - private int syntax_ = 0; - /** - * <pre> - * The source syntax of the service. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 7;</code> - * @return The enum numeric value on the wire for syntax. - */ - @java.lang.Override public int getSyntaxValue() { - return syntax_; - } - /** - * <pre> - * The source syntax of the service. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 7;</code> - * @param value The enum numeric value on the wire for syntax to set. - * @return This builder for chaining. - */ - public Builder setSyntaxValue(int value) { - syntax_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * <pre> - * The source syntax of the service. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 7;</code> - * @return The syntax. - */ - @java.lang.Override - public com.google.protobuf.Syntax getSyntax() { - com.google.protobuf.Syntax result = com.google.protobuf.Syntax.forNumber(syntax_); - return result == null ? com.google.protobuf.Syntax.UNRECOGNIZED : result; - } - /** - * <pre> - * The source syntax of the service. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 7;</code> - * @param value The syntax to set. - * @return This builder for chaining. - */ - public Builder setSyntax(com.google.protobuf.Syntax value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - syntax_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <pre> - * The source syntax of the service. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 7;</code> - * @return This builder for chaining. - */ - public Builder clearSyntax() { - bitField0_ = (bitField0_ & ~0x00000040); - syntax_ = 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.Api) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.Api) - private static final com.google.protobuf.Api DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.Api(); - } - - public static com.google.protobuf.Api getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Api> - PARSER = new com.google.protobuf.AbstractParser<Api>() { - @java.lang.Override - public Api parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<Api> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Api> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Api getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/ApiOrBuilder.java b/src/main/java/com/google/protobuf/ApiOrBuilder.java deleted file mode 100644 index c43c1a1..0000000 --- a/src/main/java/com/google/protobuf/ApiOrBuilder.java +++ /dev/null @@ -1,268 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/api.proto - -package com.google.protobuf; - -public interface ApiOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.Api) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * The fully qualified name of this interface, including package name - * followed by the interface's simple name. - * </pre> - * - * <code>string name = 1;</code> - * @return The name. - */ - java.lang.String getName(); - /** - * <pre> - * The fully qualified name of this interface, including package name - * followed by the interface's simple name. - * </pre> - * - * <code>string name = 1;</code> - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - java.util.List<com.google.protobuf.Method> - getMethodsList(); - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - com.google.protobuf.Method getMethods(int index); - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - int getMethodsCount(); - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - java.util.List<? extends com.google.protobuf.MethodOrBuilder> - getMethodsOrBuilderList(); - /** - * <pre> - * The methods of this interface, in unspecified order. - * </pre> - * - * <code>repeated .google.protobuf.Method methods = 2;</code> - */ - com.google.protobuf.MethodOrBuilder getMethodsOrBuilder( - int index); - - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - java.util.List<com.google.protobuf.Option> - getOptionsList(); - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - com.google.protobuf.Option getOptions(int index); - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - int getOptionsCount(); - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - java.util.List<? extends com.google.protobuf.OptionOrBuilder> - getOptionsOrBuilderList(); - /** - * <pre> - * Any metadata attached to the interface. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( - int index); - - /** - * <pre> - * A version string for this interface. If specified, must have the form - * `major-version.minor-version`, as in `1.10`. If the minor version is - * omitted, it defaults to zero. If the entire version field is empty, the - * major version is derived from the package name, as outlined below. If the - * field is not empty, the version in the package name will be verified to be - * consistent with what is provided here. - * - * The versioning schema uses [semantic - * versioning](http://semver.org) where the major version number - * indicates a breaking change and the minor version an additive, - * non-breaking change. Both version numbers are signals to users - * what to expect from different versions, and should be carefully - * chosen based on the product plan. - * - * The major version is also reflected in the package name of the - * interface, which must end in `v<major-version>`, as in - * `google.feature.v1`. For major versions 0 and 1, the suffix can - * be omitted. Zero major versions must only be used for - * experimental, non-GA interfaces. - * </pre> - * - * <code>string version = 4;</code> - * @return The version. - */ - java.lang.String getVersion(); - /** - * <pre> - * A version string for this interface. If specified, must have the form - * `major-version.minor-version`, as in `1.10`. If the minor version is - * omitted, it defaults to zero. If the entire version field is empty, the - * major version is derived from the package name, as outlined below. If the - * field is not empty, the version in the package name will be verified to be - * consistent with what is provided here. - * - * The versioning schema uses [semantic - * versioning](http://semver.org) where the major version number - * indicates a breaking change and the minor version an additive, - * non-breaking change. Both version numbers are signals to users - * what to expect from different versions, and should be carefully - * chosen based on the product plan. - * - * The major version is also reflected in the package name of the - * interface, which must end in `v<major-version>`, as in - * `google.feature.v1`. For major versions 0 and 1, the suffix can - * be omitted. Zero major versions must only be used for - * experimental, non-GA interfaces. - * </pre> - * - * <code>string version = 4;</code> - * @return The bytes for version. - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - * <pre> - * Source context for the protocol buffer service represented by this - * message. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - * @return Whether the sourceContext field is set. - */ - boolean hasSourceContext(); - /** - * <pre> - * Source context for the protocol buffer service represented by this - * message. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - * @return The sourceContext. - */ - com.google.protobuf.SourceContext getSourceContext(); - /** - * <pre> - * Source context for the protocol buffer service represented by this - * message. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - */ - com.google.protobuf.SourceContextOrBuilder getSourceContextOrBuilder(); - - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - java.util.List<com.google.protobuf.Mixin> - getMixinsList(); - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - com.google.protobuf.Mixin getMixins(int index); - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - int getMixinsCount(); - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - java.util.List<? extends com.google.protobuf.MixinOrBuilder> - getMixinsOrBuilderList(); - /** - * <pre> - * Included interfaces. See [Mixin][]. - * </pre> - * - * <code>repeated .google.protobuf.Mixin mixins = 6;</code> - */ - com.google.protobuf.MixinOrBuilder getMixinsOrBuilder( - int index); - - /** - * <pre> - * The source syntax of the service. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 7;</code> - * @return The enum numeric value on the wire for syntax. - */ - int getSyntaxValue(); - /** - * <pre> - * The source syntax of the service. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 7;</code> - * @return The syntax. - */ - com.google.protobuf.Syntax getSyntax(); -} diff --git a/src/main/java/com/google/protobuf/ApiProto.java b/src/main/java/com/google/protobuf/ApiProto.java deleted file mode 100644 index 4b7491b..0000000 --- a/src/main/java/com/google/protobuf/ApiProto.java +++ /dev/null @@ -1,90 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/api.proto - -package com.google.protobuf; - -public final class ApiProto { - private ApiProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_Api_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_Api_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_Method_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_Method_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_Mixin_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_Mixin_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\031google/protobuf/api.proto\022\017google.prot" + - "obuf\032$google/protobuf/source_context.pro" + - "to\032\032google/protobuf/type.proto\"\201\002\n\003Api\022\014" + - "\n\004name\030\001 \001(\t\022(\n\007methods\030\002 \003(\0132\027.google.p" + - "rotobuf.Method\022(\n\007options\030\003 \003(\0132\027.google" + - ".protobuf.Option\022\017\n\007version\030\004 \001(\t\0226\n\016sou" + - "rce_context\030\005 \001(\0132\036.google.protobuf.Sour" + - "ceContext\022&\n\006mixins\030\006 \003(\0132\026.google.proto" + - "buf.Mixin\022\'\n\006syntax\030\007 \001(\0162\027.google.proto" + - "buf.Syntax\"\325\001\n\006Method\022\014\n\004name\030\001 \001(\t\022\030\n\020r" + - "equest_type_url\030\002 \001(\t\022\031\n\021request_streami" + - "ng\030\003 \001(\010\022\031\n\021response_type_url\030\004 \001(\t\022\032\n\022r" + - "esponse_streaming\030\005 \001(\010\022(\n\007options\030\006 \003(\013" + - "2\027.google.protobuf.Option\022\'\n\006syntax\030\007 \001(" + - "\0162\027.google.protobuf.Syntax\"#\n\005Mixin\022\014\n\004n" + - "ame\030\001 \001(\t\022\014\n\004root\030\002 \001(\tBv\n\023com.google.pr" + - "otobufB\010ApiProtoP\001Z,google.golang.org/pr" + - "otobuf/types/known/apipb\242\002\003GPB\252\002\036Google." + - "Protobuf.WellKnownTypesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.SourceContextProto.getDescriptor(), - com.google.protobuf.TypeProto.getDescriptor(), - }); - internal_static_google_protobuf_Api_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_protobuf_Api_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_Api_descriptor, - new java.lang.String[] { "Name", "Methods", "Options", "Version", "SourceContext", "Mixins", "Syntax", }); - internal_static_google_protobuf_Method_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_protobuf_Method_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_Method_descriptor, - new java.lang.String[] { "Name", "RequestTypeUrl", "RequestStreaming", "ResponseTypeUrl", "ResponseStreaming", "Options", "Syntax", }); - internal_static_google_protobuf_Mixin_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_protobuf_Mixin_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_Mixin_descriptor, - new java.lang.String[] { "Name", "Root", }); - com.google.protobuf.SourceContextProto.getDescriptor(); - com.google.protobuf.TypeProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/com/google/protobuf/BoolValue.java b/src/main/java/com/google/protobuf/BoolValue.java deleted file mode 100644 index 13b5591..0000000 --- a/src/main/java/com/google/protobuf/BoolValue.java +++ /dev/null @@ -1,470 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package com.google.protobuf; - -/** - * <pre> - * Wrapper message for `bool`. - * - * The JSON representation for `BoolValue` is JSON `true` and `false`. - * </pre> - * - * Protobuf type {@code google.protobuf.BoolValue} - */ -public final class BoolValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.BoolValue) - BoolValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use BoolValue.newBuilder() to construct. - private BoolValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private BoolValue() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BoolValue(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_BoolValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_BoolValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.BoolValue.class, com.google.protobuf.BoolValue.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private boolean value_ = false; - /** - * <pre> - * The bool value. - * </pre> - * - * <code>bool value = 1;</code> - * @return The value. - */ - @java.lang.Override - public boolean getValue() { - return value_; - } - - 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 (value_ != false) { - output.writeBool(1, value_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (value_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, value_); - } - size += getUnknownFields().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.BoolValue)) { - return super.equals(obj); - } - com.google.protobuf.BoolValue other = (com.google.protobuf.BoolValue) obj; - - if (getValue() - != other.getValue()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValue()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.BoolValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.BoolValue 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.BoolValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.BoolValue 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.BoolValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.BoolValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.BoolValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.BoolValue 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.BoolValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.BoolValue 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.BoolValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.BoolValue 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.BoolValue 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; - } - /** - * <pre> - * Wrapper message for `bool`. - * - * The JSON representation for `BoolValue` is JSON `true` and `false`. - * </pre> - * - * Protobuf type {@code google.protobuf.BoolValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.BoolValue) - com.google.protobuf.BoolValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_BoolValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_BoolValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.BoolValue.class, com.google.protobuf.BoolValue.Builder.class); - } - - // Construct using com.google.protobuf.BoolValue.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - value_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_BoolValue_descriptor; - } - - @java.lang.Override - public com.google.protobuf.BoolValue getDefaultInstanceForType() { - return com.google.protobuf.BoolValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.BoolValue build() { - com.google.protobuf.BoolValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.BoolValue buildPartial() { - com.google.protobuf.BoolValue result = new com.google.protobuf.BoolValue(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.BoolValue result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.value_ = value_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.BoolValue) { - return mergeFrom((com.google.protobuf.BoolValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.BoolValue other) { - if (other == com.google.protobuf.BoolValue.getDefaultInstance()) return this; - if (other.getValue() != false) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - value_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private boolean value_ ; - /** - * <pre> - * The bool value. - * </pre> - * - * <code>bool value = 1;</code> - * @return The value. - */ - @java.lang.Override - public boolean getValue() { - return value_; - } - /** - * <pre> - * The bool value. - * </pre> - * - * <code>bool value = 1;</code> - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(boolean value) { - - value_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * The bool value. - * </pre> - * - * <code>bool value = 1;</code> - * @return This builder for chaining. - */ - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000001); - value_ = 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.BoolValue) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.BoolValue) - private static final com.google.protobuf.BoolValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.BoolValue(); - } - - public static com.google.protobuf.BoolValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static com.google.protobuf.BoolValue of(boolean value) { - return newBuilder().setValue(value).build(); - } - - private static final com.google.protobuf.Parser<BoolValue> - PARSER = new com.google.protobuf.AbstractParser<BoolValue>() { - @java.lang.Override - public BoolValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<BoolValue> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<BoolValue> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.BoolValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/BoolValueOrBuilder.java b/src/main/java/com/google/protobuf/BoolValueOrBuilder.java deleted file mode 100644 index d8038ea..0000000 --- a/src/main/java/com/google/protobuf/BoolValueOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package com.google.protobuf; - -public interface BoolValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.BoolValue) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * The bool value. - * </pre> - * - * <code>bool value = 1;</code> - * @return The value. - */ - boolean getValue(); -} diff --git a/src/main/java/com/google/protobuf/BytesValue.java b/src/main/java/com/google/protobuf/BytesValue.java deleted file mode 100644 index df2510d..0000000 --- a/src/main/java/com/google/protobuf/BytesValue.java +++ /dev/null @@ -1,470 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package com.google.protobuf; - -/** - * <pre> - * Wrapper message for `bytes`. - * - * The JSON representation for `BytesValue` is JSON string. - * </pre> - * - * Protobuf type {@code google.protobuf.BytesValue} - */ -public final class BytesValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.BytesValue) - BytesValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use BytesValue.newBuilder() to construct. - private BytesValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private BytesValue() { - value_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BytesValue(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_BytesValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_BytesValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.BytesValue.class, com.google.protobuf.BytesValue.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * <pre> - * The bytes value. - * </pre> - * - * <code>bytes value = 1;</code> - * @return The value. - */ - @java.lang.Override - public com.google.protobuf.ByteString getValue() { - return value_; - } - - 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 (!value_.isEmpty()) { - output.writeBytes(1, value_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, value_); - } - size += getUnknownFields().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.BytesValue)) { - return super.equals(obj); - } - com.google.protobuf.BytesValue other = (com.google.protobuf.BytesValue) obj; - - if (!getValue() - .equals(other.getValue())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.BytesValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.BytesValue 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.BytesValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.BytesValue 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.BytesValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.BytesValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.BytesValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.BytesValue 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.BytesValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.BytesValue 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.BytesValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.BytesValue 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.BytesValue 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; - } - /** - * <pre> - * Wrapper message for `bytes`. - * - * The JSON representation for `BytesValue` is JSON string. - * </pre> - * - * Protobuf type {@code google.protobuf.BytesValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.BytesValue) - com.google.protobuf.BytesValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_BytesValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_BytesValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.BytesValue.class, com.google.protobuf.BytesValue.Builder.class); - } - - // Construct using com.google.protobuf.BytesValue.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - value_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_BytesValue_descriptor; - } - - @java.lang.Override - public com.google.protobuf.BytesValue getDefaultInstanceForType() { - return com.google.protobuf.BytesValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.BytesValue build() { - com.google.protobuf.BytesValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.BytesValue buildPartial() { - com.google.protobuf.BytesValue result = new com.google.protobuf.BytesValue(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.BytesValue result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.value_ = value_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.BytesValue) { - return mergeFrom((com.google.protobuf.BytesValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.BytesValue other) { - if (other == com.google.protobuf.BytesValue.getDefaultInstance()) return this; - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - value_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * <pre> - * The bytes value. - * </pre> - * - * <code>bytes value = 1;</code> - * @return The value. - */ - @java.lang.Override - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * <pre> - * The bytes value. - * </pre> - * - * <code>bytes value = 1;</code> - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - value_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * The bytes value. - * </pre> - * - * <code>bytes value = 1;</code> - * @return This builder for chaining. - */ - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000001); - value_ = getDefaultInstance().getValue(); - 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.BytesValue) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.BytesValue) - private static final com.google.protobuf.BytesValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.BytesValue(); - } - - public static com.google.protobuf.BytesValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static com.google.protobuf.BytesValue of(com.google.protobuf.ByteString value) { - return newBuilder().setValue(value).build(); - } - - private static final com.google.protobuf.Parser<BytesValue> - PARSER = new com.google.protobuf.AbstractParser<BytesValue>() { - @java.lang.Override - public BytesValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<BytesValue> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<BytesValue> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.BytesValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/BytesValueOrBuilder.java b/src/main/java/com/google/protobuf/BytesValueOrBuilder.java deleted file mode 100644 index 67e5ba7..0000000 --- a/src/main/java/com/google/protobuf/BytesValueOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package com.google.protobuf; - -public interface BytesValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.BytesValue) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * The bytes value. - * </pre> - * - * <code>bytes value = 1;</code> - * @return The value. - */ - com.google.protobuf.ByteString getValue(); -} diff --git a/src/main/java/com/google/protobuf/DescriptorProtos.java b/src/main/java/com/google/protobuf/DescriptorProtos.java deleted file mode 100644 index ddbd802..0000000 --- a/src/main/java/com/google/protobuf/DescriptorProtos.java +++ /dev/null @@ -1,46274 +0,0 @@ -// 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 { - - /** - * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> - */ - java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> - getFileList(); - /** - * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> - */ - com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index); - /** - * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> - */ - int getFileCount(); - /** - * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> - */ - java.util.List<? extends com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> - getFileOrBuilderList(); - /** - * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> - */ - com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder( - int index); - } - /** - * <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(); - } - - 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; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> file_; - /** - * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> getFileList() { - return file_; - } - /** - * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> - getFileOrBuilderList() { - return file_; - } - /** - * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> - */ - @java.lang.Override - public int getFileCount() { - return file_.size(); - } - /** - * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index) { - return file_.get(index); - } - /** - * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> - */ - @java.lang.Override - 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)); - } - getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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; - } - /** - * <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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (fileBuilder_ == null) { - file_ = java.util.Collections.emptyList(); - } else { - file_ = null; - fileBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.DescriptorProtos.FileDescriptorSet result) { - if (fileBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - file_ = java.util.Collections.unmodifiableList(file_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.file_ = file_; - } else { - result.file_ = fileBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.FileDescriptorSet result) { - int from_bitField0_ = bitField0_; - } - - @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.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.DescriptorProtos.FileDescriptorProto m = - input.readMessage( - com.google.protobuf.DescriptorProtos.FileDescriptorProto.PARSER, - extensionRegistry); - if (fileBuilder_ == null) { - ensureFileIsMutable(); - file_.add(m); - } else { - fileBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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_; - - /** - * <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(); - } - } - /** - * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> - */ - public int getFileCount() { - if (fileBuilder_ == null) { - return file_.size(); - } else { - return fileBuilder_.getCount(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> - */ - public com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder getFileBuilder( - int index) { - return getFileFieldBuilder().getBuilder(index); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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 { - - /** - * <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(); - /** - * <pre> - * file name, relative to root of source tree - * </pre> - * - * <code>optional string name = 1;</code> - * @return The name. - */ - java.lang.String getName(); - /** - * <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(); - - /** - * <pre> - * e.g. "foo", "foo.bar", etc. - * </pre> - * - * <code>optional string package = 2;</code> - * @return Whether the package field is set. - */ - boolean hasPackage(); - /** - * <pre> - * e.g. "foo", "foo.bar", etc. - * </pre> - * - * <code>optional string package = 2;</code> - * @return The package. - */ - java.lang.String getPackage(); - /** - * <pre> - * e.g. "foo", "foo.bar", etc. - * </pre> - * - * <code>optional string package = 2;</code> - * @return The bytes for package. - */ - com.google.protobuf.ByteString - getPackageBytes(); - - /** - * <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(); - /** - * <pre> - * Names of files imported by this file. - * </pre> - * - * <code>repeated string dependency = 3;</code> - * @return The count of dependency. - */ - int getDependencyCount(); - /** - * <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); - /** - * <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); - - /** - * <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(); - /** - * <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(); - /** - * <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); - - /** - * <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(); - /** - * <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(); - /** - * <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); - - /** - * <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(); - /** - * <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); - /** - * <pre> - * All top-level definitions in this file. - * </pre> - * - * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> - */ - int getMessageTypeCount(); - /** - * <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(); - /** - * <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); - - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> - */ - java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> - getEnumTypeList(); - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> - */ - com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index); - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> - */ - int getEnumTypeCount(); - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> - */ - java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> - getEnumTypeOrBuilderList(); - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> - */ - com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( - int index); - - /** - * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> - */ - java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> - getServiceList(); - /** - * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> - */ - com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getService(int index); - /** - * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> - */ - int getServiceCount(); - /** - * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> - */ - java.util.List<? extends com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> - getServiceOrBuilderList(); - /** - * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> - */ - com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder( - int index); - - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> - */ - java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> - getExtensionList(); - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> - */ - com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index); - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> - */ - int getExtensionCount(); - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> - */ - java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> - getExtensionOrBuilderList(); - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> - */ - com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( - int index); - - /** - * <code>optional .google.protobuf.FileOptions options = 8;</code> - * @return Whether the options field is set. - */ - boolean hasOptions(); - /** - * <code>optional .google.protobuf.FileOptions options = 8;</code> - * @return The options. - */ - com.google.protobuf.DescriptorProtos.FileOptions getOptions(); - /** - * <code>optional .google.protobuf.FileOptions options = 8;</code> - */ - com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder(); - - /** - * <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(); - /** - * <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(); - /** - * <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(); - - /** - * <pre> - * The syntax of the proto file. - * The supported values are "proto2", "proto3", and "editions". - * - * If `edition` is present, this value must be "editions". - * </pre> - * - * <code>optional string syntax = 12;</code> - * @return Whether the syntax field is set. - */ - boolean hasSyntax(); - /** - * <pre> - * The syntax of the proto file. - * The supported values are "proto2", "proto3", and "editions". - * - * If `edition` is present, this value must be "editions". - * </pre> - * - * <code>optional string syntax = 12;</code> - * @return The syntax. - */ - java.lang.String getSyntax(); - /** - * <pre> - * The syntax of the proto file. - * The supported values are "proto2", "proto3", and "editions". - * - * If `edition` is present, this value must be "editions". - * </pre> - * - * <code>optional string syntax = 12;</code> - * @return The bytes for syntax. - */ - com.google.protobuf.ByteString - getSyntaxBytes(); - - /** - * <pre> - * The edition of the proto file, which is an opaque string. - * </pre> - * - * <code>optional string edition = 13;</code> - * @return Whether the edition field is set. - */ - boolean hasEdition(); - /** - * <pre> - * The edition of the proto file, which is an opaque string. - * </pre> - * - * <code>optional string edition = 13;</code> - * @return The edition. - */ - java.lang.String getEdition(); - /** - * <pre> - * The edition of the proto file, which is an opaque string. - * </pre> - * - * <code>optional string edition = 13;</code> - * @return The bytes for edition. - */ - com.google.protobuf.ByteString - getEditionBytes(); - } - /** - * <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.emptyList(); - 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_ = ""; - edition_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FileDescriptorProto(); - } - - 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; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * <pre> - * file name, relative to root of source tree - * </pre> - * - * <code>optional string name = 1;</code> - * @return Whether the name field is set. - */ - @java.lang.Override - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <pre> - * file name, relative to root of source tree - * </pre> - * - * <code>optional string name = 1;</code> - * @return The name. - */ - @java.lang.Override - 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; - } - } - /** - * <pre> - * file name, relative to root of source tree - * </pre> - * - * <code>optional string name = 1;</code> - * @return The bytes for name. - */ - @java.lang.Override - 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; - @SuppressWarnings("serial") - private volatile java.lang.Object package_ = ""; - /** - * <pre> - * e.g. "foo", "foo.bar", etc. - * </pre> - * - * <code>optional string package = 2;</code> - * @return Whether the package field is set. - */ - @java.lang.Override - public boolean hasPackage() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <pre> - * e.g. "foo", "foo.bar", etc. - * </pre> - * - * <code>optional string package = 2;</code> - * @return The package. - */ - @java.lang.Override - 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; - } - } - /** - * <pre> - * e.g. "foo", "foo.bar", etc. - * </pre> - * - * <code>optional string package = 2;</code> - * @return The bytes for package. - */ - @java.lang.Override - 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; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList dependency_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * <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_; - } - /** - * <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(); - } - /** - * <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); - } - /** - * <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; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList 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.lang.Override - public java.util.List<java.lang.Integer> - getPublicDependencyList() { - return 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(); - } - /** - * <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; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList 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.lang.Override - public java.util.List<java.lang.Integer> - getWeakDependencyList() { - return 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(); - } - /** - * <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; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> messageType_; - /** - * <pre> - * All top-level definitions in this file. - * </pre> - * - * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getMessageTypeList() { - return messageType_; - } - /** - * <pre> - * All top-level definitions in this file. - * </pre> - * - * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> - getMessageTypeOrBuilderList() { - return messageType_; - } - /** - * <pre> - * All top-level definitions in this file. - * </pre> - * - * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> - */ - @java.lang.Override - public int getMessageTypeCount() { - return messageType_.size(); - } - /** - * <pre> - * All top-level definitions in this file. - * </pre> - * - * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index) { - return messageType_.get(index); - } - /** - * <pre> - * All top-level definitions in this file. - * </pre> - * - * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder( - int index) { - return messageType_.get(index); - } - - public static final int ENUM_TYPE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> enumType_; - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() { - return enumType_; - } - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> - getEnumTypeOrBuilderList() { - return enumType_; - } - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> - */ - @java.lang.Override - public int getEnumTypeCount() { - return enumType_.size(); - } - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { - return enumType_.get(index); - } - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( - int index) { - return enumType_.get(index); - } - - public static final int SERVICE_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> service_; - /** - * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> getServiceList() { - return service_; - } - /** - * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> - getServiceOrBuilderList() { - return service_; - } - /** - * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> - */ - @java.lang.Override - public int getServiceCount() { - return service_.size(); - } - /** - * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getService(int index) { - return service_.get(index); - } - /** - * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder( - int index) { - return service_.get(index); - } - - public static final int EXTENSION_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> extension_; - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() { - return extension_; - } - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> - getExtensionOrBuilderList() { - return extension_; - } - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> - */ - @java.lang.Override - public int getExtensionCount() { - return extension_.size(); - } - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { - return extension_.get(index); - } - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> - */ - @java.lang.Override - 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_; - /** - * <code>optional .google.protobuf.FileOptions options = 8;</code> - * @return Whether the options field is set. - */ - @java.lang.Override - public boolean hasOptions() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <code>optional .google.protobuf.FileOptions options = 8;</code> - * @return The options. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FileOptions getOptions() { - return options_ == null ? com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance() : options_; - } - /** - * <code>optional .google.protobuf.FileOptions options = 8;</code> - */ - @java.lang.Override - 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_; - /** - * <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. - */ - @java.lang.Override - public boolean hasSourceCodeInfo() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * <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. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.SourceCodeInfo getSourceCodeInfo() { - return sourceCodeInfo_ == null ? com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance() : 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> - */ - @java.lang.Override - 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; - @SuppressWarnings("serial") - private volatile java.lang.Object syntax_ = ""; - /** - * <pre> - * The syntax of the proto file. - * The supported values are "proto2", "proto3", and "editions". - * - * If `edition` is present, this value must be "editions". - * </pre> - * - * <code>optional string syntax = 12;</code> - * @return Whether the syntax field is set. - */ - @java.lang.Override - public boolean hasSyntax() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * <pre> - * The syntax of the proto file. - * The supported values are "proto2", "proto3", and "editions". - * - * If `edition` is present, this value must be "editions". - * </pre> - * - * <code>optional string syntax = 12;</code> - * @return The syntax. - */ - @java.lang.Override - 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; - } - } - /** - * <pre> - * The syntax of the proto file. - * The supported values are "proto2", "proto3", and "editions". - * - * If `edition` is present, this value must be "editions". - * </pre> - * - * <code>optional string syntax = 12;</code> - * @return The bytes for syntax. - */ - @java.lang.Override - 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; - } - } - - public static final int EDITION_FIELD_NUMBER = 13; - @SuppressWarnings("serial") - private volatile java.lang.Object edition_ = ""; - /** - * <pre> - * The edition of the proto file, which is an opaque string. - * </pre> - * - * <code>optional string edition = 13;</code> - * @return Whether the edition field is set. - */ - @java.lang.Override - public boolean hasEdition() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * <pre> - * The edition of the proto file, which is an opaque string. - * </pre> - * - * <code>optional string edition = 13;</code> - * @return The edition. - */ - @java.lang.Override - public java.lang.String getEdition() { - java.lang.Object ref = edition_; - 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()) { - edition_ = s; - } - return s; - } - } - /** - * <pre> - * The edition of the proto file, which is an opaque string. - * </pre> - * - * <code>optional string edition = 13;</code> - * @return The bytes for edition. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEditionBytes() { - java.lang.Object ref = edition_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - edition_ = 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_); - } - if (((bitField0_ & 0x00000020) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, edition_); - } - getUnknownFields().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_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, edition_); - } - size += getUnknownFields().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 (hasEdition() != other.hasEdition()) return false; - if (hasEdition()) { - if (!getEdition() - .equals(other.getEdition())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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(); - } - if (hasEdition()) { - hash = (37 * hash) + EDITION_FIELD_NUMBER; - hash = (53 * hash) + getEdition().hashCode(); - } - hash = (29 * hash) + getUnknownFields().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; - } - /** - * <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(); - bitField0_ = 0; - name_ = ""; - package_ = ""; - dependency_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - publicDependency_ = emptyIntList(); - weakDependency_ = emptyIntList(); - if (messageTypeBuilder_ == null) { - messageType_ = java.util.Collections.emptyList(); - } else { - messageType_ = null; - messageTypeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - if (enumTypeBuilder_ == null) { - enumType_ = java.util.Collections.emptyList(); - } else { - enumType_ = null; - enumTypeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - if (serviceBuilder_ == null) { - service_ = java.util.Collections.emptyList(); - } else { - service_ = null; - serviceBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - if (extensionBuilder_ == null) { - extension_ = java.util.Collections.emptyList(); - } else { - extension_ = null; - extensionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000100); - options_ = null; - if (optionsBuilder_ != null) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - } - sourceCodeInfo_ = null; - if (sourceCodeInfoBuilder_ != null) { - sourceCodeInfoBuilder_.dispose(); - sourceCodeInfoBuilder_ = null; - } - syntax_ = ""; - edition_ = ""; - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.DescriptorProtos.FileDescriptorProto result) { - 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(); - } - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.FileDescriptorProto result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.package_ = package_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - dependency_.makeImmutable(); - result.dependency_ = dependency_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.options_ = optionsBuilder_ == null - ? options_ - : optionsBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.sourceCodeInfo_ = sourceCodeInfoBuilder_ == null - ? sourceCodeInfo_ - : sourceCodeInfoBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.syntax_ = syntax_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.edition_ = edition_; - to_bitField0_ |= 0x00000020; - } - result.bitField0_ |= to_bitField0_; - } - - @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()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasPackage()) { - package_ = other.package_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.dependency_.isEmpty()) { - if (dependency_.isEmpty()) { - dependency_ = other.dependency_; - 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()) { - syntax_ = other.syntax_; - bitField0_ |= 0x00000800; - onChanged(); - } - if (other.hasEdition()) { - edition_ = other.edition_; - bitField0_ |= 0x00001000; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - package_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - ensureDependencyIsMutable(); - dependency_.add(bs); - break; - } // case 26 - case 34: { - com.google.protobuf.DescriptorProtos.DescriptorProto m = - input.readMessage( - com.google.protobuf.DescriptorProtos.DescriptorProto.PARSER, - extensionRegistry); - if (messageTypeBuilder_ == null) { - ensureMessageTypeIsMutable(); - messageType_.add(m); - } else { - messageTypeBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: { - com.google.protobuf.DescriptorProtos.EnumDescriptorProto m = - input.readMessage( - com.google.protobuf.DescriptorProtos.EnumDescriptorProto.PARSER, - extensionRegistry); - if (enumTypeBuilder_ == null) { - ensureEnumTypeIsMutable(); - enumType_.add(m); - } else { - enumTypeBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: { - com.google.protobuf.DescriptorProtos.ServiceDescriptorProto m = - input.readMessage( - com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.PARSER, - extensionRegistry); - if (serviceBuilder_ == null) { - ensureServiceIsMutable(); - service_.add(m); - } else { - serviceBuilder_.addMessage(m); - } - break; - } // case 50 - case 58: { - com.google.protobuf.DescriptorProtos.FieldDescriptorProto m = - input.readMessage( - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.PARSER, - extensionRegistry); - if (extensionBuilder_ == null) { - ensureExtensionIsMutable(); - extension_.add(m); - } else { - extensionBuilder_.addMessage(m); - } - break; - } // case 58 - case 66: { - input.readMessage( - getOptionsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 66 - case 74: { - input.readMessage( - getSourceCodeInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 74 - case 80: { - int v = input.readInt32(); - ensurePublicDependencyIsMutable(); - publicDependency_.addInt(v); - break; - } // case 80 - case 82: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensurePublicDependencyIsMutable(); - while (input.getBytesUntilLimit() > 0) { - publicDependency_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } // case 82 - case 88: { - int v = input.readInt32(); - ensureWeakDependencyIsMutable(); - weakDependency_.addInt(v); - break; - } // case 88 - case 90: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureWeakDependencyIsMutable(); - while (input.getBytesUntilLimit() > 0) { - weakDependency_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } // case 90 - case 98: { - syntax_ = input.readBytes(); - bitField0_ |= 0x00000800; - break; - } // case 98 - case 106: { - edition_ = input.readBytes(); - bitField0_ |= 0x00001000; - break; - } // case 106 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * <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); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * file name, relative to root of source tree - * </pre> - * - * <code>optional string name = 1;</code> - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * <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(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object package_ = ""; - /** - * <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); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - package_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <pre> - * e.g. "foo", "foo.bar", etc. - * </pre> - * - * <code>optional string package = 2;</code> - * @return This builder for chaining. - */ - public Builder clearPackage() { - package_ = getDefaultInstance().getPackage(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * <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(); } - package_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList dependency_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureDependencyIsMutable() { - if (!dependency_.isModifiable()) { - dependency_ = new com.google.protobuf.LazyStringArrayList(dependency_); - } - bitField0_ |= 0x00000004; - } - /** - * <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() { - dependency_.makeImmutable(); - return 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(); - } - /** - * <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); - } - /** - * <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); - } - /** - * <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); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <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); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <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_); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; - onChanged(); - return this; - } - /** - * <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); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList publicDependency_ = emptyIntList(); - private void ensurePublicDependencyIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - publicDependency_ = mutableCopy(publicDependency_); - bitField0_ |= 0x00000008; - } - } - /** - * <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_; - } - /** - * <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(); - } - /** - * <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); - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - } - /** - * <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_; - } - /** - * <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(); - } - /** - * <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); - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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_; - - /** - * <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(); - } - } - /** - * <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(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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_; - - /** - * <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(); - } - } - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> - */ - public int getEnumTypeCount() { - if (enumTypeBuilder_ == null) { - return enumType_.size(); - } else { - return enumTypeBuilder_.getCount(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> - */ - public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder getEnumTypeBuilder( - int index) { - return getEnumTypeFieldBuilder().getBuilder(index); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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_; - - /** - * <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(); - } - } - /** - * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> - */ - public int getServiceCount() { - if (serviceBuilder_ == null) { - return service_.size(); - } else { - return serviceBuilder_.getCount(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> - */ - public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder getServiceBuilder( - int index) { - return getServiceFieldBuilder().getBuilder(index); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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_; - - /** - * <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(); - } - } - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> - */ - public int getExtensionCount() { - if (extensionBuilder_ == null) { - return extension_.size(); - } else { - return extensionBuilder_.getCount(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> - */ - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder getExtensionBuilder( - int index) { - return getExtensionFieldBuilder().getBuilder(index); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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_; - /** - * <code>optional .google.protobuf.FileOptions options = 8;</code> - * @return Whether the options field is set. - */ - public boolean hasOptions() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * <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(); - } - } - /** - * <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; - } else { - optionsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.FileOptions options = 8;</code> - */ - public Builder setOptions( - com.google.protobuf.DescriptorProtos.FileOptions.Builder builderForValue) { - if (optionsBuilder_ == null) { - options_ = builderForValue.build(); - } else { - optionsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * <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()) { - getOptionsBuilder().mergeFrom(value); - } else { - options_ = value; - } - } else { - optionsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.FileOptions options = 8;</code> - */ - public Builder clearOptions() { - bitField0_ = (bitField0_ & ~0x00000200); - options_ = null; - if (optionsBuilder_ != null) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.FileOptions options = 8;</code> - */ - public com.google.protobuf.DescriptorProtos.FileOptions.Builder getOptionsBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getOptionsFieldBuilder().getBuilder(); - } - /** - * <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_; - } - } - /** - * <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_; - /** - * <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); - } - /** - * <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(); - } - } - /** - * <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; - } else { - sourceCodeInfoBuilder_.setMessage(value); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * <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(); - } else { - sourceCodeInfoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * <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()) { - getSourceCodeInfoBuilder().mergeFrom(value); - } else { - sourceCodeInfo_ = value; - } - } else { - sourceCodeInfoBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * <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() { - bitField0_ = (bitField0_ & ~0x00000400); - sourceCodeInfo_ = null; - if (sourceCodeInfoBuilder_ != null) { - sourceCodeInfoBuilder_.dispose(); - sourceCodeInfoBuilder_ = null; - } - onChanged(); - return this; - } - /** - * <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(); - } - /** - * <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_; - } - } - /** - * <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_ = ""; - /** - * <pre> - * The syntax of the proto file. - * The supported values are "proto2", "proto3", and "editions". - * - * If `edition` is present, this value must be "editions". - * </pre> - * - * <code>optional string syntax = 12;</code> - * @return Whether the syntax field is set. - */ - public boolean hasSyntax() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * <pre> - * The syntax of the proto file. - * The supported values are "proto2", "proto3", and "editions". - * - * If `edition` is present, this value must be "editions". - * </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; - } - } - /** - * <pre> - * The syntax of the proto file. - * The supported values are "proto2", "proto3", and "editions". - * - * If `edition` is present, this value must be "editions". - * </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; - } - } - /** - * <pre> - * The syntax of the proto file. - * The supported values are "proto2", "proto3", and "editions". - * - * If `edition` is present, this value must be "editions". - * </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(); } - syntax_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * <pre> - * The syntax of the proto file. - * The supported values are "proto2", "proto3", and "editions". - * - * If `edition` is present, this value must be "editions". - * </pre> - * - * <code>optional string syntax = 12;</code> - * @return This builder for chaining. - */ - public Builder clearSyntax() { - syntax_ = getDefaultInstance().getSyntax(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - return this; - } - /** - * <pre> - * The syntax of the proto file. - * The supported values are "proto2", "proto3", and "editions". - * - * If `edition` is present, this value must be "editions". - * </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(); } - syntax_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - - private java.lang.Object edition_ = ""; - /** - * <pre> - * The edition of the proto file, which is an opaque string. - * </pre> - * - * <code>optional string edition = 13;</code> - * @return Whether the edition field is set. - */ - public boolean hasEdition() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * <pre> - * The edition of the proto file, which is an opaque string. - * </pre> - * - * <code>optional string edition = 13;</code> - * @return The edition. - */ - public java.lang.String getEdition() { - java.lang.Object ref = edition_; - 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()) { - edition_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <pre> - * The edition of the proto file, which is an opaque string. - * </pre> - * - * <code>optional string edition = 13;</code> - * @return The bytes for edition. - */ - public com.google.protobuf.ByteString - getEditionBytes() { - java.lang.Object ref = edition_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - edition_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <pre> - * The edition of the proto file, which is an opaque string. - * </pre> - * - * <code>optional string edition = 13;</code> - * @param value The edition to set. - * @return This builder for chaining. - */ - public Builder setEdition( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - edition_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * <pre> - * The edition of the proto file, which is an opaque string. - * </pre> - * - * <code>optional string edition = 13;</code> - * @return This builder for chaining. - */ - public Builder clearEdition() { - edition_ = getDefaultInstance().getEdition(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - return this; - } - /** - * <pre> - * The edition of the proto file, which is an opaque string. - * </pre> - * - * <code>optional string edition = 13;</code> - * @param value The bytes for edition to set. - * @return This builder for chaining. - */ - public Builder setEditionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - edition_ = value; - bitField0_ |= 0x00001000; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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 { - - /** - * <code>optional string name = 1;</code> - * @return Whether the name field is set. - */ - boolean hasName(); - /** - * <code>optional string name = 1;</code> - * @return The name. - */ - java.lang.String getName(); - /** - * <code>optional string name = 1;</code> - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> - */ - java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> - getFieldList(); - /** - * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> - */ - com.google.protobuf.DescriptorProtos.FieldDescriptorProto getField(int index); - /** - * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> - */ - int getFieldCount(); - /** - * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> - */ - java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> - getFieldOrBuilderList(); - /** - * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> - */ - com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder( - int index); - - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> - */ - java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> - getExtensionList(); - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> - */ - com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index); - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> - */ - int getExtensionCount(); - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> - */ - java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> - getExtensionOrBuilderList(); - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> - */ - com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( - int index); - - /** - * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> - */ - java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> - getNestedTypeList(); - /** - * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> - */ - com.google.protobuf.DescriptorProtos.DescriptorProto getNestedType(int index); - /** - * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> - */ - int getNestedTypeCount(); - /** - * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> - */ - java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> - getNestedTypeOrBuilderList(); - /** - * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> - */ - com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder( - int index); - - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> - */ - java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> - getEnumTypeList(); - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> - */ - com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index); - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> - */ - int getEnumTypeCount(); - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> - */ - java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> - getEnumTypeOrBuilderList(); - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> - */ - com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( - int index); - - /** - * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> - */ - java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange> - getExtensionRangeList(); - /** - * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> - */ - com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index); - /** - * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> - */ - int getExtensionRangeCount(); - /** - * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> - */ - java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> - getExtensionRangeOrBuilderList(); - /** - * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> - */ - com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder( - int index); - - /** - * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> - */ - java.util.List<com.google.protobuf.DescriptorProtos.OneofDescriptorProto> - getOneofDeclList(); - /** - * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> - */ - com.google.protobuf.DescriptorProtos.OneofDescriptorProto getOneofDecl(int index); - /** - * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> - */ - int getOneofDeclCount(); - /** - * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> - */ - java.util.List<? extends com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder> - getOneofDeclOrBuilderList(); - /** - * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> - */ - com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder getOneofDeclOrBuilder( - int index); - - /** - * <code>optional .google.protobuf.MessageOptions options = 7;</code> - * @return Whether the options field is set. - */ - boolean hasOptions(); - /** - * <code>optional .google.protobuf.MessageOptions options = 7;</code> - * @return The options. - */ - com.google.protobuf.DescriptorProtos.MessageOptions getOptions(); - /** - * <code>optional .google.protobuf.MessageOptions options = 7;</code> - */ - com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder(); - - /** - * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> - */ - java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange> - getReservedRangeList(); - /** - * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> - */ - com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange getReservedRange(int index); - /** - * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> - */ - int getReservedRangeCount(); - /** - * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> - */ - java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder> - getReservedRangeOrBuilderList(); - /** - * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> - */ - com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder getReservedRangeOrBuilder( - int 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> - * @return A list containing the reservedName. - */ - java.util.List<java.lang.String> - getReservedNameList(); - /** - * <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(); - /** - * <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); - /** - * <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); - } - /** - * <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.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DescriptorProto(); - } - - 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 { - - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 start = 1;</code> - * @return Whether the start field is set. - */ - boolean hasStart(); - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 start = 1;</code> - * @return The start. - */ - int getStart(); - - /** - * <pre> - * Exclusive. - * </pre> - * - * <code>optional int32 end = 2;</code> - * @return Whether the end field is set. - */ - boolean hasEnd(); - /** - * <pre> - * Exclusive. - * </pre> - * - * <code>optional int32 end = 2;</code> - * @return The end. - */ - int getEnd(); - - /** - * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> - * @return Whether the options field is set. - */ - boolean hasOptions(); - /** - * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> - * @return The options. - */ - com.google.protobuf.DescriptorProtos.ExtensionRangeOptions getOptions(); - /** - * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> - */ - com.google.protobuf.DescriptorProtos.ExtensionRangeOptionsOrBuilder getOptionsOrBuilder(); - } - /** - * 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(); - } - - 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_ = 0; - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 start = 1;</code> - * @return Whether the start field is set. - */ - @java.lang.Override - public boolean hasStart() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 start = 1;</code> - * @return The start. - */ - @java.lang.Override - public int getStart() { - return start_; - } - - public static final int END_FIELD_NUMBER = 2; - private int end_ = 0; - /** - * <pre> - * Exclusive. - * </pre> - * - * <code>optional int32 end = 2;</code> - * @return Whether the end field is set. - */ - @java.lang.Override - public boolean hasEnd() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <pre> - * Exclusive. - * </pre> - * - * <code>optional int32 end = 2;</code> - * @return The end. - */ - @java.lang.Override - public int getEnd() { - return end_; - } - - public static final int OPTIONS_FIELD_NUMBER = 3; - private com.google.protobuf.DescriptorProtos.ExtensionRangeOptions options_; - /** - * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> - * @return Whether the options field is set. - */ - @java.lang.Override - public boolean hasOptions() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> - * @return The options. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.ExtensionRangeOptions getOptions() { - return options_ == null ? com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.getDefaultInstance() : options_; - } - /** - * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> - */ - @java.lang.Override - 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()); - } - getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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 {@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(); - bitField0_ = 0; - start_ = 0; - end_ = 0; - options_ = null; - if (optionsBuilder_ != null) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - } - 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); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange result) { - 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)) { - result.options_ = optionsBuilder_ == null - ? options_ - : optionsBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - @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.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - start_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - end_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getOptionsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int start_ ; - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 start = 1;</code> - * @return Whether the start field is set. - */ - @java.lang.Override - public boolean hasStart() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 start = 1;</code> - * @return The start. - */ - @java.lang.Override - public int getStart() { - return start_; - } - /** - * <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) { - - start_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <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_ ; - /** - * <pre> - * Exclusive. - * </pre> - * - * <code>optional int32 end = 2;</code> - * @return Whether the end field is set. - */ - @java.lang.Override - public boolean hasEnd() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <pre> - * Exclusive. - * </pre> - * - * <code>optional int32 end = 2;</code> - * @return The end. - */ - @java.lang.Override - public int getEnd() { - return end_; - } - /** - * <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) { - - end_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <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_; - /** - * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> - * @return Whether the options field is set. - */ - public boolean hasOptions() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <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(); - } - } - /** - * <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; - } else { - optionsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> - */ - public Builder setOptions( - com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.Builder builderForValue) { - if (optionsBuilder_ == null) { - options_ = builderForValue.build(); - } else { - optionsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <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()) { - getOptionsBuilder().mergeFrom(value); - } else { - options_ = value; - } - } else { - optionsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> - */ - public Builder clearOptions() { - bitField0_ = (bitField0_ & ~0x00000004); - options_ = null; - if (optionsBuilder_ != null) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> - */ - public com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.Builder getOptionsBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getOptionsFieldBuilder().getBuilder(); - } - /** - * <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_; - } - } - /** - * <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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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 { - - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 start = 1;</code> - * @return Whether the start field is set. - */ - boolean hasStart(); - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 start = 1;</code> - * @return The start. - */ - int getStart(); - - /** - * <pre> - * Exclusive. - * </pre> - * - * <code>optional int32 end = 2;</code> - * @return Whether the end field is set. - */ - boolean hasEnd(); - /** - * <pre> - * Exclusive. - * </pre> - * - * <code>optional int32 end = 2;</code> - * @return The end. - */ - int getEnd(); - } - /** - * <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(); - } - - 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_ = 0; - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 start = 1;</code> - * @return Whether the start field is set. - */ - @java.lang.Override - public boolean hasStart() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 start = 1;</code> - * @return The start. - */ - @java.lang.Override - public int getStart() { - return start_; - } - - public static final int END_FIELD_NUMBER = 2; - private int end_ = 0; - /** - * <pre> - * Exclusive. - * </pre> - * - * <code>optional int32 end = 2;</code> - * @return Whether the end field is set. - */ - @java.lang.Override - public boolean hasEnd() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <pre> - * Exclusive. - * </pre> - * - * <code>optional int32 end = 2;</code> - * @return The end. - */ - @java.lang.Override - 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_); - } - getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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; - } - /** - * <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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - start_ = 0; - end_ = 0; - 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); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange result) { - 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_; - } - - @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.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - start_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - end_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int start_ ; - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 start = 1;</code> - * @return Whether the start field is set. - */ - @java.lang.Override - public boolean hasStart() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 start = 1;</code> - * @return The start. - */ - @java.lang.Override - public int getStart() { - return start_; - } - /** - * <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) { - - start_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <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_ ; - /** - * <pre> - * Exclusive. - * </pre> - * - * <code>optional int32 end = 2;</code> - * @return Whether the end field is set. - */ - @java.lang.Override - public boolean hasEnd() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <pre> - * Exclusive. - * </pre> - * - * <code>optional int32 end = 2;</code> - * @return The end. - */ - @java.lang.Override - public int getEnd() { - return end_; - } - /** - * <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) { - - end_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * <code>optional string name = 1;</code> - * @return Whether the name field is set. - */ - @java.lang.Override - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <code>optional string name = 1;</code> - * @return The name. - */ - @java.lang.Override - 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; - } - } - /** - * <code>optional string name = 1;</code> - * @return The bytes for name. - */ - @java.lang.Override - 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; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> field_; - /** - * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getFieldList() { - return field_; - } - /** - * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> - getFieldOrBuilderList() { - return field_; - } - /** - * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> - */ - @java.lang.Override - public int getFieldCount() { - return field_.size(); - } - /** - * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getField(int index) { - return field_.get(index); - } - /** - * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder( - int index) { - return field_.get(index); - } - - public static final int EXTENSION_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> extension_; - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() { - return extension_; - } - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> - getExtensionOrBuilderList() { - return extension_; - } - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> - */ - @java.lang.Override - public int getExtensionCount() { - return extension_.size(); - } - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { - return extension_.get(index); - } - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( - int index) { - return extension_.get(index); - } - - public static final int NESTED_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> nestedType_; - /** - * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getNestedTypeList() { - return nestedType_; - } - /** - * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> - getNestedTypeOrBuilderList() { - return nestedType_; - } - /** - * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> - */ - @java.lang.Override - public int getNestedTypeCount() { - return nestedType_.size(); - } - /** - * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.DescriptorProto getNestedType(int index) { - return nestedType_.get(index); - } - /** - * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder( - int index) { - return nestedType_.get(index); - } - - public static final int ENUM_TYPE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> enumType_; - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() { - return enumType_; - } - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> - getEnumTypeOrBuilderList() { - return enumType_; - } - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> - */ - @java.lang.Override - public int getEnumTypeCount() { - return enumType_.size(); - } - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { - return enumType_.get(index); - } - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( - int index) { - return enumType_.get(index); - } - - public static final int EXTENSION_RANGE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange> extensionRange_; - /** - * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange> getExtensionRangeList() { - return extensionRange_; - } - /** - * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> - getExtensionRangeOrBuilderList() { - return extensionRange_; - } - /** - * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> - */ - @java.lang.Override - public int getExtensionRangeCount() { - return extensionRange_.size(); - } - /** - * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index) { - return extensionRange_.get(index); - } - /** - * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder( - int index) { - return extensionRange_.get(index); - } - - public static final int ONEOF_DECL_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.OneofDescriptorProto> oneofDecl_; - /** - * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.OneofDescriptorProto> getOneofDeclList() { - return oneofDecl_; - } - /** - * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder> - getOneofDeclOrBuilderList() { - return oneofDecl_; - } - /** - * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> - */ - @java.lang.Override - public int getOneofDeclCount() { - return oneofDecl_.size(); - } - /** - * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.OneofDescriptorProto getOneofDecl(int index) { - return oneofDecl_.get(index); - } - /** - * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> - */ - @java.lang.Override - 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_; - /** - * <code>optional .google.protobuf.MessageOptions options = 7;</code> - * @return Whether the options field is set. - */ - @java.lang.Override - public boolean hasOptions() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <code>optional .google.protobuf.MessageOptions options = 7;</code> - * @return The options. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.MessageOptions getOptions() { - return options_ == null ? com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance() : options_; - } - /** - * <code>optional .google.protobuf.MessageOptions options = 7;</code> - */ - @java.lang.Override - 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; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange> reservedRange_; - /** - * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange> getReservedRangeList() { - return reservedRange_; - } - /** - * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder> - getReservedRangeOrBuilderList() { - return reservedRange_; - } - /** - * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> - */ - @java.lang.Override - public int getReservedRangeCount() { - return reservedRange_.size(); - } - /** - * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange getReservedRange(int index) { - return reservedRange_.get(index); - } - /** - * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder getReservedRangeOrBuilder( - int index) { - return reservedRange_.get(index); - } - - public static final int RESERVED_NAME_FIELD_NUMBER = 10; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList reservedName_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * <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_; - } - /** - * <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(); - } - /** - * <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); - } - /** - * <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)); - } - getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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; - } - /** - * <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(); - bitField0_ = 0; - name_ = ""; - if (fieldBuilder_ == null) { - field_ = java.util.Collections.emptyList(); - } else { - field_ = null; - fieldBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (extensionBuilder_ == null) { - extension_ = java.util.Collections.emptyList(); - } else { - extension_ = null; - extensionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (nestedTypeBuilder_ == null) { - nestedType_ = java.util.Collections.emptyList(); - } else { - nestedType_ = null; - nestedTypeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - if (enumTypeBuilder_ == null) { - enumType_ = java.util.Collections.emptyList(); - } else { - enumType_ = null; - enumTypeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - if (extensionRangeBuilder_ == null) { - extensionRange_ = java.util.Collections.emptyList(); - } else { - extensionRange_ = null; - extensionRangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - if (oneofDeclBuilder_ == null) { - oneofDecl_ = java.util.Collections.emptyList(); - } else { - oneofDecl_ = null; - oneofDeclBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - options_ = null; - if (optionsBuilder_ != null) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - } - if (reservedRangeBuilder_ == null) { - reservedRange_ = java.util.Collections.emptyList(); - } else { - reservedRange_ = null; - reservedRangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000100); - reservedName_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.DescriptorProtos.DescriptorProto result) { - 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 (reservedRangeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0)) { - reservedRange_ = java.util.Collections.unmodifiableList(reservedRange_); - bitField0_ = (bitField0_ & ~0x00000100); - } - result.reservedRange_ = reservedRange_; - } else { - result.reservedRange_ = reservedRangeBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.DescriptorProto result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.options_ = optionsBuilder_ == null - ? options_ - : optionsBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - reservedName_.makeImmutable(); - result.reservedName_ = reservedName_; - } - result.bitField0_ |= to_bitField0_; - } - - @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()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - 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_ |= 0x00000200; - } else { - ensureReservedNameIsMutable(); - reservedName_.addAll(other.reservedName_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.protobuf.DescriptorProtos.FieldDescriptorProto m = - input.readMessage( - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.PARSER, - extensionRegistry); - if (fieldBuilder_ == null) { - ensureFieldIsMutable(); - field_.add(m); - } else { - fieldBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: { - com.google.protobuf.DescriptorProtos.DescriptorProto m = - input.readMessage( - com.google.protobuf.DescriptorProtos.DescriptorProto.PARSER, - extensionRegistry); - if (nestedTypeBuilder_ == null) { - ensureNestedTypeIsMutable(); - nestedType_.add(m); - } else { - nestedTypeBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: { - com.google.protobuf.DescriptorProtos.EnumDescriptorProto m = - input.readMessage( - com.google.protobuf.DescriptorProtos.EnumDescriptorProto.PARSER, - extensionRegistry); - if (enumTypeBuilder_ == null) { - ensureEnumTypeIsMutable(); - enumType_.add(m); - } else { - enumTypeBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: { - com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange m = - input.readMessage( - com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.PARSER, - extensionRegistry); - if (extensionRangeBuilder_ == null) { - ensureExtensionRangeIsMutable(); - extensionRange_.add(m); - } else { - extensionRangeBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: { - com.google.protobuf.DescriptorProtos.FieldDescriptorProto m = - input.readMessage( - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.PARSER, - extensionRegistry); - if (extensionBuilder_ == null) { - ensureExtensionIsMutable(); - extension_.add(m); - } else { - extensionBuilder_.addMessage(m); - } - break; - } // case 50 - case 58: { - input.readMessage( - getOptionsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: { - com.google.protobuf.DescriptorProtos.OneofDescriptorProto m = - input.readMessage( - com.google.protobuf.DescriptorProtos.OneofDescriptorProto.PARSER, - extensionRegistry); - if (oneofDeclBuilder_ == null) { - ensureOneofDeclIsMutable(); - oneofDecl_.add(m); - } else { - oneofDeclBuilder_.addMessage(m); - } - break; - } // case 66 - case 74: { - com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange m = - input.readMessage( - com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.PARSER, - extensionRegistry); - if (reservedRangeBuilder_ == null) { - ensureReservedRangeIsMutable(); - reservedRange_.add(m); - } else { - reservedRangeBuilder_.addMessage(m); - } - break; - } // case 74 - case 82: { - com.google.protobuf.ByteString bs = input.readBytes(); - ensureReservedNameIsMutable(); - reservedName_.add(bs); - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * <code>optional string name = 1;</code> - * @return Whether the name field is set. - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <code>optional string name = 1;</code> - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * <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(); } - name_ = value; - bitField0_ |= 0x00000001; - 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_; - - /** - * <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(); - } - } - /** - * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> - */ - public int getFieldCount() { - if (fieldBuilder_ == null) { - return field_.size(); - } else { - return fieldBuilder_.getCount(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> - */ - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder getFieldBuilder( - int index) { - return getFieldFieldBuilder().getBuilder(index); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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_; - - /** - * <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(); - } - } - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> - */ - public int getExtensionCount() { - if (extensionBuilder_ == null) { - return extension_.size(); - } else { - return extensionBuilder_.getCount(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> - */ - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder getExtensionBuilder( - int index) { - return getExtensionFieldBuilder().getBuilder(index); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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_; - - /** - * <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(); - } - } - /** - * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> - */ - public int getNestedTypeCount() { - if (nestedTypeBuilder_ == null) { - return nestedType_.size(); - } else { - return nestedTypeBuilder_.getCount(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> - */ - public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder getNestedTypeBuilder( - int index) { - return getNestedTypeFieldBuilder().getBuilder(index); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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_; - - /** - * <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(); - } - } - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> - */ - public int getEnumTypeCount() { - if (enumTypeBuilder_ == null) { - return enumType_.size(); - } else { - return enumTypeBuilder_.getCount(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> - */ - public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder getEnumTypeBuilder( - int index) { - return getEnumTypeFieldBuilder().getBuilder(index); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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_; - - /** - * <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(); - } - } - /** - * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> - */ - public int getExtensionRangeCount() { - if (extensionRangeBuilder_ == null) { - return extensionRange_.size(); - } else { - return extensionRangeBuilder_.getCount(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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_; - - /** - * <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(); - } - } - /** - * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> - */ - public int getOneofDeclCount() { - if (oneofDeclBuilder_ == null) { - return oneofDecl_.size(); - } else { - return oneofDeclBuilder_.getCount(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> - */ - public com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder getOneofDeclBuilder( - int index) { - return getOneofDeclFieldBuilder().getBuilder(index); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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_; - /** - * <code>optional .google.protobuf.MessageOptions options = 7;</code> - * @return Whether the options field is set. - */ - public boolean hasOptions() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * <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(); - } - } - /** - * <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; - } else { - optionsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.MessageOptions options = 7;</code> - */ - public Builder setOptions( - com.google.protobuf.DescriptorProtos.MessageOptions.Builder builderForValue) { - if (optionsBuilder_ == null) { - options_ = builderForValue.build(); - } else { - optionsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * <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()) { - getOptionsBuilder().mergeFrom(value); - } else { - options_ = value; - } - } else { - optionsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.MessageOptions options = 7;</code> - */ - public Builder clearOptions() { - bitField0_ = (bitField0_ & ~0x00000080); - options_ = null; - if (optionsBuilder_ != null) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.MessageOptions options = 7;</code> - */ - public com.google.protobuf.DescriptorProtos.MessageOptions.Builder getOptionsBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getOptionsFieldBuilder().getBuilder(); - } - /** - * <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_; - } - } - /** - * <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_; - - /** - * <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(); - } - } - /** - * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> - */ - public int getReservedRangeCount() { - if (reservedRangeBuilder_ == null) { - return reservedRange_.size(); - } else { - return reservedRangeBuilder_.getCount(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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.LazyStringArrayList reservedName_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureReservedNameIsMutable() { - if (!reservedName_.isModifiable()) { - reservedName_ = new com.google.protobuf.LazyStringArrayList(reservedName_); - } - bitField0_ |= 0x00000200; - } - /** - * <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() { - reservedName_.makeImmutable(); - return 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(); - } - /** - * <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); - } - /** - * <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); - } - /** - * <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); - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * <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); - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * <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_); - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * <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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200);; - onChanged(); - return this; - } - /** - * <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); - bitField0_ |= 0x00000200; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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> { - - /** - * <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(); - /** - * <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); - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - int getUninterpretedOptionCount(); - /** - * <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(); - /** - * <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 {@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(); - } - - 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; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { - return uninterpretedOption_; - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> - getUninterpretedOptionOrBuilderList() { - return uninterpretedOption_; - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public int getUninterpretedOptionCount() { - return uninterpretedOption_.size(); - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { - return uninterpretedOption_.get(index); - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - 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); - getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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 {@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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (uninterpretedOptionBuilder_ == null) { - uninterpretedOption_ = java.util.Collections.emptyList(); - } else { - uninterpretedOption_ = null; - uninterpretedOptionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.DescriptorProtos.ExtensionRangeOptions result) { - if (uninterpretedOptionBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.uninterpretedOption_ = uninterpretedOption_; - } else { - result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.ExtensionRangeOptions result) { - int from_bitField0_ = bitField0_; - } - - @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.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 7994: { - com.google.protobuf.DescriptorProtos.UninterpretedOption m = - input.readMessage( - com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, - extensionRegistry); - if (uninterpretedOptionBuilder_ == null) { - ensureUninterpretedOptionIsMutable(); - uninterpretedOption_.add(m); - } else { - uninterpretedOptionBuilder_.addMessage(m); - } - break; - } // case 7994 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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_; - - /** - * <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(); - } - } - /** - * <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(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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 { - - /** - * <code>optional string name = 1;</code> - * @return Whether the name field is set. - */ - boolean hasName(); - /** - * <code>optional string name = 1;</code> - * @return The name. - */ - java.lang.String getName(); - /** - * <code>optional string name = 1;</code> - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * <code>optional int32 number = 3;</code> - * @return Whether the number field is set. - */ - boolean hasNumber(); - /** - * <code>optional int32 number = 3;</code> - * @return The number. - */ - int getNumber(); - - /** - * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> - * @return Whether the label field is set. - */ - boolean hasLabel(); - /** - * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> - * @return The label. - */ - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label getLabel(); - - /** - * <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(); - /** - * <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(); - - /** - * <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(); - /** - * <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(); - /** - * <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(); - - /** - * <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(); - /** - * <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(); - /** - * <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(); - - /** - * <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 >= 128 are escaped. - * </pre> - * - * <code>optional string default_value = 7;</code> - * @return Whether the defaultValue field is set. - */ - boolean hasDefaultValue(); - /** - * <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 >= 128 are escaped. - * </pre> - * - * <code>optional string default_value = 7;</code> - * @return The defaultValue. - */ - java.lang.String getDefaultValue(); - /** - * <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 >= 128 are escaped. - * </pre> - * - * <code>optional string default_value = 7;</code> - * @return The bytes for defaultValue. - */ - com.google.protobuf.ByteString - getDefaultValueBytes(); - - /** - * <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(); - /** - * <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(); - - /** - * <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(); - /** - * <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(); - /** - * <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(); - - /** - * <code>optional .google.protobuf.FieldOptions options = 8;</code> - * @return Whether the options field is set. - */ - boolean hasOptions(); - /** - * <code>optional .google.protobuf.FieldOptions options = 8;</code> - * @return The options. - */ - com.google.protobuf.DescriptorProtos.FieldOptions getOptions(); - /** - * <code>optional .google.protobuf.FieldOptions options = 8;</code> - */ - com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder getOptionsOrBuilder(); - - /** - * <pre> - * If true, this is a proto3 "optional". When a proto3 field is optional, it - * tracks presence regardless of field type. - * - * When proto3_optional is true, this field must be belong to a oneof to - * signal to old proto3 clients that presence is tracked for this field. This - * oneof is known as a "synthetic" oneof, and this field must be its sole - * member (each proto3 optional field gets its own synthetic oneof). Synthetic - * oneofs exist in the descriptor only, and do not generate any API. Synthetic - * oneofs must be ordered after all "real" oneofs. - * - * For message fields, proto3_optional doesn't create any semantic change, - * since non-repeated message fields always track presence. However it still - * indicates the semantic detail of whether the user wrote "optional" or not. - * This can be useful for round-tripping the .proto file. For consistency we - * give message fields a synthetic oneof also, even though it is not required - * to track presence. This is especially important because the parser can't - * tell if a field is a message or an enum, so it must always create a - * synthetic oneof. - * - * Proto2 optional fields do not set this flag, because they already indicate - * optional with `LABEL_OPTIONAL`. - * </pre> - * - * <code>optional bool proto3_optional = 17;</code> - * @return Whether the proto3Optional field is set. - */ - boolean hasProto3Optional(); - /** - * <pre> - * If true, this is a proto3 "optional". When a proto3 field is optional, it - * tracks presence regardless of field type. - * - * When proto3_optional is true, this field must be belong to a oneof to - * signal to old proto3 clients that presence is tracked for this field. This - * oneof is known as a "synthetic" oneof, and this field must be its sole - * member (each proto3 optional field gets its own synthetic oneof). Synthetic - * oneofs exist in the descriptor only, and do not generate any API. Synthetic - * oneofs must be ordered after all "real" oneofs. - * - * For message fields, proto3_optional doesn't create any semantic change, - * since non-repeated message fields always track presence. However it still - * indicates the semantic detail of whether the user wrote "optional" or not. - * This can be useful for round-tripping the .proto file. For consistency we - * give message fields a synthetic oneof also, even though it is not required - * to track presence. This is especially important because the parser can't - * tell if a field is a message or an enum, so it must always create a - * synthetic oneof. - * - * Proto2 optional fields do not set this flag, because they already indicate - * optional with `LABEL_OPTIONAL`. - * </pre> - * - * <code>optional bool proto3_optional = 17;</code> - * @return The proto3Optional. - */ - boolean getProto3Optional(); - } - /** - * <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(); - } - - 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 {@code google.protobuf.FieldDescriptorProto.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <pre> - * 0 is reserved for errors. - * Order is weird for historical reasons. - * </pre> - * - * <code>TYPE_DOUBLE = 1;</code> - */ - TYPE_DOUBLE(1), - /** - * <code>TYPE_FLOAT = 2;</code> - */ - TYPE_FLOAT(2), - /** - * <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), - /** - * <code>TYPE_UINT64 = 4;</code> - */ - TYPE_UINT64(4), - /** - * <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), - /** - * <code>TYPE_FIXED64 = 6;</code> - */ - TYPE_FIXED64(6), - /** - * <code>TYPE_FIXED32 = 7;</code> - */ - TYPE_FIXED32(7), - /** - * <code>TYPE_BOOL = 8;</code> - */ - TYPE_BOOL(8), - /** - * <code>TYPE_STRING = 9;</code> - */ - TYPE_STRING(9), - /** - * <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), - /** - * <pre> - * Length-delimited aggregate. - * </pre> - * - * <code>TYPE_MESSAGE = 11;</code> - */ - TYPE_MESSAGE(11), - /** - * <pre> - * New in version 2. - * </pre> - * - * <code>TYPE_BYTES = 12;</code> - */ - TYPE_BYTES(12), - /** - * <code>TYPE_UINT32 = 13;</code> - */ - TYPE_UINT32(13), - /** - * <code>TYPE_ENUM = 14;</code> - */ - TYPE_ENUM(14), - /** - * <code>TYPE_SFIXED32 = 15;</code> - */ - TYPE_SFIXED32(15), - /** - * <code>TYPE_SFIXED64 = 16;</code> - */ - TYPE_SFIXED64(16), - /** - * <pre> - * Uses ZigZag encoding. - * </pre> - * - * <code>TYPE_SINT32 = 17;</code> - */ - TYPE_SINT32(17), - /** - * <pre> - * Uses ZigZag encoding. - * </pre> - * - * <code>TYPE_SINT64 = 18;</code> - */ - TYPE_SINT64(18), - ; - - /** - * <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; - /** - * <code>TYPE_FLOAT = 2;</code> - */ - public static final int TYPE_FLOAT_VALUE = 2; - /** - * <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; - /** - * <code>TYPE_UINT64 = 4;</code> - */ - public static final int TYPE_UINT64_VALUE = 4; - /** - * <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; - /** - * <code>TYPE_FIXED64 = 6;</code> - */ - public static final int TYPE_FIXED64_VALUE = 6; - /** - * <code>TYPE_FIXED32 = 7;</code> - */ - public static final int TYPE_FIXED32_VALUE = 7; - /** - * <code>TYPE_BOOL = 8;</code> - */ - public static final int TYPE_BOOL_VALUE = 8; - /** - * <code>TYPE_STRING = 9;</code> - */ - public static final int TYPE_STRING_VALUE = 9; - /** - * <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; - /** - * <pre> - * Length-delimited aggregate. - * </pre> - * - * <code>TYPE_MESSAGE = 11;</code> - */ - public static final int TYPE_MESSAGE_VALUE = 11; - /** - * <pre> - * New in version 2. - * </pre> - * - * <code>TYPE_BYTES = 12;</code> - */ - public static final int TYPE_BYTES_VALUE = 12; - /** - * <code>TYPE_UINT32 = 13;</code> - */ - public static final int TYPE_UINT32_VALUE = 13; - /** - * <code>TYPE_ENUM = 14;</code> - */ - public static final int TYPE_ENUM_VALUE = 14; - /** - * <code>TYPE_SFIXED32 = 15;</code> - */ - public static final int TYPE_SFIXED32_VALUE = 15; - /** - * <code>TYPE_SFIXED64 = 16;</code> - */ - public static final int TYPE_SFIXED64_VALUE = 16; - /** - * <pre> - * Uses ZigZag encoding. - * </pre> - * - * <code>TYPE_SINT32 = 17;</code> - */ - public static final int TYPE_SINT32_VALUE = 17; - /** - * <pre> - * Uses ZigZag encoding. - * </pre> - * - * <code>TYPE_SINT64 = 18;</code> - */ - public static final int TYPE_SINT64_VALUE = 18; - - - public final int getNumber() { - return value; - } - - /** - * @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); - } - - /** - * @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 {@code google.protobuf.FieldDescriptorProto.Label} - */ - public enum Label - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <pre> - * 0 is reserved for errors - * </pre> - * - * <code>LABEL_OPTIONAL = 1;</code> - */ - LABEL_OPTIONAL(1), - /** - * <code>LABEL_REQUIRED = 2;</code> - */ - LABEL_REQUIRED(2), - /** - * <code>LABEL_REPEATED = 3;</code> - */ - LABEL_REPEATED(3), - ; - - /** - * <pre> - * 0 is reserved for errors - * </pre> - * - * <code>LABEL_OPTIONAL = 1;</code> - */ - public static final int LABEL_OPTIONAL_VALUE = 1; - /** - * <code>LABEL_REQUIRED = 2;</code> - */ - public static final int LABEL_REQUIRED_VALUE = 2; - /** - * <code>LABEL_REPEATED = 3;</code> - */ - public static final int LABEL_REPEATED_VALUE = 3; - - - public final int getNumber() { - return value; - } - - /** - * @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); - } - - /** - * @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; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * <code>optional string name = 1;</code> - * @return Whether the name field is set. - */ - @java.lang.Override - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <code>optional string name = 1;</code> - * @return The name. - */ - @java.lang.Override - 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; - } - } - /** - * <code>optional string name = 1;</code> - * @return The bytes for name. - */ - @java.lang.Override - 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_ = 0; - /** - * <code>optional int32 number = 3;</code> - * @return Whether the number field is set. - */ - @java.lang.Override - public boolean hasNumber() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <code>optional int32 number = 3;</code> - * @return The number. - */ - @java.lang.Override - public int getNumber() { - return number_; - } - - public static final int LABEL_FIELD_NUMBER = 4; - private int label_ = 1; - /** - * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> - * @return Whether the label field is set. - */ - @java.lang.Override public boolean hasLabel() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> - * @return The label. - */ - @java.lang.Override public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label getLabel() { - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label result = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.forNumber(label_); - return result == null ? com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.LABEL_OPTIONAL : result; - } - - public static final int TYPE_FIELD_NUMBER = 5; - private int type_ = 1; - /** - * <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. - */ - @java.lang.Override public boolean hasType() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * <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. - */ - @java.lang.Override public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getType() { - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type result = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.forNumber(type_); - return result == null ? com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.TYPE_DOUBLE : result; - } - - public static final int TYPE_NAME_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private volatile java.lang.Object 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 Whether the typeName field is set. - */ - @java.lang.Override - public boolean hasTypeName() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * <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.Override - 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; - } - } - /** - * <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. - */ - @java.lang.Override - 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; - @SuppressWarnings("serial") - private volatile java.lang.Object 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 Whether the extendee field is set. - */ - @java.lang.Override - public boolean hasExtendee() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * <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.Override - 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; - } - } - /** - * <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. - */ - @java.lang.Override - 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; - @SuppressWarnings("serial") - private volatile java.lang.Object 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 >= 128 are escaped. - * </pre> - * - * <code>optional string default_value = 7;</code> - * @return Whether the defaultValue field is set. - */ - @java.lang.Override - public boolean hasDefaultValue() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * <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 >= 128 are escaped. - * </pre> - * - * <code>optional string default_value = 7;</code> - * @return The defaultValue. - */ - @java.lang.Override - 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; - } - } - /** - * <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 >= 128 are escaped. - * </pre> - * - * <code>optional string default_value = 7;</code> - * @return The bytes for defaultValue. - */ - @java.lang.Override - 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_ = 0; - /** - * <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. - */ - @java.lang.Override - public boolean hasOneofIndex() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * <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. - */ - @java.lang.Override - public int getOneofIndex() { - return oneofIndex_; - } - - public static final int JSON_NAME_FIELD_NUMBER = 10; - @SuppressWarnings("serial") - private volatile java.lang.Object 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 Whether the jsonName field is set. - */ - @java.lang.Override - public boolean hasJsonName() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * <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.Override - 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; - } - } - /** - * <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. - */ - @java.lang.Override - 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_; - /** - * <code>optional .google.protobuf.FieldOptions options = 8;</code> - * @return Whether the options field is set. - */ - @java.lang.Override - public boolean hasOptions() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * <code>optional .google.protobuf.FieldOptions options = 8;</code> - * @return The options. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FieldOptions getOptions() { - return options_ == null ? com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance() : options_; - } - /** - * <code>optional .google.protobuf.FieldOptions options = 8;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder getOptionsOrBuilder() { - return options_ == null ? com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance() : options_; - } - - public static final int PROTO3_OPTIONAL_FIELD_NUMBER = 17; - private boolean proto3Optional_ = false; - /** - * <pre> - * If true, this is a proto3 "optional". When a proto3 field is optional, it - * tracks presence regardless of field type. - * - * When proto3_optional is true, this field must be belong to a oneof to - * signal to old proto3 clients that presence is tracked for this field. This - * oneof is known as a "synthetic" oneof, and this field must be its sole - * member (each proto3 optional field gets its own synthetic oneof). Synthetic - * oneofs exist in the descriptor only, and do not generate any API. Synthetic - * oneofs must be ordered after all "real" oneofs. - * - * For message fields, proto3_optional doesn't create any semantic change, - * since non-repeated message fields always track presence. However it still - * indicates the semantic detail of whether the user wrote "optional" or not. - * This can be useful for round-tripping the .proto file. For consistency we - * give message fields a synthetic oneof also, even though it is not required - * to track presence. This is especially important because the parser can't - * tell if a field is a message or an enum, so it must always create a - * synthetic oneof. - * - * Proto2 optional fields do not set this flag, because they already indicate - * optional with `LABEL_OPTIONAL`. - * </pre> - * - * <code>optional bool proto3_optional = 17;</code> - * @return Whether the proto3Optional field is set. - */ - @java.lang.Override - public boolean hasProto3Optional() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * <pre> - * If true, this is a proto3 "optional". When a proto3 field is optional, it - * tracks presence regardless of field type. - * - * When proto3_optional is true, this field must be belong to a oneof to - * signal to old proto3 clients that presence is tracked for this field. This - * oneof is known as a "synthetic" oneof, and this field must be its sole - * member (each proto3 optional field gets its own synthetic oneof). Synthetic - * oneofs exist in the descriptor only, and do not generate any API. Synthetic - * oneofs must be ordered after all "real" oneofs. - * - * For message fields, proto3_optional doesn't create any semantic change, - * since non-repeated message fields always track presence. However it still - * indicates the semantic detail of whether the user wrote "optional" or not. - * This can be useful for round-tripping the .proto file. For consistency we - * give message fields a synthetic oneof also, even though it is not required - * to track presence. This is especially important because the parser can't - * tell if a field is a message or an enum, so it must always create a - * synthetic oneof. - * - * Proto2 optional fields do not set this flag, because they already indicate - * optional with `LABEL_OPTIONAL`. - * </pre> - * - * <code>optional bool proto3_optional = 17;</code> - * @return The proto3Optional. - */ - @java.lang.Override - public boolean getProto3Optional() { - return proto3Optional_; - } - - 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_); - } - if (((bitField0_ & 0x00000400) != 0)) { - output.writeBool(17, proto3Optional_); - } - getUnknownFields().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_); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(17, proto3Optional_); - } - size += getUnknownFields().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 (hasProto3Optional() != other.hasProto3Optional()) return false; - if (hasProto3Optional()) { - if (getProto3Optional() - != other.getProto3Optional()) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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(); - } - if (hasProto3Optional()) { - hash = (37 * hash) + PROTO3_OPTIONAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getProto3Optional()); - } - hash = (29 * hash) + getUnknownFields().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; - } - /** - * <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(); - bitField0_ = 0; - name_ = ""; - number_ = 0; - label_ = 1; - type_ = 1; - typeName_ = ""; - extendee_ = ""; - defaultValue_ = ""; - oneofIndex_ = 0; - jsonName_ = ""; - options_ = null; - if (optionsBuilder_ != null) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - } - proto3Optional_ = false; - 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); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.FieldDescriptorProto result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.number_ = number_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.label_ = label_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.type_ = type_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.typeName_ = typeName_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.extendee_ = extendee_; - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.defaultValue_ = defaultValue_; - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.oneofIndex_ = oneofIndex_; - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.jsonName_ = jsonName_; - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.options_ = optionsBuilder_ == null - ? options_ - : optionsBuilder_.build(); - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.proto3Optional_ = proto3Optional_; - to_bitField0_ |= 0x00000400; - } - result.bitField0_ |= to_bitField0_; - } - - @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()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasNumber()) { - setNumber(other.getNumber()); - } - if (other.hasLabel()) { - setLabel(other.getLabel()); - } - if (other.hasType()) { - setType(other.getType()); - } - if (other.hasTypeName()) { - typeName_ = other.typeName_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.hasExtendee()) { - extendee_ = other.extendee_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (other.hasDefaultValue()) { - defaultValue_ = other.defaultValue_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (other.hasOneofIndex()) { - setOneofIndex(other.getOneofIndex()); - } - if (other.hasJsonName()) { - jsonName_ = other.jsonName_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (other.hasOptions()) { - mergeOptions(other.getOptions()); - } - if (other.hasProto3Optional()) { - setProto3Optional(other.getProto3Optional()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - extendee_ = input.readBytes(); - bitField0_ |= 0x00000020; - break; - } // case 18 - case 24: { - number_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 32: { - int tmpRaw = input.readEnum(); - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label tmpValue = - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(4, tmpRaw); - } else { - label_ = tmpRaw; - bitField0_ |= 0x00000004; - } - break; - } // case 32 - case 40: { - int tmpRaw = input.readEnum(); - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type tmpValue = - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(5, tmpRaw); - } else { - type_ = tmpRaw; - bitField0_ |= 0x00000008; - } - break; - } // case 40 - case 50: { - typeName_ = input.readBytes(); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 58: { - defaultValue_ = input.readBytes(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - input.readMessage( - getOptionsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 66 - case 72: { - oneofIndex_ = input.readInt32(); - bitField0_ |= 0x00000080; - break; - } // case 72 - case 82: { - jsonName_ = input.readBytes(); - bitField0_ |= 0x00000100; - break; - } // case 82 - case 136: { - proto3Optional_ = input.readBool(); - bitField0_ |= 0x00000400; - break; - } // case 136 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * <code>optional string name = 1;</code> - * @return Whether the name field is set. - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <code>optional string name = 1;</code> - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * <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(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int number_ ; - /** - * <code>optional int32 number = 3;</code> - * @return Whether the number field is set. - */ - @java.lang.Override - public boolean hasNumber() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <code>optional int32 number = 3;</code> - * @return The number. - */ - @java.lang.Override - public int getNumber() { - return number_; - } - /** - * <code>optional int32 number = 3;</code> - * @param value The number to set. - * @return This builder for chaining. - */ - public Builder setNumber(int value) { - - number_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <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; - /** - * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> - * @return Whether the label field is set. - */ - @java.lang.Override public boolean hasLabel() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> - * @return The label. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label getLabel() { - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label result = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.forNumber(label_); - return result == null ? com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.LABEL_OPTIONAL : result; - } - /** - * <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; - } - /** - * <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; - /** - * <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. - */ - @java.lang.Override public boolean hasType() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * <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. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getType() { - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type result = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.forNumber(type_); - return result == null ? com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.TYPE_DOUBLE : result; - } - /** - * <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; - } - /** - * <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_ = ""; - /** - * <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); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - typeName_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * <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() { - typeName_ = getDefaultInstance().getTypeName(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * <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(); } - typeName_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object 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 Whether the extendee field is set. - */ - public boolean hasExtendee() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - extendee_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * <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() { - extendee_ = getDefaultInstance().getExtendee(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * <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(); } - extendee_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private java.lang.Object 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 >= 128 are escaped. - * </pre> - * - * <code>optional string default_value = 7;</code> - * @return Whether the defaultValue field is set. - */ - public boolean hasDefaultValue() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * <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 >= 128 are escaped. - * </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; - } - } - /** - * <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 >= 128 are escaped. - * </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; - } - } - /** - * <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 >= 128 are escaped. - * </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(); } - defaultValue_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * <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 >= 128 are escaped. - * </pre> - * - * <code>optional string default_value = 7;</code> - * @return This builder for chaining. - */ - public Builder clearDefaultValue() { - defaultValue_ = getDefaultInstance().getDefaultValue(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - * <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 >= 128 are escaped. - * </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(); } - defaultValue_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - private int 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 Whether the oneofIndex field is set. - */ - @java.lang.Override - public boolean hasOneofIndex() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * <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. - */ - @java.lang.Override - public int getOneofIndex() { - return 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> - * @param value The oneofIndex to set. - * @return This builder for chaining. - */ - public Builder setOneofIndex(int value) { - - oneofIndex_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * <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_ = ""; - /** - * <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); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - jsonName_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * <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() { - jsonName_ = getDefaultInstance().getJsonName(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - /** - * <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(); } - jsonName_ = value; - bitField0_ |= 0x00000100; - 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_; - /** - * <code>optional .google.protobuf.FieldOptions options = 8;</code> - * @return Whether the options field is set. - */ - public boolean hasOptions() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * <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(); - } - } - /** - * <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; - } else { - optionsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.FieldOptions options = 8;</code> - */ - public Builder setOptions( - com.google.protobuf.DescriptorProtos.FieldOptions.Builder builderForValue) { - if (optionsBuilder_ == null) { - options_ = builderForValue.build(); - } else { - optionsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * <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()) { - getOptionsBuilder().mergeFrom(value); - } else { - options_ = value; - } - } else { - optionsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.FieldOptions options = 8;</code> - */ - public Builder clearOptions() { - bitField0_ = (bitField0_ & ~0x00000200); - options_ = null; - if (optionsBuilder_ != null) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.FieldOptions options = 8;</code> - */ - public com.google.protobuf.DescriptorProtos.FieldOptions.Builder getOptionsBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getOptionsFieldBuilder().getBuilder(); - } - /** - * <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_; - } - } - /** - * <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_; - } - - private boolean proto3Optional_ ; - /** - * <pre> - * If true, this is a proto3 "optional". When a proto3 field is optional, it - * tracks presence regardless of field type. - * - * When proto3_optional is true, this field must be belong to a oneof to - * signal to old proto3 clients that presence is tracked for this field. This - * oneof is known as a "synthetic" oneof, and this field must be its sole - * member (each proto3 optional field gets its own synthetic oneof). Synthetic - * oneofs exist in the descriptor only, and do not generate any API. Synthetic - * oneofs must be ordered after all "real" oneofs. - * - * For message fields, proto3_optional doesn't create any semantic change, - * since non-repeated message fields always track presence. However it still - * indicates the semantic detail of whether the user wrote "optional" or not. - * This can be useful for round-tripping the .proto file. For consistency we - * give message fields a synthetic oneof also, even though it is not required - * to track presence. This is especially important because the parser can't - * tell if a field is a message or an enum, so it must always create a - * synthetic oneof. - * - * Proto2 optional fields do not set this flag, because they already indicate - * optional with `LABEL_OPTIONAL`. - * </pre> - * - * <code>optional bool proto3_optional = 17;</code> - * @return Whether the proto3Optional field is set. - */ - @java.lang.Override - public boolean hasProto3Optional() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * <pre> - * If true, this is a proto3 "optional". When a proto3 field is optional, it - * tracks presence regardless of field type. - * - * When proto3_optional is true, this field must be belong to a oneof to - * signal to old proto3 clients that presence is tracked for this field. This - * oneof is known as a "synthetic" oneof, and this field must be its sole - * member (each proto3 optional field gets its own synthetic oneof). Synthetic - * oneofs exist in the descriptor only, and do not generate any API. Synthetic - * oneofs must be ordered after all "real" oneofs. - * - * For message fields, proto3_optional doesn't create any semantic change, - * since non-repeated message fields always track presence. However it still - * indicates the semantic detail of whether the user wrote "optional" or not. - * This can be useful for round-tripping the .proto file. For consistency we - * give message fields a synthetic oneof also, even though it is not required - * to track presence. This is especially important because the parser can't - * tell if a field is a message or an enum, so it must always create a - * synthetic oneof. - * - * Proto2 optional fields do not set this flag, because they already indicate - * optional with `LABEL_OPTIONAL`. - * </pre> - * - * <code>optional bool proto3_optional = 17;</code> - * @return The proto3Optional. - */ - @java.lang.Override - public boolean getProto3Optional() { - return proto3Optional_; - } - /** - * <pre> - * If true, this is a proto3 "optional". When a proto3 field is optional, it - * tracks presence regardless of field type. - * - * When proto3_optional is true, this field must be belong to a oneof to - * signal to old proto3 clients that presence is tracked for this field. This - * oneof is known as a "synthetic" oneof, and this field must be its sole - * member (each proto3 optional field gets its own synthetic oneof). Synthetic - * oneofs exist in the descriptor only, and do not generate any API. Synthetic - * oneofs must be ordered after all "real" oneofs. - * - * For message fields, proto3_optional doesn't create any semantic change, - * since non-repeated message fields always track presence. However it still - * indicates the semantic detail of whether the user wrote "optional" or not. - * This can be useful for round-tripping the .proto file. For consistency we - * give message fields a synthetic oneof also, even though it is not required - * to track presence. This is especially important because the parser can't - * tell if a field is a message or an enum, so it must always create a - * synthetic oneof. - * - * Proto2 optional fields do not set this flag, because they already indicate - * optional with `LABEL_OPTIONAL`. - * </pre> - * - * <code>optional bool proto3_optional = 17;</code> - * @param value The proto3Optional to set. - * @return This builder for chaining. - */ - public Builder setProto3Optional(boolean value) { - - proto3Optional_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * <pre> - * If true, this is a proto3 "optional". When a proto3 field is optional, it - * tracks presence regardless of field type. - * - * When proto3_optional is true, this field must be belong to a oneof to - * signal to old proto3 clients that presence is tracked for this field. This - * oneof is known as a "synthetic" oneof, and this field must be its sole - * member (each proto3 optional field gets its own synthetic oneof). Synthetic - * oneofs exist in the descriptor only, and do not generate any API. Synthetic - * oneofs must be ordered after all "real" oneofs. - * - * For message fields, proto3_optional doesn't create any semantic change, - * since non-repeated message fields always track presence. However it still - * indicates the semantic detail of whether the user wrote "optional" or not. - * This can be useful for round-tripping the .proto file. For consistency we - * give message fields a synthetic oneof also, even though it is not required - * to track presence. This is especially important because the parser can't - * tell if a field is a message or an enum, so it must always create a - * synthetic oneof. - * - * Proto2 optional fields do not set this flag, because they already indicate - * optional with `LABEL_OPTIONAL`. - * </pre> - * - * <code>optional bool proto3_optional = 17;</code> - * @return This builder for chaining. - */ - public Builder clearProto3Optional() { - bitField0_ = (bitField0_ & ~0x00000400); - proto3Optional_ = 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.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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 { - - /** - * <code>optional string name = 1;</code> - * @return Whether the name field is set. - */ - boolean hasName(); - /** - * <code>optional string name = 1;</code> - * @return The name. - */ - java.lang.String getName(); - /** - * <code>optional string name = 1;</code> - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * <code>optional .google.protobuf.OneofOptions options = 2;</code> - * @return Whether the options field is set. - */ - boolean hasOptions(); - /** - * <code>optional .google.protobuf.OneofOptions options = 2;</code> - * @return The options. - */ - com.google.protobuf.DescriptorProtos.OneofOptions getOptions(); - /** - * <code>optional .google.protobuf.OneofOptions options = 2;</code> - */ - com.google.protobuf.DescriptorProtos.OneofOptionsOrBuilder getOptionsOrBuilder(); - } - /** - * <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(); - } - - 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; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * <code>optional string name = 1;</code> - * @return Whether the name field is set. - */ - @java.lang.Override - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <code>optional string name = 1;</code> - * @return The name. - */ - @java.lang.Override - 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; - } - } - /** - * <code>optional string name = 1;</code> - * @return The bytes for name. - */ - @java.lang.Override - 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_; - /** - * <code>optional .google.protobuf.OneofOptions options = 2;</code> - * @return Whether the options field is set. - */ - @java.lang.Override - public boolean hasOptions() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <code>optional .google.protobuf.OneofOptions options = 2;</code> - * @return The options. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.OneofOptions getOptions() { - return options_ == null ? com.google.protobuf.DescriptorProtos.OneofOptions.getDefaultInstance() : options_; - } - /** - * <code>optional .google.protobuf.OneofOptions options = 2;</code> - */ - @java.lang.Override - 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()); - } - getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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; - } - /** - * <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(); - bitField0_ = 0; - name_ = ""; - options_ = null; - if (optionsBuilder_ != null) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - } - 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); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.OneofDescriptorProto result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.options_ = optionsBuilder_ == null - ? options_ - : optionsBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @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()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasOptions()) { - mergeOptions(other.getOptions()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getOptionsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * <code>optional string name = 1;</code> - * @return Whether the name field is set. - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <code>optional string name = 1;</code> - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * <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(); } - name_ = value; - bitField0_ |= 0x00000001; - 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_; - /** - * <code>optional .google.protobuf.OneofOptions options = 2;</code> - * @return Whether the options field is set. - */ - public boolean hasOptions() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <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(); - } - } - /** - * <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; - } else { - optionsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.OneofOptions options = 2;</code> - */ - public Builder setOptions( - com.google.protobuf.DescriptorProtos.OneofOptions.Builder builderForValue) { - if (optionsBuilder_ == null) { - options_ = builderForValue.build(); - } else { - optionsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <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()) { - getOptionsBuilder().mergeFrom(value); - } else { - options_ = value; - } - } else { - optionsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.OneofOptions options = 2;</code> - */ - public Builder clearOptions() { - bitField0_ = (bitField0_ & ~0x00000002); - options_ = null; - if (optionsBuilder_ != null) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.OneofOptions options = 2;</code> - */ - public com.google.protobuf.DescriptorProtos.OneofOptions.Builder getOptionsBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getOptionsFieldBuilder().getBuilder(); - } - /** - * <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_; - } - } - /** - * <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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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 { - - /** - * <code>optional string name = 1;</code> - * @return Whether the name field is set. - */ - boolean hasName(); - /** - * <code>optional string name = 1;</code> - * @return The name. - */ - java.lang.String getName(); - /** - * <code>optional string name = 1;</code> - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> - */ - java.util.List<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto> - getValueList(); - /** - * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> - */ - com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto getValue(int index); - /** - * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> - */ - int getValueCount(); - /** - * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> - */ - java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder> - getValueOrBuilderList(); - /** - * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> - */ - com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder getValueOrBuilder( - int index); - - /** - * <code>optional .google.protobuf.EnumOptions options = 3;</code> - * @return Whether the options field is set. - */ - boolean hasOptions(); - /** - * <code>optional .google.protobuf.EnumOptions options = 3;</code> - * @return The options. - */ - com.google.protobuf.DescriptorProtos.EnumOptions getOptions(); - /** - * <code>optional .google.protobuf.EnumOptions options = 3;</code> - */ - com.google.protobuf.DescriptorProtos.EnumOptionsOrBuilder getOptionsOrBuilder(); - - /** - * <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(); - /** - * <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); - /** - * <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(); - /** - * <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(); - /** - * <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); - - /** - * <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(); - /** - * <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(); - /** - * <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); - /** - * <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); - } - /** - * <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.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnumDescriptorProto(); - } - - 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 { - - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 start = 1;</code> - * @return Whether the start field is set. - */ - boolean hasStart(); - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 start = 1;</code> - * @return The start. - */ - int getStart(); - - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 end = 2;</code> - * @return Whether the end field is set. - */ - boolean hasEnd(); - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 end = 2;</code> - * @return The end. - */ - int getEnd(); - } - /** - * <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(); - } - - 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_ = 0; - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 start = 1;</code> - * @return Whether the start field is set. - */ - @java.lang.Override - public boolean hasStart() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 start = 1;</code> - * @return The start. - */ - @java.lang.Override - public int getStart() { - return start_; - } - - public static final int END_FIELD_NUMBER = 2; - private int end_ = 0; - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 end = 2;</code> - * @return Whether the end field is set. - */ - @java.lang.Override - public boolean hasEnd() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 end = 2;</code> - * @return The end. - */ - @java.lang.Override - 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_); - } - getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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; - } - /** - * <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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - start_ = 0; - end_ = 0; - 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); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange result) { - 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_; - } - - @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.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - start_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - end_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int start_ ; - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 start = 1;</code> - * @return Whether the start field is set. - */ - @java.lang.Override - public boolean hasStart() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 start = 1;</code> - * @return The start. - */ - @java.lang.Override - public int getStart() { - return start_; - } - /** - * <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) { - - start_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <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_ ; - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 end = 2;</code> - * @return Whether the end field is set. - */ - @java.lang.Override - public boolean hasEnd() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <pre> - * Inclusive. - * </pre> - * - * <code>optional int32 end = 2;</code> - * @return The end. - */ - @java.lang.Override - public int getEnd() { - return end_; - } - /** - * <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) { - - end_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * <code>optional string name = 1;</code> - * @return Whether the name field is set. - */ - @java.lang.Override - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <code>optional string name = 1;</code> - * @return The name. - */ - @java.lang.Override - 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; - } - } - /** - * <code>optional string name = 1;</code> - * @return The bytes for name. - */ - @java.lang.Override - 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; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto> value_; - /** - * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto> getValueList() { - return value_; - } - /** - * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder> - getValueOrBuilderList() { - return value_; - } - /** - * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> - */ - @java.lang.Override - public int getValueCount() { - return value_.size(); - } - /** - * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto getValue(int index) { - return value_.get(index); - } - /** - * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> - */ - @java.lang.Override - 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_; - /** - * <code>optional .google.protobuf.EnumOptions options = 3;</code> - * @return Whether the options field is set. - */ - @java.lang.Override - public boolean hasOptions() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <code>optional .google.protobuf.EnumOptions options = 3;</code> - * @return The options. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.EnumOptions getOptions() { - return options_ == null ? com.google.protobuf.DescriptorProtos.EnumOptions.getDefaultInstance() : options_; - } - /** - * <code>optional .google.protobuf.EnumOptions options = 3;</code> - */ - @java.lang.Override - 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; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange> reservedRange_; - /** - * <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.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange> getReservedRangeList() { - return reservedRange_; - } - /** - * <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.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder> - getReservedRangeOrBuilderList() { - return reservedRange_; - } - /** - * <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.lang.Override - public int getReservedRangeCount() { - return reservedRange_.size(); - } - /** - * <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.lang.Override - public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange getReservedRange(int index) { - return reservedRange_.get(index); - } - /** - * <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.lang.Override - public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder getReservedRangeOrBuilder( - int index) { - return reservedRange_.get(index); - } - - public static final int RESERVED_NAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList reservedName_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * <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_; - } - /** - * <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(); - } - /** - * <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); - } - /** - * <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)); - } - getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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; - } - /** - * <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(); - bitField0_ = 0; - name_ = ""; - if (valueBuilder_ == null) { - value_ = java.util.Collections.emptyList(); - } else { - value_ = null; - valueBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - options_ = null; - if (optionsBuilder_ != null) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - } - if (reservedRangeBuilder_ == null) { - reservedRange_ = java.util.Collections.emptyList(); - } else { - reservedRange_ = null; - reservedRangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - reservedName_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.DescriptorProtos.EnumDescriptorProto result) { - 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 (reservedRangeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - reservedRange_ = java.util.Collections.unmodifiableList(reservedRange_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.reservedRange_ = reservedRange_; - } else { - result.reservedRange_ = reservedRangeBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.EnumDescriptorProto result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.options_ = optionsBuilder_ == null - ? options_ - : optionsBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - reservedName_.makeImmutable(); - result.reservedName_ = reservedName_; - } - result.bitField0_ |= to_bitField0_; - } - - @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()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - 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_ |= 0x00000010; - } else { - ensureReservedNameIsMutable(); - reservedName_.addAll(other.reservedName_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto m = - input.readMessage( - com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.PARSER, - extensionRegistry); - if (valueBuilder_ == null) { - ensureValueIsMutable(); - value_.add(m); - } else { - valueBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: { - input.readMessage( - getOptionsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange m = - input.readMessage( - com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.PARSER, - extensionRegistry); - if (reservedRangeBuilder_ == null) { - ensureReservedRangeIsMutable(); - reservedRange_.add(m); - } else { - reservedRangeBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - ensureReservedNameIsMutable(); - reservedName_.add(bs); - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * <code>optional string name = 1;</code> - * @return Whether the name field is set. - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <code>optional string name = 1;</code> - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * <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(); } - name_ = value; - bitField0_ |= 0x00000001; - 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_; - - /** - * <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(); - } - } - /** - * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> - */ - public int getValueCount() { - if (valueBuilder_ == null) { - return value_.size(); - } else { - return valueBuilder_.getCount(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> - */ - public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder getValueBuilder( - int index) { - return getValueFieldBuilder().getBuilder(index); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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_; - /** - * <code>optional .google.protobuf.EnumOptions options = 3;</code> - * @return Whether the options field is set. - */ - public boolean hasOptions() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <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(); - } - } - /** - * <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; - } else { - optionsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.EnumOptions options = 3;</code> - */ - public Builder setOptions( - com.google.protobuf.DescriptorProtos.EnumOptions.Builder builderForValue) { - if (optionsBuilder_ == null) { - options_ = builderForValue.build(); - } else { - optionsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <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()) { - getOptionsBuilder().mergeFrom(value); - } else { - options_ = value; - } - } else { - optionsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.EnumOptions options = 3;</code> - */ - public Builder clearOptions() { - bitField0_ = (bitField0_ & ~0x00000004); - options_ = null; - if (optionsBuilder_ != null) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.EnumOptions options = 3;</code> - */ - public com.google.protobuf.DescriptorProtos.EnumOptions.Builder getOptionsBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getOptionsFieldBuilder().getBuilder(); - } - /** - * <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_; - } - } - /** - * <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_; - - /** - * <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(); - } - } - /** - * <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(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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.LazyStringArrayList reservedName_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureReservedNameIsMutable() { - if (!reservedName_.isModifiable()) { - reservedName_ = new com.google.protobuf.LazyStringArrayList(reservedName_); - } - bitField0_ |= 0x00000010; - } - /** - * <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() { - reservedName_.makeImmutable(); - return 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(); - } - /** - * <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); - } - /** - * <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); - } - /** - * <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); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * <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); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * <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_); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * <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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010);; - onChanged(); - return this; - } - /** - * <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); - bitField0_ |= 0x00000010; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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 { - - /** - * <code>optional string name = 1;</code> - * @return Whether the name field is set. - */ - boolean hasName(); - /** - * <code>optional string name = 1;</code> - * @return The name. - */ - java.lang.String getName(); - /** - * <code>optional string name = 1;</code> - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * <code>optional int32 number = 2;</code> - * @return Whether the number field is set. - */ - boolean hasNumber(); - /** - * <code>optional int32 number = 2;</code> - * @return The number. - */ - int getNumber(); - - /** - * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> - * @return Whether the options field is set. - */ - boolean hasOptions(); - /** - * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> - * @return The options. - */ - com.google.protobuf.DescriptorProtos.EnumValueOptions getOptions(); - /** - * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> - */ - com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder getOptionsOrBuilder(); - } - /** - * <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(); - } - - 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; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * <code>optional string name = 1;</code> - * @return Whether the name field is set. - */ - @java.lang.Override - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <code>optional string name = 1;</code> - * @return The name. - */ - @java.lang.Override - 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; - } - } - /** - * <code>optional string name = 1;</code> - * @return The bytes for name. - */ - @java.lang.Override - 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_ = 0; - /** - * <code>optional int32 number = 2;</code> - * @return Whether the number field is set. - */ - @java.lang.Override - public boolean hasNumber() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <code>optional int32 number = 2;</code> - * @return The number. - */ - @java.lang.Override - public int getNumber() { - return number_; - } - - public static final int OPTIONS_FIELD_NUMBER = 3; - private com.google.protobuf.DescriptorProtos.EnumValueOptions options_; - /** - * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> - * @return Whether the options field is set. - */ - @java.lang.Override - public boolean hasOptions() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> - * @return The options. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.EnumValueOptions getOptions() { - return options_ == null ? com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance() : options_; - } - /** - * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> - */ - @java.lang.Override - 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()); - } - getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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; - } - /** - * <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(); - bitField0_ = 0; - name_ = ""; - number_ = 0; - options_ = null; - if (optionsBuilder_ != null) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - } - 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); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.number_ = number_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.options_ = optionsBuilder_ == null - ? options_ - : optionsBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - @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()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasNumber()) { - setNumber(other.getNumber()); - } - if (other.hasOptions()) { - mergeOptions(other.getOptions()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - number_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getOptionsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * <code>optional string name = 1;</code> - * @return Whether the name field is set. - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <code>optional string name = 1;</code> - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * <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(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int number_ ; - /** - * <code>optional int32 number = 2;</code> - * @return Whether the number field is set. - */ - @java.lang.Override - public boolean hasNumber() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <code>optional int32 number = 2;</code> - * @return The number. - */ - @java.lang.Override - public int getNumber() { - return number_; - } - /** - * <code>optional int32 number = 2;</code> - * @param value The number to set. - * @return This builder for chaining. - */ - public Builder setNumber(int value) { - - number_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <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_; - /** - * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> - * @return Whether the options field is set. - */ - public boolean hasOptions() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <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(); - } - } - /** - * <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; - } else { - optionsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> - */ - public Builder setOptions( - com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder builderForValue) { - if (optionsBuilder_ == null) { - options_ = builderForValue.build(); - } else { - optionsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <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()) { - getOptionsBuilder().mergeFrom(value); - } else { - options_ = value; - } - } else { - optionsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> - */ - public Builder clearOptions() { - bitField0_ = (bitField0_ & ~0x00000004); - options_ = null; - if (optionsBuilder_ != null) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> - */ - public com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder getOptionsBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getOptionsFieldBuilder().getBuilder(); - } - /** - * <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_; - } - } - /** - * <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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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 { - - /** - * <code>optional string name = 1;</code> - * @return Whether the name field is set. - */ - boolean hasName(); - /** - * <code>optional string name = 1;</code> - * @return The name. - */ - java.lang.String getName(); - /** - * <code>optional string name = 1;</code> - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> - */ - java.util.List<com.google.protobuf.DescriptorProtos.MethodDescriptorProto> - getMethodList(); - /** - * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> - */ - com.google.protobuf.DescriptorProtos.MethodDescriptorProto getMethod(int index); - /** - * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> - */ - int getMethodCount(); - /** - * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> - */ - java.util.List<? extends com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder> - getMethodOrBuilderList(); - /** - * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> - */ - com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder getMethodOrBuilder( - int index); - - /** - * <code>optional .google.protobuf.ServiceOptions options = 3;</code> - * @return Whether the options field is set. - */ - boolean hasOptions(); - /** - * <code>optional .google.protobuf.ServiceOptions options = 3;</code> - * @return The options. - */ - com.google.protobuf.DescriptorProtos.ServiceOptions getOptions(); - /** - * <code>optional .google.protobuf.ServiceOptions options = 3;</code> - */ - com.google.protobuf.DescriptorProtos.ServiceOptionsOrBuilder getOptionsOrBuilder(); - } - /** - * <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(); - } - - 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; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * <code>optional string name = 1;</code> - * @return Whether the name field is set. - */ - @java.lang.Override - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <code>optional string name = 1;</code> - * @return The name. - */ - @java.lang.Override - 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; - } - } - /** - * <code>optional string name = 1;</code> - * @return The bytes for name. - */ - @java.lang.Override - 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; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.MethodDescriptorProto> method_; - /** - * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.MethodDescriptorProto> getMethodList() { - return method_; - } - /** - * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder> - getMethodOrBuilderList() { - return method_; - } - /** - * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> - */ - @java.lang.Override - public int getMethodCount() { - return method_.size(); - } - /** - * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.MethodDescriptorProto getMethod(int index) { - return method_.get(index); - } - /** - * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> - */ - @java.lang.Override - 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_; - /** - * <code>optional .google.protobuf.ServiceOptions options = 3;</code> - * @return Whether the options field is set. - */ - @java.lang.Override - public boolean hasOptions() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <code>optional .google.protobuf.ServiceOptions options = 3;</code> - * @return The options. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.ServiceOptions getOptions() { - return options_ == null ? com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance() : options_; - } - /** - * <code>optional .google.protobuf.ServiceOptions options = 3;</code> - */ - @java.lang.Override - 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()); - } - getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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; - } - /** - * <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(); - bitField0_ = 0; - name_ = ""; - if (methodBuilder_ == null) { - method_ = java.util.Collections.emptyList(); - } else { - method_ = null; - methodBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - options_ = null; - if (optionsBuilder_ != null) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - } - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.DescriptorProtos.ServiceDescriptorProto result) { - if (methodBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - method_ = java.util.Collections.unmodifiableList(method_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.method_ = method_; - } else { - result.method_ = methodBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.ServiceDescriptorProto result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.options_ = optionsBuilder_ == null - ? options_ - : optionsBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @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()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - 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.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.protobuf.DescriptorProtos.MethodDescriptorProto m = - input.readMessage( - com.google.protobuf.DescriptorProtos.MethodDescriptorProto.PARSER, - extensionRegistry); - if (methodBuilder_ == null) { - ensureMethodIsMutable(); - method_.add(m); - } else { - methodBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: { - input.readMessage( - getOptionsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * <code>optional string name = 1;</code> - * @return Whether the name field is set. - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <code>optional string name = 1;</code> - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * <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(); } - name_ = value; - bitField0_ |= 0x00000001; - 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_; - - /** - * <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(); - } - } - /** - * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> - */ - public int getMethodCount() { - if (methodBuilder_ == null) { - return method_.size(); - } else { - return methodBuilder_.getCount(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> - */ - public com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder getMethodBuilder( - int index) { - return getMethodFieldBuilder().getBuilder(index); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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_; - /** - * <code>optional .google.protobuf.ServiceOptions options = 3;</code> - * @return Whether the options field is set. - */ - public boolean hasOptions() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <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(); - } - } - /** - * <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; - } else { - optionsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.ServiceOptions options = 3;</code> - */ - public Builder setOptions( - com.google.protobuf.DescriptorProtos.ServiceOptions.Builder builderForValue) { - if (optionsBuilder_ == null) { - options_ = builderForValue.build(); - } else { - optionsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <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()) { - getOptionsBuilder().mergeFrom(value); - } else { - options_ = value; - } - } else { - optionsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.ServiceOptions options = 3;</code> - */ - public Builder clearOptions() { - bitField0_ = (bitField0_ & ~0x00000004); - options_ = null; - if (optionsBuilder_ != null) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.ServiceOptions options = 3;</code> - */ - public com.google.protobuf.DescriptorProtos.ServiceOptions.Builder getOptionsBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getOptionsFieldBuilder().getBuilder(); - } - /** - * <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_; - } - } - /** - * <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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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 { - - /** - * <code>optional string name = 1;</code> - * @return Whether the name field is set. - */ - boolean hasName(); - /** - * <code>optional string name = 1;</code> - * @return The name. - */ - java.lang.String getName(); - /** - * <code>optional string name = 1;</code> - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * <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(); - /** - * <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(); - /** - * <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(); - - /** - * <code>optional string output_type = 3;</code> - * @return Whether the outputType field is set. - */ - boolean hasOutputType(); - /** - * <code>optional string output_type = 3;</code> - * @return The outputType. - */ - java.lang.String getOutputType(); - /** - * <code>optional string output_type = 3;</code> - * @return The bytes for outputType. - */ - com.google.protobuf.ByteString - getOutputTypeBytes(); - - /** - * <code>optional .google.protobuf.MethodOptions options = 4;</code> - * @return Whether the options field is set. - */ - boolean hasOptions(); - /** - * <code>optional .google.protobuf.MethodOptions options = 4;</code> - * @return The options. - */ - com.google.protobuf.DescriptorProtos.MethodOptions getOptions(); - /** - * <code>optional .google.protobuf.MethodOptions options = 4;</code> - */ - com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder getOptionsOrBuilder(); - - /** - * <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(); - /** - * <pre> - * Identifies if client streams multiple client messages - * </pre> - * - * <code>optional bool client_streaming = 5 [default = false];</code> - * @return The clientStreaming. - */ - boolean getClientStreaming(); - - /** - * <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(); - /** - * <pre> - * Identifies if server streams multiple server messages - * </pre> - * - * <code>optional bool server_streaming = 6 [default = false];</code> - * @return The serverStreaming. - */ - boolean getServerStreaming(); - } - /** - * <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(); - } - - 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; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * <code>optional string name = 1;</code> - * @return Whether the name field is set. - */ - @java.lang.Override - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <code>optional string name = 1;</code> - * @return The name. - */ - @java.lang.Override - 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; - } - } - /** - * <code>optional string name = 1;</code> - * @return The bytes for name. - */ - @java.lang.Override - 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; - @SuppressWarnings("serial") - private volatile java.lang.Object 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 Whether the inputType field is set. - */ - @java.lang.Override - public boolean hasInputType() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <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.Override - 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; - } - } - /** - * <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. - */ - @java.lang.Override - 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; - @SuppressWarnings("serial") - private volatile java.lang.Object outputType_ = ""; - /** - * <code>optional string output_type = 3;</code> - * @return Whether the outputType field is set. - */ - @java.lang.Override - public boolean hasOutputType() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <code>optional string output_type = 3;</code> - * @return The outputType. - */ - @java.lang.Override - 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; - } - } - /** - * <code>optional string output_type = 3;</code> - * @return The bytes for outputType. - */ - @java.lang.Override - 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_; - /** - * <code>optional .google.protobuf.MethodOptions options = 4;</code> - * @return Whether the options field is set. - */ - @java.lang.Override - public boolean hasOptions() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * <code>optional .google.protobuf.MethodOptions options = 4;</code> - * @return The options. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.MethodOptions getOptions() { - return options_ == null ? com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance() : options_; - } - /** - * <code>optional .google.protobuf.MethodOptions options = 4;</code> - */ - @java.lang.Override - 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_ = false; - /** - * <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. - */ - @java.lang.Override - public boolean hasClientStreaming() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * <pre> - * Identifies if client streams multiple client messages - * </pre> - * - * <code>optional bool client_streaming = 5 [default = false];</code> - * @return The clientStreaming. - */ - @java.lang.Override - public boolean getClientStreaming() { - return clientStreaming_; - } - - public static final int SERVER_STREAMING_FIELD_NUMBER = 6; - private boolean serverStreaming_ = false; - /** - * <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. - */ - @java.lang.Override - public boolean hasServerStreaming() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * <pre> - * Identifies if server streams multiple server messages - * </pre> - * - * <code>optional bool server_streaming = 6 [default = false];</code> - * @return The serverStreaming. - */ - @java.lang.Override - 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_); - } - getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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; - } - /** - * <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(); - bitField0_ = 0; - name_ = ""; - inputType_ = ""; - outputType_ = ""; - options_ = null; - if (optionsBuilder_ != null) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - } - clientStreaming_ = false; - serverStreaming_ = false; - 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); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.MethodDescriptorProto result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.inputType_ = inputType_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.outputType_ = outputType_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.options_ = optionsBuilder_ == null - ? 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_; - } - - @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()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasInputType()) { - inputType_ = other.inputType_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasOutputType()) { - outputType_ = other.outputType_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasOptions()) { - mergeOptions(other.getOptions()); - } - if (other.hasClientStreaming()) { - setClientStreaming(other.getClientStreaming()); - } - if (other.hasServerStreaming()) { - setServerStreaming(other.getServerStreaming()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - inputType_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - outputType_ = input.readBytes(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getOptionsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - clientStreaming_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - serverStreaming_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * <code>optional string name = 1;</code> - * @return Whether the name field is set. - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <code>optional string name = 1;</code> - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * <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(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object 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 Whether the inputType field is set. - */ - public boolean hasInputType() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - inputType_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <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() { - inputType_ = getDefaultInstance().getInputType(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * <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(); } - inputType_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object outputType_ = ""; - /** - * <code>optional string output_type = 3;</code> - * @return Whether the outputType field is set. - */ - public boolean hasOutputType() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - outputType_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <code>optional string output_type = 3;</code> - * @return This builder for chaining. - */ - public Builder clearOutputType() { - outputType_ = getDefaultInstance().getOutputType(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * <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(); } - outputType_ = value; - bitField0_ |= 0x00000004; - 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_; - /** - * <code>optional .google.protobuf.MethodOptions options = 4;</code> - * @return Whether the options field is set. - */ - public boolean hasOptions() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * <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(); - } - } - /** - * <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; - } else { - optionsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.MethodOptions options = 4;</code> - */ - public Builder setOptions( - com.google.protobuf.DescriptorProtos.MethodOptions.Builder builderForValue) { - if (optionsBuilder_ == null) { - options_ = builderForValue.build(); - } else { - optionsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * <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()) { - getOptionsBuilder().mergeFrom(value); - } else { - options_ = value; - } - } else { - optionsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.MethodOptions options = 4;</code> - */ - public Builder clearOptions() { - bitField0_ = (bitField0_ & ~0x00000008); - options_ = null; - if (optionsBuilder_ != null) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.MethodOptions options = 4;</code> - */ - public com.google.protobuf.DescriptorProtos.MethodOptions.Builder getOptionsBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getOptionsFieldBuilder().getBuilder(); - } - /** - * <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_; - } - } - /** - * <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_ ; - /** - * <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. - */ - @java.lang.Override - public boolean hasClientStreaming() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * <pre> - * Identifies if client streams multiple client messages - * </pre> - * - * <code>optional bool client_streaming = 5 [default = false];</code> - * @return The clientStreaming. - */ - @java.lang.Override - public boolean getClientStreaming() { - return clientStreaming_; - } - /** - * <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) { - - clientStreaming_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * <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_ ; - /** - * <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. - */ - @java.lang.Override - public boolean hasServerStreaming() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * <pre> - * Identifies if server streams multiple server messages - * </pre> - * - * <code>optional bool server_streaming = 6 [default = false];</code> - * @return The serverStreaming. - */ - @java.lang.Override - public boolean getServerStreaming() { - return serverStreaming_; - } - /** - * <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) { - - serverStreaming_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * <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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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> { - - /** - * <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(); - /** - * <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(); - /** - * <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(); - - /** - * <pre> - * Controls the name of the wrapper Java class generated for the .proto file. - * That class will always contain the .proto file's getDescriptor() method as - * well as any top-level extensions defined in the .proto file. - * If java_multiple_files is disabled, then all the other classes from the - * .proto file will be nested inside the single wrapper outer class. - * </pre> - * - * <code>optional string java_outer_classname = 8;</code> - * @return Whether the javaOuterClassname field is set. - */ - boolean hasJavaOuterClassname(); - /** - * <pre> - * Controls the name of the wrapper Java class generated for the .proto file. - * That class will always contain the .proto file's getDescriptor() method as - * well as any top-level extensions defined in the .proto file. - * If java_multiple_files is disabled, then all the other classes from the - * .proto file will be nested inside the single wrapper outer class. - * </pre> - * - * <code>optional string java_outer_classname = 8;</code> - * @return The javaOuterClassname. - */ - java.lang.String getJavaOuterClassname(); - /** - * <pre> - * Controls the name of the wrapper Java class generated for the .proto file. - * That class will always contain the .proto file's getDescriptor() method as - * well as any top-level extensions defined in the .proto file. - * If java_multiple_files is disabled, then all the other classes from the - * .proto file will be nested inside the single wrapper outer class. - * </pre> - * - * <code>optional string java_outer_classname = 8;</code> - * @return The bytes for javaOuterClassname. - */ - com.google.protobuf.ByteString - getJavaOuterClassnameBytes(); - - /** - * <pre> - * If enabled, 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 wrapper class - * named by java_outer_classname. However, the wrapper 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(); - /** - * <pre> - * If enabled, 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 wrapper class - * named by java_outer_classname. However, the wrapper 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(); - - /** - * <pre> - * This option does nothing. - * </pre> - * - * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> - * @deprecated google.protobuf.FileOptions.java_generate_equals_and_hash is deprecated. - * See google/protobuf/descriptor.proto;l=366 - * @return Whether the javaGenerateEqualsAndHash field is set. - */ - @java.lang.Deprecated boolean hasJavaGenerateEqualsAndHash(); - /** - * <pre> - * This option does nothing. - * </pre> - * - * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> - * @deprecated google.protobuf.FileOptions.java_generate_equals_and_hash is deprecated. - * See google/protobuf/descriptor.proto;l=366 - * @return The javaGenerateEqualsAndHash. - */ - @java.lang.Deprecated boolean getJavaGenerateEqualsAndHash(); - - /** - * <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(); - /** - * <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(); - - /** - * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> - * @return Whether the optimizeFor field is set. - */ - boolean hasOptimizeFor(); - /** - * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> - * @return The optimizeFor. - */ - com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode getOptimizeFor(); - - /** - * <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(); - /** - * <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(); - /** - * <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(); - - /** - * <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(); - /** - * <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(); - - /** - * <code>optional bool java_generic_services = 17 [default = false];</code> - * @return Whether the javaGenericServices field is set. - */ - boolean hasJavaGenericServices(); - /** - * <code>optional bool java_generic_services = 17 [default = false];</code> - * @return The javaGenericServices. - */ - boolean getJavaGenericServices(); - - /** - * <code>optional bool py_generic_services = 18 [default = false];</code> - * @return Whether the pyGenericServices field is set. - */ - boolean hasPyGenericServices(); - /** - * <code>optional bool py_generic_services = 18 [default = false];</code> - * @return The pyGenericServices. - */ - boolean getPyGenericServices(); - - /** - * <code>optional bool php_generic_services = 42 [default = false];</code> - * @return Whether the phpGenericServices field is set. - */ - boolean hasPhpGenericServices(); - /** - * <code>optional bool php_generic_services = 42 [default = false];</code> - * @return The phpGenericServices. - */ - boolean getPhpGenericServices(); - - /** - * <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(); - /** - * <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(); - - /** - * <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 = true];</code> - * @return Whether the ccEnableArenas field is set. - */ - boolean hasCcEnableArenas(); - /** - * <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 = true];</code> - * @return The ccEnableArenas. - */ - boolean getCcEnableArenas(); - - /** - * <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(); - /** - * <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(); - /** - * <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(); - - /** - * <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(); - /** - * <pre> - * Namespace for generated classes; defaults to the package. - * </pre> - * - * <code>optional string csharp_namespace = 37;</code> - * @return The csharpNamespace. - */ - java.lang.String getCsharpNamespace(); - /** - * <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(); - - /** - * <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(); - /** - * <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(); - /** - * <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(); - - /** - * <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(); - /** - * <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(); - /** - * <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(); - - /** - * <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(); - /** - * <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(); - /** - * <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(); - - /** - * <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(); - /** - * <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(); - /** - * <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(); - - /** - * <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(); - /** - * <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(); - /** - * <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(); - - /** - * <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(); - /** - * <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); - /** - * <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(); - /** - * <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(); - /** - * <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 {@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_ = ""; - ccEnableArenas_ = true; - 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(); - } - - 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); - } - - /** - * <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 { - /** - * <pre> - * Generate complete code for parsing, serialization, - * </pre> - * - * <code>SPEED = 1;</code> - */ - SPEED(1), - /** - * <pre> - * etc. - * </pre> - * - * <code>CODE_SIZE = 2;</code> - */ - CODE_SIZE(2), - /** - * <pre> - * Generate code using MessageLite and the lite runtime. - * </pre> - * - * <code>LITE_RUNTIME = 3;</code> - */ - LITE_RUNTIME(3), - ; - - /** - * <pre> - * Generate complete code for parsing, serialization, - * </pre> - * - * <code>SPEED = 1;</code> - */ - public static final int SPEED_VALUE = 1; - /** - * <pre> - * etc. - * </pre> - * - * <code>CODE_SIZE = 2;</code> - */ - public static final int CODE_SIZE_VALUE = 2; - /** - * <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; - } - - /** - * @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); - } - - /** - * @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; - @SuppressWarnings("serial") - private volatile java.lang.Object 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 Whether the javaPackage field is set. - */ - @java.lang.Override - public boolean hasJavaPackage() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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.Override - 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; - } - } - /** - * <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. - */ - @java.lang.Override - 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; - @SuppressWarnings("serial") - private volatile java.lang.Object javaOuterClassname_ = ""; - /** - * <pre> - * Controls the name of the wrapper Java class generated for the .proto file. - * That class will always contain the .proto file's getDescriptor() method as - * well as any top-level extensions defined in the .proto file. - * If java_multiple_files is disabled, then all the other classes from the - * .proto file will be nested inside the single wrapper outer class. - * </pre> - * - * <code>optional string java_outer_classname = 8;</code> - * @return Whether the javaOuterClassname field is set. - */ - @java.lang.Override - public boolean hasJavaOuterClassname() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <pre> - * Controls the name of the wrapper Java class generated for the .proto file. - * That class will always contain the .proto file's getDescriptor() method as - * well as any top-level extensions defined in the .proto file. - * If java_multiple_files is disabled, then all the other classes from the - * .proto file will be nested inside the single wrapper outer class. - * </pre> - * - * <code>optional string java_outer_classname = 8;</code> - * @return The javaOuterClassname. - */ - @java.lang.Override - 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; - } - } - /** - * <pre> - * Controls the name of the wrapper Java class generated for the .proto file. - * That class will always contain the .proto file's getDescriptor() method as - * well as any top-level extensions defined in the .proto file. - * If java_multiple_files is disabled, then all the other classes from the - * .proto file will be nested inside the single wrapper outer class. - * </pre> - * - * <code>optional string java_outer_classname = 8;</code> - * @return The bytes for javaOuterClassname. - */ - @java.lang.Override - 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_ = false; - /** - * <pre> - * If enabled, 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 wrapper class - * named by java_outer_classname. However, the wrapper 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. - */ - @java.lang.Override - public boolean hasJavaMultipleFiles() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <pre> - * If enabled, 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 wrapper class - * named by java_outer_classname. However, the wrapper 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. - */ - @java.lang.Override - public boolean getJavaMultipleFiles() { - return javaMultipleFiles_; - } - - public static final int JAVA_GENERATE_EQUALS_AND_HASH_FIELD_NUMBER = 20; - private boolean javaGenerateEqualsAndHash_ = false; - /** - * <pre> - * This option does nothing. - * </pre> - * - * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> - * @deprecated google.protobuf.FileOptions.java_generate_equals_and_hash is deprecated. - * See google/protobuf/descriptor.proto;l=366 - * @return Whether the javaGenerateEqualsAndHash field is set. - */ - @java.lang.Override - @java.lang.Deprecated public boolean hasJavaGenerateEqualsAndHash() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * <pre> - * This option does nothing. - * </pre> - * - * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> - * @deprecated google.protobuf.FileOptions.java_generate_equals_and_hash is deprecated. - * See google/protobuf/descriptor.proto;l=366 - * @return The javaGenerateEqualsAndHash. - */ - @java.lang.Override - @java.lang.Deprecated public boolean getJavaGenerateEqualsAndHash() { - return javaGenerateEqualsAndHash_; - } - - public static final int JAVA_STRING_CHECK_UTF8_FIELD_NUMBER = 27; - private boolean javaStringCheckUtf8_ = false; - /** - * <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. - */ - @java.lang.Override - public boolean hasJavaStringCheckUtf8() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getJavaStringCheckUtf8() { - return javaStringCheckUtf8_; - } - - public static final int OPTIMIZE_FOR_FIELD_NUMBER = 9; - private int optimizeFor_ = 1; - /** - * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> - * @return Whether the optimizeFor field is set. - */ - @java.lang.Override public boolean hasOptimizeFor() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> - * @return The optimizeFor. - */ - @java.lang.Override public com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode getOptimizeFor() { - com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode result = com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.forNumber(optimizeFor_); - return result == null ? com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.SPEED : result; - } - - public static final int GO_PACKAGE_FIELD_NUMBER = 11; - @SuppressWarnings("serial") - private volatile java.lang.Object 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 Whether the goPackage field is set. - */ - @java.lang.Override - public boolean hasGoPackage() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * <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.Override - 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; - } - } - /** - * <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. - */ - @java.lang.Override - 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_ = false; - /** - * <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. - */ - @java.lang.Override - public boolean hasCcGenericServices() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getCcGenericServices() { - return ccGenericServices_; - } - - public static final int JAVA_GENERIC_SERVICES_FIELD_NUMBER = 17; - private boolean javaGenericServices_ = false; - /** - * <code>optional bool java_generic_services = 17 [default = false];</code> - * @return Whether the javaGenericServices field is set. - */ - @java.lang.Override - public boolean hasJavaGenericServices() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * <code>optional bool java_generic_services = 17 [default = false];</code> - * @return The javaGenericServices. - */ - @java.lang.Override - public boolean getJavaGenericServices() { - return javaGenericServices_; - } - - public static final int PY_GENERIC_SERVICES_FIELD_NUMBER = 18; - private boolean pyGenericServices_ = false; - /** - * <code>optional bool py_generic_services = 18 [default = false];</code> - * @return Whether the pyGenericServices field is set. - */ - @java.lang.Override - public boolean hasPyGenericServices() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * <code>optional bool py_generic_services = 18 [default = false];</code> - * @return The pyGenericServices. - */ - @java.lang.Override - public boolean getPyGenericServices() { - return pyGenericServices_; - } - - public static final int PHP_GENERIC_SERVICES_FIELD_NUMBER = 42; - private boolean phpGenericServices_ = false; - /** - * <code>optional bool php_generic_services = 42 [default = false];</code> - * @return Whether the phpGenericServices field is set. - */ - @java.lang.Override - public boolean hasPhpGenericServices() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * <code>optional bool php_generic_services = 42 [default = false];</code> - * @return The phpGenericServices. - */ - @java.lang.Override - public boolean getPhpGenericServices() { - return phpGenericServices_; - } - - public static final int DEPRECATED_FIELD_NUMBER = 23; - private boolean deprecated_ = false; - /** - * <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. - */ - @java.lang.Override - public boolean hasDeprecated() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getDeprecated() { - return deprecated_; - } - - public static final int CC_ENABLE_ARENAS_FIELD_NUMBER = 31; - private boolean ccEnableArenas_ = true; - /** - * <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 = true];</code> - * @return Whether the ccEnableArenas field is set. - */ - @java.lang.Override - public boolean hasCcEnableArenas() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * <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 = true];</code> - * @return The ccEnableArenas. - */ - @java.lang.Override - public boolean getCcEnableArenas() { - return ccEnableArenas_; - } - - public static final int OBJC_CLASS_PREFIX_FIELD_NUMBER = 36; - @SuppressWarnings("serial") - private volatile java.lang.Object 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 Whether the objcClassPrefix field is set. - */ - @java.lang.Override - public boolean hasObjcClassPrefix() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * <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.Override - 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; - } - } - /** - * <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. - */ - @java.lang.Override - 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; - @SuppressWarnings("serial") - private volatile java.lang.Object csharpNamespace_ = ""; - /** - * <pre> - * Namespace for generated classes; defaults to the package. - * </pre> - * - * <code>optional string csharp_namespace = 37;</code> - * @return Whether the csharpNamespace field is set. - */ - @java.lang.Override - public boolean hasCsharpNamespace() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - * <pre> - * Namespace for generated classes; defaults to the package. - * </pre> - * - * <code>optional string csharp_namespace = 37;</code> - * @return The csharpNamespace. - */ - @java.lang.Override - 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; - } - } - /** - * <pre> - * Namespace for generated classes; defaults to the package. - * </pre> - * - * <code>optional string csharp_namespace = 37;</code> - * @return The bytes for csharpNamespace. - */ - @java.lang.Override - 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; - @SuppressWarnings("serial") - private volatile java.lang.Object 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 Whether the swiftPrefix field is set. - */ - @java.lang.Override - public boolean hasSwiftPrefix() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * <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.Override - 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; - } - } - /** - * <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. - */ - @java.lang.Override - 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; - @SuppressWarnings("serial") - private volatile java.lang.Object 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 Whether the phpClassPrefix field is set. - */ - @java.lang.Override - public boolean hasPhpClassPrefix() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * <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.Override - 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; - } - } - /** - * <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. - */ - @java.lang.Override - 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; - @SuppressWarnings("serial") - private volatile java.lang.Object 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 Whether the phpNamespace field is set. - */ - @java.lang.Override - public boolean hasPhpNamespace() { - return ((bitField0_ & 0x00020000) != 0); - } - /** - * <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.Override - 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; - } - } - /** - * <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. - */ - @java.lang.Override - 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; - @SuppressWarnings("serial") - private volatile java.lang.Object 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 Whether the phpMetadataNamespace field is set. - */ - @java.lang.Override - public boolean hasPhpMetadataNamespace() { - return ((bitField0_ & 0x00040000) != 0); - } - /** - * <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.Override - 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; - } - } - /** - * <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. - */ - @java.lang.Override - 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; - @SuppressWarnings("serial") - private volatile java.lang.Object 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 Whether the rubyPackage field is set. - */ - @java.lang.Override - public boolean hasRubyPackage() { - return ((bitField0_ & 0x00080000) != 0); - } - /** - * <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.Override - 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; - } - } - /** - * <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. - */ - @java.lang.Override - 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; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; - /** - * <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.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { - return uninterpretedOption_; - } - /** - * <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.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> - getUninterpretedOptionOrBuilderList() { - return uninterpretedOption_; - } - /** - * <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.lang.Override - public int getUninterpretedOptionCount() { - return uninterpretedOption_.size(); - } - /** - * <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.lang.Override - public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { - return uninterpretedOption_.get(index); - } - /** - * <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.lang.Override - 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); - getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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 {@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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - javaPackage_ = ""; - javaOuterClassname_ = ""; - javaMultipleFiles_ = false; - javaGenerateEqualsAndHash_ = false; - javaStringCheckUtf8_ = false; - optimizeFor_ = 1; - goPackage_ = ""; - ccGenericServices_ = false; - javaGenericServices_ = false; - pyGenericServices_ = false; - phpGenericServices_ = false; - deprecated_ = false; - ccEnableArenas_ = true; - objcClassPrefix_ = ""; - csharpNamespace_ = ""; - swiftPrefix_ = ""; - phpClassPrefix_ = ""; - phpNamespace_ = ""; - phpMetadataNamespace_ = ""; - rubyPackage_ = ""; - if (uninterpretedOptionBuilder_ == null) { - uninterpretedOption_ = java.util.Collections.emptyList(); - } else { - uninterpretedOption_ = null; - uninterpretedOptionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00100000); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.DescriptorProtos.FileOptions result) { - if (uninterpretedOptionBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0)) { - uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); - bitField0_ = (bitField0_ & ~0x00100000); - } - result.uninterpretedOption_ = uninterpretedOption_; - } else { - result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.FileOptions result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.javaPackage_ = javaPackage_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.javaOuterClassname_ = javaOuterClassname_; - to_bitField0_ |= 0x00000002; - } - 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)) { - result.optimizeFor_ = optimizeFor_; - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.goPackage_ = goPackage_; - to_bitField0_ |= 0x00000040; - } - 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)) { - result.objcClassPrefix_ = objcClassPrefix_; - to_bitField0_ |= 0x00002000; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.csharpNamespace_ = csharpNamespace_; - to_bitField0_ |= 0x00004000; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.swiftPrefix_ = swiftPrefix_; - to_bitField0_ |= 0x00008000; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.phpClassPrefix_ = phpClassPrefix_; - to_bitField0_ |= 0x00010000; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.phpNamespace_ = phpNamespace_; - to_bitField0_ |= 0x00020000; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.phpMetadataNamespace_ = phpMetadataNamespace_; - to_bitField0_ |= 0x00040000; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.rubyPackage_ = rubyPackage_; - to_bitField0_ |= 0x00080000; - } - result.bitField0_ |= to_bitField0_; - } - - @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()) { - javaPackage_ = other.javaPackage_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasJavaOuterClassname()) { - javaOuterClassname_ = other.javaOuterClassname_; - bitField0_ |= 0x00000002; - 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()) { - goPackage_ = other.goPackage_; - bitField0_ |= 0x00000040; - 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()) { - objcClassPrefix_ = other.objcClassPrefix_; - bitField0_ |= 0x00002000; - onChanged(); - } - if (other.hasCsharpNamespace()) { - csharpNamespace_ = other.csharpNamespace_; - bitField0_ |= 0x00004000; - onChanged(); - } - if (other.hasSwiftPrefix()) { - swiftPrefix_ = other.swiftPrefix_; - bitField0_ |= 0x00008000; - onChanged(); - } - if (other.hasPhpClassPrefix()) { - phpClassPrefix_ = other.phpClassPrefix_; - bitField0_ |= 0x00010000; - onChanged(); - } - if (other.hasPhpNamespace()) { - phpNamespace_ = other.phpNamespace_; - bitField0_ |= 0x00020000; - onChanged(); - } - if (other.hasPhpMetadataNamespace()) { - phpMetadataNamespace_ = other.phpMetadataNamespace_; - bitField0_ |= 0x00040000; - onChanged(); - } - if (other.hasRubyPackage()) { - rubyPackage_ = other.rubyPackage_; - bitField0_ |= 0x00080000; - 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.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - javaPackage_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 66: { - javaOuterClassname_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 66 - case 72: { - int tmpRaw = input.readEnum(); - com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode tmpValue = - com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(9, tmpRaw); - } else { - optimizeFor_ = tmpRaw; - bitField0_ |= 0x00000020; - } - break; - } // case 72 - case 80: { - javaMultipleFiles_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 80 - case 90: { - goPackage_ = input.readBytes(); - bitField0_ |= 0x00000040; - break; - } // case 90 - case 128: { - ccGenericServices_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 128 - case 136: { - javaGenericServices_ = input.readBool(); - bitField0_ |= 0x00000100; - break; - } // case 136 - case 144: { - pyGenericServices_ = input.readBool(); - bitField0_ |= 0x00000200; - break; - } // case 144 - case 160: { - javaGenerateEqualsAndHash_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 160 - case 184: { - deprecated_ = input.readBool(); - bitField0_ |= 0x00000800; - break; - } // case 184 - case 216: { - javaStringCheckUtf8_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 216 - case 248: { - ccEnableArenas_ = input.readBool(); - bitField0_ |= 0x00001000; - break; - } // case 248 - case 290: { - objcClassPrefix_ = input.readBytes(); - bitField0_ |= 0x00002000; - break; - } // case 290 - case 298: { - csharpNamespace_ = input.readBytes(); - bitField0_ |= 0x00004000; - break; - } // case 298 - case 314: { - swiftPrefix_ = input.readBytes(); - bitField0_ |= 0x00008000; - break; - } // case 314 - case 322: { - phpClassPrefix_ = input.readBytes(); - bitField0_ |= 0x00010000; - break; - } // case 322 - case 330: { - phpNamespace_ = input.readBytes(); - bitField0_ |= 0x00020000; - break; - } // case 330 - case 336: { - phpGenericServices_ = input.readBool(); - bitField0_ |= 0x00000400; - break; - } // case 336 - case 354: { - phpMetadataNamespace_ = input.readBytes(); - bitField0_ |= 0x00040000; - break; - } // case 354 - case 362: { - rubyPackage_ = input.readBytes(); - bitField0_ |= 0x00080000; - break; - } // case 362 - case 7994: { - com.google.protobuf.DescriptorProtos.UninterpretedOption m = - input.readMessage( - com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, - extensionRegistry); - if (uninterpretedOptionBuilder_ == null) { - ensureUninterpretedOptionIsMutable(); - uninterpretedOption_.add(m); - } else { - uninterpretedOptionBuilder_.addMessage(m); - } - break; - } // case 7994 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object 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 Whether the javaPackage field is set. - */ - public boolean hasJavaPackage() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - javaPackage_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <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() { - javaPackage_ = getDefaultInstance().getJavaPackage(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * <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(); } - javaPackage_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object javaOuterClassname_ = ""; - /** - * <pre> - * Controls the name of the wrapper Java class generated for the .proto file. - * That class will always contain the .proto file's getDescriptor() method as - * well as any top-level extensions defined in the .proto file. - * If java_multiple_files is disabled, then all the other classes from the - * .proto file will be nested inside the single wrapper outer class. - * </pre> - * - * <code>optional string java_outer_classname = 8;</code> - * @return Whether the javaOuterClassname field is set. - */ - public boolean hasJavaOuterClassname() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <pre> - * Controls the name of the wrapper Java class generated for the .proto file. - * That class will always contain the .proto file's getDescriptor() method as - * well as any top-level extensions defined in the .proto file. - * If java_multiple_files is disabled, then all the other classes from the - * .proto file will be nested inside the single wrapper outer class. - * </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; - } - } - /** - * <pre> - * Controls the name of the wrapper Java class generated for the .proto file. - * That class will always contain the .proto file's getDescriptor() method as - * well as any top-level extensions defined in the .proto file. - * If java_multiple_files is disabled, then all the other classes from the - * .proto file will be nested inside the single wrapper outer class. - * </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; - } - } - /** - * <pre> - * Controls the name of the wrapper Java class generated for the .proto file. - * That class will always contain the .proto file's getDescriptor() method as - * well as any top-level extensions defined in the .proto file. - * If java_multiple_files is disabled, then all the other classes from the - * .proto file will be nested inside the single wrapper outer class. - * </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(); } - javaOuterClassname_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <pre> - * Controls the name of the wrapper Java class generated for the .proto file. - * That class will always contain the .proto file's getDescriptor() method as - * well as any top-level extensions defined in the .proto file. - * If java_multiple_files is disabled, then all the other classes from the - * .proto file will be nested inside the single wrapper outer class. - * </pre> - * - * <code>optional string java_outer_classname = 8;</code> - * @return This builder for chaining. - */ - public Builder clearJavaOuterClassname() { - javaOuterClassname_ = getDefaultInstance().getJavaOuterClassname(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * <pre> - * Controls the name of the wrapper Java class generated for the .proto file. - * That class will always contain the .proto file's getDescriptor() method as - * well as any top-level extensions defined in the .proto file. - * If java_multiple_files is disabled, then all the other classes from the - * .proto file will be nested inside the single wrapper outer class. - * </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(); } - javaOuterClassname_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean javaMultipleFiles_ ; - /** - * <pre> - * If enabled, 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 wrapper class - * named by java_outer_classname. However, the wrapper 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. - */ - @java.lang.Override - public boolean hasJavaMultipleFiles() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <pre> - * If enabled, 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 wrapper class - * named by java_outer_classname. However, the wrapper 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. - */ - @java.lang.Override - public boolean getJavaMultipleFiles() { - return javaMultipleFiles_; - } - /** - * <pre> - * If enabled, 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 wrapper class - * named by java_outer_classname. However, the wrapper 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) { - - javaMultipleFiles_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <pre> - * If enabled, 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 wrapper class - * named by java_outer_classname. However, the wrapper 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_ ; - /** - * <pre> - * This option does nothing. - * </pre> - * - * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> - * @deprecated google.protobuf.FileOptions.java_generate_equals_and_hash is deprecated. - * See google/protobuf/descriptor.proto;l=366 - * @return Whether the javaGenerateEqualsAndHash field is set. - */ - @java.lang.Override - @java.lang.Deprecated public boolean hasJavaGenerateEqualsAndHash() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * <pre> - * This option does nothing. - * </pre> - * - * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> - * @deprecated google.protobuf.FileOptions.java_generate_equals_and_hash is deprecated. - * See google/protobuf/descriptor.proto;l=366 - * @return The javaGenerateEqualsAndHash. - */ - @java.lang.Override - @java.lang.Deprecated public boolean getJavaGenerateEqualsAndHash() { - return javaGenerateEqualsAndHash_; - } - /** - * <pre> - * This option does nothing. - * </pre> - * - * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> - * @deprecated google.protobuf.FileOptions.java_generate_equals_and_hash is deprecated. - * See google/protobuf/descriptor.proto;l=366 - * @param value The javaGenerateEqualsAndHash to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setJavaGenerateEqualsAndHash(boolean value) { - - javaGenerateEqualsAndHash_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * <pre> - * This option does nothing. - * </pre> - * - * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> - * @deprecated google.protobuf.FileOptions.java_generate_equals_and_hash is deprecated. - * See google/protobuf/descriptor.proto;l=366 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearJavaGenerateEqualsAndHash() { - bitField0_ = (bitField0_ & ~0x00000008); - javaGenerateEqualsAndHash_ = false; - onChanged(); - return this; - } - - private boolean 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 Whether the javaStringCheckUtf8 field is set. - */ - @java.lang.Override - public boolean hasJavaStringCheckUtf8() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getJavaStringCheckUtf8() { - return 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> - * @param value The javaStringCheckUtf8 to set. - * @return This builder for chaining. - */ - public Builder setJavaStringCheckUtf8(boolean value) { - - javaStringCheckUtf8_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * <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; - /** - * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> - * @return Whether the optimizeFor field is set. - */ - @java.lang.Override public boolean hasOptimizeFor() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> - * @return The optimizeFor. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode getOptimizeFor() { - com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode result = com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.forNumber(optimizeFor_); - return result == null ? com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.SPEED : result; - } - /** - * <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; - } - /** - * <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_ = ""; - /** - * <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); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - goPackage_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * <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() { - goPackage_ = getDefaultInstance().getGoPackage(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - * <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(); } - goPackage_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - private boolean 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 Whether the ccGenericServices field is set. - */ - @java.lang.Override - public boolean hasCcGenericServices() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getCcGenericServices() { - return 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> - * @param value The ccGenericServices to set. - * @return This builder for chaining. - */ - public Builder setCcGenericServices(boolean value) { - - ccGenericServices_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * <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_ ; - /** - * <code>optional bool java_generic_services = 17 [default = false];</code> - * @return Whether the javaGenericServices field is set. - */ - @java.lang.Override - public boolean hasJavaGenericServices() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * <code>optional bool java_generic_services = 17 [default = false];</code> - * @return The javaGenericServices. - */ - @java.lang.Override - public boolean getJavaGenericServices() { - return javaGenericServices_; - } - /** - * <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) { - - javaGenericServices_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * <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_ ; - /** - * <code>optional bool py_generic_services = 18 [default = false];</code> - * @return Whether the pyGenericServices field is set. - */ - @java.lang.Override - public boolean hasPyGenericServices() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * <code>optional bool py_generic_services = 18 [default = false];</code> - * @return The pyGenericServices. - */ - @java.lang.Override - public boolean getPyGenericServices() { - return pyGenericServices_; - } - /** - * <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) { - - pyGenericServices_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * <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_ ; - /** - * <code>optional bool php_generic_services = 42 [default = false];</code> - * @return Whether the phpGenericServices field is set. - */ - @java.lang.Override - public boolean hasPhpGenericServices() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * <code>optional bool php_generic_services = 42 [default = false];</code> - * @return The phpGenericServices. - */ - @java.lang.Override - public boolean getPhpGenericServices() { - return phpGenericServices_; - } - /** - * <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) { - - phpGenericServices_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * <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_ ; - /** - * <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. - */ - @java.lang.Override - public boolean hasDeprecated() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getDeprecated() { - return 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> - * @param value The deprecated to set. - * @return This builder for chaining. - */ - public Builder setDeprecated(boolean value) { - - deprecated_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * <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_ = true; - /** - * <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 = true];</code> - * @return Whether the ccEnableArenas field is set. - */ - @java.lang.Override - public boolean hasCcEnableArenas() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * <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 = true];</code> - * @return The ccEnableArenas. - */ - @java.lang.Override - public boolean getCcEnableArenas() { - return 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 = true];</code> - * @param value The ccEnableArenas to set. - * @return This builder for chaining. - */ - public Builder setCcEnableArenas(boolean value) { - - ccEnableArenas_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * <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 = true];</code> - * @return This builder for chaining. - */ - public Builder clearCcEnableArenas() { - bitField0_ = (bitField0_ & ~0x00001000); - ccEnableArenas_ = true; - onChanged(); - return this; - } - - private java.lang.Object 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 Whether the objcClassPrefix field is set. - */ - public boolean hasObjcClassPrefix() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - objcClassPrefix_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * <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() { - objcClassPrefix_ = getDefaultInstance().getObjcClassPrefix(); - bitField0_ = (bitField0_ & ~0x00002000); - onChanged(); - return this; - } - /** - * <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(); } - objcClassPrefix_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - - private java.lang.Object csharpNamespace_ = ""; - /** - * <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); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - csharpNamespace_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * <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() { - csharpNamespace_ = getDefaultInstance().getCsharpNamespace(); - bitField0_ = (bitField0_ & ~0x00004000); - onChanged(); - return this; - } - /** - * <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(); } - csharpNamespace_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - - private java.lang.Object 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 Whether the swiftPrefix field is set. - */ - public boolean hasSwiftPrefix() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - swiftPrefix_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * <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() { - swiftPrefix_ = getDefaultInstance().getSwiftPrefix(); - bitField0_ = (bitField0_ & ~0x00008000); - onChanged(); - return this; - } - /** - * <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(); } - swiftPrefix_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - - private java.lang.Object 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 Whether the phpClassPrefix field is set. - */ - public boolean hasPhpClassPrefix() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - phpClassPrefix_ = value; - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * <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() { - phpClassPrefix_ = getDefaultInstance().getPhpClassPrefix(); - bitField0_ = (bitField0_ & ~0x00010000); - onChanged(); - return this; - } - /** - * <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(); } - phpClassPrefix_ = value; - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - - private java.lang.Object 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 Whether the phpNamespace field is set. - */ - public boolean hasPhpNamespace() { - return ((bitField0_ & 0x00020000) != 0); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - phpNamespace_ = value; - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * <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() { - phpNamespace_ = getDefaultInstance().getPhpNamespace(); - bitField0_ = (bitField0_ & ~0x00020000); - onChanged(); - return this; - } - /** - * <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(); } - phpNamespace_ = value; - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - - private java.lang.Object 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 Whether the phpMetadataNamespace field is set. - */ - public boolean hasPhpMetadataNamespace() { - return ((bitField0_ & 0x00040000) != 0); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - phpMetadataNamespace_ = value; - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * <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() { - phpMetadataNamespace_ = getDefaultInstance().getPhpMetadataNamespace(); - bitField0_ = (bitField0_ & ~0x00040000); - onChanged(); - return this; - } - /** - * <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(); } - phpMetadataNamespace_ = value; - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - - private java.lang.Object 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 Whether the rubyPackage field is set. - */ - public boolean hasRubyPackage() { - return ((bitField0_ & 0x00080000) != 0); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - rubyPackage_ = value; - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * <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() { - rubyPackage_ = getDefaultInstance().getRubyPackage(); - bitField0_ = (bitField0_ & ~0x00080000); - onChanged(); - return this; - } - /** - * <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(); } - rubyPackage_ = value; - bitField0_ |= 0x00080000; - 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_; - - /** - * <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(); - } - } - /** - * <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(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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> { - - /** - * <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(); - /** - * <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(); - - /** - * <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(); - /** - * <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(); - - /** - * <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(); - /** - * <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(); - - /** - * <pre> - * 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. - * - * 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. - * </pre> - * - * <code>optional bool map_entry = 7;</code> - * @return Whether the mapEntry field is set. - */ - boolean hasMapEntry(); - /** - * <pre> - * 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. - * - * 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. - * </pre> - * - * <code>optional bool map_entry = 7;</code> - * @return The mapEntry. - */ - boolean getMapEntry(); - - /** - * <pre> - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * - * This should only be used as a temporary measure against broken builds due - * to the change in behavior for JSON field name conflicts. - * - * TODO(b/261750190) This is legacy behavior we plan to remove once downstream - * teams have had time to migrate. - * </pre> - * - * <code>optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];</code> - * @deprecated google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated. - * See google/protobuf/descriptor.proto;l=530 - * @return Whether the deprecatedLegacyJsonFieldConflicts field is set. - */ - @java.lang.Deprecated boolean hasDeprecatedLegacyJsonFieldConflicts(); - /** - * <pre> - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * - * This should only be used as a temporary measure against broken builds due - * to the change in behavior for JSON field name conflicts. - * - * TODO(b/261750190) This is legacy behavior we plan to remove once downstream - * teams have had time to migrate. - * </pre> - * - * <code>optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];</code> - * @deprecated google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated. - * See google/protobuf/descriptor.proto;l=530 - * @return The deprecatedLegacyJsonFieldConflicts. - */ - @java.lang.Deprecated boolean getDeprecatedLegacyJsonFieldConflicts(); - - /** - * <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(); - /** - * <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); - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - int getUninterpretedOptionCount(); - /** - * <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(); - /** - * <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 {@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(); - } - - 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_ = false; - /** - * <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. - */ - @java.lang.Override - public boolean hasMessageSetWireFormat() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getMessageSetWireFormat() { - return messageSetWireFormat_; - } - - public static final int NO_STANDARD_DESCRIPTOR_ACCESSOR_FIELD_NUMBER = 2; - private boolean noStandardDescriptorAccessor_ = false; - /** - * <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. - */ - @java.lang.Override - public boolean hasNoStandardDescriptorAccessor() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getNoStandardDescriptorAccessor() { - return noStandardDescriptorAccessor_; - } - - public static final int DEPRECATED_FIELD_NUMBER = 3; - private boolean deprecated_ = false; - /** - * <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. - */ - @java.lang.Override - public boolean hasDeprecated() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getDeprecated() { - return deprecated_; - } - - public static final int MAP_ENTRY_FIELD_NUMBER = 7; - private boolean mapEntry_ = false; - /** - * <pre> - * 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. - * - * 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. - * </pre> - * - * <code>optional bool map_entry = 7;</code> - * @return Whether the mapEntry field is set. - */ - @java.lang.Override - public boolean hasMapEntry() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * <pre> - * 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. - * - * 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. - * </pre> - * - * <code>optional bool map_entry = 7;</code> - * @return The mapEntry. - */ - @java.lang.Override - public boolean getMapEntry() { - return mapEntry_; - } - - public static final int DEPRECATED_LEGACY_JSON_FIELD_CONFLICTS_FIELD_NUMBER = 11; - private boolean deprecatedLegacyJsonFieldConflicts_ = false; - /** - * <pre> - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * - * This should only be used as a temporary measure against broken builds due - * to the change in behavior for JSON field name conflicts. - * - * TODO(b/261750190) This is legacy behavior we plan to remove once downstream - * teams have had time to migrate. - * </pre> - * - * <code>optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];</code> - * @deprecated google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated. - * See google/protobuf/descriptor.proto;l=530 - * @return Whether the deprecatedLegacyJsonFieldConflicts field is set. - */ - @java.lang.Override - @java.lang.Deprecated public boolean hasDeprecatedLegacyJsonFieldConflicts() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * <pre> - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * - * This should only be used as a temporary measure against broken builds due - * to the change in behavior for JSON field name conflicts. - * - * TODO(b/261750190) This is legacy behavior we plan to remove once downstream - * teams have had time to migrate. - * </pre> - * - * <code>optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];</code> - * @deprecated google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated. - * See google/protobuf/descriptor.proto;l=530 - * @return The deprecatedLegacyJsonFieldConflicts. - */ - @java.lang.Override - @java.lang.Deprecated public boolean getDeprecatedLegacyJsonFieldConflicts() { - return deprecatedLegacyJsonFieldConflicts_; - } - - public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { - return uninterpretedOption_; - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> - getUninterpretedOptionOrBuilderList() { - return uninterpretedOption_; - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public int getUninterpretedOptionCount() { - return uninterpretedOption_.size(); - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { - return uninterpretedOption_.get(index); - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - 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_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeBool(11, deprecatedLegacyJsonFieldConflicts_); - } - for (int i = 0; i < uninterpretedOption_.size(); i++) { - output.writeMessage(999, uninterpretedOption_.get(i)); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().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_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, deprecatedLegacyJsonFieldConflicts_); - } - for (int i = 0; i < uninterpretedOption_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(999, uninterpretedOption_.get(i)); - } - size += extensionsSerializedSize(); - size += getUnknownFields().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 (hasDeprecatedLegacyJsonFieldConflicts() != other.hasDeprecatedLegacyJsonFieldConflicts()) return false; - if (hasDeprecatedLegacyJsonFieldConflicts()) { - if (getDeprecatedLegacyJsonFieldConflicts() - != other.getDeprecatedLegacyJsonFieldConflicts()) return false; - } - if (!getUninterpretedOptionList() - .equals(other.getUninterpretedOptionList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasDeprecatedLegacyJsonFieldConflicts()) { - hash = (37 * hash) + DEPRECATED_LEGACY_JSON_FIELD_CONFLICTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDeprecatedLegacyJsonFieldConflicts()); - } - if (getUninterpretedOptionCount() > 0) { - hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; - hash = (53 * hash) + getUninterpretedOptionList().hashCode(); - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().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 {@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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - messageSetWireFormat_ = false; - noStandardDescriptorAccessor_ = false; - deprecated_ = false; - mapEntry_ = false; - deprecatedLegacyJsonFieldConflicts_ = false; - if (uninterpretedOptionBuilder_ == null) { - uninterpretedOption_ = java.util.Collections.emptyList(); - } else { - uninterpretedOption_ = null; - uninterpretedOptionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.DescriptorProtos.MessageOptions result) { - if (uninterpretedOptionBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.uninterpretedOption_ = uninterpretedOption_; - } else { - result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.MessageOptions result) { - 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 (((from_bitField0_ & 0x00000010) != 0)) { - result.deprecatedLegacyJsonFieldConflicts_ = deprecatedLegacyJsonFieldConflicts_; - to_bitField0_ |= 0x00000010; - } - result.bitField0_ |= to_bitField0_; - } - - @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 (other.hasDeprecatedLegacyJsonFieldConflicts()) { - setDeprecatedLegacyJsonFieldConflicts(other.getDeprecatedLegacyJsonFieldConflicts()); - } - if (uninterpretedOptionBuilder_ == null) { - if (!other.uninterpretedOption_.isEmpty()) { - if (uninterpretedOption_.isEmpty()) { - uninterpretedOption_ = other.uninterpretedOption_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureUninterpretedOptionIsMutable(); - uninterpretedOption_.addAll(other.uninterpretedOption_); - } - onChanged(); - } - } else { - if (!other.uninterpretedOption_.isEmpty()) { - if (uninterpretedOptionBuilder_.isEmpty()) { - uninterpretedOptionBuilder_.dispose(); - uninterpretedOptionBuilder_ = null; - uninterpretedOption_ = other.uninterpretedOption_; - bitField0_ = (bitField0_ & ~0x00000020); - uninterpretedOptionBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getUninterpretedOptionFieldBuilder() : null; - } else { - uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); - } - } - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - messageSetWireFormat_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - noStandardDescriptorAccessor_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - deprecated_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 56: { - mapEntry_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 56 - case 88: { - deprecatedLegacyJsonFieldConflicts_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 88 - case 7994: { - com.google.protobuf.DescriptorProtos.UninterpretedOption m = - input.readMessage( - com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, - extensionRegistry); - if (uninterpretedOptionBuilder_ == null) { - ensureUninterpretedOptionIsMutable(); - uninterpretedOption_.add(m); - } else { - uninterpretedOptionBuilder_.addMessage(m); - } - break; - } // case 7994 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private boolean 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 Whether the messageSetWireFormat field is set. - */ - @java.lang.Override - public boolean hasMessageSetWireFormat() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getMessageSetWireFormat() { - return 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> - * @param value The messageSetWireFormat to set. - * @return This builder for chaining. - */ - public Builder setMessageSetWireFormat(boolean value) { - - messageSetWireFormat_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <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_ ; - /** - * <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. - */ - @java.lang.Override - public boolean hasNoStandardDescriptorAccessor() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getNoStandardDescriptorAccessor() { - return 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> - * @param value The noStandardDescriptorAccessor to set. - * @return This builder for chaining. - */ - public Builder setNoStandardDescriptorAccessor(boolean value) { - - noStandardDescriptorAccessor_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <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_ ; - /** - * <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. - */ - @java.lang.Override - public boolean hasDeprecated() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getDeprecated() { - return 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> - * @param value The deprecated to set. - * @return This builder for chaining. - */ - public Builder setDeprecated(boolean value) { - - deprecated_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <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_ ; - /** - * <pre> - * 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. - * - * 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. - * </pre> - * - * <code>optional bool map_entry = 7;</code> - * @return Whether the mapEntry field is set. - */ - @java.lang.Override - public boolean hasMapEntry() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * <pre> - * 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. - * - * 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. - * </pre> - * - * <code>optional bool map_entry = 7;</code> - * @return The mapEntry. - */ - @java.lang.Override - public boolean getMapEntry() { - return mapEntry_; - } - /** - * <pre> - * 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. - * - * 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. - * </pre> - * - * <code>optional bool map_entry = 7;</code> - * @param value The mapEntry to set. - * @return This builder for chaining. - */ - public Builder setMapEntry(boolean value) { - - mapEntry_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * <pre> - * 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. - * - * 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. - * </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 boolean deprecatedLegacyJsonFieldConflicts_ ; - /** - * <pre> - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * - * This should only be used as a temporary measure against broken builds due - * to the change in behavior for JSON field name conflicts. - * - * TODO(b/261750190) This is legacy behavior we plan to remove once downstream - * teams have had time to migrate. - * </pre> - * - * <code>optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];</code> - * @deprecated google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated. - * See google/protobuf/descriptor.proto;l=530 - * @return Whether the deprecatedLegacyJsonFieldConflicts field is set. - */ - @java.lang.Override - @java.lang.Deprecated public boolean hasDeprecatedLegacyJsonFieldConflicts() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * <pre> - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * - * This should only be used as a temporary measure against broken builds due - * to the change in behavior for JSON field name conflicts. - * - * TODO(b/261750190) This is legacy behavior we plan to remove once downstream - * teams have had time to migrate. - * </pre> - * - * <code>optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];</code> - * @deprecated google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated. - * See google/protobuf/descriptor.proto;l=530 - * @return The deprecatedLegacyJsonFieldConflicts. - */ - @java.lang.Override - @java.lang.Deprecated public boolean getDeprecatedLegacyJsonFieldConflicts() { - return deprecatedLegacyJsonFieldConflicts_; - } - /** - * <pre> - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * - * This should only be used as a temporary measure against broken builds due - * to the change in behavior for JSON field name conflicts. - * - * TODO(b/261750190) This is legacy behavior we plan to remove once downstream - * teams have had time to migrate. - * </pre> - * - * <code>optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];</code> - * @deprecated google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated. - * See google/protobuf/descriptor.proto;l=530 - * @param value The deprecatedLegacyJsonFieldConflicts to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setDeprecatedLegacyJsonFieldConflicts(boolean value) { - - deprecatedLegacyJsonFieldConflicts_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * <pre> - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * - * This should only be used as a temporary measure against broken builds due - * to the change in behavior for JSON field name conflicts. - * - * TODO(b/261750190) This is legacy behavior we plan to remove once downstream - * teams have had time to migrate. - * </pre> - * - * <code>optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];</code> - * @deprecated google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated. - * See google/protobuf/descriptor.proto;l=530 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearDeprecatedLegacyJsonFieldConflicts() { - bitField0_ = (bitField0_ & ~0x00000010); - deprecatedLegacyJsonFieldConflicts_ = false; - onChanged(); - return this; - } - - private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = - java.util.Collections.emptyList(); - private void ensureUninterpretedOptionIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; - - /** - * <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(); - } - } - /** - * <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(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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_ & ~0x00000020); - onChanged(); - } else { - uninterpretedOptionBuilder_.clear(); - } - return this; - } - /** - * <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; - } - /** - * <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); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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_ & 0x00000020) != 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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> { - - /** - * <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(); - /** - * <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(); - - /** - * <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(); - /** - * <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(); - - /** - * <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(); - /** - * <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(); - - /** - * <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. - * - * As of May 2022, lazy verifies the contents of the byte stream during - * parsing. An invalid byte stream will cause the overall parsing to fail. - * </pre> - * - * <code>optional bool lazy = 5 [default = false];</code> - * @return Whether the lazy field is set. - */ - boolean hasLazy(); - /** - * <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. - * - * As of May 2022, lazy verifies the contents of the byte stream during - * parsing. An invalid byte stream will cause the overall parsing to fail. - * </pre> - * - * <code>optional bool lazy = 5 [default = false];</code> - * @return The lazy. - */ - boolean getLazy(); - - /** - * <pre> - * unverified_lazy does no correctness checks on the byte stream. This should - * only be used where lazy with verification is prohibitive for performance - * reasons. - * </pre> - * - * <code>optional bool unverified_lazy = 15 [default = false];</code> - * @return Whether the unverifiedLazy field is set. - */ - boolean hasUnverifiedLazy(); - /** - * <pre> - * unverified_lazy does no correctness checks on the byte stream. This should - * only be used where lazy with verification is prohibitive for performance - * reasons. - * </pre> - * - * <code>optional bool unverified_lazy = 15 [default = false];</code> - * @return The unverifiedLazy. - */ - boolean getUnverifiedLazy(); - - /** - * <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(); - /** - * <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(); - - /** - * <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(); - /** - * <pre> - * For Google-internal migration only. Do not use. - * </pre> - * - * <code>optional bool weak = 10 [default = false];</code> - * @return The weak. - */ - boolean getWeak(); - - /** - * <pre> - * Indicate that the field value should not be printed out when using debug - * formats, e.g. when the field contains sensitive credentials. - * </pre> - * - * <code>optional bool debug_redact = 16 [default = false];</code> - * @return Whether the debugRedact field is set. - */ - boolean hasDebugRedact(); - /** - * <pre> - * Indicate that the field value should not be printed out when using debug - * formats, e.g. when the field contains sensitive credentials. - * </pre> - * - * <code>optional bool debug_redact = 16 [default = false];</code> - * @return The debugRedact. - */ - boolean getDebugRedact(); - - /** - * <code>optional .google.protobuf.FieldOptions.OptionRetention retention = 17;</code> - * @return Whether the retention field is set. - */ - boolean hasRetention(); - /** - * <code>optional .google.protobuf.FieldOptions.OptionRetention retention = 17;</code> - * @return The retention. - */ - com.google.protobuf.DescriptorProtos.FieldOptions.OptionRetention getRetention(); - - /** - * <code>optional .google.protobuf.FieldOptions.OptionTargetType target = 18;</code> - * @return Whether the target field is set. - */ - boolean hasTarget(); - /** - * <code>optional .google.protobuf.FieldOptions.OptionTargetType target = 18;</code> - * @return The target. - */ - com.google.protobuf.DescriptorProtos.FieldOptions.OptionTargetType getTarget(); - - /** - * <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(); - /** - * <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); - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - int getUninterpretedOptionCount(); - /** - * <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(); - /** - * <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 {@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; - retention_ = 0; - target_ = 0; - uninterpretedOption_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FieldOptions(); - } - - 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 {@code google.protobuf.FieldOptions.CType} - */ - public enum CType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <pre> - * Default mode. - * </pre> - * - * <code>STRING = 0;</code> - */ - STRING(0), - /** - * <code>CORD = 1;</code> - */ - CORD(1), - /** - * <code>STRING_PIECE = 2;</code> - */ - STRING_PIECE(2), - ; - - /** - * <pre> - * Default mode. - * </pre> - * - * <code>STRING = 0;</code> - */ - public static final int STRING_VALUE = 0; - /** - * <code>CORD = 1;</code> - */ - public static final int CORD_VALUE = 1; - /** - * <code>STRING_PIECE = 2;</code> - */ - public static final int STRING_PIECE_VALUE = 2; - - - public final int getNumber() { - return value; - } - - /** - * @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); - } - - /** - * @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 {@code google.protobuf.FieldOptions.JSType} - */ - public enum JSType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <pre> - * Use the default type. - * </pre> - * - * <code>JS_NORMAL = 0;</code> - */ - JS_NORMAL(0), - /** - * <pre> - * Use JavaScript strings. - * </pre> - * - * <code>JS_STRING = 1;</code> - */ - JS_STRING(1), - /** - * <pre> - * Use JavaScript numbers. - * </pre> - * - * <code>JS_NUMBER = 2;</code> - */ - JS_NUMBER(2), - ; - - /** - * <pre> - * Use the default type. - * </pre> - * - * <code>JS_NORMAL = 0;</code> - */ - public static final int JS_NORMAL_VALUE = 0; - /** - * <pre> - * Use JavaScript strings. - * </pre> - * - * <code>JS_STRING = 1;</code> - */ - public static final int JS_STRING_VALUE = 1; - /** - * <pre> - * Use JavaScript numbers. - * </pre> - * - * <code>JS_NUMBER = 2;</code> - */ - public static final int JS_NUMBER_VALUE = 2; - - - public final int getNumber() { - return value; - } - - /** - * @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); - } - - /** - * @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) - } - - /** - * <pre> - * If set to RETENTION_SOURCE, the option will be omitted from the binary. - * Note: as of January 2023, support for this is in progress and does not yet - * have an effect (b/264593489). - * </pre> - * - * Protobuf enum {@code google.protobuf.FieldOptions.OptionRetention} - */ - public enum OptionRetention - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>RETENTION_UNKNOWN = 0;</code> - */ - RETENTION_UNKNOWN(0), - /** - * <code>RETENTION_RUNTIME = 1;</code> - */ - RETENTION_RUNTIME(1), - /** - * <code>RETENTION_SOURCE = 2;</code> - */ - RETENTION_SOURCE(2), - ; - - /** - * <code>RETENTION_UNKNOWN = 0;</code> - */ - public static final int RETENTION_UNKNOWN_VALUE = 0; - /** - * <code>RETENTION_RUNTIME = 1;</code> - */ - public static final int RETENTION_RUNTIME_VALUE = 1; - /** - * <code>RETENTION_SOURCE = 2;</code> - */ - public static final int RETENTION_SOURCE_VALUE = 2; - - - public final int getNumber() { - return value; - } - - /** - * @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 OptionRetention valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static OptionRetention forNumber(int value) { - switch (value) { - case 0: return RETENTION_UNKNOWN; - case 1: return RETENTION_RUNTIME; - case 2: return RETENTION_SOURCE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<OptionRetention> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - OptionRetention> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<OptionRetention>() { - public OptionRetention findValueByNumber(int number) { - return OptionRetention.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(2); - } - - private static final OptionRetention[] VALUES = values(); - - public static OptionRetention 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 OptionRetention(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.protobuf.FieldOptions.OptionRetention) - } - - /** - * <pre> - * This indicates the types of entities that the field may apply to when used - * as an option. If it is unset, then the field may be freely used as an - * option on any kind of entity. Note: as of January 2023, support for this is - * in progress and does not yet have an effect (b/264593489). - * </pre> - * - * Protobuf enum {@code google.protobuf.FieldOptions.OptionTargetType} - */ - public enum OptionTargetType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>TARGET_TYPE_UNKNOWN = 0;</code> - */ - TARGET_TYPE_UNKNOWN(0), - /** - * <code>TARGET_TYPE_FILE = 1;</code> - */ - TARGET_TYPE_FILE(1), - /** - * <code>TARGET_TYPE_EXTENSION_RANGE = 2;</code> - */ - TARGET_TYPE_EXTENSION_RANGE(2), - /** - * <code>TARGET_TYPE_MESSAGE = 3;</code> - */ - TARGET_TYPE_MESSAGE(3), - /** - * <code>TARGET_TYPE_FIELD = 4;</code> - */ - TARGET_TYPE_FIELD(4), - /** - * <code>TARGET_TYPE_ONEOF = 5;</code> - */ - TARGET_TYPE_ONEOF(5), - /** - * <code>TARGET_TYPE_ENUM = 6;</code> - */ - TARGET_TYPE_ENUM(6), - /** - * <code>TARGET_TYPE_ENUM_ENTRY = 7;</code> - */ - TARGET_TYPE_ENUM_ENTRY(7), - /** - * <code>TARGET_TYPE_SERVICE = 8;</code> - */ - TARGET_TYPE_SERVICE(8), - /** - * <code>TARGET_TYPE_METHOD = 9;</code> - */ - TARGET_TYPE_METHOD(9), - ; - - /** - * <code>TARGET_TYPE_UNKNOWN = 0;</code> - */ - public static final int TARGET_TYPE_UNKNOWN_VALUE = 0; - /** - * <code>TARGET_TYPE_FILE = 1;</code> - */ - public static final int TARGET_TYPE_FILE_VALUE = 1; - /** - * <code>TARGET_TYPE_EXTENSION_RANGE = 2;</code> - */ - public static final int TARGET_TYPE_EXTENSION_RANGE_VALUE = 2; - /** - * <code>TARGET_TYPE_MESSAGE = 3;</code> - */ - public static final int TARGET_TYPE_MESSAGE_VALUE = 3; - /** - * <code>TARGET_TYPE_FIELD = 4;</code> - */ - public static final int TARGET_TYPE_FIELD_VALUE = 4; - /** - * <code>TARGET_TYPE_ONEOF = 5;</code> - */ - public static final int TARGET_TYPE_ONEOF_VALUE = 5; - /** - * <code>TARGET_TYPE_ENUM = 6;</code> - */ - public static final int TARGET_TYPE_ENUM_VALUE = 6; - /** - * <code>TARGET_TYPE_ENUM_ENTRY = 7;</code> - */ - public static final int TARGET_TYPE_ENUM_ENTRY_VALUE = 7; - /** - * <code>TARGET_TYPE_SERVICE = 8;</code> - */ - public static final int TARGET_TYPE_SERVICE_VALUE = 8; - /** - * <code>TARGET_TYPE_METHOD = 9;</code> - */ - public static final int TARGET_TYPE_METHOD_VALUE = 9; - - - public final int getNumber() { - return value; - } - - /** - * @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 OptionTargetType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static OptionTargetType forNumber(int value) { - switch (value) { - case 0: return TARGET_TYPE_UNKNOWN; - case 1: return TARGET_TYPE_FILE; - case 2: return TARGET_TYPE_EXTENSION_RANGE; - case 3: return TARGET_TYPE_MESSAGE; - case 4: return TARGET_TYPE_FIELD; - case 5: return TARGET_TYPE_ONEOF; - case 6: return TARGET_TYPE_ENUM; - case 7: return TARGET_TYPE_ENUM_ENTRY; - case 8: return TARGET_TYPE_SERVICE; - case 9: return TARGET_TYPE_METHOD; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<OptionTargetType> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - OptionTargetType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<OptionTargetType>() { - public OptionTargetType findValueByNumber(int number) { - return OptionTargetType.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(3); - } - - private static final OptionTargetType[] VALUES = values(); - - public static OptionTargetType 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 OptionTargetType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.protobuf.FieldOptions.OptionTargetType) - } - - private int bitField0_; - public static final int CTYPE_FIELD_NUMBER = 1; - private int ctype_ = 0; - /** - * <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. - */ - @java.lang.Override public boolean hasCtype() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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. - */ - @java.lang.Override public com.google.protobuf.DescriptorProtos.FieldOptions.CType getCtype() { - com.google.protobuf.DescriptorProtos.FieldOptions.CType result = com.google.protobuf.DescriptorProtos.FieldOptions.CType.forNumber(ctype_); - return result == null ? com.google.protobuf.DescriptorProtos.FieldOptions.CType.STRING : result; - } - - public static final int PACKED_FIELD_NUMBER = 2; - private boolean packed_ = false; - /** - * <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. - */ - @java.lang.Override - public boolean hasPacked() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getPacked() { - return packed_; - } - - public static final int JSTYPE_FIELD_NUMBER = 6; - private int jstype_ = 0; - /** - * <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. - */ - @java.lang.Override public boolean hasJstype() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <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. - */ - @java.lang.Override public com.google.protobuf.DescriptorProtos.FieldOptions.JSType getJstype() { - com.google.protobuf.DescriptorProtos.FieldOptions.JSType result = com.google.protobuf.DescriptorProtos.FieldOptions.JSType.forNumber(jstype_); - return result == null ? com.google.protobuf.DescriptorProtos.FieldOptions.JSType.JS_NORMAL : result; - } - - public static final int LAZY_FIELD_NUMBER = 5; - private boolean lazy_ = false; - /** - * <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. - * - * As of May 2022, lazy verifies the contents of the byte stream during - * parsing. An invalid byte stream will cause the overall parsing to fail. - * </pre> - * - * <code>optional bool lazy = 5 [default = false];</code> - * @return Whether the lazy field is set. - */ - @java.lang.Override - public boolean hasLazy() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * <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. - * - * As of May 2022, lazy verifies the contents of the byte stream during - * parsing. An invalid byte stream will cause the overall parsing to fail. - * </pre> - * - * <code>optional bool lazy = 5 [default = false];</code> - * @return The lazy. - */ - @java.lang.Override - public boolean getLazy() { - return lazy_; - } - - public static final int UNVERIFIED_LAZY_FIELD_NUMBER = 15; - private boolean unverifiedLazy_ = false; - /** - * <pre> - * unverified_lazy does no correctness checks on the byte stream. This should - * only be used where lazy with verification is prohibitive for performance - * reasons. - * </pre> - * - * <code>optional bool unverified_lazy = 15 [default = false];</code> - * @return Whether the unverifiedLazy field is set. - */ - @java.lang.Override - public boolean hasUnverifiedLazy() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * <pre> - * unverified_lazy does no correctness checks on the byte stream. This should - * only be used where lazy with verification is prohibitive for performance - * reasons. - * </pre> - * - * <code>optional bool unverified_lazy = 15 [default = false];</code> - * @return The unverifiedLazy. - */ - @java.lang.Override - public boolean getUnverifiedLazy() { - return unverifiedLazy_; - } - - public static final int DEPRECATED_FIELD_NUMBER = 3; - private boolean deprecated_ = false; - /** - * <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. - */ - @java.lang.Override - public boolean hasDeprecated() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getDeprecated() { - return deprecated_; - } - - public static final int WEAK_FIELD_NUMBER = 10; - private boolean weak_ = false; - /** - * <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. - */ - @java.lang.Override - public boolean hasWeak() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * <pre> - * For Google-internal migration only. Do not use. - * </pre> - * - * <code>optional bool weak = 10 [default = false];</code> - * @return The weak. - */ - @java.lang.Override - public boolean getWeak() { - return weak_; - } - - public static final int DEBUG_REDACT_FIELD_NUMBER = 16; - private boolean debugRedact_ = false; - /** - * <pre> - * Indicate that the field value should not be printed out when using debug - * formats, e.g. when the field contains sensitive credentials. - * </pre> - * - * <code>optional bool debug_redact = 16 [default = false];</code> - * @return Whether the debugRedact field is set. - */ - @java.lang.Override - public boolean hasDebugRedact() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * <pre> - * Indicate that the field value should not be printed out when using debug - * formats, e.g. when the field contains sensitive credentials. - * </pre> - * - * <code>optional bool debug_redact = 16 [default = false];</code> - * @return The debugRedact. - */ - @java.lang.Override - public boolean getDebugRedact() { - return debugRedact_; - } - - public static final int RETENTION_FIELD_NUMBER = 17; - private int retention_ = 0; - /** - * <code>optional .google.protobuf.FieldOptions.OptionRetention retention = 17;</code> - * @return Whether the retention field is set. - */ - @java.lang.Override public boolean hasRetention() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * <code>optional .google.protobuf.FieldOptions.OptionRetention retention = 17;</code> - * @return The retention. - */ - @java.lang.Override public com.google.protobuf.DescriptorProtos.FieldOptions.OptionRetention getRetention() { - com.google.protobuf.DescriptorProtos.FieldOptions.OptionRetention result = com.google.protobuf.DescriptorProtos.FieldOptions.OptionRetention.forNumber(retention_); - return result == null ? com.google.protobuf.DescriptorProtos.FieldOptions.OptionRetention.RETENTION_UNKNOWN : result; - } - - public static final int TARGET_FIELD_NUMBER = 18; - private int target_ = 0; - /** - * <code>optional .google.protobuf.FieldOptions.OptionTargetType target = 18;</code> - * @return Whether the target field is set. - */ - @java.lang.Override public boolean hasTarget() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * <code>optional .google.protobuf.FieldOptions.OptionTargetType target = 18;</code> - * @return The target. - */ - @java.lang.Override public com.google.protobuf.DescriptorProtos.FieldOptions.OptionTargetType getTarget() { - com.google.protobuf.DescriptorProtos.FieldOptions.OptionTargetType result = com.google.protobuf.DescriptorProtos.FieldOptions.OptionTargetType.forNumber(target_); - return result == null ? com.google.protobuf.DescriptorProtos.FieldOptions.OptionTargetType.TARGET_TYPE_UNKNOWN : result; - } - - public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { - return uninterpretedOption_; - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> - getUninterpretedOptionOrBuilderList() { - return uninterpretedOption_; - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public int getUninterpretedOptionCount() { - return uninterpretedOption_.size(); - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { - return uninterpretedOption_.get(index); - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - 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_ & 0x00000020) != 0)) { - output.writeBool(3, deprecated_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeBool(5, lazy_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeEnum(6, jstype_); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeBool(10, weak_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeBool(15, unverifiedLazy_); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeBool(16, debugRedact_); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeEnum(17, retention_); - } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeEnum(18, target_); - } - for (int i = 0; i < uninterpretedOption_.size(); i++) { - output.writeMessage(999, uninterpretedOption_.get(i)); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().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_ & 0x00000020) != 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_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, weak_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, unverifiedLazy_); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(16, debugRedact_); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(17, retention_); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(18, target_); - } - for (int i = 0; i < uninterpretedOption_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(999, uninterpretedOption_.get(i)); - } - size += extensionsSerializedSize(); - size += getUnknownFields().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 (hasUnverifiedLazy() != other.hasUnverifiedLazy()) return false; - if (hasUnverifiedLazy()) { - if (getUnverifiedLazy() - != other.getUnverifiedLazy()) 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 (hasDebugRedact() != other.hasDebugRedact()) return false; - if (hasDebugRedact()) { - if (getDebugRedact() - != other.getDebugRedact()) return false; - } - if (hasRetention() != other.hasRetention()) return false; - if (hasRetention()) { - if (retention_ != other.retention_) return false; - } - if (hasTarget() != other.hasTarget()) return false; - if (hasTarget()) { - if (target_ != other.target_) return false; - } - if (!getUninterpretedOptionList() - .equals(other.getUninterpretedOptionList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasUnverifiedLazy()) { - hash = (37 * hash) + UNVERIFIED_LAZY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUnverifiedLazy()); - } - 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 (hasDebugRedact()) { - hash = (37 * hash) + DEBUG_REDACT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDebugRedact()); - } - if (hasRetention()) { - hash = (37 * hash) + RETENTION_FIELD_NUMBER; - hash = (53 * hash) + retention_; - } - if (hasTarget()) { - hash = (37 * hash) + TARGET_FIELD_NUMBER; - hash = (53 * hash) + target_; - } - if (getUninterpretedOptionCount() > 0) { - hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; - hash = (53 * hash) + getUninterpretedOptionList().hashCode(); - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().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 {@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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - ctype_ = 0; - packed_ = false; - jstype_ = 0; - lazy_ = false; - unverifiedLazy_ = false; - deprecated_ = false; - weak_ = false; - debugRedact_ = false; - retention_ = 0; - target_ = 0; - if (uninterpretedOptionBuilder_ == null) { - uninterpretedOption_ = java.util.Collections.emptyList(); - } else { - uninterpretedOption_ = null; - uninterpretedOptionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000400); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.DescriptorProtos.FieldOptions result) { - if (uninterpretedOptionBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0)) { - uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); - bitField0_ = (bitField0_ & ~0x00000400); - } - result.uninterpretedOption_ = uninterpretedOption_; - } else { - result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.FieldOptions result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.ctype_ = ctype_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.packed_ = packed_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.jstype_ = jstype_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.lazy_ = lazy_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.unverifiedLazy_ = unverifiedLazy_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.deprecated_ = deprecated_; - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.weak_ = weak_; - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.debugRedact_ = debugRedact_; - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.retention_ = retention_; - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.target_ = target_; - to_bitField0_ |= 0x00000200; - } - result.bitField0_ |= to_bitField0_; - } - - @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.hasUnverifiedLazy()) { - setUnverifiedLazy(other.getUnverifiedLazy()); - } - if (other.hasDeprecated()) { - setDeprecated(other.getDeprecated()); - } - if (other.hasWeak()) { - setWeak(other.getWeak()); - } - if (other.hasDebugRedact()) { - setDebugRedact(other.getDebugRedact()); - } - if (other.hasRetention()) { - setRetention(other.getRetention()); - } - if (other.hasTarget()) { - setTarget(other.getTarget()); - } - if (uninterpretedOptionBuilder_ == null) { - if (!other.uninterpretedOption_.isEmpty()) { - if (uninterpretedOption_.isEmpty()) { - uninterpretedOption_ = other.uninterpretedOption_; - bitField0_ = (bitField0_ & ~0x00000400); - } else { - ensureUninterpretedOptionIsMutable(); - uninterpretedOption_.addAll(other.uninterpretedOption_); - } - onChanged(); - } - } else { - if (!other.uninterpretedOption_.isEmpty()) { - if (uninterpretedOptionBuilder_.isEmpty()) { - uninterpretedOptionBuilder_.dispose(); - uninterpretedOptionBuilder_ = null; - uninterpretedOption_ = other.uninterpretedOption_; - bitField0_ = (bitField0_ & ~0x00000400); - uninterpretedOptionBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getUninterpretedOptionFieldBuilder() : null; - } else { - uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); - } - } - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int tmpRaw = input.readEnum(); - com.google.protobuf.DescriptorProtos.FieldOptions.CType tmpValue = - com.google.protobuf.DescriptorProtos.FieldOptions.CType.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(1, tmpRaw); - } else { - ctype_ = tmpRaw; - bitField0_ |= 0x00000001; - } - break; - } // case 8 - case 16: { - packed_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - deprecated_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 24 - case 40: { - lazy_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 40 - case 48: { - int tmpRaw = input.readEnum(); - com.google.protobuf.DescriptorProtos.FieldOptions.JSType tmpValue = - com.google.protobuf.DescriptorProtos.FieldOptions.JSType.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(6, tmpRaw); - } else { - jstype_ = tmpRaw; - bitField0_ |= 0x00000004; - } - break; - } // case 48 - case 80: { - weak_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 80 - case 120: { - unverifiedLazy_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 120 - case 128: { - debugRedact_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 128 - case 136: { - int tmpRaw = input.readEnum(); - com.google.protobuf.DescriptorProtos.FieldOptions.OptionRetention tmpValue = - com.google.protobuf.DescriptorProtos.FieldOptions.OptionRetention.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(17, tmpRaw); - } else { - retention_ = tmpRaw; - bitField0_ |= 0x00000100; - } - break; - } // case 136 - case 144: { - int tmpRaw = input.readEnum(); - com.google.protobuf.DescriptorProtos.FieldOptions.OptionTargetType tmpValue = - com.google.protobuf.DescriptorProtos.FieldOptions.OptionTargetType.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(18, tmpRaw); - } else { - target_ = tmpRaw; - bitField0_ |= 0x00000200; - } - break; - } // case 144 - case 7994: { - com.google.protobuf.DescriptorProtos.UninterpretedOption m = - input.readMessage( - com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, - extensionRegistry); - if (uninterpretedOptionBuilder_ == null) { - ensureUninterpretedOptionIsMutable(); - uninterpretedOption_.add(m); - } else { - uninterpretedOptionBuilder_.addMessage(m); - } - break; - } // case 7994 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int ctype_ = 0; - /** - * <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. - */ - @java.lang.Override public boolean hasCtype() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FieldOptions.CType getCtype() { - com.google.protobuf.DescriptorProtos.FieldOptions.CType result = com.google.protobuf.DescriptorProtos.FieldOptions.CType.forNumber(ctype_); - return result == null ? com.google.protobuf.DescriptorProtos.FieldOptions.CType.STRING : result; - } - /** - * <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; - } - /** - * <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_ ; - /** - * <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. - */ - @java.lang.Override - public boolean hasPacked() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getPacked() { - return 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> - * @param value The packed to set. - * @return This builder for chaining. - */ - public Builder setPacked(boolean value) { - - packed_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <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; - /** - * <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. - */ - @java.lang.Override public boolean hasJstype() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <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. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FieldOptions.JSType getJstype() { - com.google.protobuf.DescriptorProtos.FieldOptions.JSType result = com.google.protobuf.DescriptorProtos.FieldOptions.JSType.forNumber(jstype_); - return result == null ? com.google.protobuf.DescriptorProtos.FieldOptions.JSType.JS_NORMAL : result; - } - /** - * <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; - } - /** - * <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_ ; - /** - * <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. - * - * As of May 2022, lazy verifies the contents of the byte stream during - * parsing. An invalid byte stream will cause the overall parsing to fail. - * </pre> - * - * <code>optional bool lazy = 5 [default = false];</code> - * @return Whether the lazy field is set. - */ - @java.lang.Override - public boolean hasLazy() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * <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. - * - * As of May 2022, lazy verifies the contents of the byte stream during - * parsing. An invalid byte stream will cause the overall parsing to fail. - * </pre> - * - * <code>optional bool lazy = 5 [default = false];</code> - * @return The lazy. - */ - @java.lang.Override - public boolean getLazy() { - return 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. - * - * As of May 2022, lazy verifies the contents of the byte stream during - * parsing. An invalid byte stream will cause the overall parsing to fail. - * </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) { - - lazy_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * <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. - * - * As of May 2022, lazy verifies the contents of the byte stream during - * parsing. An invalid byte stream will cause the overall parsing to fail. - * </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 unverifiedLazy_ ; - /** - * <pre> - * unverified_lazy does no correctness checks on the byte stream. This should - * only be used where lazy with verification is prohibitive for performance - * reasons. - * </pre> - * - * <code>optional bool unverified_lazy = 15 [default = false];</code> - * @return Whether the unverifiedLazy field is set. - */ - @java.lang.Override - public boolean hasUnverifiedLazy() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * <pre> - * unverified_lazy does no correctness checks on the byte stream. This should - * only be used where lazy with verification is prohibitive for performance - * reasons. - * </pre> - * - * <code>optional bool unverified_lazy = 15 [default = false];</code> - * @return The unverifiedLazy. - */ - @java.lang.Override - public boolean getUnverifiedLazy() { - return unverifiedLazy_; - } - /** - * <pre> - * unverified_lazy does no correctness checks on the byte stream. This should - * only be used where lazy with verification is prohibitive for performance - * reasons. - * </pre> - * - * <code>optional bool unverified_lazy = 15 [default = false];</code> - * @param value The unverifiedLazy to set. - * @return This builder for chaining. - */ - public Builder setUnverifiedLazy(boolean value) { - - unverifiedLazy_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * <pre> - * unverified_lazy does no correctness checks on the byte stream. This should - * only be used where lazy with verification is prohibitive for performance - * reasons. - * </pre> - * - * <code>optional bool unverified_lazy = 15 [default = false];</code> - * @return This builder for chaining. - */ - public Builder clearUnverifiedLazy() { - bitField0_ = (bitField0_ & ~0x00000010); - unverifiedLazy_ = false; - onChanged(); - return this; - } - - private boolean 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 Whether the deprecated field is set. - */ - @java.lang.Override - public boolean hasDeprecated() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getDeprecated() { - return 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> - * @param value The deprecated to set. - * @return This builder for chaining. - */ - public Builder setDeprecated(boolean value) { - - deprecated_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * <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_ & ~0x00000020); - deprecated_ = false; - onChanged(); - return this; - } - - private boolean weak_ ; - /** - * <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. - */ - @java.lang.Override - public boolean hasWeak() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * <pre> - * For Google-internal migration only. Do not use. - * </pre> - * - * <code>optional bool weak = 10 [default = false];</code> - * @return The weak. - */ - @java.lang.Override - public boolean getWeak() { - return weak_; - } - /** - * <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) { - - weak_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * <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_ & ~0x00000040); - weak_ = false; - onChanged(); - return this; - } - - private boolean debugRedact_ ; - /** - * <pre> - * Indicate that the field value should not be printed out when using debug - * formats, e.g. when the field contains sensitive credentials. - * </pre> - * - * <code>optional bool debug_redact = 16 [default = false];</code> - * @return Whether the debugRedact field is set. - */ - @java.lang.Override - public boolean hasDebugRedact() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * <pre> - * Indicate that the field value should not be printed out when using debug - * formats, e.g. when the field contains sensitive credentials. - * </pre> - * - * <code>optional bool debug_redact = 16 [default = false];</code> - * @return The debugRedact. - */ - @java.lang.Override - public boolean getDebugRedact() { - return debugRedact_; - } - /** - * <pre> - * Indicate that the field value should not be printed out when using debug - * formats, e.g. when the field contains sensitive credentials. - * </pre> - * - * <code>optional bool debug_redact = 16 [default = false];</code> - * @param value The debugRedact to set. - * @return This builder for chaining. - */ - public Builder setDebugRedact(boolean value) { - - debugRedact_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * <pre> - * Indicate that the field value should not be printed out when using debug - * formats, e.g. when the field contains sensitive credentials. - * </pre> - * - * <code>optional bool debug_redact = 16 [default = false];</code> - * @return This builder for chaining. - */ - public Builder clearDebugRedact() { - bitField0_ = (bitField0_ & ~0x00000080); - debugRedact_ = false; - onChanged(); - return this; - } - - private int retention_ = 0; - /** - * <code>optional .google.protobuf.FieldOptions.OptionRetention retention = 17;</code> - * @return Whether the retention field is set. - */ - @java.lang.Override public boolean hasRetention() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * <code>optional .google.protobuf.FieldOptions.OptionRetention retention = 17;</code> - * @return The retention. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FieldOptions.OptionRetention getRetention() { - com.google.protobuf.DescriptorProtos.FieldOptions.OptionRetention result = com.google.protobuf.DescriptorProtos.FieldOptions.OptionRetention.forNumber(retention_); - return result == null ? com.google.protobuf.DescriptorProtos.FieldOptions.OptionRetention.RETENTION_UNKNOWN : result; - } - /** - * <code>optional .google.protobuf.FieldOptions.OptionRetention retention = 17;</code> - * @param value The retention to set. - * @return This builder for chaining. - */ - public Builder setRetention(com.google.protobuf.DescriptorProtos.FieldOptions.OptionRetention value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; - retention_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.FieldOptions.OptionRetention retention = 17;</code> - * @return This builder for chaining. - */ - public Builder clearRetention() { - bitField0_ = (bitField0_ & ~0x00000100); - retention_ = 0; - onChanged(); - return this; - } - - private int target_ = 0; - /** - * <code>optional .google.protobuf.FieldOptions.OptionTargetType target = 18;</code> - * @return Whether the target field is set. - */ - @java.lang.Override public boolean hasTarget() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * <code>optional .google.protobuf.FieldOptions.OptionTargetType target = 18;</code> - * @return The target. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FieldOptions.OptionTargetType getTarget() { - com.google.protobuf.DescriptorProtos.FieldOptions.OptionTargetType result = com.google.protobuf.DescriptorProtos.FieldOptions.OptionTargetType.forNumber(target_); - return result == null ? com.google.protobuf.DescriptorProtos.FieldOptions.OptionTargetType.TARGET_TYPE_UNKNOWN : result; - } - /** - * <code>optional .google.protobuf.FieldOptions.OptionTargetType target = 18;</code> - * @param value The target to set. - * @return This builder for chaining. - */ - public Builder setTarget(com.google.protobuf.DescriptorProtos.FieldOptions.OptionTargetType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - target_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.FieldOptions.OptionTargetType target = 18;</code> - * @return This builder for chaining. - */ - public Builder clearTarget() { - bitField0_ = (bitField0_ & ~0x00000200); - target_ = 0; - onChanged(); - return this; - } - - private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = - java.util.Collections.emptyList(); - private void ensureUninterpretedOptionIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { - uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); - bitField0_ |= 0x00000400; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; - - /** - * <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(); - } - } - /** - * <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(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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_ & ~0x00000400); - onChanged(); - } else { - uninterpretedOptionBuilder_.clear(); - } - return this; - } - /** - * <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; - } - /** - * <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); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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_ & 0x00000400) != 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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> { - - /** - * <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(); - /** - * <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); - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - int getUninterpretedOptionCount(); - /** - * <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(); - /** - * <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 {@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(); - } - - 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; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { - return uninterpretedOption_; - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> - getUninterpretedOptionOrBuilderList() { - return uninterpretedOption_; - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public int getUninterpretedOptionCount() { - return uninterpretedOption_.size(); - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { - return uninterpretedOption_.get(index); - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - 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); - getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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 {@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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (uninterpretedOptionBuilder_ == null) { - uninterpretedOption_ = java.util.Collections.emptyList(); - } else { - uninterpretedOption_ = null; - uninterpretedOptionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.DescriptorProtos.OneofOptions result) { - if (uninterpretedOptionBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.uninterpretedOption_ = uninterpretedOption_; - } else { - result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.OneofOptions result) { - int from_bitField0_ = bitField0_; - } - - @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.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 7994: { - com.google.protobuf.DescriptorProtos.UninterpretedOption m = - input.readMessage( - com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, - extensionRegistry); - if (uninterpretedOptionBuilder_ == null) { - ensureUninterpretedOptionIsMutable(); - uninterpretedOption_.add(m); - } else { - uninterpretedOptionBuilder_.addMessage(m); - } - break; - } // case 7994 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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_; - - /** - * <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(); - } - } - /** - * <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(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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> { - - /** - * <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(); - /** - * <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(); - - /** - * <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(); - /** - * <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(); - - /** - * <pre> - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * TODO(b/261750190) Remove this legacy behavior once downstream teams have - * had time to migrate. - * </pre> - * - * <code>optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];</code> - * @deprecated google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. - * See google/protobuf/descriptor.proto;l=700 - * @return Whether the deprecatedLegacyJsonFieldConflicts field is set. - */ - @java.lang.Deprecated boolean hasDeprecatedLegacyJsonFieldConflicts(); - /** - * <pre> - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * TODO(b/261750190) Remove this legacy behavior once downstream teams have - * had time to migrate. - * </pre> - * - * <code>optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];</code> - * @deprecated google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. - * See google/protobuf/descriptor.proto;l=700 - * @return The deprecatedLegacyJsonFieldConflicts. - */ - @java.lang.Deprecated boolean getDeprecatedLegacyJsonFieldConflicts(); - - /** - * <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(); - /** - * <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); - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - int getUninterpretedOptionCount(); - /** - * <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(); - /** - * <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 {@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(); - } - - 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_ = false; - /** - * <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. - */ - @java.lang.Override - public boolean hasAllowAlias() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getAllowAlias() { - return allowAlias_; - } - - public static final int DEPRECATED_FIELD_NUMBER = 3; - private boolean deprecated_ = false; - /** - * <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. - */ - @java.lang.Override - public boolean hasDeprecated() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getDeprecated() { - return deprecated_; - } - - public static final int DEPRECATED_LEGACY_JSON_FIELD_CONFLICTS_FIELD_NUMBER = 6; - private boolean deprecatedLegacyJsonFieldConflicts_ = false; - /** - * <pre> - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * TODO(b/261750190) Remove this legacy behavior once downstream teams have - * had time to migrate. - * </pre> - * - * <code>optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];</code> - * @deprecated google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. - * See google/protobuf/descriptor.proto;l=700 - * @return Whether the deprecatedLegacyJsonFieldConflicts field is set. - */ - @java.lang.Override - @java.lang.Deprecated public boolean hasDeprecatedLegacyJsonFieldConflicts() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <pre> - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * TODO(b/261750190) Remove this legacy behavior once downstream teams have - * had time to migrate. - * </pre> - * - * <code>optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];</code> - * @deprecated google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. - * See google/protobuf/descriptor.proto;l=700 - * @return The deprecatedLegacyJsonFieldConflicts. - */ - @java.lang.Override - @java.lang.Deprecated public boolean getDeprecatedLegacyJsonFieldConflicts() { - return deprecatedLegacyJsonFieldConflicts_; - } - - public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { - return uninterpretedOption_; - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> - getUninterpretedOptionOrBuilderList() { - return uninterpretedOption_; - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public int getUninterpretedOptionCount() { - return uninterpretedOption_.size(); - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { - return uninterpretedOption_.get(index); - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - 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_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeBool(6, deprecatedLegacyJsonFieldConflicts_); - } - for (int i = 0; i < uninterpretedOption_.size(); i++) { - output.writeMessage(999, uninterpretedOption_.get(i)); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().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_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, deprecatedLegacyJsonFieldConflicts_); - } - for (int i = 0; i < uninterpretedOption_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(999, uninterpretedOption_.get(i)); - } - size += extensionsSerializedSize(); - size += getUnknownFields().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 (hasDeprecatedLegacyJsonFieldConflicts() != other.hasDeprecatedLegacyJsonFieldConflicts()) return false; - if (hasDeprecatedLegacyJsonFieldConflicts()) { - if (getDeprecatedLegacyJsonFieldConflicts() - != other.getDeprecatedLegacyJsonFieldConflicts()) return false; - } - if (!getUninterpretedOptionList() - .equals(other.getUninterpretedOptionList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasDeprecatedLegacyJsonFieldConflicts()) { - hash = (37 * hash) + DEPRECATED_LEGACY_JSON_FIELD_CONFLICTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDeprecatedLegacyJsonFieldConflicts()); - } - if (getUninterpretedOptionCount() > 0) { - hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; - hash = (53 * hash) + getUninterpretedOptionList().hashCode(); - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().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 {@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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - allowAlias_ = false; - deprecated_ = false; - deprecatedLegacyJsonFieldConflicts_ = false; - if (uninterpretedOptionBuilder_ == null) { - uninterpretedOption_ = java.util.Collections.emptyList(); - } else { - uninterpretedOption_ = null; - uninterpretedOptionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.DescriptorProtos.EnumOptions result) { - if (uninterpretedOptionBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.uninterpretedOption_ = uninterpretedOption_; - } else { - result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.EnumOptions result) { - 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 (((from_bitField0_ & 0x00000004) != 0)) { - result.deprecatedLegacyJsonFieldConflicts_ = deprecatedLegacyJsonFieldConflicts_; - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - @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 (other.hasDeprecatedLegacyJsonFieldConflicts()) { - setDeprecatedLegacyJsonFieldConflicts(other.getDeprecatedLegacyJsonFieldConflicts()); - } - if (uninterpretedOptionBuilder_ == null) { - if (!other.uninterpretedOption_.isEmpty()) { - if (uninterpretedOption_.isEmpty()) { - uninterpretedOption_ = other.uninterpretedOption_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureUninterpretedOptionIsMutable(); - uninterpretedOption_.addAll(other.uninterpretedOption_); - } - onChanged(); - } - } else { - if (!other.uninterpretedOption_.isEmpty()) { - if (uninterpretedOptionBuilder_.isEmpty()) { - uninterpretedOptionBuilder_.dispose(); - uninterpretedOptionBuilder_ = null; - uninterpretedOption_ = other.uninterpretedOption_; - bitField0_ = (bitField0_ & ~0x00000008); - uninterpretedOptionBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getUninterpretedOptionFieldBuilder() : null; - } else { - uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); - } - } - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 16: { - allowAlias_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 16 - case 24: { - deprecated_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 48: { - deprecatedLegacyJsonFieldConflicts_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 48 - case 7994: { - com.google.protobuf.DescriptorProtos.UninterpretedOption m = - input.readMessage( - com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, - extensionRegistry); - if (uninterpretedOptionBuilder_ == null) { - ensureUninterpretedOptionIsMutable(); - uninterpretedOption_.add(m); - } else { - uninterpretedOptionBuilder_.addMessage(m); - } - break; - } // case 7994 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private boolean 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 Whether the allowAlias field is set. - */ - @java.lang.Override - public boolean hasAllowAlias() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getAllowAlias() { - return 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> - * @param value The allowAlias to set. - * @return This builder for chaining. - */ - public Builder setAllowAlias(boolean value) { - - allowAlias_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <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_ ; - /** - * <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. - */ - @java.lang.Override - public boolean hasDeprecated() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getDeprecated() { - return 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> - * @param value The deprecated to set. - * @return This builder for chaining. - */ - public Builder setDeprecated(boolean value) { - - deprecated_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <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 boolean deprecatedLegacyJsonFieldConflicts_ ; - /** - * <pre> - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * TODO(b/261750190) Remove this legacy behavior once downstream teams have - * had time to migrate. - * </pre> - * - * <code>optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];</code> - * @deprecated google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. - * See google/protobuf/descriptor.proto;l=700 - * @return Whether the deprecatedLegacyJsonFieldConflicts field is set. - */ - @java.lang.Override - @java.lang.Deprecated public boolean hasDeprecatedLegacyJsonFieldConflicts() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <pre> - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * TODO(b/261750190) Remove this legacy behavior once downstream teams have - * had time to migrate. - * </pre> - * - * <code>optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];</code> - * @deprecated google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. - * See google/protobuf/descriptor.proto;l=700 - * @return The deprecatedLegacyJsonFieldConflicts. - */ - @java.lang.Override - @java.lang.Deprecated public boolean getDeprecatedLegacyJsonFieldConflicts() { - return deprecatedLegacyJsonFieldConflicts_; - } - /** - * <pre> - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * TODO(b/261750190) Remove this legacy behavior once downstream teams have - * had time to migrate. - * </pre> - * - * <code>optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];</code> - * @deprecated google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. - * See google/protobuf/descriptor.proto;l=700 - * @param value The deprecatedLegacyJsonFieldConflicts to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setDeprecatedLegacyJsonFieldConflicts(boolean value) { - - deprecatedLegacyJsonFieldConflicts_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <pre> - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * TODO(b/261750190) Remove this legacy behavior once downstream teams have - * had time to migrate. - * </pre> - * - * <code>optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];</code> - * @deprecated google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. - * See google/protobuf/descriptor.proto;l=700 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearDeprecatedLegacyJsonFieldConflicts() { - bitField0_ = (bitField0_ & ~0x00000004); - deprecatedLegacyJsonFieldConflicts_ = false; - onChanged(); - return this; - } - - private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = - java.util.Collections.emptyList(); - private void ensureUninterpretedOptionIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; - - /** - * <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(); - } - } - /** - * <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(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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_ & ~0x00000008); - onChanged(); - } else { - uninterpretedOptionBuilder_.clear(); - } - return this; - } - /** - * <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; - } - /** - * <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); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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_ & 0x00000008) != 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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> { - - /** - * <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(); - /** - * <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(); - - /** - * <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(); - /** - * <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); - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - int getUninterpretedOptionCount(); - /** - * <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(); - /** - * <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 {@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(); - } - - 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_ = false; - /** - * <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. - */ - @java.lang.Override - public boolean hasDeprecated() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getDeprecated() { - return deprecated_; - } - - public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { - return uninterpretedOption_; - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> - getUninterpretedOptionOrBuilderList() { - return uninterpretedOption_; - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public int getUninterpretedOptionCount() { - return uninterpretedOption_.size(); - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { - return uninterpretedOption_.get(index); - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - 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); - getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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 {@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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - deprecated_ = false; - if (uninterpretedOptionBuilder_ == null) { - uninterpretedOption_ = java.util.Collections.emptyList(); - } else { - uninterpretedOption_ = null; - uninterpretedOptionBuilder_.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_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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.DescriptorProtos.EnumValueOptions result) { - if (uninterpretedOptionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.uninterpretedOption_ = uninterpretedOption_; - } else { - result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.EnumValueOptions result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.deprecated_ = deprecated_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - deprecated_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 7994: { - com.google.protobuf.DescriptorProtos.UninterpretedOption m = - input.readMessage( - com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, - extensionRegistry); - if (uninterpretedOptionBuilder_ == null) { - ensureUninterpretedOptionIsMutable(); - uninterpretedOption_.add(m); - } else { - uninterpretedOptionBuilder_.addMessage(m); - } - break; - } // case 7994 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private boolean 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 Whether the deprecated field is set. - */ - @java.lang.Override - public boolean hasDeprecated() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getDeprecated() { - return 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> - * @param value The deprecated to set. - * @return This builder for chaining. - */ - public Builder setDeprecated(boolean value) { - - deprecated_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <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_; - - /** - * <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(); - } - } - /** - * <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(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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> { - - /** - * <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(); - /** - * <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(); - - /** - * <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(); - /** - * <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); - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - int getUninterpretedOptionCount(); - /** - * <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(); - /** - * <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 {@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(); - } - - 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_ = false; - /** - * <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. - */ - @java.lang.Override - public boolean hasDeprecated() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getDeprecated() { - return deprecated_; - } - - public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { - return uninterpretedOption_; - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> - getUninterpretedOptionOrBuilderList() { - return uninterpretedOption_; - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public int getUninterpretedOptionCount() { - return uninterpretedOption_.size(); - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { - return uninterpretedOption_.get(index); - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - 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); - getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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 {@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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - deprecated_ = false; - if (uninterpretedOptionBuilder_ == null) { - uninterpretedOption_ = java.util.Collections.emptyList(); - } else { - uninterpretedOption_ = null; - uninterpretedOptionBuilder_.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_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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.DescriptorProtos.ServiceOptions result) { - if (uninterpretedOptionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.uninterpretedOption_ = uninterpretedOption_; - } else { - result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.ServiceOptions result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.deprecated_ = deprecated_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 264: { - deprecated_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 264 - case 7994: { - com.google.protobuf.DescriptorProtos.UninterpretedOption m = - input.readMessage( - com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, - extensionRegistry); - if (uninterpretedOptionBuilder_ == null) { - ensureUninterpretedOptionIsMutable(); - uninterpretedOption_.add(m); - } else { - uninterpretedOptionBuilder_.addMessage(m); - } - break; - } // case 7994 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private boolean 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 Whether the deprecated field is set. - */ - @java.lang.Override - public boolean hasDeprecated() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getDeprecated() { - return 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> - * @param value The deprecated to set. - * @return This builder for chaining. - */ - public Builder setDeprecated(boolean value) { - - deprecated_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <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_; - - /** - * <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(); - } - } - /** - * <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(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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> { - - /** - * <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(); - /** - * <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(); - - /** - * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> - * @return Whether the idempotencyLevel field is set. - */ - boolean hasIdempotencyLevel(); - /** - * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> - * @return The idempotencyLevel. - */ - com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel getIdempotencyLevel(); - - /** - * <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(); - /** - * <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); - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - int getUninterpretedOptionCount(); - /** - * <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(); - /** - * <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 {@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(); - } - - 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); - } - - /** - * <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 { - /** - * <code>IDEMPOTENCY_UNKNOWN = 0;</code> - */ - IDEMPOTENCY_UNKNOWN(0), - /** - * <pre> - * implies idempotent - * </pre> - * - * <code>NO_SIDE_EFFECTS = 1;</code> - */ - NO_SIDE_EFFECTS(1), - /** - * <pre> - * idempotent, but may have side effects - * </pre> - * - * <code>IDEMPOTENT = 2;</code> - */ - IDEMPOTENT(2), - ; - - /** - * <code>IDEMPOTENCY_UNKNOWN = 0;</code> - */ - public static final int IDEMPOTENCY_UNKNOWN_VALUE = 0; - /** - * <pre> - * implies idempotent - * </pre> - * - * <code>NO_SIDE_EFFECTS = 1;</code> - */ - public static final int NO_SIDE_EFFECTS_VALUE = 1; - /** - * <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; - } - - /** - * @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); - } - - /** - * @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_ = false; - /** - * <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. - */ - @java.lang.Override - public boolean hasDeprecated() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getDeprecated() { - return deprecated_; - } - - public static final int IDEMPOTENCY_LEVEL_FIELD_NUMBER = 34; - private int idempotencyLevel_ = 0; - /** - * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> - * @return Whether the idempotencyLevel field is set. - */ - @java.lang.Override public boolean hasIdempotencyLevel() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> - * @return The idempotencyLevel. - */ - @java.lang.Override public com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel getIdempotencyLevel() { - com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel result = com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel.forNumber(idempotencyLevel_); - return result == null ? com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel.IDEMPOTENCY_UNKNOWN : result; - } - - public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { - return uninterpretedOption_; - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> - getUninterpretedOptionOrBuilderList() { - return uninterpretedOption_; - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public int getUninterpretedOptionCount() { - return uninterpretedOption_.size(); - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { - return uninterpretedOption_.get(index); - } - /** - * <pre> - * The parser stores options it doesn't recognize here. See above. - * </pre> - * - * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> - */ - @java.lang.Override - 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); - getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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 {@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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - deprecated_ = false; - idempotencyLevel_ = 0; - if (uninterpretedOptionBuilder_ == null) { - uninterpretedOption_ = java.util.Collections.emptyList(); - } else { - uninterpretedOption_ = null; - uninterpretedOptionBuilder_.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_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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.DescriptorProtos.MethodOptions result) { - if (uninterpretedOptionBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.uninterpretedOption_ = uninterpretedOption_; - } else { - result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.MethodOptions result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.deprecated_ = deprecated_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.idempotencyLevel_ = idempotencyLevel_; - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @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.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 264: { - deprecated_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 264 - case 272: { - int tmpRaw = input.readEnum(); - com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel tmpValue = - com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(34, tmpRaw); - } else { - idempotencyLevel_ = tmpRaw; - bitField0_ |= 0x00000002; - } - break; - } // case 272 - case 7994: { - com.google.protobuf.DescriptorProtos.UninterpretedOption m = - input.readMessage( - com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, - extensionRegistry); - if (uninterpretedOptionBuilder_ == null) { - ensureUninterpretedOptionIsMutable(); - uninterpretedOption_.add(m); - } else { - uninterpretedOptionBuilder_.addMessage(m); - } - break; - } // case 7994 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private boolean 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 Whether the deprecated field is set. - */ - @java.lang.Override - public boolean hasDeprecated() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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. - */ - @java.lang.Override - public boolean getDeprecated() { - return 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> - * @param value The deprecated to set. - * @return This builder for chaining. - */ - public Builder setDeprecated(boolean value) { - - deprecated_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <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; - /** - * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> - * @return Whether the idempotencyLevel field is set. - */ - @java.lang.Override public boolean hasIdempotencyLevel() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> - * @return The idempotencyLevel. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel getIdempotencyLevel() { - com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel result = com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel.forNumber(idempotencyLevel_); - return result == null ? com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel.IDEMPOTENCY_UNKNOWN : result; - } - /** - * <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; - } - /** - * <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_; - - /** - * <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(); - } - } - /** - * <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(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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 { - - /** - * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> - */ - java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> - getNameList(); - /** - * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> - */ - com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getName(int index); - /** - * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> - */ - int getNameCount(); - /** - * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> - */ - java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> - getNameOrBuilderList(); - /** - * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> - */ - com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder getNameOrBuilder( - int index); - - /** - * <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(); - /** - * <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(); - /** - * <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(); - - /** - * <code>optional uint64 positive_int_value = 4;</code> - * @return Whether the positiveIntValue field is set. - */ - boolean hasPositiveIntValue(); - /** - * <code>optional uint64 positive_int_value = 4;</code> - * @return The positiveIntValue. - */ - long getPositiveIntValue(); - - /** - * <code>optional int64 negative_int_value = 5;</code> - * @return Whether the negativeIntValue field is set. - */ - boolean hasNegativeIntValue(); - /** - * <code>optional int64 negative_int_value = 5;</code> - * @return The negativeIntValue. - */ - long getNegativeIntValue(); - - /** - * <code>optional double double_value = 6;</code> - * @return Whether the doubleValue field is set. - */ - boolean hasDoubleValue(); - /** - * <code>optional double double_value = 6;</code> - * @return The doubleValue. - */ - double getDoubleValue(); - - /** - * <code>optional bytes string_value = 7;</code> - * @return Whether the stringValue field is set. - */ - boolean hasStringValue(); - /** - * <code>optional bytes string_value = 7;</code> - * @return The stringValue. - */ - com.google.protobuf.ByteString getStringValue(); - - /** - * <code>optional string aggregate_value = 8;</code> - * @return Whether the aggregateValue field is set. - */ - boolean hasAggregateValue(); - /** - * <code>optional string aggregate_value = 8;</code> - * @return The aggregateValue. - */ - java.lang.String getAggregateValue(); - /** - * <code>optional string aggregate_value = 8;</code> - * @return The bytes for aggregateValue. - */ - com.google.protobuf.ByteString - getAggregateValueBytes(); - } - /** - * <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(); - } - - 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 { - - /** - * <code>required string name_part = 1;</code> - * @return Whether the namePart field is set. - */ - boolean hasNamePart(); - /** - * <code>required string name_part = 1;</code> - * @return The namePart. - */ - java.lang.String getNamePart(); - /** - * <code>required string name_part = 1;</code> - * @return The bytes for namePart. - */ - com.google.protobuf.ByteString - getNamePartBytes(); - - /** - * <code>required bool is_extension = 2;</code> - * @return Whether the isExtension field is set. - */ - boolean hasIsExtension(); - /** - * <code>required bool is_extension = 2;</code> - * @return The isExtension. - */ - boolean getIsExtension(); - } - /** - * <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], ["moo", false] } represents - * "foo.(bar.baz).moo". - * </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(); - } - - 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; - @SuppressWarnings("serial") - private volatile java.lang.Object namePart_ = ""; - /** - * <code>required string name_part = 1;</code> - * @return Whether the namePart field is set. - */ - @java.lang.Override - public boolean hasNamePart() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <code>required string name_part = 1;</code> - * @return The namePart. - */ - @java.lang.Override - 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; - } - } - /** - * <code>required string name_part = 1;</code> - * @return The bytes for namePart. - */ - @java.lang.Override - 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_ = false; - /** - * <code>required bool is_extension = 2;</code> - * @return Whether the isExtension field is set. - */ - @java.lang.Override - public boolean hasIsExtension() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <code>required bool is_extension = 2;</code> - * @return The isExtension. - */ - @java.lang.Override - 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_); - } - getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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; - } - /** - * <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], ["moo", false] } represents - * "foo.(bar.baz).moo". - * </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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - namePart_ = ""; - isExtension_ = false; - 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); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.namePart_ = namePart_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.isExtension_ = isExtension_; - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @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()) { - namePart_ = other.namePart_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasIsExtension()) { - setIsExtension(other.getIsExtension()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - namePart_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - isExtension_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object namePart_ = ""; - /** - * <code>required string name_part = 1;</code> - * @return Whether the namePart field is set. - */ - public boolean hasNamePart() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - namePart_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <code>required string name_part = 1;</code> - * @return This builder for chaining. - */ - public Builder clearNamePart() { - namePart_ = getDefaultInstance().getNamePart(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * <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(); } - namePart_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private boolean isExtension_ ; - /** - * <code>required bool is_extension = 2;</code> - * @return Whether the isExtension field is set. - */ - @java.lang.Override - public boolean hasIsExtension() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <code>required bool is_extension = 2;</code> - * @return The isExtension. - */ - @java.lang.Override - public boolean getIsExtension() { - return isExtension_; - } - /** - * <code>required bool is_extension = 2;</code> - * @param value The isExtension to set. - * @return This builder for chaining. - */ - public Builder setIsExtension(boolean value) { - - isExtension_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> name_; - /** - * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> getNameList() { - return name_; - } - /** - * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> - getNameOrBuilderList() { - return name_; - } - /** - * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> - */ - @java.lang.Override - public int getNameCount() { - return name_.size(); - } - /** - * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getName(int index) { - return name_.get(index); - } - /** - * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder getNameOrBuilder( - int index) { - return name_.get(index); - } - - public static final int IDENTIFIER_VALUE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object 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 Whether the identifierValue field is set. - */ - @java.lang.Override - public boolean hasIdentifierValue() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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.Override - 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; - } - } - /** - * <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. - */ - @java.lang.Override - 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_ = 0L; - /** - * <code>optional uint64 positive_int_value = 4;</code> - * @return Whether the positiveIntValue field is set. - */ - @java.lang.Override - public boolean hasPositiveIntValue() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <code>optional uint64 positive_int_value = 4;</code> - * @return The positiveIntValue. - */ - @java.lang.Override - public long getPositiveIntValue() { - return positiveIntValue_; - } - - public static final int NEGATIVE_INT_VALUE_FIELD_NUMBER = 5; - private long negativeIntValue_ = 0L; - /** - * <code>optional int64 negative_int_value = 5;</code> - * @return Whether the negativeIntValue field is set. - */ - @java.lang.Override - public boolean hasNegativeIntValue() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <code>optional int64 negative_int_value = 5;</code> - * @return The negativeIntValue. - */ - @java.lang.Override - public long getNegativeIntValue() { - return negativeIntValue_; - } - - public static final int DOUBLE_VALUE_FIELD_NUMBER = 6; - private double doubleValue_ = 0D; - /** - * <code>optional double double_value = 6;</code> - * @return Whether the doubleValue field is set. - */ - @java.lang.Override - public boolean hasDoubleValue() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * <code>optional double double_value = 6;</code> - * @return The doubleValue. - */ - @java.lang.Override - public double getDoubleValue() { - return doubleValue_; - } - - public static final int STRING_VALUE_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString stringValue_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes string_value = 7;</code> - * @return Whether the stringValue field is set. - */ - @java.lang.Override - public boolean hasStringValue() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * <code>optional bytes string_value = 7;</code> - * @return The stringValue. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStringValue() { - return stringValue_; - } - - public static final int AGGREGATE_VALUE_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private volatile java.lang.Object aggregateValue_ = ""; - /** - * <code>optional string aggregate_value = 8;</code> - * @return Whether the aggregateValue field is set. - */ - @java.lang.Override - public boolean hasAggregateValue() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * <code>optional string aggregate_value = 8;</code> - * @return The aggregateValue. - */ - @java.lang.Override - 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; - } - } - /** - * <code>optional string aggregate_value = 8;</code> - * @return The bytes for aggregateValue. - */ - @java.lang.Override - 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_); - } - getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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; - } - /** - * <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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (nameBuilder_ == null) { - name_ = java.util.Collections.emptyList(); - } else { - name_ = null; - nameBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - identifierValue_ = ""; - positiveIntValue_ = 0L; - negativeIntValue_ = 0L; - doubleValue_ = 0D; - stringValue_ = com.google.protobuf.ByteString.EMPTY; - aggregateValue_ = ""; - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.DescriptorProtos.UninterpretedOption result) { - if (nameBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - name_ = java.util.Collections.unmodifiableList(name_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.name_ = name_; - } else { - result.name_ = nameBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.UninterpretedOption result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.identifierValue_ = identifierValue_; - to_bitField0_ |= 0x00000001; - } - 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)) { - result.stringValue_ = stringValue_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.aggregateValue_ = aggregateValue_; - to_bitField0_ |= 0x00000020; - } - result.bitField0_ |= to_bitField0_; - } - - @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()) { - identifierValue_ = other.identifierValue_; - bitField0_ |= 0x00000002; - 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()) { - aggregateValue_ = other.aggregateValue_; - bitField0_ |= 0x00000040; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: { - com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart m = - input.readMessage( - com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.PARSER, - extensionRegistry); - if (nameBuilder_ == null) { - ensureNameIsMutable(); - name_.add(m); - } else { - nameBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: { - identifierValue_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 32: { - positiveIntValue_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 40: { - negativeIntValue_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 40 - case 49: { - doubleValue_ = input.readDouble(); - bitField0_ |= 0x00000010; - break; - } // case 49 - case 58: { - stringValue_ = input.readBytes(); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: { - aggregateValue_ = input.readBytes(); - bitField0_ |= 0x00000040; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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_; - - /** - * <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(); - } - } - /** - * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> - */ - public int getNameCount() { - if (nameBuilder_ == null) { - return name_.size(); - } else { - return nameBuilder_.getCount(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> - */ - public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder getNameBuilder( - int index) { - return getNameFieldBuilder().getBuilder(index); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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_ = ""; - /** - * <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); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - identifierValue_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <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() { - identifierValue_ = getDefaultInstance().getIdentifierValue(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * <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(); } - identifierValue_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private long positiveIntValue_ ; - /** - * <code>optional uint64 positive_int_value = 4;</code> - * @return Whether the positiveIntValue field is set. - */ - @java.lang.Override - public boolean hasPositiveIntValue() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <code>optional uint64 positive_int_value = 4;</code> - * @return The positiveIntValue. - */ - @java.lang.Override - public long getPositiveIntValue() { - return positiveIntValue_; - } - /** - * <code>optional uint64 positive_int_value = 4;</code> - * @param value The positiveIntValue to set. - * @return This builder for chaining. - */ - public Builder setPositiveIntValue(long value) { - - positiveIntValue_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <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_ ; - /** - * <code>optional int64 negative_int_value = 5;</code> - * @return Whether the negativeIntValue field is set. - */ - @java.lang.Override - public boolean hasNegativeIntValue() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * <code>optional int64 negative_int_value = 5;</code> - * @return The negativeIntValue. - */ - @java.lang.Override - public long getNegativeIntValue() { - return negativeIntValue_; - } - /** - * <code>optional int64 negative_int_value = 5;</code> - * @param value The negativeIntValue to set. - * @return This builder for chaining. - */ - public Builder setNegativeIntValue(long value) { - - negativeIntValue_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * <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_ ; - /** - * <code>optional double double_value = 6;</code> - * @return Whether the doubleValue field is set. - */ - @java.lang.Override - public boolean hasDoubleValue() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * <code>optional double double_value = 6;</code> - * @return The doubleValue. - */ - @java.lang.Override - public double getDoubleValue() { - return doubleValue_; - } - /** - * <code>optional double double_value = 6;</code> - * @param value The doubleValue to set. - * @return This builder for chaining. - */ - public Builder setDoubleValue(double value) { - - doubleValue_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * <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; - /** - * <code>optional bytes string_value = 7;</code> - * @return Whether the stringValue field is set. - */ - @java.lang.Override - public boolean hasStringValue() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * <code>optional bytes string_value = 7;</code> - * @return The stringValue. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStringValue() { - return stringValue_; - } - /** - * <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(); } - stringValue_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * <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_ = ""; - /** - * <code>optional string aggregate_value = 8;</code> - * @return Whether the aggregateValue field is set. - */ - public boolean hasAggregateValue() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - aggregateValue_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * <code>optional string aggregate_value = 8;</code> - * @return This builder for chaining. - */ - public Builder clearAggregateValue() { - aggregateValue_ = getDefaultInstance().getAggregateValue(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - * <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(); } - aggregateValue_ = value; - bitField0_ |= 0x00000040; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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 { - - /** - * <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(); - /** - * <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); - /** - * <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(); - /** - * <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(); - /** - * <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); - } - /** - * <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(); - } - - 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 { - - /** - * <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 occurs. - * 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(); - /** - * <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 occurs. - * 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(); - /** - * <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 occurs. - * 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); - - /** - * <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(); - /** - * <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(); - /** - * <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); - - /** - * <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 moo. - * // - * // Another line attached to moo. - * optional double moo = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to moo 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. - * </pre> - * - * <code>optional string leading_comments = 3;</code> - * @return Whether the leadingComments field is set. - */ - boolean hasLeadingComments(); - /** - * <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 moo. - * // - * // Another line attached to moo. - * optional double moo = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to moo 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. - * </pre> - * - * <code>optional string leading_comments = 3;</code> - * @return The leadingComments. - */ - java.lang.String getLeadingComments(); - /** - * <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 moo. - * // - * // Another line attached to moo. - * optional double moo = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to moo 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. - * </pre> - * - * <code>optional string leading_comments = 3;</code> - * @return The bytes for leadingComments. - */ - com.google.protobuf.ByteString - getLeadingCommentsBytes(); - - /** - * <code>optional string trailing_comments = 4;</code> - * @return Whether the trailingComments field is set. - */ - boolean hasTrailingComments(); - /** - * <code>optional string trailing_comments = 4;</code> - * @return The trailingComments. - */ - java.lang.String getTrailingComments(); - /** - * <code>optional string trailing_comments = 4;</code> - * @return The bytes for trailingComments. - */ - com.google.protobuf.ByteString - getTrailingCommentsBytes(); - - /** - * <code>repeated string leading_detached_comments = 6;</code> - * @return A list containing the leadingDetachedComments. - */ - java.util.List<java.lang.String> - getLeadingDetachedCommentsList(); - /** - * <code>repeated string leading_detached_comments = 6;</code> - * @return The count of leadingDetachedComments. - */ - int getLeadingDetachedCommentsCount(); - /** - * <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); - /** - * <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 {@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.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Location(); - } - - 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; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList 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 occurs. - * 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.lang.Override - public java.util.List<java.lang.Integer> - getPathList() { - return 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 occurs. - * 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(); - } - /** - * <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 occurs. - * 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; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList 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.lang.Override - public java.util.List<java.lang.Integer> - getSpanList() { - return 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(); - } - /** - * <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; - @SuppressWarnings("serial") - private volatile java.lang.Object 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 moo. - * // - * // Another line attached to moo. - * optional double moo = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to moo 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. - * </pre> - * - * <code>optional string leading_comments = 3;</code> - * @return Whether the leadingComments field is set. - */ - @java.lang.Override - public boolean hasLeadingComments() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <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 moo. - * // - * // Another line attached to moo. - * optional double moo = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to moo 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. - * </pre> - * - * <code>optional string leading_comments = 3;</code> - * @return The leadingComments. - */ - @java.lang.Override - 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; - } - } - /** - * <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 moo. - * // - * // Another line attached to moo. - * optional double moo = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to moo 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. - * </pre> - * - * <code>optional string leading_comments = 3;</code> - * @return The bytes for leadingComments. - */ - @java.lang.Override - 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; - @SuppressWarnings("serial") - private volatile java.lang.Object trailingComments_ = ""; - /** - * <code>optional string trailing_comments = 4;</code> - * @return Whether the trailingComments field is set. - */ - @java.lang.Override - public boolean hasTrailingComments() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <code>optional string trailing_comments = 4;</code> - * @return The trailingComments. - */ - @java.lang.Override - 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; - } - } - /** - * <code>optional string trailing_comments = 4;</code> - * @return The bytes for trailingComments. - */ - @java.lang.Override - 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; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList leadingDetachedComments_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * <code>repeated string leading_detached_comments = 6;</code> - * @return A list containing the leadingDetachedComments. - */ - public com.google.protobuf.ProtocolStringList - getLeadingDetachedCommentsList() { - return leadingDetachedComments_; - } - /** - * <code>repeated string leading_detached_comments = 6;</code> - * @return The count of leadingDetachedComments. - */ - public int getLeadingDetachedCommentsCount() { - return leadingDetachedComments_.size(); - } - /** - * <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); - } - /** - * <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)); - } - getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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 {@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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - path_ = emptyIntList(); - span_ = emptyIntList(); - leadingComments_ = ""; - trailingComments_ = ""; - leadingDetachedComments_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location result) { - if (((bitField0_ & 0x00000001) != 0)) { - path_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.path_ = path_; - if (((bitField0_ & 0x00000002) != 0)) { - span_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.span_ = span_; - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.leadingComments_ = leadingComments_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.trailingComments_ = trailingComments_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - leadingDetachedComments_.makeImmutable(); - result.leadingDetachedComments_ = leadingDetachedComments_; - } - result.bitField0_ |= to_bitField0_; - } - - @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()) { - leadingComments_ = other.leadingComments_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasTrailingComments()) { - trailingComments_ = other.trailingComments_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.leadingDetachedComments_.isEmpty()) { - if (leadingDetachedComments_.isEmpty()) { - leadingDetachedComments_ = other.leadingDetachedComments_; - bitField0_ |= 0x00000010; - } else { - ensureLeadingDetachedCommentsIsMutable(); - leadingDetachedComments_.addAll(other.leadingDetachedComments_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int v = input.readInt32(); - ensurePathIsMutable(); - path_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensurePathIsMutable(); - while (input.getBytesUntilLimit() > 0) { - path_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } // case 10 - case 16: { - int v = input.readInt32(); - ensureSpanIsMutable(); - span_.addInt(v); - break; - } // case 16 - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureSpanIsMutable(); - while (input.getBytesUntilLimit() > 0) { - span_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } // case 18 - case 26: { - leadingComments_ = input.readBytes(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - trailingComments_ = input.readBytes(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - ensureLeadingDetachedCommentsIsMutable(); - leadingDetachedComments_.add(bs); - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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; - } - } - /** - * <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 occurs. - * 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_; - } - /** - * <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 occurs. - * 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(); - } - /** - * <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 occurs. - * 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); - } - /** - * <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 occurs. - * 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; - } - /** - * <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 occurs. - * 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; - } - /** - * <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 occurs. - * 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; - } - /** - * <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 occurs. - * 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; - } - } - /** - * <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_; - } - /** - * <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(); - } - /** - * <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); - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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_ = ""; - /** - * <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 moo. - * // - * // Another line attached to moo. - * optional double moo = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to moo 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. - * </pre> - * - * <code>optional string leading_comments = 3;</code> - * @return Whether the leadingComments field is set. - */ - public boolean hasLeadingComments() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <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 moo. - * // - * // Another line attached to moo. - * optional double moo = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to moo 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. - * </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; - } - } - /** - * <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 moo. - * // - * // Another line attached to moo. - * optional double moo = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to moo 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. - * </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; - } - } - /** - * <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 moo. - * // - * // Another line attached to moo. - * optional double moo = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to moo 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. - * </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(); } - leadingComments_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <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 moo. - * // - * // Another line attached to moo. - * optional double moo = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to moo 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. - * </pre> - * - * <code>optional string leading_comments = 3;</code> - * @return This builder for chaining. - */ - public Builder clearLeadingComments() { - leadingComments_ = getDefaultInstance().getLeadingComments(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * <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 moo. - * // - * // Another line attached to moo. - * optional double moo = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to moo 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. - * </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(); } - leadingComments_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object trailingComments_ = ""; - /** - * <code>optional string trailing_comments = 4;</code> - * @return Whether the trailingComments field is set. - */ - public boolean hasTrailingComments() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - trailingComments_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * <code>optional string trailing_comments = 4;</code> - * @return This builder for chaining. - */ - public Builder clearTrailingComments() { - trailingComments_ = getDefaultInstance().getTrailingComments(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * <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(); } - trailingComments_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList leadingDetachedComments_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureLeadingDetachedCommentsIsMutable() { - if (!leadingDetachedComments_.isModifiable()) { - leadingDetachedComments_ = new com.google.protobuf.LazyStringArrayList(leadingDetachedComments_); - } - bitField0_ |= 0x00000010; - } - /** - * <code>repeated string leading_detached_comments = 6;</code> - * @return A list containing the leadingDetachedComments. - */ - public com.google.protobuf.ProtocolStringList - getLeadingDetachedCommentsList() { - leadingDetachedComments_.makeImmutable(); - return leadingDetachedComments_; - } - /** - * <code>repeated string leading_detached_comments = 6;</code> - * @return The count of leadingDetachedComments. - */ - public int getLeadingDetachedCommentsCount() { - return leadingDetachedComments_.size(); - } - /** - * <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); - } - /** - * <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); - } - /** - * <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); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * <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); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * <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_); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * <code>repeated string leading_detached_comments = 6;</code> - * @return This builder for chaining. - */ - public Builder clearLeadingDetachedComments() { - leadingDetachedComments_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010);; - onChanged(); - return this; - } - /** - * <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); - bitField0_ |= 0x00000010; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> location_; - /** - * <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.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> getLocationList() { - return location_; - } - /** - * <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.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> - getLocationOrBuilderList() { - return location_; - } - /** - * <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.lang.Override - public int getLocationCount() { - return location_.size(); - } - /** - * <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.lang.Override - public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getLocation(int index) { - return location_.get(index); - } - /** - * <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.lang.Override - 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)); - } - getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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; - } - /** - * <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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (locationBuilder_ == null) { - location_ = java.util.Collections.emptyList(); - } else { - location_ = null; - locationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.DescriptorProtos.SourceCodeInfo result) { - if (locationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - location_ = java.util.Collections.unmodifiableList(location_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.location_ = location_; - } else { - result.location_ = locationBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.SourceCodeInfo result) { - int from_bitField0_ = bitField0_; - } - - @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.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location m = - input.readMessage( - com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.PARSER, - extensionRegistry); - if (locationBuilder_ == null) { - ensureLocationIsMutable(); - location_.add(m); - } else { - locationBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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_; - - /** - * <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(); - } - } - /** - * <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(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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 { - - /** - * <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(); - /** - * <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); - /** - * <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(); - /** - * <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(); - /** - * <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); - } - /** - * <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(); - } - - 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 { - - /** - * <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(); - /** - * <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(); - /** - * <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); - - /** - * <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(); - /** - * <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(); - /** - * <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(); - - /** - * <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(); - /** - * <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(); - - /** - * <pre> - * Identifies the ending offset in bytes in the generated code that - * relates to the identified object. 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(); - /** - * <pre> - * Identifies the ending offset in bytes in the generated code that - * relates to the identified object. 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(); - - /** - * <code>optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;</code> - * @return Whether the semantic field is set. - */ - boolean hasSemantic(); - /** - * <code>optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;</code> - * @return The semantic. - */ - com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic getSemantic(); - } - /** - * 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_ = ""; - semantic_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Annotation(); - } - - 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); - } - - /** - * <pre> - * Represents the identified object's effect on the element in the original - * .proto file. - * </pre> - * - * Protobuf enum {@code google.protobuf.GeneratedCodeInfo.Annotation.Semantic} - */ - public enum Semantic - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <pre> - * There is no effect or the effect is indescribable. - * </pre> - * - * <code>NONE = 0;</code> - */ - NONE(0), - /** - * <pre> - * The element is set or otherwise mutated. - * </pre> - * - * <code>SET = 1;</code> - */ - SET(1), - /** - * <pre> - * An alias to the element is returned. - * </pre> - * - * <code>ALIAS = 2;</code> - */ - ALIAS(2), - ; - - /** - * <pre> - * There is no effect or the effect is indescribable. - * </pre> - * - * <code>NONE = 0;</code> - */ - public static final int NONE_VALUE = 0; - /** - * <pre> - * The element is set or otherwise mutated. - * </pre> - * - * <code>SET = 1;</code> - */ - public static final int SET_VALUE = 1; - /** - * <pre> - * An alias to the element is returned. - * </pre> - * - * <code>ALIAS = 2;</code> - */ - public static final int ALIAS_VALUE = 2; - - - public final int getNumber() { - return value; - } - - /** - * @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 Semantic valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Semantic forNumber(int value) { - switch (value) { - case 0: return NONE; - case 1: return SET; - case 2: return ALIAS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<Semantic> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Semantic> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<Semantic>() { - public Semantic findValueByNumber(int number) { - return Semantic.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.GeneratedCodeInfo.Annotation.getDescriptor().getEnumTypes().get(0); - } - - private static final Semantic[] VALUES = values(); - - public static Semantic 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 Semantic(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.protobuf.GeneratedCodeInfo.Annotation.Semantic) - } - - private int bitField0_; - public static final int PATH_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList 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.lang.Override - public java.util.List<java.lang.Integer> - getPathList() { - return 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(); - } - /** - * <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; - @SuppressWarnings("serial") - private volatile java.lang.Object sourceFile_ = ""; - /** - * <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. - */ - @java.lang.Override - public boolean hasSourceFile() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * <pre> - * Identifies the filesystem path to the original source .proto. - * </pre> - * - * <code>optional string source_file = 2;</code> - * @return The sourceFile. - */ - @java.lang.Override - 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; - } - } - /** - * <pre> - * Identifies the filesystem path to the original source .proto. - * </pre> - * - * <code>optional string source_file = 2;</code> - * @return The bytes for sourceFile. - */ - @java.lang.Override - 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_ = 0; - /** - * <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. - */ - @java.lang.Override - public boolean hasBegin() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <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. - */ - @java.lang.Override - public int getBegin() { - return begin_; - } - - public static final int END_FIELD_NUMBER = 4; - private int end_ = 0; - /** - * <pre> - * Identifies the ending offset in bytes in the generated code that - * relates to the identified object. 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. - */ - @java.lang.Override - public boolean hasEnd() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <pre> - * Identifies the ending offset in bytes in the generated code that - * relates to the identified object. 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. - */ - @java.lang.Override - public int getEnd() { - return end_; - } - - public static final int SEMANTIC_FIELD_NUMBER = 5; - private int semantic_ = 0; - /** - * <code>optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;</code> - * @return Whether the semantic field is set. - */ - @java.lang.Override public boolean hasSemantic() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * <code>optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;</code> - * @return The semantic. - */ - @java.lang.Override public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic getSemantic() { - com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic result = com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic.forNumber(semantic_); - return result == null ? com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic.NONE : result; - } - - 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_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeEnum(5, semantic_); - } - getUnknownFields().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_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, semantic_); - } - size += getUnknownFields().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 (hasSemantic() != other.hasSemantic()) return false; - if (hasSemantic()) { - if (semantic_ != other.semantic_) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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(); - } - if (hasSemantic()) { - hash = (37 * hash) + SEMANTIC_FIELD_NUMBER; - hash = (53 * hash) + semantic_; - } - hash = (29 * hash) + getUnknownFields().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 {@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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - path_ = emptyIntList(); - sourceFile_ = ""; - begin_ = 0; - end_ = 0; - semantic_ = 0; - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation result) { - if (((bitField0_ & 0x00000001) != 0)) { - path_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.path_ = path_; - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.sourceFile_ = sourceFile_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.begin_ = begin_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.end_ = end_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.semantic_ = semantic_; - to_bitField0_ |= 0x00000008; - } - result.bitField0_ |= to_bitField0_; - } - - @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()) { - sourceFile_ = other.sourceFile_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasBegin()) { - setBegin(other.getBegin()); - } - if (other.hasEnd()) { - setEnd(other.getEnd()); - } - if (other.hasSemantic()) { - setSemantic(other.getSemantic()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int v = input.readInt32(); - ensurePathIsMutable(); - path_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensurePathIsMutable(); - while (input.getBytesUntilLimit() > 0) { - path_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } // case 10 - case 18: { - sourceFile_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - begin_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - end_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - int tmpRaw = input.readEnum(); - com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic tmpValue = - com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(5, tmpRaw); - } else { - semantic_ = tmpRaw; - bitField0_ |= 0x00000010; - } - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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; - } - } - /** - * <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_; - } - /** - * <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(); - } - /** - * <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); - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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_ = ""; - /** - * <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); - } - /** - * <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; - } - } - /** - * <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; - } - } - /** - * <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(); } - sourceFile_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <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() { - sourceFile_ = getDefaultInstance().getSourceFile(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * <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(); } - sourceFile_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int 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 Whether the begin field is set. - */ - @java.lang.Override - public boolean hasBegin() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * <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. - */ - @java.lang.Override - public int getBegin() { - return 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> - * @param value The begin to set. - * @return This builder for chaining. - */ - public Builder setBegin(int value) { - - begin_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <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_ ; - /** - * <pre> - * Identifies the ending offset in bytes in the generated code that - * relates to the identified object. 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. - */ - @java.lang.Override - public boolean hasEnd() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * <pre> - * Identifies the ending offset in bytes in the generated code that - * relates to the identified object. 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. - */ - @java.lang.Override - public int getEnd() { - return end_; - } - /** - * <pre> - * Identifies the ending offset in bytes in the generated code that - * relates to the identified object. 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) { - - end_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * <pre> - * Identifies the ending offset in bytes in the generated code that - * relates to the identified object. 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; - } - - private int semantic_ = 0; - /** - * <code>optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;</code> - * @return Whether the semantic field is set. - */ - @java.lang.Override public boolean hasSemantic() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * <code>optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;</code> - * @return The semantic. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic getSemantic() { - com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic result = com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic.forNumber(semantic_); - return result == null ? com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic.NONE : result; - } - /** - * <code>optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;</code> - * @param value The semantic to set. - * @return This builder for chaining. - */ - public Builder setSemantic(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - semantic_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;</code> - * @return This builder for chaining. - */ - public Builder clearSemantic() { - bitField0_ = (bitField0_ & ~0x00000010); - semantic_ = 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation> annotation_; - /** - * <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.lang.Override - public java.util.List<com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation> getAnnotationList() { - return annotation_; - } - /** - * <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.lang.Override - public java.util.List<? extends com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder> - getAnnotationOrBuilderList() { - return annotation_; - } - /** - * <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.lang.Override - public int getAnnotationCount() { - return annotation_.size(); - } - /** - * <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.lang.Override - public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation getAnnotation(int index) { - return annotation_.get(index); - } - /** - * <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.lang.Override - 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)); - } - getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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; - } - /** - * <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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (annotationBuilder_ == null) { - annotation_ = java.util.Collections.emptyList(); - } else { - annotation_ = null; - annotationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo result) { - if (annotationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - annotation_ = java.util.Collections.unmodifiableList(annotation_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.annotation_ = annotation_; - } else { - result.annotation_ = annotationBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo result) { - int from_bitField0_ = bitField0_; - } - - @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.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation m = - input.readMessage( - com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.PARSER, - extensionRegistry); - if (annotationBuilder_ == null) { - ensureAnnotationIsMutable(); - annotation_.add(m); - } else { - annotationBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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_; - - /** - * <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(); - } - } - /** - * <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(); - } - } - /** - * <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); - } - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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; - } - /** - * <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); - } - /** - * <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); - } - } - /** - * <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_); - } - } - /** - * <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()); - } - /** - * <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()); - } - /** - * <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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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\"\354\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\022\017\n\007edition\030\r \001(\t\"\251\005\n\017DescriptorProto\022" + - "\014\n\004name\030\001 \001(\t\0224\n\005field\030\002 \003(\0132%.google.pr" + - "otobuf.FieldDescriptorProto\0228\n\textension" + - "\030\006 \003(\0132%.google.protobuf.FieldDescriptor" + - "Proto\0225\n\013nested_type\030\003 \003(\0132 .google.prot" + - "obuf.DescriptorProto\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%.google.protobuf.OneofDescr" + - "iptorProto\0220\n\007options\030\007 \001(\0132\037.google.pro" + - "tobuf.MessageOptions\022F\n\016reserved_range\030\t" + - " \003(\0132..google.protobuf.DescriptorProto.R" + - "eservedRange\022\025\n\rreserved_name\030\n \003(\t\032e\n\016E" + - "xtensionRange\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(" + - "\005\0227\n\007options\030\003 \001(\0132&.google.protobuf.Ext" + - "ensionRangeOptions\032+\n\rReservedRange\022\r\n\005s" + - "tart\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"g\n\025ExtensionRang" + - "eOptions\022C\n\024uninterpreted_option\030\347\007 \003(\0132" + - "$.google.protobuf.UninterpretedOption*\t\010" + - "\350\007\020\200\200\200\200\002\"\325\005\n\024FieldDescriptorProto\022\014\n\004nam" + - "e\030\001 \001(\t\022\016\n\006number\030\003 \001(\005\022:\n\005label\030\004 \001(\0162+" + - ".google.protobuf.FieldDescriptorProto.La" + - "bel\0228\n\004type\030\005 \001(\0162*.google.protobuf.Fiel" + - "dDescriptorProto.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.Fie" + - "ldOptions\022\027\n\017proto3_optional\030\021 \001(\010\"\266\002\n\004T" + - "ype\022\017\n\013TYPE_DOUBLE\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\n" + - "TYPE_INT64\020\003\022\017\n\013TYPE_UINT64\020\004\022\016\n\nTYPE_IN" + - "T32\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\nTYP" + - "E_GROUP\020\n\022\020\n\014TYPE_MESSAGE\020\013\022\016\n\nTYPE_BYTE" + - "S\020\014\022\017\n\013TYPE_UINT32\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rT" + - "YPE_SFIXED32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017\n\013TYP" + - "E_SINT32\020\021\022\017\n\013TYPE_SINT64\020\022\"C\n\005Label\022\022\n\016" + - "LABEL_OPTIONAL\020\001\022\022\n\016LABEL_REQUIRED\020\002\022\022\n\016" + - "LABEL_REPEATED\020\003\"T\n\024OneofDescriptorProto" + - "\022\014\n\004name\030\001 \001(\t\022.\n\007options\030\002 \001(\0132\035.google" + - ".protobuf.OneofOptions\"\244\002\n\023EnumDescripto" + - "rProto\022\014\n\004name\030\001 \001(\t\0228\n\005value\030\002 \003(\0132).go" + - "ogle.protobuf.EnumValueDescriptorProto\022-" + - "\n\007options\030\003 \001(\0132\034.google.protobuf.EnumOp" + - "tions\022N\n\016reserved_range\030\004 \003(\01326.google.p" + - "rotobuf.EnumDescriptorProto.EnumReserved" + - "Range\022\025\n\rreserved_name\030\005 \003(\t\032/\n\021EnumRese" + - "rvedRange\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"l\n" + - "\030EnumValueDescriptorProto\022\014\n\004name\030\001 \001(\t\022" + - "\016\n\006number\030\002 \001(\005\0222\n\007options\030\003 \001(\0132!.googl" + - "e.protobuf.EnumValueOptions\"\220\001\n\026ServiceD" + - "escriptorProto\022\014\n\004name\030\001 \001(\t\0226\n\006method\030\002" + - " \003(\0132&.google.protobuf.MethodDescriptorP" + - "roto\0220\n\007options\030\003 \001(\0132\037.google.protobuf." + - "ServiceOptions\"\301\001\n\025MethodDescriptorProto" + - "\022\014\n\004name\030\001 \001(\t\022\022\n\ninput_type\030\002 \001(\t\022\023\n\013ou" + - "tput_type\030\003 \001(\t\022/\n\007options\030\004 \001(\0132\036.googl" + - "e.protobuf.MethodOptions\022\037\n\020client_strea" + - "ming\030\005 \001(\010:\005false\022\037\n\020server_streaming\030\006 " + - "\001(\010:\005false\"\245\006\n\013FileOptions\022\024\n\014java_packa" + - "ge\030\001 \001(\t\022\034\n\024java_outer_classname\030\010 \001(\t\022\"" + - "\n\023java_multiple_files\030\n \001(\010:\005false\022)\n\035ja" + - "va_generate_equals_and_hash\030\024 \001(\010B\002\030\001\022%\n" + - "\026java_string_check_utf8\030\033 \001(\010:\005false\022F\n\014" + - "optimize_for\030\t \001(\0162).google.protobuf.Fil" + - "eOptions.OptimizeMode:\005SPEED\022\022\n\ngo_packa" + - "ge\030\013 \001(\t\022\"\n\023cc_generic_services\030\020 \001(\010:\005f" + - "alse\022$\n\025java_generic_services\030\021 \001(\010:\005fal" + - "se\022\"\n\023py_generic_services\030\022 \001(\010:\005false\022#" + - "\n\024php_generic_services\030* \001(\010:\005false\022\031\n\nd" + - "eprecated\030\027 \001(\010:\005false\022\036\n\020cc_enable_aren" + - "as\030\037 \001(\010:\004true\022\031\n\021objc_class_prefix\030$ \001(" + - "\t\022\030\n\020csharp_namespace\030% \001(\t\022\024\n\014swift_pre" + - "fix\030\' \001(\t\022\030\n\020php_class_prefix\030( \001(\t\022\025\n\rp" + - "hp_namespace\030) \001(\t\022\036\n\026php_metadata_names" + - "pace\030, \001(\t\022\024\n\014ruby_package\030- \001(\t\022C\n\024unin" + - "terpreted_option\030\347\007 \003(\0132$.google.protobu" + - "f.UninterpretedOption\":\n\014OptimizeMode\022\t\n" + - "\005SPEED\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\'\"\270\002\n\016MessageOptions\022&\n" + - "\027message_set_wire_format\030\001 \001(\010:\005false\022.\n" + - "\037no_standard_descriptor_accessor\030\002 \001(\010:\005" + - "false\022\031\n\ndeprecated\030\003 \001(\010:\005false\022\021\n\tmap_" + - "entry\030\007 \001(\010\0222\n&deprecated_legacy_json_fi" + - "eld_conflicts\030\013 \001(\010B\002\030\001\022C\n\024uninterpreted" + - "_option\030\347\007 \003(\0132$.google.protobuf.Uninter" + - "pretedOption*\t\010\350\007\020\200\200\200\200\002J\004\010\004\020\005J\004\010\005\020\006J\004\010\006\020" + - "\007J\004\010\010\020\tJ\004\010\t\020\n\"\303\007\n\014FieldOptions\022:\n\005ctype\030" + - "\001 \001(\0162#.google.protobuf.FieldOptions.CTy" + - "pe:\006STRING\022\016\n\006packed\030\002 \001(\010\022?\n\006jstype\030\006 \001" + - "(\0162$.google.protobuf.FieldOptions.JSType" + - ":\tJS_NORMAL\022\023\n\004lazy\030\005 \001(\010:\005false\022\036\n\017unve" + - "rified_lazy\030\017 \001(\010:\005false\022\031\n\ndeprecated\030\003" + - " \001(\010:\005false\022\023\n\004weak\030\n \001(\010:\005false\022\033\n\014debu" + - "g_redact\030\020 \001(\010:\005false\022@\n\tretention\030\021 \001(\016" + - "2-.google.protobuf.FieldOptions.OptionRe" + - "tention\022>\n\006target\030\022 \001(\0162..google.protobu" + - "f.FieldOptions.OptionTargetType\022C\n\024unint" + - "erpreted_option\030\347\007 \003(\0132$.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_STRING\020\001\022\r\n\tJS_NUMB" + - "ER\020\002\"U\n\017OptionRetention\022\025\n\021RETENTION_UNK" + - "NOWN\020\000\022\025\n\021RETENTION_RUNTIME\020\001\022\024\n\020RETENTI" + - "ON_SOURCE\020\002\"\214\002\n\020OptionTargetType\022\027\n\023TARG" + - "ET_TYPE_UNKNOWN\020\000\022\024\n\020TARGET_TYPE_FILE\020\001\022" + - "\037\n\033TARGET_TYPE_EXTENSION_RANGE\020\002\022\027\n\023TARG" + - "ET_TYPE_MESSAGE\020\003\022\025\n\021TARGET_TYPE_FIELD\020\004" + - "\022\025\n\021TARGET_TYPE_ONEOF\020\005\022\024\n\020TARGET_TYPE_E" + - "NUM\020\006\022\032\n\026TARGET_TYPE_ENUM_ENTRY\020\007\022\027\n\023TAR" + - "GET_TYPE_SERVICE\020\010\022\026\n\022TARGET_TYPE_METHOD" + - "\020\t*\t\010\350\007\020\200\200\200\200\002J\004\010\004\020\005\"^\n\014OneofOptions\022C\n\024u" + - "ninterpreted_option\030\347\007 \003(\0132$.google.prot" + - "obuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\"\307\001\n\013" + - "EnumOptions\022\023\n\013allow_alias\030\002 \001(\010\022\031\n\ndepr" + - "ecated\030\003 \001(\010:\005false\0222\n&deprecated_legacy" + - "_json_field_conflicts\030\006 \001(\010B\002\030\001\022C\n\024unint" + - "erpreted_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:\005f" + - "alse\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.go" + - "ogle.protobuf.UninterpretedOption*\t\010\350\007\020\200" + - "\200\200\200\002\"{\n\016ServiceOptions\022\031\n\ndeprecated\030! \001" + - "(\010:\005false\022C\n\024uninterpreted_option\030\347\007 \003(\013" + - "2$.google.protobuf.UninterpretedOption*\t" + - "\010\350\007\020\200\200\200\200\002\"\255\002\n\rMethodOptions\022\031\n\ndeprecate" + - "d\030! \001(\010:\005false\022_\n\021idempotency_level\030\" \001(" + - "\0162/.google.protobuf.MethodOptions.Idempo" + - "tencyLevel:\023IDEMPOTENCY_UNKNOWN\022C\n\024unint" + - "erpreted_option\030\347\007 \003(\0132$.google.protobuf" + - ".UninterpretedOption\"P\n\020IdempotencyLevel" + - "\022\027\n\023IDEMPOTENCY_UNKNOWN\020\000\022\023\n\017NO_SIDE_EFF" + - "ECTS\020\001\022\016\n\nIDEMPOTENT\020\002*\t\010\350\007\020\200\200\200\200\002\"\236\002\n\023Un" + - "interpretedOption\022;\n\004name\030\002 \003(\0132-.google" + - ".protobuf.UninterpretedOption.NamePart\022\030" + - "\n\020identifier_value\030\003 \001(\t\022\032\n\022positive_int" + - "_value\030\004 \001(\004\022\032\n\022negative_int_value\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\010NamePar" + - "t\022\021\n\tname_part\030\001 \002(\t\022\024\n\014is_extension\030\002 \002" + - "(\010\"\325\001\n\016SourceCodeInfo\022:\n\010location\030\001 \003(\0132" + - "(.google.protobuf.SourceCodeInfo.Locatio" + - "n\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\021" + - "trailing_comments\030\004 \001(\t\022!\n\031leading_detac" + - "hed_comments\030\006 \003(\t\"\234\002\n\021GeneratedCodeInfo" + - "\022A\n\nannotation\030\001 \003(\0132-.google.protobuf.G" + - "eneratedCodeInfo.Annotation\032\303\001\n\nAnnotati" + - "on\022\020\n\004path\030\001 \003(\005B\002\020\001\022\023\n\013source_file\030\002 \001(" + - "\t\022\r\n\005begin\030\003 \001(\005\022\013\n\003end\030\004 \001(\005\022H\n\010semanti" + - "c\030\005 \001(\01626.google.protobuf.GeneratedCodeI" + - "nfo.Annotation.Semantic\"(\n\010Semantic\022\010\n\004N" + - "ONE\020\000\022\007\n\003SET\020\001\022\t\n\005ALIAS\020\002B~\n\023com.google." + - "protobufB\020DescriptorProtosH\001Z-google.gol" + - "ang.org/protobuf/types/descriptorpb\370\001\001\242\002" + - "\003GPB\252\002\032Google.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", "Edition", }); - 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", "Proto3Optional", }); - 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", "DeprecatedLegacyJsonFieldConflicts", "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", "UnverifiedLazy", "Deprecated", "Weak", "DebugRedact", "Retention", "Target", "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", "DeprecatedLegacyJsonFieldConflicts", "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", "Semantic", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/com/google/protobuf/DoubleValue.java b/src/main/java/com/google/protobuf/DoubleValue.java deleted file mode 100644 index 800363c..0000000 --- a/src/main/java/com/google/protobuf/DoubleValue.java +++ /dev/null @@ -1,471 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package com.google.protobuf; - -/** - * <pre> - * Wrapper message for `double`. - * - * The JSON representation for `DoubleValue` is JSON number. - * </pre> - * - * Protobuf type {@code google.protobuf.DoubleValue} - */ -public final class DoubleValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.DoubleValue) - DoubleValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use DoubleValue.newBuilder() to construct. - private DoubleValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private DoubleValue() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DoubleValue(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_DoubleValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_DoubleValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.DoubleValue.class, com.google.protobuf.DoubleValue.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private double value_ = 0D; - /** - * <pre> - * The double value. - * </pre> - * - * <code>double value = 1;</code> - * @return The value. - */ - @java.lang.Override - public double getValue() { - return value_; - } - - 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 (java.lang.Double.doubleToRawLongBits(value_) != 0) { - output.writeDouble(1, value_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(value_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, value_); - } - size += getUnknownFields().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.DoubleValue)) { - return super.equals(obj); - } - com.google.protobuf.DoubleValue other = (com.google.protobuf.DoubleValue) obj; - - if (java.lang.Double.doubleToLongBits(getValue()) - != java.lang.Double.doubleToLongBits( - other.getValue())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getValue())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.DoubleValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.DoubleValue 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.DoubleValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.DoubleValue 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.DoubleValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.DoubleValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.DoubleValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.DoubleValue 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.DoubleValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.DoubleValue 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.DoubleValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.DoubleValue 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.DoubleValue 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; - } - /** - * <pre> - * Wrapper message for `double`. - * - * The JSON representation for `DoubleValue` is JSON number. - * </pre> - * - * Protobuf type {@code google.protobuf.DoubleValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.DoubleValue) - com.google.protobuf.DoubleValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_DoubleValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_DoubleValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.DoubleValue.class, com.google.protobuf.DoubleValue.Builder.class); - } - - // Construct using com.google.protobuf.DoubleValue.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - value_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_DoubleValue_descriptor; - } - - @java.lang.Override - public com.google.protobuf.DoubleValue getDefaultInstanceForType() { - return com.google.protobuf.DoubleValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.DoubleValue build() { - com.google.protobuf.DoubleValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.DoubleValue buildPartial() { - com.google.protobuf.DoubleValue result = new com.google.protobuf.DoubleValue(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.DoubleValue result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.value_ = value_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.DoubleValue) { - return mergeFrom((com.google.protobuf.DoubleValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.DoubleValue other) { - if (other == com.google.protobuf.DoubleValue.getDefaultInstance()) return this; - if (other.getValue() != 0D) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 9: { - value_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private double value_ ; - /** - * <pre> - * The double value. - * </pre> - * - * <code>double value = 1;</code> - * @return The value. - */ - @java.lang.Override - public double getValue() { - return value_; - } - /** - * <pre> - * The double value. - * </pre> - * - * <code>double value = 1;</code> - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(double value) { - - value_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * The double value. - * </pre> - * - * <code>double value = 1;</code> - * @return This builder for chaining. - */ - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000001); - value_ = 0D; - 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.DoubleValue) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.DoubleValue) - private static final com.google.protobuf.DoubleValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.DoubleValue(); - } - - public static com.google.protobuf.DoubleValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static com.google.protobuf.DoubleValue of(double value) { - return newBuilder().setValue(value).build(); - } - - private static final com.google.protobuf.Parser<DoubleValue> - PARSER = new com.google.protobuf.AbstractParser<DoubleValue>() { - @java.lang.Override - public DoubleValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<DoubleValue> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<DoubleValue> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.DoubleValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/DoubleValueOrBuilder.java b/src/main/java/com/google/protobuf/DoubleValueOrBuilder.java deleted file mode 100644 index 22c44dd..0000000 --- a/src/main/java/com/google/protobuf/DoubleValueOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package com.google.protobuf; - -public interface DoubleValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.DoubleValue) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * The double value. - * </pre> - * - * <code>double value = 1;</code> - * @return The value. - */ - double getValue(); -} diff --git a/src/main/java/com/google/protobuf/Duration.java b/src/main/java/com/google/protobuf/Duration.java deleted file mode 100644 index aacdf14..0000000 --- a/src/main/java/com/google/protobuf/Duration.java +++ /dev/null @@ -1,686 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/duration.proto - -package com.google.protobuf; - -/** - * <pre> - * A Duration represents a signed, fixed-length span of time represented - * as a count of seconds and fractions of seconds at nanosecond - * resolution. It is independent of any calendar and concepts like "day" - * or "month". It is related to Timestamp in that the difference between - * two Timestamp values is a Duration and it can be added or subtracted - * from a Timestamp. Range is approximately +-10,000 years. - * - * # Examples - * - * Example 1: Compute Duration from two Timestamps in pseudo code. - * - * Timestamp start = ...; - * Timestamp end = ...; - * Duration duration = ...; - * - * duration.seconds = end.seconds - start.seconds; - * duration.nanos = end.nanos - start.nanos; - * - * if (duration.seconds < 0 && duration.nanos > 0) { - * duration.seconds += 1; - * duration.nanos -= 1000000000; - * } else if (duration.seconds > 0 && duration.nanos < 0) { - * duration.seconds -= 1; - * duration.nanos += 1000000000; - * } - * - * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - * - * Timestamp start = ...; - * Duration duration = ...; - * Timestamp end = ...; - * - * end.seconds = start.seconds + duration.seconds; - * end.nanos = start.nanos + duration.nanos; - * - * if (end.nanos < 0) { - * end.seconds -= 1; - * end.nanos += 1000000000; - * } else if (end.nanos >= 1000000000) { - * end.seconds += 1; - * end.nanos -= 1000000000; - * } - * - * Example 3: Compute Duration from datetime.timedelta in Python. - * - * td = datetime.timedelta(days=3, minutes=10) - * duration = Duration() - * duration.FromTimedelta(td) - * - * # JSON Mapping - * - * In JSON format, the Duration type is encoded as a string rather than an - * object, where the string ends in the suffix "s" (indicating seconds) and - * is preceded by the number of seconds, with nanoseconds expressed as - * fractional seconds. For example, 3 seconds with 0 nanoseconds should be - * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - * microsecond should be expressed in JSON format as "3.000001s". - * </pre> - * - * Protobuf type {@code google.protobuf.Duration} - */ -public final class Duration extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.Duration) - DurationOrBuilder { -private static final long serialVersionUID = 0L; - // Use Duration.newBuilder() to construct. - private Duration(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Duration() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Duration(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.DurationProto.internal_static_google_protobuf_Duration_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.DurationProto.internal_static_google_protobuf_Duration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Duration.class, com.google.protobuf.Duration.Builder.class); - } - - public static final int SECONDS_FIELD_NUMBER = 1; - private long seconds_ = 0L; - /** - * <pre> - * Signed seconds of the span of time. Must be from -315,576,000,000 - * to +315,576,000,000 inclusive. Note: these bounds are computed from: - * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - * </pre> - * - * <code>int64 seconds = 1;</code> - * @return The seconds. - */ - @java.lang.Override - public long getSeconds() { - return seconds_; - } - - public static final int NANOS_FIELD_NUMBER = 2; - private int nanos_ = 0; - /** - * <pre> - * Signed fractions of a second at nanosecond resolution of the span - * of time. Durations less than one second are represented with a 0 - * `seconds` field and a positive or negative `nanos` field. For durations - * of one second or more, a non-zero value for the `nanos` field must be - * of the same sign as the `seconds` field. Must be from -999,999,999 - * to +999,999,999 inclusive. - * </pre> - * - * <code>int32 nanos = 2;</code> - * @return The nanos. - */ - @java.lang.Override - public int getNanos() { - return nanos_; - } - - 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 (seconds_ != 0L) { - output.writeInt64(1, seconds_); - } - if (nanos_ != 0) { - output.writeInt32(2, nanos_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (seconds_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, seconds_); - } - if (nanos_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, nanos_); - } - size += getUnknownFields().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.Duration)) { - return super.equals(obj); - } - com.google.protobuf.Duration other = (com.google.protobuf.Duration) obj; - - if (getSeconds() - != other.getSeconds()) return false; - if (getNanos() - != other.getNanos()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SECONDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSeconds()); - hash = (37 * hash) + NANOS_FIELD_NUMBER; - hash = (53 * hash) + getNanos(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.Duration parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Duration 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.Duration parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Duration 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.Duration parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Duration parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.Duration parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Duration 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.Duration parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.Duration 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.Duration parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Duration 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.Duration 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; - } - /** - * <pre> - * A Duration represents a signed, fixed-length span of time represented - * as a count of seconds and fractions of seconds at nanosecond - * resolution. It is independent of any calendar and concepts like "day" - * or "month". It is related to Timestamp in that the difference between - * two Timestamp values is a Duration and it can be added or subtracted - * from a Timestamp. Range is approximately +-10,000 years. - * - * # Examples - * - * Example 1: Compute Duration from two Timestamps in pseudo code. - * - * Timestamp start = ...; - * Timestamp end = ...; - * Duration duration = ...; - * - * duration.seconds = end.seconds - start.seconds; - * duration.nanos = end.nanos - start.nanos; - * - * if (duration.seconds < 0 && duration.nanos > 0) { - * duration.seconds += 1; - * duration.nanos -= 1000000000; - * } else if (duration.seconds > 0 && duration.nanos < 0) { - * duration.seconds -= 1; - * duration.nanos += 1000000000; - * } - * - * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - * - * Timestamp start = ...; - * Duration duration = ...; - * Timestamp end = ...; - * - * end.seconds = start.seconds + duration.seconds; - * end.nanos = start.nanos + duration.nanos; - * - * if (end.nanos < 0) { - * end.seconds -= 1; - * end.nanos += 1000000000; - * } else if (end.nanos >= 1000000000) { - * end.seconds += 1; - * end.nanos -= 1000000000; - * } - * - * Example 3: Compute Duration from datetime.timedelta in Python. - * - * td = datetime.timedelta(days=3, minutes=10) - * duration = Duration() - * duration.FromTimedelta(td) - * - * # JSON Mapping - * - * In JSON format, the Duration type is encoded as a string rather than an - * object, where the string ends in the suffix "s" (indicating seconds) and - * is preceded by the number of seconds, with nanoseconds expressed as - * fractional seconds. For example, 3 seconds with 0 nanoseconds should be - * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - * microsecond should be expressed in JSON format as "3.000001s". - * </pre> - * - * Protobuf type {@code google.protobuf.Duration} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.Duration) - com.google.protobuf.DurationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.DurationProto.internal_static_google_protobuf_Duration_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.DurationProto.internal_static_google_protobuf_Duration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Duration.class, com.google.protobuf.Duration.Builder.class); - } - - // Construct using com.google.protobuf.Duration.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - seconds_ = 0L; - nanos_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.DurationProto.internal_static_google_protobuf_Duration_descriptor; - } - - @java.lang.Override - public com.google.protobuf.Duration getDefaultInstanceForType() { - return com.google.protobuf.Duration.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.Duration build() { - com.google.protobuf.Duration result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.Duration buildPartial() { - com.google.protobuf.Duration result = new com.google.protobuf.Duration(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.Duration result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.seconds_ = seconds_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nanos_ = nanos_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.Duration) { - return mergeFrom((com.google.protobuf.Duration)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.Duration other) { - if (other == com.google.protobuf.Duration.getDefaultInstance()) return this; - if (other.getSeconds() != 0L) { - setSeconds(other.getSeconds()); - } - if (other.getNanos() != 0) { - setNanos(other.getNanos()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - seconds_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - nanos_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long seconds_ ; - /** - * <pre> - * Signed seconds of the span of time. Must be from -315,576,000,000 - * to +315,576,000,000 inclusive. Note: these bounds are computed from: - * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - * </pre> - * - * <code>int64 seconds = 1;</code> - * @return The seconds. - */ - @java.lang.Override - public long getSeconds() { - return seconds_; - } - /** - * <pre> - * Signed seconds of the span of time. Must be from -315,576,000,000 - * to +315,576,000,000 inclusive. Note: these bounds are computed from: - * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - * </pre> - * - * <code>int64 seconds = 1;</code> - * @param value The seconds to set. - * @return This builder for chaining. - */ - public Builder setSeconds(long value) { - - seconds_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * Signed seconds of the span of time. Must be from -315,576,000,000 - * to +315,576,000,000 inclusive. Note: these bounds are computed from: - * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - * </pre> - * - * <code>int64 seconds = 1;</code> - * @return This builder for chaining. - */ - public Builder clearSeconds() { - bitField0_ = (bitField0_ & ~0x00000001); - seconds_ = 0L; - onChanged(); - return this; - } - - private int nanos_ ; - /** - * <pre> - * Signed fractions of a second at nanosecond resolution of the span - * of time. Durations less than one second are represented with a 0 - * `seconds` field and a positive or negative `nanos` field. For durations - * of one second or more, a non-zero value for the `nanos` field must be - * of the same sign as the `seconds` field. Must be from -999,999,999 - * to +999,999,999 inclusive. - * </pre> - * - * <code>int32 nanos = 2;</code> - * @return The nanos. - */ - @java.lang.Override - public int getNanos() { - return nanos_; - } - /** - * <pre> - * Signed fractions of a second at nanosecond resolution of the span - * of time. Durations less than one second are represented with a 0 - * `seconds` field and a positive or negative `nanos` field. For durations - * of one second or more, a non-zero value for the `nanos` field must be - * of the same sign as the `seconds` field. Must be from -999,999,999 - * to +999,999,999 inclusive. - * </pre> - * - * <code>int32 nanos = 2;</code> - * @param value The nanos to set. - * @return This builder for chaining. - */ - public Builder setNanos(int value) { - - nanos_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <pre> - * Signed fractions of a second at nanosecond resolution of the span - * of time. Durations less than one second are represented with a 0 - * `seconds` field and a positive or negative `nanos` field. For durations - * of one second or more, a non-zero value for the `nanos` field must be - * of the same sign as the `seconds` field. Must be from -999,999,999 - * to +999,999,999 inclusive. - * </pre> - * - * <code>int32 nanos = 2;</code> - * @return This builder for chaining. - */ - public Builder clearNanos() { - bitField0_ = (bitField0_ & ~0x00000002); - nanos_ = 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.Duration) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.Duration) - private static final com.google.protobuf.Duration DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.Duration(); - } - - public static com.google.protobuf.Duration getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Duration> - PARSER = new com.google.protobuf.AbstractParser<Duration>() { - @java.lang.Override - public Duration parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<Duration> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Duration> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Duration getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/DurationOrBuilder.java b/src/main/java/com/google/protobuf/DurationOrBuilder.java deleted file mode 100644 index 25673c6..0000000 --- a/src/main/java/com/google/protobuf/DurationOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/duration.proto - -package com.google.protobuf; - -public interface DurationOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.Duration) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * Signed seconds of the span of time. Must be from -315,576,000,000 - * to +315,576,000,000 inclusive. Note: these bounds are computed from: - * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - * </pre> - * - * <code>int64 seconds = 1;</code> - * @return The seconds. - */ - long getSeconds(); - - /** - * <pre> - * Signed fractions of a second at nanosecond resolution of the span - * of time. Durations less than one second are represented with a 0 - * `seconds` field and a positive or negative `nanos` field. For durations - * of one second or more, a non-zero value for the `nanos` field must be - * of the same sign as the `seconds` field. Must be from -999,999,999 - * to +999,999,999 inclusive. - * </pre> - * - * <code>int32 nanos = 2;</code> - * @return The nanos. - */ - int getNanos(); -} diff --git a/src/main/java/com/google/protobuf/DurationProto.java b/src/main/java/com/google/protobuf/DurationProto.java deleted file mode 100644 index 0ff8dc0..0000000 --- a/src/main/java/com/google/protobuf/DurationProto.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/duration.proto - -package com.google.protobuf; - -public final class DurationProto { - private DurationProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_Duration_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_Duration_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\036google/protobuf/duration.proto\022\017google" + - ".protobuf\"*\n\010Duration\022\017\n\007seconds\030\001 \001(\003\022\r" + - "\n\005nanos\030\002 \001(\005B\203\001\n\023com.google.protobufB\rD" + - "urationProtoP\001Z1google.golang.org/protob" + - "uf/types/known/durationpb\370\001\001\242\002\003GPB\252\002\036Goo" + - "gle.Protobuf.WellKnownTypesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_protobuf_Duration_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_protobuf_Duration_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_Duration_descriptor, - new java.lang.String[] { "Seconds", "Nanos", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/com/google/protobuf/Empty.java b/src/main/java/com/google/protobuf/Empty.java deleted file mode 100644 index b0a1885..0000000 --- a/src/main/java/com/google/protobuf/Empty.java +++ /dev/null @@ -1,384 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/empty.proto - -package com.google.protobuf; - -/** - * <pre> - * A generic empty message that you can re-use to avoid defining duplicated - * empty messages in your APIs. A typical example is to use it as the request - * or the response type of an API method. For instance: - * - * service Foo { - * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - * } - * </pre> - * - * Protobuf type {@code google.protobuf.Empty} - */ -public final class Empty extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.Empty) - EmptyOrBuilder { -private static final long serialVersionUID = 0L; - // Use Empty.newBuilder() to construct. - private Empty(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Empty() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Empty(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.EmptyProto.internal_static_google_protobuf_Empty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.EmptyProto.internal_static_google_protobuf_Empty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Empty.class, com.google.protobuf.Empty.Builder.class); - } - - 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 { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().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.Empty)) { - return super.equals(obj); - } - com.google.protobuf.Empty other = (com.google.protobuf.Empty) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.Empty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Empty 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.Empty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Empty 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.Empty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Empty parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.Empty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Empty 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.Empty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.Empty 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.Empty parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Empty 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.Empty 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; - } - /** - * <pre> - * A generic empty message that you can re-use to avoid defining duplicated - * empty messages in your APIs. A typical example is to use it as the request - * or the response type of an API method. For instance: - * - * service Foo { - * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - * } - * </pre> - * - * Protobuf type {@code google.protobuf.Empty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.Empty) - com.google.protobuf.EmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.EmptyProto.internal_static_google_protobuf_Empty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.EmptyProto.internal_static_google_protobuf_Empty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Empty.class, com.google.protobuf.Empty.Builder.class); - } - - // Construct using com.google.protobuf.Empty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.EmptyProto.internal_static_google_protobuf_Empty_descriptor; - } - - @java.lang.Override - public com.google.protobuf.Empty getDefaultInstanceForType() { - return com.google.protobuf.Empty.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.Empty build() { - com.google.protobuf.Empty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.Empty buildPartial() { - com.google.protobuf.Empty result = new com.google.protobuf.Empty(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.Empty) { - return mergeFrom((com.google.protobuf.Empty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.Empty other) { - if (other == com.google.protobuf.Empty.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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.Empty) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.Empty) - private static final com.google.protobuf.Empty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.Empty(); - } - - public static com.google.protobuf.Empty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Empty> - PARSER = new com.google.protobuf.AbstractParser<Empty>() { - @java.lang.Override - public Empty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<Empty> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Empty> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Empty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/EmptyOrBuilder.java b/src/main/java/com/google/protobuf/EmptyOrBuilder.java deleted file mode 100644 index 9a38161..0000000 --- a/src/main/java/com/google/protobuf/EmptyOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/empty.proto - -package com.google.protobuf; - -public interface EmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.Empty) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/main/java/com/google/protobuf/EmptyProto.java b/src/main/java/com/google/protobuf/EmptyProto.java deleted file mode 100644 index c1c611d..0000000 --- a/src/main/java/com/google/protobuf/EmptyProto.java +++ /dev/null @@ -1,50 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/empty.proto - -package com.google.protobuf; - -public final class EmptyProto { - private EmptyProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_Empty_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_Empty_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\033google/protobuf/empty.proto\022\017google.pr" + - "otobuf\"\007\n\005EmptyB}\n\023com.google.protobufB\n" + - "EmptyProtoP\001Z.google.golang.org/protobuf" + - "/types/known/emptypb\370\001\001\242\002\003GPB\252\002\036Google.P" + - "rotobuf.WellKnownTypesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_protobuf_Empty_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_protobuf_Empty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_Empty_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/com/google/protobuf/Enum.java b/src/main/java/com/google/protobuf/Enum.java deleted file mode 100644 index 314bea5..0000000 --- a/src/main/java/com/google/protobuf/Enum.java +++ /dev/null @@ -1,1782 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/type.proto - -package com.google.protobuf; - -/** - * <pre> - * Enum type definition. - * </pre> - * - * Protobuf type {@code google.protobuf.Enum} - */ -public final class Enum extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.Enum) - EnumOrBuilder { -private static final long serialVersionUID = 0L; - // Use Enum.newBuilder() to construct. - private Enum(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Enum() { - name_ = ""; - enumvalue_ = java.util.Collections.emptyList(); - options_ = java.util.Collections.emptyList(); - syntax_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Enum(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_Enum_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_Enum_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Enum.class, com.google.protobuf.Enum.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * <pre> - * Enum type name. - * </pre> - * - * <code>string name = 1;</code> - * @return The name. - */ - @java.lang.Override - 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(); - name_ = s; - return s; - } - } - /** - * <pre> - * Enum type name. - * </pre> - * - * <code>string name = 1;</code> - * @return The bytes for name. - */ - @java.lang.Override - 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 ENUMVALUE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.EnumValue> enumvalue_; - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.EnumValue> getEnumvalueList() { - return enumvalue_; - } - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.EnumValueOrBuilder> - getEnumvalueOrBuilderList() { - return enumvalue_; - } - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - @java.lang.Override - public int getEnumvalueCount() { - return enumvalue_.size(); - } - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - @java.lang.Override - public com.google.protobuf.EnumValue getEnumvalue(int index) { - return enumvalue_.get(index); - } - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - @java.lang.Override - public com.google.protobuf.EnumValueOrBuilder getEnumvalueOrBuilder( - int index) { - return enumvalue_.get(index); - } - - public static final int OPTIONS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.Option> options_; - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.Option> getOptionsList() { - return options_; - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.OptionOrBuilder> - getOptionsOrBuilderList() { - return options_; - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - @java.lang.Override - public int getOptionsCount() { - return options_.size(); - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - @java.lang.Override - public com.google.protobuf.Option getOptions(int index) { - return options_.get(index); - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - @java.lang.Override - public com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( - int index) { - return options_.get(index); - } - - public static final int SOURCE_CONTEXT_FIELD_NUMBER = 4; - private com.google.protobuf.SourceContext sourceContext_; - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 4;</code> - * @return Whether the sourceContext field is set. - */ - @java.lang.Override - public boolean hasSourceContext() { - return sourceContext_ != null; - } - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 4;</code> - * @return The sourceContext. - */ - @java.lang.Override - public com.google.protobuf.SourceContext getSourceContext() { - return sourceContext_ == null ? com.google.protobuf.SourceContext.getDefaultInstance() : sourceContext_; - } - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 4;</code> - */ - @java.lang.Override - public com.google.protobuf.SourceContextOrBuilder getSourceContextOrBuilder() { - return sourceContext_ == null ? com.google.protobuf.SourceContext.getDefaultInstance() : sourceContext_; - } - - public static final int SYNTAX_FIELD_NUMBER = 5; - private int syntax_ = 0; - /** - * <pre> - * The source syntax. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 5;</code> - * @return The enum numeric value on the wire for syntax. - */ - @java.lang.Override public int getSyntaxValue() { - return syntax_; - } - /** - * <pre> - * The source syntax. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 5;</code> - * @return The syntax. - */ - @java.lang.Override public com.google.protobuf.Syntax getSyntax() { - com.google.protobuf.Syntax result = com.google.protobuf.Syntax.forNumber(syntax_); - return result == null ? com.google.protobuf.Syntax.UNRECOGNIZED : result; - } - - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - for (int i = 0; i < enumvalue_.size(); i++) { - output.writeMessage(2, enumvalue_.get(i)); - } - for (int i = 0; i < options_.size(); i++) { - output.writeMessage(3, options_.get(i)); - } - if (sourceContext_ != null) { - output.writeMessage(4, getSourceContext()); - } - if (syntax_ != com.google.protobuf.Syntax.SYNTAX_PROTO2.getNumber()) { - output.writeEnum(5, syntax_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - for (int i = 0; i < enumvalue_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, enumvalue_.get(i)); - } - for (int i = 0; i < options_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, options_.get(i)); - } - if (sourceContext_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSourceContext()); - } - if (syntax_ != com.google.protobuf.Syntax.SYNTAX_PROTO2.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, syntax_); - } - size += getUnknownFields().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.Enum)) { - return super.equals(obj); - } - com.google.protobuf.Enum other = (com.google.protobuf.Enum) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getEnumvalueList() - .equals(other.getEnumvalueList())) return false; - if (!getOptionsList() - .equals(other.getOptionsList())) return false; - if (hasSourceContext() != other.hasSourceContext()) return false; - if (hasSourceContext()) { - if (!getSourceContext() - .equals(other.getSourceContext())) return false; - } - if (syntax_ != other.syntax_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (getEnumvalueCount() > 0) { - hash = (37 * hash) + ENUMVALUE_FIELD_NUMBER; - hash = (53 * hash) + getEnumvalueList().hashCode(); - } - if (getOptionsCount() > 0) { - hash = (37 * hash) + OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getOptionsList().hashCode(); - } - if (hasSourceContext()) { - hash = (37 * hash) + SOURCE_CONTEXT_FIELD_NUMBER; - hash = (53 * hash) + getSourceContext().hashCode(); - } - hash = (37 * hash) + SYNTAX_FIELD_NUMBER; - hash = (53 * hash) + syntax_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.Enum parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Enum 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.Enum parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Enum 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.Enum parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Enum parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.Enum parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Enum 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.Enum parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.Enum 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.Enum parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Enum 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.Enum 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; - } - /** - * <pre> - * Enum type definition. - * </pre> - * - * Protobuf type {@code google.protobuf.Enum} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.Enum) - com.google.protobuf.EnumOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_Enum_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_Enum_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Enum.class, com.google.protobuf.Enum.Builder.class); - } - - // Construct using com.google.protobuf.Enum.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - if (enumvalueBuilder_ == null) { - enumvalue_ = java.util.Collections.emptyList(); - } else { - enumvalue_ = null; - enumvalueBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (optionsBuilder_ == null) { - options_ = java.util.Collections.emptyList(); - } else { - options_ = null; - optionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - sourceContext_ = null; - if (sourceContextBuilder_ != null) { - sourceContextBuilder_.dispose(); - sourceContextBuilder_ = null; - } - syntax_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_Enum_descriptor; - } - - @java.lang.Override - public com.google.protobuf.Enum getDefaultInstanceForType() { - return com.google.protobuf.Enum.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.Enum build() { - com.google.protobuf.Enum result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.Enum buildPartial() { - com.google.protobuf.Enum result = new com.google.protobuf.Enum(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.Enum result) { - if (enumvalueBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - enumvalue_ = java.util.Collections.unmodifiableList(enumvalue_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.enumvalue_ = enumvalue_; - } else { - result.enumvalue_ = enumvalueBuilder_.build(); - } - if (optionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - options_ = java.util.Collections.unmodifiableList(options_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.options_ = options_; - } else { - result.options_ = optionsBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.Enum result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.sourceContext_ = sourceContextBuilder_ == null - ? sourceContext_ - : sourceContextBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.syntax_ = syntax_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.Enum) { - return mergeFrom((com.google.protobuf.Enum)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.Enum other) { - if (other == com.google.protobuf.Enum.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (enumvalueBuilder_ == null) { - if (!other.enumvalue_.isEmpty()) { - if (enumvalue_.isEmpty()) { - enumvalue_ = other.enumvalue_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureEnumvalueIsMutable(); - enumvalue_.addAll(other.enumvalue_); - } - onChanged(); - } - } else { - if (!other.enumvalue_.isEmpty()) { - if (enumvalueBuilder_.isEmpty()) { - enumvalueBuilder_.dispose(); - enumvalueBuilder_ = null; - enumvalue_ = other.enumvalue_; - bitField0_ = (bitField0_ & ~0x00000002); - enumvalueBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEnumvalueFieldBuilder() : null; - } else { - enumvalueBuilder_.addAllMessages(other.enumvalue_); - } - } - } - if (optionsBuilder_ == null) { - if (!other.options_.isEmpty()) { - if (options_.isEmpty()) { - options_ = other.options_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureOptionsIsMutable(); - options_.addAll(other.options_); - } - onChanged(); - } - } else { - if (!other.options_.isEmpty()) { - if (optionsBuilder_.isEmpty()) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - options_ = other.options_; - bitField0_ = (bitField0_ & ~0x00000004); - optionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOptionsFieldBuilder() : null; - } else { - optionsBuilder_.addAllMessages(other.options_); - } - } - } - if (other.hasSourceContext()) { - mergeSourceContext(other.getSourceContext()); - } - if (other.syntax_ != 0) { - setSyntaxValue(other.getSyntaxValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.protobuf.EnumValue m = - input.readMessage( - com.google.protobuf.EnumValue.parser(), - extensionRegistry); - if (enumvalueBuilder_ == null) { - ensureEnumvalueIsMutable(); - enumvalue_.add(m); - } else { - enumvalueBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: { - com.google.protobuf.Option m = - input.readMessage( - com.google.protobuf.Option.parser(), - extensionRegistry); - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.add(m); - } else { - optionsBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: { - input.readMessage( - getSourceContextFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - syntax_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * <pre> - * Enum type name. - * </pre> - * - * <code>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(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <pre> - * Enum type name. - * </pre> - * - * <code>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; - } - } - /** - * <pre> - * Enum type name. - * </pre> - * - * <code>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(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * Enum type name. - * </pre> - * - * <code>string name = 1;</code> - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * <pre> - * Enum type name. - * </pre> - * - * <code>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(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.util.List<com.google.protobuf.EnumValue> enumvalue_ = - java.util.Collections.emptyList(); - private void ensureEnumvalueIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - enumvalue_ = new java.util.ArrayList<com.google.protobuf.EnumValue>(enumvalue_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.EnumValue, com.google.protobuf.EnumValue.Builder, com.google.protobuf.EnumValueOrBuilder> enumvalueBuilder_; - - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - public java.util.List<com.google.protobuf.EnumValue> getEnumvalueList() { - if (enumvalueBuilder_ == null) { - return java.util.Collections.unmodifiableList(enumvalue_); - } else { - return enumvalueBuilder_.getMessageList(); - } - } - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - public int getEnumvalueCount() { - if (enumvalueBuilder_ == null) { - return enumvalue_.size(); - } else { - return enumvalueBuilder_.getCount(); - } - } - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - public com.google.protobuf.EnumValue getEnumvalue(int index) { - if (enumvalueBuilder_ == null) { - return enumvalue_.get(index); - } else { - return enumvalueBuilder_.getMessage(index); - } - } - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - public Builder setEnumvalue( - int index, com.google.protobuf.EnumValue value) { - if (enumvalueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnumvalueIsMutable(); - enumvalue_.set(index, value); - onChanged(); - } else { - enumvalueBuilder_.setMessage(index, value); - } - return this; - } - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - public Builder setEnumvalue( - int index, com.google.protobuf.EnumValue.Builder builderForValue) { - if (enumvalueBuilder_ == null) { - ensureEnumvalueIsMutable(); - enumvalue_.set(index, builderForValue.build()); - onChanged(); - } else { - enumvalueBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - public Builder addEnumvalue(com.google.protobuf.EnumValue value) { - if (enumvalueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnumvalueIsMutable(); - enumvalue_.add(value); - onChanged(); - } else { - enumvalueBuilder_.addMessage(value); - } - return this; - } - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - public Builder addEnumvalue( - int index, com.google.protobuf.EnumValue value) { - if (enumvalueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnumvalueIsMutable(); - enumvalue_.add(index, value); - onChanged(); - } else { - enumvalueBuilder_.addMessage(index, value); - } - return this; - } - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - public Builder addEnumvalue( - com.google.protobuf.EnumValue.Builder builderForValue) { - if (enumvalueBuilder_ == null) { - ensureEnumvalueIsMutable(); - enumvalue_.add(builderForValue.build()); - onChanged(); - } else { - enumvalueBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - public Builder addEnumvalue( - int index, com.google.protobuf.EnumValue.Builder builderForValue) { - if (enumvalueBuilder_ == null) { - ensureEnumvalueIsMutable(); - enumvalue_.add(index, builderForValue.build()); - onChanged(); - } else { - enumvalueBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - public Builder addAllEnumvalue( - java.lang.Iterable<? extends com.google.protobuf.EnumValue> values) { - if (enumvalueBuilder_ == null) { - ensureEnumvalueIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, enumvalue_); - onChanged(); - } else { - enumvalueBuilder_.addAllMessages(values); - } - return this; - } - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - public Builder clearEnumvalue() { - if (enumvalueBuilder_ == null) { - enumvalue_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - enumvalueBuilder_.clear(); - } - return this; - } - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - public Builder removeEnumvalue(int index) { - if (enumvalueBuilder_ == null) { - ensureEnumvalueIsMutable(); - enumvalue_.remove(index); - onChanged(); - } else { - enumvalueBuilder_.remove(index); - } - return this; - } - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - public com.google.protobuf.EnumValue.Builder getEnumvalueBuilder( - int index) { - return getEnumvalueFieldBuilder().getBuilder(index); - } - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - public com.google.protobuf.EnumValueOrBuilder getEnumvalueOrBuilder( - int index) { - if (enumvalueBuilder_ == null) { - return enumvalue_.get(index); } else { - return enumvalueBuilder_.getMessageOrBuilder(index); - } - } - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - public java.util.List<? extends com.google.protobuf.EnumValueOrBuilder> - getEnumvalueOrBuilderList() { - if (enumvalueBuilder_ != null) { - return enumvalueBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(enumvalue_); - } - } - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - public com.google.protobuf.EnumValue.Builder addEnumvalueBuilder() { - return getEnumvalueFieldBuilder().addBuilder( - com.google.protobuf.EnumValue.getDefaultInstance()); - } - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - public com.google.protobuf.EnumValue.Builder addEnumvalueBuilder( - int index) { - return getEnumvalueFieldBuilder().addBuilder( - index, com.google.protobuf.EnumValue.getDefaultInstance()); - } - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - public java.util.List<com.google.protobuf.EnumValue.Builder> - getEnumvalueBuilderList() { - return getEnumvalueFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.EnumValue, com.google.protobuf.EnumValue.Builder, com.google.protobuf.EnumValueOrBuilder> - getEnumvalueFieldBuilder() { - if (enumvalueBuilder_ == null) { - enumvalueBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.EnumValue, com.google.protobuf.EnumValue.Builder, com.google.protobuf.EnumValueOrBuilder>( - enumvalue_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - enumvalue_ = null; - } - return enumvalueBuilder_; - } - - private java.util.List<com.google.protobuf.Option> options_ = - java.util.Collections.emptyList(); - private void ensureOptionsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - options_ = new java.util.ArrayList<com.google.protobuf.Option>(options_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Option, com.google.protobuf.Option.Builder, com.google.protobuf.OptionOrBuilder> optionsBuilder_; - - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public java.util.List<com.google.protobuf.Option> getOptionsList() { - if (optionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(options_); - } else { - return optionsBuilder_.getMessageList(); - } - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public int getOptionsCount() { - if (optionsBuilder_ == null) { - return options_.size(); - } else { - return optionsBuilder_.getCount(); - } - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public com.google.protobuf.Option getOptions(int index) { - if (optionsBuilder_ == null) { - return options_.get(index); - } else { - return optionsBuilder_.getMessage(index); - } - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder setOptions( - int index, com.google.protobuf.Option value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionsIsMutable(); - options_.set(index, value); - onChanged(); - } else { - optionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder setOptions( - int index, com.google.protobuf.Option.Builder builderForValue) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.set(index, builderForValue.build()); - onChanged(); - } else { - optionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder addOptions(com.google.protobuf.Option value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionsIsMutable(); - options_.add(value); - onChanged(); - } else { - optionsBuilder_.addMessage(value); - } - return this; - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder addOptions( - int index, com.google.protobuf.Option value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionsIsMutable(); - options_.add(index, value); - onChanged(); - } else { - optionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder addOptions( - com.google.protobuf.Option.Builder builderForValue) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.add(builderForValue.build()); - onChanged(); - } else { - optionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder addOptions( - int index, com.google.protobuf.Option.Builder builderForValue) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.add(index, builderForValue.build()); - onChanged(); - } else { - optionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder addAllOptions( - java.lang.Iterable<? extends com.google.protobuf.Option> values) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, options_); - onChanged(); - } else { - optionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder clearOptions() { - if (optionsBuilder_ == null) { - options_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - optionsBuilder_.clear(); - } - return this; - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder removeOptions(int index) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.remove(index); - onChanged(); - } else { - optionsBuilder_.remove(index); - } - return this; - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public com.google.protobuf.Option.Builder getOptionsBuilder( - int index) { - return getOptionsFieldBuilder().getBuilder(index); - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( - int index) { - if (optionsBuilder_ == null) { - return options_.get(index); } else { - return optionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public java.util.List<? extends com.google.protobuf.OptionOrBuilder> - getOptionsOrBuilderList() { - if (optionsBuilder_ != null) { - return optionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(options_); - } - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public com.google.protobuf.Option.Builder addOptionsBuilder() { - return getOptionsFieldBuilder().addBuilder( - com.google.protobuf.Option.getDefaultInstance()); - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public com.google.protobuf.Option.Builder addOptionsBuilder( - int index) { - return getOptionsFieldBuilder().addBuilder( - index, com.google.protobuf.Option.getDefaultInstance()); - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public java.util.List<com.google.protobuf.Option.Builder> - getOptionsBuilderList() { - return getOptionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Option, com.google.protobuf.Option.Builder, com.google.protobuf.OptionOrBuilder> - getOptionsFieldBuilder() { - if (optionsBuilder_ == null) { - optionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Option, com.google.protobuf.Option.Builder, com.google.protobuf.OptionOrBuilder>( - options_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - options_ = null; - } - return optionsBuilder_; - } - - private com.google.protobuf.SourceContext sourceContext_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.SourceContext, com.google.protobuf.SourceContext.Builder, com.google.protobuf.SourceContextOrBuilder> sourceContextBuilder_; - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 4;</code> - * @return Whether the sourceContext field is set. - */ - public boolean hasSourceContext() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 4;</code> - * @return The sourceContext. - */ - public com.google.protobuf.SourceContext getSourceContext() { - if (sourceContextBuilder_ == null) { - return sourceContext_ == null ? com.google.protobuf.SourceContext.getDefaultInstance() : sourceContext_; - } else { - return sourceContextBuilder_.getMessage(); - } - } - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 4;</code> - */ - public Builder setSourceContext(com.google.protobuf.SourceContext value) { - if (sourceContextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sourceContext_ = value; - } else { - sourceContextBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 4;</code> - */ - public Builder setSourceContext( - com.google.protobuf.SourceContext.Builder builderForValue) { - if (sourceContextBuilder_ == null) { - sourceContext_ = builderForValue.build(); - } else { - sourceContextBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 4;</code> - */ - public Builder mergeSourceContext(com.google.protobuf.SourceContext value) { - if (sourceContextBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - sourceContext_ != null && - sourceContext_ != com.google.protobuf.SourceContext.getDefaultInstance()) { - getSourceContextBuilder().mergeFrom(value); - } else { - sourceContext_ = value; - } - } else { - sourceContextBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 4;</code> - */ - public Builder clearSourceContext() { - bitField0_ = (bitField0_ & ~0x00000008); - sourceContext_ = null; - if (sourceContextBuilder_ != null) { - sourceContextBuilder_.dispose(); - sourceContextBuilder_ = null; - } - onChanged(); - return this; - } - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 4;</code> - */ - public com.google.protobuf.SourceContext.Builder getSourceContextBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getSourceContextFieldBuilder().getBuilder(); - } - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 4;</code> - */ - public com.google.protobuf.SourceContextOrBuilder getSourceContextOrBuilder() { - if (sourceContextBuilder_ != null) { - return sourceContextBuilder_.getMessageOrBuilder(); - } else { - return sourceContext_ == null ? - com.google.protobuf.SourceContext.getDefaultInstance() : sourceContext_; - } - } - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 4;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.SourceContext, com.google.protobuf.SourceContext.Builder, com.google.protobuf.SourceContextOrBuilder> - getSourceContextFieldBuilder() { - if (sourceContextBuilder_ == null) { - sourceContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.SourceContext, com.google.protobuf.SourceContext.Builder, com.google.protobuf.SourceContextOrBuilder>( - getSourceContext(), - getParentForChildren(), - isClean()); - sourceContext_ = null; - } - return sourceContextBuilder_; - } - - private int syntax_ = 0; - /** - * <pre> - * The source syntax. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 5;</code> - * @return The enum numeric value on the wire for syntax. - */ - @java.lang.Override public int getSyntaxValue() { - return syntax_; - } - /** - * <pre> - * The source syntax. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 5;</code> - * @param value The enum numeric value on the wire for syntax to set. - * @return This builder for chaining. - */ - public Builder setSyntaxValue(int value) { - syntax_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * <pre> - * The source syntax. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 5;</code> - * @return The syntax. - */ - @java.lang.Override - public com.google.protobuf.Syntax getSyntax() { - com.google.protobuf.Syntax result = com.google.protobuf.Syntax.forNumber(syntax_); - return result == null ? com.google.protobuf.Syntax.UNRECOGNIZED : result; - } - /** - * <pre> - * The source syntax. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 5;</code> - * @param value The syntax to set. - * @return This builder for chaining. - */ - public Builder setSyntax(com.google.protobuf.Syntax value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - syntax_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <pre> - * The source syntax. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 5;</code> - * @return This builder for chaining. - */ - public Builder clearSyntax() { - bitField0_ = (bitField0_ & ~0x00000010); - syntax_ = 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.Enum) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.Enum) - private static final com.google.protobuf.Enum DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.Enum(); - } - - public static com.google.protobuf.Enum getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Enum> - PARSER = new com.google.protobuf.AbstractParser<Enum>() { - @java.lang.Override - public Enum parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<Enum> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Enum> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Enum getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/EnumOrBuilder.java b/src/main/java/com/google/protobuf/EnumOrBuilder.java deleted file mode 100644 index bfea689..0000000 --- a/src/main/java/com/google/protobuf/EnumOrBuilder.java +++ /dev/null @@ -1,163 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/type.proto - -package com.google.protobuf; - -public interface EnumOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.Enum) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * Enum type name. - * </pre> - * - * <code>string name = 1;</code> - * @return The name. - */ - java.lang.String getName(); - /** - * <pre> - * Enum type name. - * </pre> - * - * <code>string name = 1;</code> - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - java.util.List<com.google.protobuf.EnumValue> - getEnumvalueList(); - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - com.google.protobuf.EnumValue getEnumvalue(int index); - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - int getEnumvalueCount(); - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - java.util.List<? extends com.google.protobuf.EnumValueOrBuilder> - getEnumvalueOrBuilderList(); - /** - * <pre> - * Enum value definitions. - * </pre> - * - * <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code> - */ - com.google.protobuf.EnumValueOrBuilder getEnumvalueOrBuilder( - int index); - - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - java.util.List<com.google.protobuf.Option> - getOptionsList(); - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - com.google.protobuf.Option getOptions(int index); - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - int getOptionsCount(); - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - java.util.List<? extends com.google.protobuf.OptionOrBuilder> - getOptionsOrBuilderList(); - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( - int index); - - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 4;</code> - * @return Whether the sourceContext field is set. - */ - boolean hasSourceContext(); - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 4;</code> - * @return The sourceContext. - */ - com.google.protobuf.SourceContext getSourceContext(); - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 4;</code> - */ - com.google.protobuf.SourceContextOrBuilder getSourceContextOrBuilder(); - - /** - * <pre> - * The source syntax. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 5;</code> - * @return The enum numeric value on the wire for syntax. - */ - int getSyntaxValue(); - /** - * <pre> - * The source syntax. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 5;</code> - * @return The syntax. - */ - com.google.protobuf.Syntax getSyntax(); -} diff --git a/src/main/java/com/google/protobuf/EnumValue.java b/src/main/java/com/google/protobuf/EnumValue.java deleted file mode 100644 index 0f18bd5..0000000 --- a/src/main/java/com/google/protobuf/EnumValue.java +++ /dev/null @@ -1,1071 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/type.proto - -package com.google.protobuf; - -/** - * <pre> - * Enum value definition. - * </pre> - * - * Protobuf type {@code google.protobuf.EnumValue} - */ -public final class EnumValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.EnumValue) - EnumValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use EnumValue.newBuilder() to construct. - private EnumValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EnumValue() { - name_ = ""; - options_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnumValue(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_EnumValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_EnumValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.EnumValue.class, com.google.protobuf.EnumValue.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * <pre> - * Enum value name. - * </pre> - * - * <code>string name = 1;</code> - * @return The name. - */ - @java.lang.Override - 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(); - name_ = s; - return s; - } - } - /** - * <pre> - * Enum value name. - * </pre> - * - * <code>string name = 1;</code> - * @return The bytes for name. - */ - @java.lang.Override - 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_ = 0; - /** - * <pre> - * Enum value number. - * </pre> - * - * <code>int32 number = 2;</code> - * @return The number. - */ - @java.lang.Override - public int getNumber() { - return number_; - } - - public static final int OPTIONS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.Option> options_; - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.Option> getOptionsList() { - return options_; - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.OptionOrBuilder> - getOptionsOrBuilderList() { - return options_; - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - @java.lang.Override - public int getOptionsCount() { - return options_.size(); - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - @java.lang.Override - public com.google.protobuf.Option getOptions(int index) { - return options_.get(index); - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - @java.lang.Override - public com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( - int index) { - return options_.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 { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (number_ != 0) { - output.writeInt32(2, number_); - } - for (int i = 0; i < options_.size(); i++) { - output.writeMessage(3, options_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (number_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, number_); - } - for (int i = 0; i < options_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, options_.get(i)); - } - size += getUnknownFields().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.EnumValue)) { - return super.equals(obj); - } - com.google.protobuf.EnumValue other = (com.google.protobuf.EnumValue) obj; - - if (!getName() - .equals(other.getName())) return false; - if (getNumber() - != other.getNumber()) return false; - if (!getOptionsList() - .equals(other.getOptionsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getNumber(); - if (getOptionsCount() > 0) { - hash = (37 * hash) + OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getOptionsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.EnumValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.EnumValue 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.EnumValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.EnumValue 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.EnumValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.EnumValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.EnumValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.EnumValue 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.EnumValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.EnumValue 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.EnumValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.EnumValue 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.EnumValue 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; - } - /** - * <pre> - * Enum value definition. - * </pre> - * - * Protobuf type {@code google.protobuf.EnumValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.EnumValue) - com.google.protobuf.EnumValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_EnumValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_EnumValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.EnumValue.class, com.google.protobuf.EnumValue.Builder.class); - } - - // Construct using com.google.protobuf.EnumValue.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - number_ = 0; - if (optionsBuilder_ == null) { - options_ = java.util.Collections.emptyList(); - } else { - options_ = null; - optionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_EnumValue_descriptor; - } - - @java.lang.Override - public com.google.protobuf.EnumValue getDefaultInstanceForType() { - return com.google.protobuf.EnumValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.EnumValue build() { - com.google.protobuf.EnumValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.EnumValue buildPartial() { - com.google.protobuf.EnumValue result = new com.google.protobuf.EnumValue(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.EnumValue result) { - if (optionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - options_ = java.util.Collections.unmodifiableList(options_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.options_ = options_; - } else { - result.options_ = optionsBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.EnumValue result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.number_ = number_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.EnumValue) { - return mergeFrom((com.google.protobuf.EnumValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.EnumValue other) { - if (other == com.google.protobuf.EnumValue.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getNumber() != 0) { - setNumber(other.getNumber()); - } - if (optionsBuilder_ == null) { - if (!other.options_.isEmpty()) { - if (options_.isEmpty()) { - options_ = other.options_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureOptionsIsMutable(); - options_.addAll(other.options_); - } - onChanged(); - } - } else { - if (!other.options_.isEmpty()) { - if (optionsBuilder_.isEmpty()) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - options_ = other.options_; - bitField0_ = (bitField0_ & ~0x00000004); - optionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOptionsFieldBuilder() : null; - } else { - optionsBuilder_.addAllMessages(other.options_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - number_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - com.google.protobuf.Option m = - input.readMessage( - com.google.protobuf.Option.parser(), - extensionRegistry); - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.add(m); - } else { - optionsBuilder_.addMessage(m); - } - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * <pre> - * Enum value name. - * </pre> - * - * <code>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(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <pre> - * Enum value name. - * </pre> - * - * <code>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; - } - } - /** - * <pre> - * Enum value name. - * </pre> - * - * <code>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(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * Enum value name. - * </pre> - * - * <code>string name = 1;</code> - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * <pre> - * Enum value name. - * </pre> - * - * <code>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(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int number_ ; - /** - * <pre> - * Enum value number. - * </pre> - * - * <code>int32 number = 2;</code> - * @return The number. - */ - @java.lang.Override - public int getNumber() { - return number_; - } - /** - * <pre> - * Enum value number. - * </pre> - * - * <code>int32 number = 2;</code> - * @param value The number to set. - * @return This builder for chaining. - */ - public Builder setNumber(int value) { - - number_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <pre> - * Enum value number. - * </pre> - * - * <code>int32 number = 2;</code> - * @return This builder for chaining. - */ - public Builder clearNumber() { - bitField0_ = (bitField0_ & ~0x00000002); - number_ = 0; - onChanged(); - return this; - } - - private java.util.List<com.google.protobuf.Option> options_ = - java.util.Collections.emptyList(); - private void ensureOptionsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - options_ = new java.util.ArrayList<com.google.protobuf.Option>(options_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Option, com.google.protobuf.Option.Builder, com.google.protobuf.OptionOrBuilder> optionsBuilder_; - - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public java.util.List<com.google.protobuf.Option> getOptionsList() { - if (optionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(options_); - } else { - return optionsBuilder_.getMessageList(); - } - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public int getOptionsCount() { - if (optionsBuilder_ == null) { - return options_.size(); - } else { - return optionsBuilder_.getCount(); - } - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public com.google.protobuf.Option getOptions(int index) { - if (optionsBuilder_ == null) { - return options_.get(index); - } else { - return optionsBuilder_.getMessage(index); - } - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder setOptions( - int index, com.google.protobuf.Option value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionsIsMutable(); - options_.set(index, value); - onChanged(); - } else { - optionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder setOptions( - int index, com.google.protobuf.Option.Builder builderForValue) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.set(index, builderForValue.build()); - onChanged(); - } else { - optionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder addOptions(com.google.protobuf.Option value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionsIsMutable(); - options_.add(value); - onChanged(); - } else { - optionsBuilder_.addMessage(value); - } - return this; - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder addOptions( - int index, com.google.protobuf.Option value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionsIsMutable(); - options_.add(index, value); - onChanged(); - } else { - optionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder addOptions( - com.google.protobuf.Option.Builder builderForValue) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.add(builderForValue.build()); - onChanged(); - } else { - optionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder addOptions( - int index, com.google.protobuf.Option.Builder builderForValue) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.add(index, builderForValue.build()); - onChanged(); - } else { - optionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder addAllOptions( - java.lang.Iterable<? extends com.google.protobuf.Option> values) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, options_); - onChanged(); - } else { - optionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder clearOptions() { - if (optionsBuilder_ == null) { - options_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - optionsBuilder_.clear(); - } - return this; - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public Builder removeOptions(int index) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.remove(index); - onChanged(); - } else { - optionsBuilder_.remove(index); - } - return this; - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public com.google.protobuf.Option.Builder getOptionsBuilder( - int index) { - return getOptionsFieldBuilder().getBuilder(index); - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( - int index) { - if (optionsBuilder_ == null) { - return options_.get(index); } else { - return optionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public java.util.List<? extends com.google.protobuf.OptionOrBuilder> - getOptionsOrBuilderList() { - if (optionsBuilder_ != null) { - return optionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(options_); - } - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public com.google.protobuf.Option.Builder addOptionsBuilder() { - return getOptionsFieldBuilder().addBuilder( - com.google.protobuf.Option.getDefaultInstance()); - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public com.google.protobuf.Option.Builder addOptionsBuilder( - int index) { - return getOptionsFieldBuilder().addBuilder( - index, com.google.protobuf.Option.getDefaultInstance()); - } - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - public java.util.List<com.google.protobuf.Option.Builder> - getOptionsBuilderList() { - return getOptionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Option, com.google.protobuf.Option.Builder, com.google.protobuf.OptionOrBuilder> - getOptionsFieldBuilder() { - if (optionsBuilder_ == null) { - optionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Option, com.google.protobuf.Option.Builder, com.google.protobuf.OptionOrBuilder>( - options_, - ((bitField0_ & 0x00000004) != 0), - 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.EnumValue) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.EnumValue) - private static final com.google.protobuf.EnumValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.EnumValue(); - } - - public static com.google.protobuf.EnumValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EnumValue> - PARSER = new com.google.protobuf.AbstractParser<EnumValue>() { - @java.lang.Override - public EnumValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<EnumValue> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EnumValue> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.EnumValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/EnumValueOrBuilder.java b/src/main/java/com/google/protobuf/EnumValueOrBuilder.java deleted file mode 100644 index 98c76d9..0000000 --- a/src/main/java/com/google/protobuf/EnumValueOrBuilder.java +++ /dev/null @@ -1,83 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/type.proto - -package com.google.protobuf; - -public interface EnumValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.EnumValue) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * Enum value name. - * </pre> - * - * <code>string name = 1;</code> - * @return The name. - */ - java.lang.String getName(); - /** - * <pre> - * Enum value name. - * </pre> - * - * <code>string name = 1;</code> - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * <pre> - * Enum value number. - * </pre> - * - * <code>int32 number = 2;</code> - * @return The number. - */ - int getNumber(); - - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - java.util.List<com.google.protobuf.Option> - getOptionsList(); - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - com.google.protobuf.Option getOptions(int index); - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - int getOptionsCount(); - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - java.util.List<? extends com.google.protobuf.OptionOrBuilder> - getOptionsOrBuilderList(); - /** - * <pre> - * Protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 3;</code> - */ - com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( - int index); -} diff --git a/src/main/java/com/google/protobuf/Field.java b/src/main/java/com/google/protobuf/Field.java deleted file mode 100644 index e014f9f..0000000 --- a/src/main/java/com/google/protobuf/Field.java +++ /dev/null @@ -1,2562 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/type.proto - -package com.google.protobuf; - -/** - * <pre> - * A single field of a message type. - * </pre> - * - * Protobuf type {@code google.protobuf.Field} - */ -public final class Field extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.Field) - FieldOrBuilder { -private static final long serialVersionUID = 0L; - // Use Field.newBuilder() to construct. - private Field(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Field() { - kind_ = 0; - cardinality_ = 0; - name_ = ""; - typeUrl_ = ""; - options_ = java.util.Collections.emptyList(); - jsonName_ = ""; - defaultValue_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Field(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_Field_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_Field_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Field.class, com.google.protobuf.Field.Builder.class); - } - - /** - * <pre> - * Basic field types. - * </pre> - * - * Protobuf enum {@code google.protobuf.Field.Kind} - */ - public enum Kind - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <pre> - * Field type unknown. - * </pre> - * - * <code>TYPE_UNKNOWN = 0;</code> - */ - TYPE_UNKNOWN(0), - /** - * <pre> - * Field type double. - * </pre> - * - * <code>TYPE_DOUBLE = 1;</code> - */ - TYPE_DOUBLE(1), - /** - * <pre> - * Field type float. - * </pre> - * - * <code>TYPE_FLOAT = 2;</code> - */ - TYPE_FLOAT(2), - /** - * <pre> - * Field type int64. - * </pre> - * - * <code>TYPE_INT64 = 3;</code> - */ - TYPE_INT64(3), - /** - * <pre> - * Field type uint64. - * </pre> - * - * <code>TYPE_UINT64 = 4;</code> - */ - TYPE_UINT64(4), - /** - * <pre> - * Field type int32. - * </pre> - * - * <code>TYPE_INT32 = 5;</code> - */ - TYPE_INT32(5), - /** - * <pre> - * Field type fixed64. - * </pre> - * - * <code>TYPE_FIXED64 = 6;</code> - */ - TYPE_FIXED64(6), - /** - * <pre> - * Field type fixed32. - * </pre> - * - * <code>TYPE_FIXED32 = 7;</code> - */ - TYPE_FIXED32(7), - /** - * <pre> - * Field type bool. - * </pre> - * - * <code>TYPE_BOOL = 8;</code> - */ - TYPE_BOOL(8), - /** - * <pre> - * Field type string. - * </pre> - * - * <code>TYPE_STRING = 9;</code> - */ - TYPE_STRING(9), - /** - * <pre> - * Field type group. Proto2 syntax only, and deprecated. - * </pre> - * - * <code>TYPE_GROUP = 10;</code> - */ - TYPE_GROUP(10), - /** - * <pre> - * Field type message. - * </pre> - * - * <code>TYPE_MESSAGE = 11;</code> - */ - TYPE_MESSAGE(11), - /** - * <pre> - * Field type bytes. - * </pre> - * - * <code>TYPE_BYTES = 12;</code> - */ - TYPE_BYTES(12), - /** - * <pre> - * Field type uint32. - * </pre> - * - * <code>TYPE_UINT32 = 13;</code> - */ - TYPE_UINT32(13), - /** - * <pre> - * Field type enum. - * </pre> - * - * <code>TYPE_ENUM = 14;</code> - */ - TYPE_ENUM(14), - /** - * <pre> - * Field type sfixed32. - * </pre> - * - * <code>TYPE_SFIXED32 = 15;</code> - */ - TYPE_SFIXED32(15), - /** - * <pre> - * Field type sfixed64. - * </pre> - * - * <code>TYPE_SFIXED64 = 16;</code> - */ - TYPE_SFIXED64(16), - /** - * <pre> - * Field type sint32. - * </pre> - * - * <code>TYPE_SINT32 = 17;</code> - */ - TYPE_SINT32(17), - /** - * <pre> - * Field type sint64. - * </pre> - * - * <code>TYPE_SINT64 = 18;</code> - */ - TYPE_SINT64(18), - UNRECOGNIZED(-1), - ; - - /** - * <pre> - * Field type unknown. - * </pre> - * - * <code>TYPE_UNKNOWN = 0;</code> - */ - public static final int TYPE_UNKNOWN_VALUE = 0; - /** - * <pre> - * Field type double. - * </pre> - * - * <code>TYPE_DOUBLE = 1;</code> - */ - public static final int TYPE_DOUBLE_VALUE = 1; - /** - * <pre> - * Field type float. - * </pre> - * - * <code>TYPE_FLOAT = 2;</code> - */ - public static final int TYPE_FLOAT_VALUE = 2; - /** - * <pre> - * Field type int64. - * </pre> - * - * <code>TYPE_INT64 = 3;</code> - */ - public static final int TYPE_INT64_VALUE = 3; - /** - * <pre> - * Field type uint64. - * </pre> - * - * <code>TYPE_UINT64 = 4;</code> - */ - public static final int TYPE_UINT64_VALUE = 4; - /** - * <pre> - * Field type int32. - * </pre> - * - * <code>TYPE_INT32 = 5;</code> - */ - public static final int TYPE_INT32_VALUE = 5; - /** - * <pre> - * Field type fixed64. - * </pre> - * - * <code>TYPE_FIXED64 = 6;</code> - */ - public static final int TYPE_FIXED64_VALUE = 6; - /** - * <pre> - * Field type fixed32. - * </pre> - * - * <code>TYPE_FIXED32 = 7;</code> - */ - public static final int TYPE_FIXED32_VALUE = 7; - /** - * <pre> - * Field type bool. - * </pre> - * - * <code>TYPE_BOOL = 8;</code> - */ - public static final int TYPE_BOOL_VALUE = 8; - /** - * <pre> - * Field type string. - * </pre> - * - * <code>TYPE_STRING = 9;</code> - */ - public static final int TYPE_STRING_VALUE = 9; - /** - * <pre> - * Field type group. Proto2 syntax only, and deprecated. - * </pre> - * - * <code>TYPE_GROUP = 10;</code> - */ - public static final int TYPE_GROUP_VALUE = 10; - /** - * <pre> - * Field type message. - * </pre> - * - * <code>TYPE_MESSAGE = 11;</code> - */ - public static final int TYPE_MESSAGE_VALUE = 11; - /** - * <pre> - * Field type bytes. - * </pre> - * - * <code>TYPE_BYTES = 12;</code> - */ - public static final int TYPE_BYTES_VALUE = 12; - /** - * <pre> - * Field type uint32. - * </pre> - * - * <code>TYPE_UINT32 = 13;</code> - */ - public static final int TYPE_UINT32_VALUE = 13; - /** - * <pre> - * Field type enum. - * </pre> - * - * <code>TYPE_ENUM = 14;</code> - */ - public static final int TYPE_ENUM_VALUE = 14; - /** - * <pre> - * Field type sfixed32. - * </pre> - * - * <code>TYPE_SFIXED32 = 15;</code> - */ - public static final int TYPE_SFIXED32_VALUE = 15; - /** - * <pre> - * Field type sfixed64. - * </pre> - * - * <code>TYPE_SFIXED64 = 16;</code> - */ - public static final int TYPE_SFIXED64_VALUE = 16; - /** - * <pre> - * Field type sint32. - * </pre> - * - * <code>TYPE_SINT32 = 17;</code> - */ - public static final int TYPE_SINT32_VALUE = 17; - /** - * <pre> - * Field type sint64. - * </pre> - * - * <code>TYPE_SINT64 = 18;</code> - */ - public static final int TYPE_SINT64_VALUE = 18; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @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 Kind valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Kind forNumber(int value) { - switch (value) { - case 0: return TYPE_UNKNOWN; - 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<Kind> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Kind> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<Kind>() { - public Kind findValueByNumber(int number) { - return Kind.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - 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.Field.getDescriptor().getEnumTypes().get(0); - } - - private static final Kind[] VALUES = values(); - - public static Kind valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Kind(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.protobuf.Field.Kind) - } - - /** - * <pre> - * Whether a field is optional, required, or repeated. - * </pre> - * - * Protobuf enum {@code google.protobuf.Field.Cardinality} - */ - public enum Cardinality - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <pre> - * For fields with unknown cardinality. - * </pre> - * - * <code>CARDINALITY_UNKNOWN = 0;</code> - */ - CARDINALITY_UNKNOWN(0), - /** - * <pre> - * For optional fields. - * </pre> - * - * <code>CARDINALITY_OPTIONAL = 1;</code> - */ - CARDINALITY_OPTIONAL(1), - /** - * <pre> - * For required fields. Proto2 syntax only. - * </pre> - * - * <code>CARDINALITY_REQUIRED = 2;</code> - */ - CARDINALITY_REQUIRED(2), - /** - * <pre> - * For repeated fields. - * </pre> - * - * <code>CARDINALITY_REPEATED = 3;</code> - */ - CARDINALITY_REPEATED(3), - UNRECOGNIZED(-1), - ; - - /** - * <pre> - * For fields with unknown cardinality. - * </pre> - * - * <code>CARDINALITY_UNKNOWN = 0;</code> - */ - public static final int CARDINALITY_UNKNOWN_VALUE = 0; - /** - * <pre> - * For optional fields. - * </pre> - * - * <code>CARDINALITY_OPTIONAL = 1;</code> - */ - public static final int CARDINALITY_OPTIONAL_VALUE = 1; - /** - * <pre> - * For required fields. Proto2 syntax only. - * </pre> - * - * <code>CARDINALITY_REQUIRED = 2;</code> - */ - public static final int CARDINALITY_REQUIRED_VALUE = 2; - /** - * <pre> - * For repeated fields. - * </pre> - * - * <code>CARDINALITY_REPEATED = 3;</code> - */ - public static final int CARDINALITY_REPEATED_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @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 Cardinality valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Cardinality forNumber(int value) { - switch (value) { - case 0: return CARDINALITY_UNKNOWN; - case 1: return CARDINALITY_OPTIONAL; - case 2: return CARDINALITY_REQUIRED; - case 3: return CARDINALITY_REPEATED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<Cardinality> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Cardinality> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<Cardinality>() { - public Cardinality findValueByNumber(int number) { - return Cardinality.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - 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.Field.getDescriptor().getEnumTypes().get(1); - } - - private static final Cardinality[] VALUES = values(); - - public static Cardinality valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Cardinality(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.protobuf.Field.Cardinality) - } - - public static final int KIND_FIELD_NUMBER = 1; - private int kind_ = 0; - /** - * <pre> - * The field type. - * </pre> - * - * <code>.google.protobuf.Field.Kind kind = 1;</code> - * @return The enum numeric value on the wire for kind. - */ - @java.lang.Override public int getKindValue() { - return kind_; - } - /** - * <pre> - * The field type. - * </pre> - * - * <code>.google.protobuf.Field.Kind kind = 1;</code> - * @return The kind. - */ - @java.lang.Override public com.google.protobuf.Field.Kind getKind() { - com.google.protobuf.Field.Kind result = com.google.protobuf.Field.Kind.forNumber(kind_); - return result == null ? com.google.protobuf.Field.Kind.UNRECOGNIZED : result; - } - - public static final int CARDINALITY_FIELD_NUMBER = 2; - private int cardinality_ = 0; - /** - * <pre> - * The field cardinality. - * </pre> - * - * <code>.google.protobuf.Field.Cardinality cardinality = 2;</code> - * @return The enum numeric value on the wire for cardinality. - */ - @java.lang.Override public int getCardinalityValue() { - return cardinality_; - } - /** - * <pre> - * The field cardinality. - * </pre> - * - * <code>.google.protobuf.Field.Cardinality cardinality = 2;</code> - * @return The cardinality. - */ - @java.lang.Override public com.google.protobuf.Field.Cardinality getCardinality() { - com.google.protobuf.Field.Cardinality result = com.google.protobuf.Field.Cardinality.forNumber(cardinality_); - return result == null ? com.google.protobuf.Field.Cardinality.UNRECOGNIZED : result; - } - - public static final int NUMBER_FIELD_NUMBER = 3; - private int number_ = 0; - /** - * <pre> - * The field number. - * </pre> - * - * <code>int32 number = 3;</code> - * @return The number. - */ - @java.lang.Override - public int getNumber() { - return number_; - } - - public static final int NAME_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * <pre> - * The field name. - * </pre> - * - * <code>string name = 4;</code> - * @return The name. - */ - @java.lang.Override - 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(); - name_ = s; - return s; - } - } - /** - * <pre> - * The field name. - * </pre> - * - * <code>string name = 4;</code> - * @return The bytes for name. - */ - @java.lang.Override - 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 TYPE_URL_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private volatile java.lang.Object typeUrl_ = ""; - /** - * <pre> - * The field type URL, without the scheme, for message or enumeration - * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. - * </pre> - * - * <code>string type_url = 6;</code> - * @return The typeUrl. - */ - @java.lang.Override - public java.lang.String getTypeUrl() { - java.lang.Object ref = typeUrl_; - 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(); - typeUrl_ = s; - return s; - } - } - /** - * <pre> - * The field type URL, without the scheme, for message or enumeration - * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. - * </pre> - * - * <code>string type_url = 6;</code> - * @return The bytes for typeUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTypeUrlBytes() { - java.lang.Object ref = typeUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - typeUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ONEOF_INDEX_FIELD_NUMBER = 7; - private int oneofIndex_ = 0; - /** - * <pre> - * The index of the field type in `Type.oneofs`, for message or enumeration - * types. The first type has index 1; zero means the type is not in the list. - * </pre> - * - * <code>int32 oneof_index = 7;</code> - * @return The oneofIndex. - */ - @java.lang.Override - public int getOneofIndex() { - return oneofIndex_; - } - - public static final int PACKED_FIELD_NUMBER = 8; - private boolean packed_ = false; - /** - * <pre> - * Whether to use alternative packed wire representation. - * </pre> - * - * <code>bool packed = 8;</code> - * @return The packed. - */ - @java.lang.Override - public boolean getPacked() { - return packed_; - } - - public static final int OPTIONS_FIELD_NUMBER = 9; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.Option> options_; - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.Option> getOptionsList() { - return options_; - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.OptionOrBuilder> - getOptionsOrBuilderList() { - return options_; - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - @java.lang.Override - public int getOptionsCount() { - return options_.size(); - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - @java.lang.Override - public com.google.protobuf.Option getOptions(int index) { - return options_.get(index); - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - @java.lang.Override - public com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( - int index) { - return options_.get(index); - } - - public static final int JSON_NAME_FIELD_NUMBER = 10; - @SuppressWarnings("serial") - private volatile java.lang.Object jsonName_ = ""; - /** - * <pre> - * The field JSON name. - * </pre> - * - * <code>string json_name = 10;</code> - * @return The jsonName. - */ - @java.lang.Override - 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(); - jsonName_ = s; - return s; - } - } - /** - * <pre> - * The field JSON name. - * </pre> - * - * <code>string json_name = 10;</code> - * @return The bytes for jsonName. - */ - @java.lang.Override - 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 DEFAULT_VALUE_FIELD_NUMBER = 11; - @SuppressWarnings("serial") - private volatile java.lang.Object defaultValue_ = ""; - /** - * <pre> - * The string value of the default value of this field. Proto2 syntax only. - * </pre> - * - * <code>string default_value = 11;</code> - * @return The defaultValue. - */ - @java.lang.Override - 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(); - defaultValue_ = s; - return s; - } - } - /** - * <pre> - * The string value of the default value of this field. Proto2 syntax only. - * </pre> - * - * <code>string default_value = 11;</code> - * @return The bytes for defaultValue. - */ - @java.lang.Override - 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; - } - } - - 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 (kind_ != com.google.protobuf.Field.Kind.TYPE_UNKNOWN.getNumber()) { - output.writeEnum(1, kind_); - } - if (cardinality_ != com.google.protobuf.Field.Cardinality.CARDINALITY_UNKNOWN.getNumber()) { - output.writeEnum(2, cardinality_); - } - if (number_ != 0) { - output.writeInt32(3, number_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeUrl_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, typeUrl_); - } - if (oneofIndex_ != 0) { - output.writeInt32(7, oneofIndex_); - } - if (packed_ != false) { - output.writeBool(8, packed_); - } - for (int i = 0; i < options_.size(); i++) { - output.writeMessage(9, options_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jsonName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, jsonName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultValue_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, defaultValue_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (kind_ != com.google.protobuf.Field.Kind.TYPE_UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, kind_); - } - if (cardinality_ != com.google.protobuf.Field.Cardinality.CARDINALITY_UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, cardinality_); - } - if (number_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, number_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeUrl_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, typeUrl_); - } - if (oneofIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, oneofIndex_); - } - if (packed_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, packed_); - } - for (int i = 0; i < options_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, options_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jsonName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, jsonName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultValue_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, defaultValue_); - } - size += getUnknownFields().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.Field)) { - return super.equals(obj); - } - com.google.protobuf.Field other = (com.google.protobuf.Field) obj; - - if (kind_ != other.kind_) return false; - if (cardinality_ != other.cardinality_) return false; - if (getNumber() - != other.getNumber()) return false; - if (!getName() - .equals(other.getName())) return false; - if (!getTypeUrl() - .equals(other.getTypeUrl())) return false; - if (getOneofIndex() - != other.getOneofIndex()) return false; - if (getPacked() - != other.getPacked()) return false; - if (!getOptionsList() - .equals(other.getOptionsList())) return false; - if (!getJsonName() - .equals(other.getJsonName())) return false; - if (!getDefaultValue() - .equals(other.getDefaultValue())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KIND_FIELD_NUMBER; - hash = (53 * hash) + kind_; - hash = (37 * hash) + CARDINALITY_FIELD_NUMBER; - hash = (53 * hash) + cardinality_; - hash = (37 * hash) + NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getNumber(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + TYPE_URL_FIELD_NUMBER; - hash = (53 * hash) + getTypeUrl().hashCode(); - hash = (37 * hash) + ONEOF_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getOneofIndex(); - hash = (37 * hash) + PACKED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPacked()); - if (getOptionsCount() > 0) { - hash = (37 * hash) + OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getOptionsList().hashCode(); - } - hash = (37 * hash) + JSON_NAME_FIELD_NUMBER; - hash = (53 * hash) + getJsonName().hashCode(); - hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getDefaultValue().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.Field parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Field 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.Field parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Field 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.Field parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Field parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.Field parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Field 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.Field parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.Field 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.Field parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Field 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.Field 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; - } - /** - * <pre> - * A single field of a message type. - * </pre> - * - * Protobuf type {@code google.protobuf.Field} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.Field) - com.google.protobuf.FieldOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_Field_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_Field_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Field.class, com.google.protobuf.Field.Builder.class); - } - - // Construct using com.google.protobuf.Field.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - kind_ = 0; - cardinality_ = 0; - number_ = 0; - name_ = ""; - typeUrl_ = ""; - oneofIndex_ = 0; - packed_ = false; - if (optionsBuilder_ == null) { - options_ = java.util.Collections.emptyList(); - } else { - options_ = null; - optionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - jsonName_ = ""; - defaultValue_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_Field_descriptor; - } - - @java.lang.Override - public com.google.protobuf.Field getDefaultInstanceForType() { - return com.google.protobuf.Field.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.Field build() { - com.google.protobuf.Field result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.Field buildPartial() { - com.google.protobuf.Field result = new com.google.protobuf.Field(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.Field result) { - if (optionsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { - options_ = java.util.Collections.unmodifiableList(options_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.options_ = options_; - } else { - result.options_ = optionsBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.Field result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.kind_ = kind_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.cardinality_ = cardinality_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.number_ = number_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.typeUrl_ = typeUrl_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.oneofIndex_ = oneofIndex_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.packed_ = packed_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.jsonName_ = jsonName_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.defaultValue_ = defaultValue_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.Field) { - return mergeFrom((com.google.protobuf.Field)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.Field other) { - if (other == com.google.protobuf.Field.getDefaultInstance()) return this; - if (other.kind_ != 0) { - setKindValue(other.getKindValue()); - } - if (other.cardinality_ != 0) { - setCardinalityValue(other.getCardinalityValue()); - } - if (other.getNumber() != 0) { - setNumber(other.getNumber()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getTypeUrl().isEmpty()) { - typeUrl_ = other.typeUrl_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.getOneofIndex() != 0) { - setOneofIndex(other.getOneofIndex()); - } - if (other.getPacked() != false) { - setPacked(other.getPacked()); - } - if (optionsBuilder_ == null) { - if (!other.options_.isEmpty()) { - if (options_.isEmpty()) { - options_ = other.options_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureOptionsIsMutable(); - options_.addAll(other.options_); - } - onChanged(); - } - } else { - if (!other.options_.isEmpty()) { - if (optionsBuilder_.isEmpty()) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - options_ = other.options_; - bitField0_ = (bitField0_ & ~0x00000080); - optionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOptionsFieldBuilder() : null; - } else { - optionsBuilder_.addAllMessages(other.options_); - } - } - } - if (!other.getJsonName().isEmpty()) { - jsonName_ = other.jsonName_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (!other.getDefaultValue().isEmpty()) { - defaultValue_ = other.defaultValue_; - bitField0_ |= 0x00000200; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - kind_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - cardinality_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - number_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: { - typeUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 56: { - oneofIndex_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 56 - case 64: { - packed_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 64 - case 74: { - com.google.protobuf.Option m = - input.readMessage( - com.google.protobuf.Option.parser(), - extensionRegistry); - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.add(m); - } else { - optionsBuilder_.addMessage(m); - } - break; - } // case 74 - case 82: { - jsonName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 82 - case 90: { - defaultValue_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 90 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int kind_ = 0; - /** - * <pre> - * The field type. - * </pre> - * - * <code>.google.protobuf.Field.Kind kind = 1;</code> - * @return The enum numeric value on the wire for kind. - */ - @java.lang.Override public int getKindValue() { - return kind_; - } - /** - * <pre> - * The field type. - * </pre> - * - * <code>.google.protobuf.Field.Kind kind = 1;</code> - * @param value The enum numeric value on the wire for kind to set. - * @return This builder for chaining. - */ - public Builder setKindValue(int value) { - kind_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * The field type. - * </pre> - * - * <code>.google.protobuf.Field.Kind kind = 1;</code> - * @return The kind. - */ - @java.lang.Override - public com.google.protobuf.Field.Kind getKind() { - com.google.protobuf.Field.Kind result = com.google.protobuf.Field.Kind.forNumber(kind_); - return result == null ? com.google.protobuf.Field.Kind.UNRECOGNIZED : result; - } - /** - * <pre> - * The field type. - * </pre> - * - * <code>.google.protobuf.Field.Kind kind = 1;</code> - * @param value The kind to set. - * @return This builder for chaining. - */ - public Builder setKind(com.google.protobuf.Field.Kind value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - kind_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <pre> - * The field type. - * </pre> - * - * <code>.google.protobuf.Field.Kind kind = 1;</code> - * @return This builder for chaining. - */ - public Builder clearKind() { - bitField0_ = (bitField0_ & ~0x00000001); - kind_ = 0; - onChanged(); - return this; - } - - private int cardinality_ = 0; - /** - * <pre> - * The field cardinality. - * </pre> - * - * <code>.google.protobuf.Field.Cardinality cardinality = 2;</code> - * @return The enum numeric value on the wire for cardinality. - */ - @java.lang.Override public int getCardinalityValue() { - return cardinality_; - } - /** - * <pre> - * The field cardinality. - * </pre> - * - * <code>.google.protobuf.Field.Cardinality cardinality = 2;</code> - * @param value The enum numeric value on the wire for cardinality to set. - * @return This builder for chaining. - */ - public Builder setCardinalityValue(int value) { - cardinality_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <pre> - * The field cardinality. - * </pre> - * - * <code>.google.protobuf.Field.Cardinality cardinality = 2;</code> - * @return The cardinality. - */ - @java.lang.Override - public com.google.protobuf.Field.Cardinality getCardinality() { - com.google.protobuf.Field.Cardinality result = com.google.protobuf.Field.Cardinality.forNumber(cardinality_); - return result == null ? com.google.protobuf.Field.Cardinality.UNRECOGNIZED : result; - } - /** - * <pre> - * The field cardinality. - * </pre> - * - * <code>.google.protobuf.Field.Cardinality cardinality = 2;</code> - * @param value The cardinality to set. - * @return This builder for chaining. - */ - public Builder setCardinality(com.google.protobuf.Field.Cardinality value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - cardinality_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <pre> - * The field cardinality. - * </pre> - * - * <code>.google.protobuf.Field.Cardinality cardinality = 2;</code> - * @return This builder for chaining. - */ - public Builder clearCardinality() { - bitField0_ = (bitField0_ & ~0x00000002); - cardinality_ = 0; - onChanged(); - return this; - } - - private int number_ ; - /** - * <pre> - * The field number. - * </pre> - * - * <code>int32 number = 3;</code> - * @return The number. - */ - @java.lang.Override - public int getNumber() { - return number_; - } - /** - * <pre> - * The field number. - * </pre> - * - * <code>int32 number = 3;</code> - * @param value The number to set. - * @return This builder for chaining. - */ - public Builder setNumber(int value) { - - number_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <pre> - * The field number. - * </pre> - * - * <code>int32 number = 3;</code> - * @return This builder for chaining. - */ - public Builder clearNumber() { - bitField0_ = (bitField0_ & ~0x00000004); - number_ = 0; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * <pre> - * The field name. - * </pre> - * - * <code>string name = 4;</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(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <pre> - * The field name. - * </pre> - * - * <code>string name = 4;</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; - } - } - /** - * <pre> - * The field name. - * </pre> - * - * <code>string name = 4;</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(); } - name_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * <pre> - * The field name. - * </pre> - * - * <code>string name = 4;</code> - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * <pre> - * The field name. - * </pre> - * - * <code>string name = 4;</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(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object typeUrl_ = ""; - /** - * <pre> - * The field type URL, without the scheme, for message or enumeration - * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. - * </pre> - * - * <code>string type_url = 6;</code> - * @return The typeUrl. - */ - public java.lang.String getTypeUrl() { - java.lang.Object ref = typeUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - typeUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <pre> - * The field type URL, without the scheme, for message or enumeration - * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. - * </pre> - * - * <code>string type_url = 6;</code> - * @return The bytes for typeUrl. - */ - public com.google.protobuf.ByteString - getTypeUrlBytes() { - java.lang.Object ref = typeUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - typeUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <pre> - * The field type URL, without the scheme, for message or enumeration - * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. - * </pre> - * - * <code>string type_url = 6;</code> - * @param value The typeUrl to set. - * @return This builder for chaining. - */ - public Builder setTypeUrl( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - typeUrl_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * <pre> - * The field type URL, without the scheme, for message or enumeration - * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. - * </pre> - * - * <code>string type_url = 6;</code> - * @return This builder for chaining. - */ - public Builder clearTypeUrl() { - typeUrl_ = getDefaultInstance().getTypeUrl(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * <pre> - * The field type URL, without the scheme, for message or enumeration - * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. - * </pre> - * - * <code>string type_url = 6;</code> - * @param value The bytes for typeUrl to set. - * @return This builder for chaining. - */ - public Builder setTypeUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - typeUrl_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private int oneofIndex_ ; - /** - * <pre> - * The index of the field type in `Type.oneofs`, for message or enumeration - * types. The first type has index 1; zero means the type is not in the list. - * </pre> - * - * <code>int32 oneof_index = 7;</code> - * @return The oneofIndex. - */ - @java.lang.Override - public int getOneofIndex() { - return oneofIndex_; - } - /** - * <pre> - * The index of the field type in `Type.oneofs`, for message or enumeration - * types. The first type has index 1; zero means the type is not in the list. - * </pre> - * - * <code>int32 oneof_index = 7;</code> - * @param value The oneofIndex to set. - * @return This builder for chaining. - */ - public Builder setOneofIndex(int value) { - - oneofIndex_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * <pre> - * The index of the field type in `Type.oneofs`, for message or enumeration - * types. The first type has index 1; zero means the type is not in the list. - * </pre> - * - * <code>int32 oneof_index = 7;</code> - * @return This builder for chaining. - */ - public Builder clearOneofIndex() { - bitField0_ = (bitField0_ & ~0x00000020); - oneofIndex_ = 0; - onChanged(); - return this; - } - - private boolean packed_ ; - /** - * <pre> - * Whether to use alternative packed wire representation. - * </pre> - * - * <code>bool packed = 8;</code> - * @return The packed. - */ - @java.lang.Override - public boolean getPacked() { - return packed_; - } - /** - * <pre> - * Whether to use alternative packed wire representation. - * </pre> - * - * <code>bool packed = 8;</code> - * @param value The packed to set. - * @return This builder for chaining. - */ - public Builder setPacked(boolean value) { - - packed_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * <pre> - * Whether to use alternative packed wire representation. - * </pre> - * - * <code>bool packed = 8;</code> - * @return This builder for chaining. - */ - public Builder clearPacked() { - bitField0_ = (bitField0_ & ~0x00000040); - packed_ = false; - onChanged(); - return this; - } - - private java.util.List<com.google.protobuf.Option> options_ = - java.util.Collections.emptyList(); - private void ensureOptionsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - options_ = new java.util.ArrayList<com.google.protobuf.Option>(options_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Option, com.google.protobuf.Option.Builder, com.google.protobuf.OptionOrBuilder> optionsBuilder_; - - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - public java.util.List<com.google.protobuf.Option> getOptionsList() { - if (optionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(options_); - } else { - return optionsBuilder_.getMessageList(); - } - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - public int getOptionsCount() { - if (optionsBuilder_ == null) { - return options_.size(); - } else { - return optionsBuilder_.getCount(); - } - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - public com.google.protobuf.Option getOptions(int index) { - if (optionsBuilder_ == null) { - return options_.get(index); - } else { - return optionsBuilder_.getMessage(index); - } - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - public Builder setOptions( - int index, com.google.protobuf.Option value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionsIsMutable(); - options_.set(index, value); - onChanged(); - } else { - optionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - public Builder setOptions( - int index, com.google.protobuf.Option.Builder builderForValue) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.set(index, builderForValue.build()); - onChanged(); - } else { - optionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - public Builder addOptions(com.google.protobuf.Option value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionsIsMutable(); - options_.add(value); - onChanged(); - } else { - optionsBuilder_.addMessage(value); - } - return this; - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - public Builder addOptions( - int index, com.google.protobuf.Option value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionsIsMutable(); - options_.add(index, value); - onChanged(); - } else { - optionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - public Builder addOptions( - com.google.protobuf.Option.Builder builderForValue) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.add(builderForValue.build()); - onChanged(); - } else { - optionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - public Builder addOptions( - int index, com.google.protobuf.Option.Builder builderForValue) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.add(index, builderForValue.build()); - onChanged(); - } else { - optionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - public Builder addAllOptions( - java.lang.Iterable<? extends com.google.protobuf.Option> values) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, options_); - onChanged(); - } else { - optionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - public Builder clearOptions() { - if (optionsBuilder_ == null) { - options_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - optionsBuilder_.clear(); - } - return this; - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - public Builder removeOptions(int index) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.remove(index); - onChanged(); - } else { - optionsBuilder_.remove(index); - } - return this; - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - public com.google.protobuf.Option.Builder getOptionsBuilder( - int index) { - return getOptionsFieldBuilder().getBuilder(index); - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - public com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( - int index) { - if (optionsBuilder_ == null) { - return options_.get(index); } else { - return optionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - public java.util.List<? extends com.google.protobuf.OptionOrBuilder> - getOptionsOrBuilderList() { - if (optionsBuilder_ != null) { - return optionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(options_); - } - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - public com.google.protobuf.Option.Builder addOptionsBuilder() { - return getOptionsFieldBuilder().addBuilder( - com.google.protobuf.Option.getDefaultInstance()); - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - public com.google.protobuf.Option.Builder addOptionsBuilder( - int index) { - return getOptionsFieldBuilder().addBuilder( - index, com.google.protobuf.Option.getDefaultInstance()); - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - public java.util.List<com.google.protobuf.Option.Builder> - getOptionsBuilderList() { - return getOptionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Option, com.google.protobuf.Option.Builder, com.google.protobuf.OptionOrBuilder> - getOptionsFieldBuilder() { - if (optionsBuilder_ == null) { - optionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Option, com.google.protobuf.Option.Builder, com.google.protobuf.OptionOrBuilder>( - options_, - ((bitField0_ & 0x00000080) != 0), - getParentForChildren(), - isClean()); - options_ = null; - } - return optionsBuilder_; - } - - private java.lang.Object jsonName_ = ""; - /** - * <pre> - * The field JSON name. - * </pre> - * - * <code>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(); - jsonName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <pre> - * The field JSON name. - * </pre> - * - * <code>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; - } - } - /** - * <pre> - * The field JSON name. - * </pre> - * - * <code>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(); } - jsonName_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * <pre> - * The field JSON name. - * </pre> - * - * <code>string json_name = 10;</code> - * @return This builder for chaining. - */ - public Builder clearJsonName() { - jsonName_ = getDefaultInstance().getJsonName(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - /** - * <pre> - * The field JSON name. - * </pre> - * - * <code>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(); } - checkByteStringIsUtf8(value); - jsonName_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - - private java.lang.Object defaultValue_ = ""; - /** - * <pre> - * The string value of the default value of this field. Proto2 syntax only. - * </pre> - * - * <code>string default_value = 11;</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(); - defaultValue_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <pre> - * The string value of the default value of this field. Proto2 syntax only. - * </pre> - * - * <code>string default_value = 11;</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; - } - } - /** - * <pre> - * The string value of the default value of this field. Proto2 syntax only. - * </pre> - * - * <code>string default_value = 11;</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(); } - defaultValue_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * <pre> - * The string value of the default value of this field. Proto2 syntax only. - * </pre> - * - * <code>string default_value = 11;</code> - * @return This builder for chaining. - */ - public Builder clearDefaultValue() { - defaultValue_ = getDefaultInstance().getDefaultValue(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - return this; - } - /** - * <pre> - * The string value of the default value of this field. Proto2 syntax only. - * </pre> - * - * <code>string default_value = 11;</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(); } - checkByteStringIsUtf8(value); - defaultValue_ = value; - bitField0_ |= 0x00000200; - 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.Field) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.Field) - private static final com.google.protobuf.Field DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.Field(); - } - - public static com.google.protobuf.Field getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Field> - PARSER = new com.google.protobuf.AbstractParser<Field>() { - @java.lang.Override - public Field parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<Field> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Field> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Field getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/FieldMask.java b/src/main/java/com/google/protobuf/FieldMask.java deleted file mode 100644 index 2d3d297..0000000 --- a/src/main/java/com/google/protobuf/FieldMask.java +++ /dev/null @@ -1,1016 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/field_mask.proto - -package com.google.protobuf; - -/** - * <pre> - * `FieldMask` represents a set of symbolic field paths, for example: - * - * paths: "f.a" - * paths: "f.b.d" - * - * Here `f` represents a field in some root message, `a` and `b` - * fields in the message found in `f`, and `d` a field found in the - * message in `f.b`. - * - * Field masks are used to specify a subset of fields that should be - * returned by a get operation or modified by an update operation. - * Field masks also have a custom JSON encoding (see below). - * - * # Field Masks in Projections - * - * When used in the context of a projection, a response message or - * sub-message is filtered by the API to only contain those fields as - * specified in the mask. For example, if the mask in the previous - * example is applied to a response message as follows: - * - * f { - * a : 22 - * b { - * d : 1 - * x : 2 - * } - * y : 13 - * } - * z: 8 - * - * The result will not contain specific values for fields x,y and z - * (their value will be set to the default, and omitted in proto text - * output): - * - * - * f { - * a : 22 - * b { - * d : 1 - * } - * } - * - * A repeated field is not allowed except at the last position of a - * paths string. - * - * If a FieldMask object is not present in a get operation, the - * operation applies to all fields (as if a FieldMask of all fields - * had been specified). - * - * Note that a field mask does not necessarily apply to the - * top-level response message. In case of a REST get operation, the - * field mask applies directly to the response, but in case of a REST - * list operation, the mask instead applies to each individual message - * in the returned resource list. In case of a REST custom method, - * other definitions may be used. Where the mask applies will be - * clearly documented together with its declaration in the API. In - * any case, the effect on the returned resource/resources is required - * behavior for APIs. - * - * # Field Masks in Update Operations - * - * A field mask in update operations specifies which fields of the - * targeted resource are going to be updated. The API is required - * to only change the values of the fields as specified in the mask - * and leave the others untouched. If a resource is passed in to - * describe the updated values, the API ignores the values of all - * fields not covered by the mask. - * - * If a repeated field is specified for an update operation, new values will - * be appended to the existing repeated field in the target resource. Note that - * a repeated field is only allowed in the last position of a `paths` string. - * - * If a sub-message is specified in the last position of the field mask for an - * update operation, then new value will be merged into the existing sub-message - * in the target resource. - * - * For example, given the target message: - * - * f { - * b { - * d: 1 - * x: 2 - * } - * c: [1] - * } - * - * And an update message: - * - * f { - * b { - * d: 10 - * } - * c: [2] - * } - * - * then if the field mask is: - * - * paths: ["f.b", "f.c"] - * - * then the result will be: - * - * f { - * b { - * d: 10 - * x: 2 - * } - * c: [1, 2] - * } - * - * An implementation may provide options to override this default behavior for - * repeated and message fields. - * - * In order to reset a field's value to the default, the field must - * be in the mask and set to the default value in the provided resource. - * Hence, in order to reset all fields of a resource, provide a default - * instance of the resource and set all fields in the mask, or do - * not provide a mask as described below. - * - * If a field mask is not present on update, the operation applies to - * all fields (as if a field mask of all fields has been specified). - * Note that in the presence of schema evolution, this may mean that - * fields the client does not know and has therefore not filled into - * the request will be reset to their default. If this is unwanted - * behavior, a specific service may require a client to always specify - * a field mask, producing an error if not. - * - * As with get operations, the location of the resource which - * describes the updated values in the request message depends on the - * operation kind. In any case, the effect of the field mask is - * required to be honored by the API. - * - * ## Considerations for HTTP REST - * - * The HTTP kind of an update operation which uses a field mask must - * be set to PATCH instead of PUT in order to satisfy HTTP semantics - * (PUT must only be used for full updates). - * - * # JSON Encoding of Field Masks - * - * In JSON, a field mask is encoded as a single string where paths are - * separated by a comma. Fields name in each path are converted - * to/from lower-camel naming conventions. - * - * As an example, consider the following message declarations: - * - * message Profile { - * User user = 1; - * Photo photo = 2; - * } - * message User { - * string display_name = 1; - * string address = 2; - * } - * - * In proto a field mask for `Profile` may look as such: - * - * mask { - * paths: "user.display_name" - * paths: "photo" - * } - * - * In JSON, the same mask is represented as below: - * - * { - * mask: "user.displayName,photo" - * } - * - * # Field Masks and Oneof Fields - * - * Field masks treat fields in oneofs just as regular fields. Consider the - * following message: - * - * message SampleMessage { - * oneof test_oneof { - * string name = 4; - * SubMessage sub_message = 9; - * } - * } - * - * The field mask can be: - * - * mask { - * paths: "name" - * } - * - * Or: - * - * mask { - * paths: "sub_message" - * } - * - * Note that oneof type names ("test_oneof" in this case) cannot be used in - * paths. - * - * ## Field Mask Verification - * - * The implementation of any API method which has a FieldMask type field in the - * request should verify the included field paths, and return an - * `INVALID_ARGUMENT` error if any path is unmappable. - * </pre> - * - * Protobuf type {@code google.protobuf.FieldMask} - */ -public final class FieldMask extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.FieldMask) - FieldMaskOrBuilder { -private static final long serialVersionUID = 0L; - // Use FieldMask.newBuilder() to construct. - private FieldMask(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private FieldMask() { - paths_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FieldMask(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.FieldMaskProto.internal_static_google_protobuf_FieldMask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.FieldMaskProto.internal_static_google_protobuf_FieldMask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.FieldMask.class, com.google.protobuf.FieldMask.Builder.class); - } - - public static final int PATHS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList paths_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * <pre> - * The set of field mask paths. - * </pre> - * - * <code>repeated string paths = 1;</code> - * @return A list containing the paths. - */ - public com.google.protobuf.ProtocolStringList - getPathsList() { - return paths_; - } - /** - * <pre> - * The set of field mask paths. - * </pre> - * - * <code>repeated string paths = 1;</code> - * @return The count of paths. - */ - public int getPathsCount() { - return paths_.size(); - } - /** - * <pre> - * The set of field mask paths. - * </pre> - * - * <code>repeated string paths = 1;</code> - * @param index The index of the element to return. - * @return The paths at the given index. - */ - public java.lang.String getPaths(int index) { - return paths_.get(index); - } - /** - * <pre> - * The set of field mask paths. - * </pre> - * - * <code>repeated string paths = 1;</code> - * @param index The index of the value to return. - * @return The bytes of the paths at the given index. - */ - public com.google.protobuf.ByteString - getPathsBytes(int index) { - return paths_.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 { - for (int i = 0; i < paths_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, paths_.getRaw(i)); - } - getUnknownFields().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 < paths_.size(); i++) { - dataSize += computeStringSizeNoTag(paths_.getRaw(i)); - } - size += dataSize; - size += 1 * getPathsList().size(); - } - size += getUnknownFields().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.FieldMask)) { - return super.equals(obj); - } - com.google.protobuf.FieldMask other = (com.google.protobuf.FieldMask) obj; - - if (!getPathsList() - .equals(other.getPathsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPathsCount() > 0) { - hash = (37 * hash) + PATHS_FIELD_NUMBER; - hash = (53 * hash) + getPathsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.FieldMask parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.FieldMask 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.FieldMask parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.FieldMask 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.FieldMask parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.FieldMask parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.FieldMask parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.FieldMask 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.FieldMask parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.FieldMask 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.FieldMask parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.FieldMask 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.FieldMask 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; - } - /** - * <pre> - * `FieldMask` represents a set of symbolic field paths, for example: - * - * paths: "f.a" - * paths: "f.b.d" - * - * Here `f` represents a field in some root message, `a` and `b` - * fields in the message found in `f`, and `d` a field found in the - * message in `f.b`. - * - * Field masks are used to specify a subset of fields that should be - * returned by a get operation or modified by an update operation. - * Field masks also have a custom JSON encoding (see below). - * - * # Field Masks in Projections - * - * When used in the context of a projection, a response message or - * sub-message is filtered by the API to only contain those fields as - * specified in the mask. For example, if the mask in the previous - * example is applied to a response message as follows: - * - * f { - * a : 22 - * b { - * d : 1 - * x : 2 - * } - * y : 13 - * } - * z: 8 - * - * The result will not contain specific values for fields x,y and z - * (their value will be set to the default, and omitted in proto text - * output): - * - * - * f { - * a : 22 - * b { - * d : 1 - * } - * } - * - * A repeated field is not allowed except at the last position of a - * paths string. - * - * If a FieldMask object is not present in a get operation, the - * operation applies to all fields (as if a FieldMask of all fields - * had been specified). - * - * Note that a field mask does not necessarily apply to the - * top-level response message. In case of a REST get operation, the - * field mask applies directly to the response, but in case of a REST - * list operation, the mask instead applies to each individual message - * in the returned resource list. In case of a REST custom method, - * other definitions may be used. Where the mask applies will be - * clearly documented together with its declaration in the API. In - * any case, the effect on the returned resource/resources is required - * behavior for APIs. - * - * # Field Masks in Update Operations - * - * A field mask in update operations specifies which fields of the - * targeted resource are going to be updated. The API is required - * to only change the values of the fields as specified in the mask - * and leave the others untouched. If a resource is passed in to - * describe the updated values, the API ignores the values of all - * fields not covered by the mask. - * - * If a repeated field is specified for an update operation, new values will - * be appended to the existing repeated field in the target resource. Note that - * a repeated field is only allowed in the last position of a `paths` string. - * - * If a sub-message is specified in the last position of the field mask for an - * update operation, then new value will be merged into the existing sub-message - * in the target resource. - * - * For example, given the target message: - * - * f { - * b { - * d: 1 - * x: 2 - * } - * c: [1] - * } - * - * And an update message: - * - * f { - * b { - * d: 10 - * } - * c: [2] - * } - * - * then if the field mask is: - * - * paths: ["f.b", "f.c"] - * - * then the result will be: - * - * f { - * b { - * d: 10 - * x: 2 - * } - * c: [1, 2] - * } - * - * An implementation may provide options to override this default behavior for - * repeated and message fields. - * - * In order to reset a field's value to the default, the field must - * be in the mask and set to the default value in the provided resource. - * Hence, in order to reset all fields of a resource, provide a default - * instance of the resource and set all fields in the mask, or do - * not provide a mask as described below. - * - * If a field mask is not present on update, the operation applies to - * all fields (as if a field mask of all fields has been specified). - * Note that in the presence of schema evolution, this may mean that - * fields the client does not know and has therefore not filled into - * the request will be reset to their default. If this is unwanted - * behavior, a specific service may require a client to always specify - * a field mask, producing an error if not. - * - * As with get operations, the location of the resource which - * describes the updated values in the request message depends on the - * operation kind. In any case, the effect of the field mask is - * required to be honored by the API. - * - * ## Considerations for HTTP REST - * - * The HTTP kind of an update operation which uses a field mask must - * be set to PATCH instead of PUT in order to satisfy HTTP semantics - * (PUT must only be used for full updates). - * - * # JSON Encoding of Field Masks - * - * In JSON, a field mask is encoded as a single string where paths are - * separated by a comma. Fields name in each path are converted - * to/from lower-camel naming conventions. - * - * As an example, consider the following message declarations: - * - * message Profile { - * User user = 1; - * Photo photo = 2; - * } - * message User { - * string display_name = 1; - * string address = 2; - * } - * - * In proto a field mask for `Profile` may look as such: - * - * mask { - * paths: "user.display_name" - * paths: "photo" - * } - * - * In JSON, the same mask is represented as below: - * - * { - * mask: "user.displayName,photo" - * } - * - * # Field Masks and Oneof Fields - * - * Field masks treat fields in oneofs just as regular fields. Consider the - * following message: - * - * message SampleMessage { - * oneof test_oneof { - * string name = 4; - * SubMessage sub_message = 9; - * } - * } - * - * The field mask can be: - * - * mask { - * paths: "name" - * } - * - * Or: - * - * mask { - * paths: "sub_message" - * } - * - * Note that oneof type names ("test_oneof" in this case) cannot be used in - * paths. - * - * ## Field Mask Verification - * - * The implementation of any API method which has a FieldMask type field in the - * request should verify the included field paths, and return an - * `INVALID_ARGUMENT` error if any path is unmappable. - * </pre> - * - * Protobuf type {@code google.protobuf.FieldMask} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.FieldMask) - com.google.protobuf.FieldMaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.FieldMaskProto.internal_static_google_protobuf_FieldMask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.FieldMaskProto.internal_static_google_protobuf_FieldMask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.FieldMask.class, com.google.protobuf.FieldMask.Builder.class); - } - - // Construct using com.google.protobuf.FieldMask.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - paths_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.FieldMaskProto.internal_static_google_protobuf_FieldMask_descriptor; - } - - @java.lang.Override - public com.google.protobuf.FieldMask getDefaultInstanceForType() { - return com.google.protobuf.FieldMask.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.FieldMask build() { - com.google.protobuf.FieldMask result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.FieldMask buildPartial() { - com.google.protobuf.FieldMask result = new com.google.protobuf.FieldMask(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.FieldMask result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - paths_.makeImmutable(); - result.paths_ = paths_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.FieldMask) { - return mergeFrom((com.google.protobuf.FieldMask)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.FieldMask other) { - if (other == com.google.protobuf.FieldMask.getDefaultInstance()) return this; - if (!other.paths_.isEmpty()) { - if (paths_.isEmpty()) { - paths_ = other.paths_; - bitField0_ |= 0x00000001; - } else { - ensurePathsIsMutable(); - paths_.addAll(other.paths_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensurePathsIsMutable(); - paths_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringArrayList paths_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensurePathsIsMutable() { - if (!paths_.isModifiable()) { - paths_ = new com.google.protobuf.LazyStringArrayList(paths_); - } - bitField0_ |= 0x00000001; - } - /** - * <pre> - * The set of field mask paths. - * </pre> - * - * <code>repeated string paths = 1;</code> - * @return A list containing the paths. - */ - public com.google.protobuf.ProtocolStringList - getPathsList() { - paths_.makeImmutable(); - return paths_; - } - /** - * <pre> - * The set of field mask paths. - * </pre> - * - * <code>repeated string paths = 1;</code> - * @return The count of paths. - */ - public int getPathsCount() { - return paths_.size(); - } - /** - * <pre> - * The set of field mask paths. - * </pre> - * - * <code>repeated string paths = 1;</code> - * @param index The index of the element to return. - * @return The paths at the given index. - */ - public java.lang.String getPaths(int index) { - return paths_.get(index); - } - /** - * <pre> - * The set of field mask paths. - * </pre> - * - * <code>repeated string paths = 1;</code> - * @param index The index of the value to return. - * @return The bytes of the paths at the given index. - */ - public com.google.protobuf.ByteString - getPathsBytes(int index) { - return paths_.getByteString(index); - } - /** - * <pre> - * The set of field mask paths. - * </pre> - * - * <code>repeated string paths = 1;</code> - * @param index The index to set the value at. - * @param value The paths to set. - * @return This builder for chaining. - */ - public Builder setPaths( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensurePathsIsMutable(); - paths_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * The set of field mask paths. - * </pre> - * - * <code>repeated string paths = 1;</code> - * @param value The paths to add. - * @return This builder for chaining. - */ - public Builder addPaths( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensurePathsIsMutable(); - paths_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * The set of field mask paths. - * </pre> - * - * <code>repeated string paths = 1;</code> - * @param values The paths to add. - * @return This builder for chaining. - */ - public Builder addAllPaths( - java.lang.Iterable<java.lang.String> values) { - ensurePathsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, paths_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * The set of field mask paths. - * </pre> - * - * <code>repeated string paths = 1;</code> - * @return This builder for chaining. - */ - public Builder clearPaths() { - paths_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - * <pre> - * The set of field mask paths. - * </pre> - * - * <code>repeated string paths = 1;</code> - * @param value The bytes of the paths to add. - * @return This builder for chaining. - */ - public Builder addPathsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensurePathsIsMutable(); - paths_.add(value); - bitField0_ |= 0x00000001; - 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.FieldMask) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.FieldMask) - private static final com.google.protobuf.FieldMask DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.FieldMask(); - } - - public static com.google.protobuf.FieldMask getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<FieldMask> - PARSER = new com.google.protobuf.AbstractParser<FieldMask>() { - @java.lang.Override - public FieldMask parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<FieldMask> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<FieldMask> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.FieldMask getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/FieldMaskOrBuilder.java b/src/main/java/com/google/protobuf/FieldMaskOrBuilder.java deleted file mode 100644 index 2aa7e8e..0000000 --- a/src/main/java/com/google/protobuf/FieldMaskOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/field_mask.proto - -package com.google.protobuf; - -public interface FieldMaskOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.FieldMask) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * The set of field mask paths. - * </pre> - * - * <code>repeated string paths = 1;</code> - * @return A list containing the paths. - */ - java.util.List<java.lang.String> - getPathsList(); - /** - * <pre> - * The set of field mask paths. - * </pre> - * - * <code>repeated string paths = 1;</code> - * @return The count of paths. - */ - int getPathsCount(); - /** - * <pre> - * The set of field mask paths. - * </pre> - * - * <code>repeated string paths = 1;</code> - * @param index The index of the element to return. - * @return The paths at the given index. - */ - java.lang.String getPaths(int index); - /** - * <pre> - * The set of field mask paths. - * </pre> - * - * <code>repeated string paths = 1;</code> - * @param index The index of the value to return. - * @return The bytes of the paths at the given index. - */ - com.google.protobuf.ByteString - getPathsBytes(int index); -} diff --git a/src/main/java/com/google/protobuf/FieldMaskProto.java b/src/main/java/com/google/protobuf/FieldMaskProto.java deleted file mode 100644 index b75e3cd..0000000 --- a/src/main/java/com/google/protobuf/FieldMaskProto.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/field_mask.proto - -package com.google.protobuf; - -public final class FieldMaskProto { - private FieldMaskProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_FieldMask_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_FieldMask_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/field_mask.proto\022\017goog" + - "le.protobuf\"\032\n\tFieldMask\022\r\n\005paths\030\001 \003(\tB" + - "\205\001\n\023com.google.protobufB\016FieldMaskProtoP" + - "\001Z2google.golang.org/protobuf/types/know" + - "n/fieldmaskpb\370\001\001\242\002\003GPB\252\002\036Google.Protobuf" + - ".WellKnownTypesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_protobuf_FieldMask_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_protobuf_FieldMask_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_FieldMask_descriptor, - new java.lang.String[] { "Paths", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/com/google/protobuf/FieldOrBuilder.java b/src/main/java/com/google/protobuf/FieldOrBuilder.java deleted file mode 100644 index faeb51b..0000000 --- a/src/main/java/com/google/protobuf/FieldOrBuilder.java +++ /dev/null @@ -1,204 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/type.proto - -package com.google.protobuf; - -public interface FieldOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.Field) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * The field type. - * </pre> - * - * <code>.google.protobuf.Field.Kind kind = 1;</code> - * @return The enum numeric value on the wire for kind. - */ - int getKindValue(); - /** - * <pre> - * The field type. - * </pre> - * - * <code>.google.protobuf.Field.Kind kind = 1;</code> - * @return The kind. - */ - com.google.protobuf.Field.Kind getKind(); - - /** - * <pre> - * The field cardinality. - * </pre> - * - * <code>.google.protobuf.Field.Cardinality cardinality = 2;</code> - * @return The enum numeric value on the wire for cardinality. - */ - int getCardinalityValue(); - /** - * <pre> - * The field cardinality. - * </pre> - * - * <code>.google.protobuf.Field.Cardinality cardinality = 2;</code> - * @return The cardinality. - */ - com.google.protobuf.Field.Cardinality getCardinality(); - - /** - * <pre> - * The field number. - * </pre> - * - * <code>int32 number = 3;</code> - * @return The number. - */ - int getNumber(); - - /** - * <pre> - * The field name. - * </pre> - * - * <code>string name = 4;</code> - * @return The name. - */ - java.lang.String getName(); - /** - * <pre> - * The field name. - * </pre> - * - * <code>string name = 4;</code> - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * <pre> - * The field type URL, without the scheme, for message or enumeration - * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. - * </pre> - * - * <code>string type_url = 6;</code> - * @return The typeUrl. - */ - java.lang.String getTypeUrl(); - /** - * <pre> - * The field type URL, without the scheme, for message or enumeration - * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. - * </pre> - * - * <code>string type_url = 6;</code> - * @return The bytes for typeUrl. - */ - com.google.protobuf.ByteString - getTypeUrlBytes(); - - /** - * <pre> - * The index of the field type in `Type.oneofs`, for message or enumeration - * types. The first type has index 1; zero means the type is not in the list. - * </pre> - * - * <code>int32 oneof_index = 7;</code> - * @return The oneofIndex. - */ - int getOneofIndex(); - - /** - * <pre> - * Whether to use alternative packed wire representation. - * </pre> - * - * <code>bool packed = 8;</code> - * @return The packed. - */ - boolean getPacked(); - - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - java.util.List<com.google.protobuf.Option> - getOptionsList(); - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - com.google.protobuf.Option getOptions(int index); - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - int getOptionsCount(); - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - java.util.List<? extends com.google.protobuf.OptionOrBuilder> - getOptionsOrBuilderList(); - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 9;</code> - */ - com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( - int index); - - /** - * <pre> - * The field JSON name. - * </pre> - * - * <code>string json_name = 10;</code> - * @return The jsonName. - */ - java.lang.String getJsonName(); - /** - * <pre> - * The field JSON name. - * </pre> - * - * <code>string json_name = 10;</code> - * @return The bytes for jsonName. - */ - com.google.protobuf.ByteString - getJsonNameBytes(); - - /** - * <pre> - * The string value of the default value of this field. Proto2 syntax only. - * </pre> - * - * <code>string default_value = 11;</code> - * @return The defaultValue. - */ - java.lang.String getDefaultValue(); - /** - * <pre> - * The string value of the default value of this field. Proto2 syntax only. - * </pre> - * - * <code>string default_value = 11;</code> - * @return The bytes for defaultValue. - */ - com.google.protobuf.ByteString - getDefaultValueBytes(); -} diff --git a/src/main/java/com/google/protobuf/FloatValue.java b/src/main/java/com/google/protobuf/FloatValue.java deleted file mode 100644 index d5ab96f..0000000 --- a/src/main/java/com/google/protobuf/FloatValue.java +++ /dev/null @@ -1,471 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package com.google.protobuf; - -/** - * <pre> - * Wrapper message for `float`. - * - * The JSON representation for `FloatValue` is JSON number. - * </pre> - * - * Protobuf type {@code google.protobuf.FloatValue} - */ -public final class FloatValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.FloatValue) - FloatValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use FloatValue.newBuilder() to construct. - private FloatValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private FloatValue() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FloatValue(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_FloatValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_FloatValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.FloatValue.class, com.google.protobuf.FloatValue.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private float value_ = 0F; - /** - * <pre> - * The float value. - * </pre> - * - * <code>float value = 1;</code> - * @return The value. - */ - @java.lang.Override - public float getValue() { - return value_; - } - - 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 (java.lang.Float.floatToRawIntBits(value_) != 0) { - output.writeFloat(1, value_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Float.floatToRawIntBits(value_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, value_); - } - size += getUnknownFields().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.FloatValue)) { - return super.equals(obj); - } - com.google.protobuf.FloatValue other = (com.google.protobuf.FloatValue) obj; - - if (java.lang.Float.floatToIntBits(getValue()) - != java.lang.Float.floatToIntBits( - other.getValue())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getValue()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.FloatValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.FloatValue 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.FloatValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.FloatValue 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.FloatValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.FloatValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.FloatValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.FloatValue 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.FloatValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.FloatValue 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.FloatValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.FloatValue 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.FloatValue 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; - } - /** - * <pre> - * Wrapper message for `float`. - * - * The JSON representation for `FloatValue` is JSON number. - * </pre> - * - * Protobuf type {@code google.protobuf.FloatValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.FloatValue) - com.google.protobuf.FloatValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_FloatValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_FloatValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.FloatValue.class, com.google.protobuf.FloatValue.Builder.class); - } - - // Construct using com.google.protobuf.FloatValue.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - value_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_FloatValue_descriptor; - } - - @java.lang.Override - public com.google.protobuf.FloatValue getDefaultInstanceForType() { - return com.google.protobuf.FloatValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.FloatValue build() { - com.google.protobuf.FloatValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.FloatValue buildPartial() { - com.google.protobuf.FloatValue result = new com.google.protobuf.FloatValue(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.FloatValue result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.value_ = value_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.FloatValue) { - return mergeFrom((com.google.protobuf.FloatValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.FloatValue other) { - if (other == com.google.protobuf.FloatValue.getDefaultInstance()) return this; - if (other.getValue() != 0F) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 13: { - value_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private float value_ ; - /** - * <pre> - * The float value. - * </pre> - * - * <code>float value = 1;</code> - * @return The value. - */ - @java.lang.Override - public float getValue() { - return value_; - } - /** - * <pre> - * The float value. - * </pre> - * - * <code>float value = 1;</code> - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(float value) { - - value_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * The float value. - * </pre> - * - * <code>float value = 1;</code> - * @return This builder for chaining. - */ - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000001); - value_ = 0F; - 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.FloatValue) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.FloatValue) - private static final com.google.protobuf.FloatValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.FloatValue(); - } - - public static com.google.protobuf.FloatValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static com.google.protobuf.FloatValue of(float value) { - return newBuilder().setValue(value).build(); - } - - private static final com.google.protobuf.Parser<FloatValue> - PARSER = new com.google.protobuf.AbstractParser<FloatValue>() { - @java.lang.Override - public FloatValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<FloatValue> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<FloatValue> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.FloatValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/FloatValueOrBuilder.java b/src/main/java/com/google/protobuf/FloatValueOrBuilder.java deleted file mode 100644 index e1965af..0000000 --- a/src/main/java/com/google/protobuf/FloatValueOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package com.google.protobuf; - -public interface FloatValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.FloatValue) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * The float value. - * </pre> - * - * <code>float value = 1;</code> - * @return The value. - */ - float getValue(); -} diff --git a/src/main/java/com/google/protobuf/Int32Value.java b/src/main/java/com/google/protobuf/Int32Value.java deleted file mode 100644 index 33d54ef..0000000 --- a/src/main/java/com/google/protobuf/Int32Value.java +++ /dev/null @@ -1,469 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package com.google.protobuf; - -/** - * <pre> - * Wrapper message for `int32`. - * - * The JSON representation for `Int32Value` is JSON number. - * </pre> - * - * Protobuf type {@code google.protobuf.Int32Value} - */ -public final class Int32Value extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.Int32Value) - Int32ValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use Int32Value.newBuilder() to construct. - private Int32Value(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Int32Value() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Int32Value(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_Int32Value_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_Int32Value_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Int32Value.class, com.google.protobuf.Int32Value.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private int value_ = 0; - /** - * <pre> - * The int32 value. - * </pre> - * - * <code>int32 value = 1;</code> - * @return The value. - */ - @java.lang.Override - public int getValue() { - return value_; - } - - 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 (value_ != 0) { - output.writeInt32(1, value_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (value_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, value_); - } - size += getUnknownFields().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.Int32Value)) { - return super.equals(obj); - } - com.google.protobuf.Int32Value other = (com.google.protobuf.Int32Value) obj; - - if (getValue() - != other.getValue()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.Int32Value parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Int32Value 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.Int32Value parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Int32Value 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.Int32Value parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Int32Value parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.Int32Value parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Int32Value 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.Int32Value parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.Int32Value 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.Int32Value parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Int32Value 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.Int32Value 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; - } - /** - * <pre> - * Wrapper message for `int32`. - * - * The JSON representation for `Int32Value` is JSON number. - * </pre> - * - * Protobuf type {@code google.protobuf.Int32Value} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.Int32Value) - com.google.protobuf.Int32ValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_Int32Value_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_Int32Value_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Int32Value.class, com.google.protobuf.Int32Value.Builder.class); - } - - // Construct using com.google.protobuf.Int32Value.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - value_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_Int32Value_descriptor; - } - - @java.lang.Override - public com.google.protobuf.Int32Value getDefaultInstanceForType() { - return com.google.protobuf.Int32Value.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.Int32Value build() { - com.google.protobuf.Int32Value result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.Int32Value buildPartial() { - com.google.protobuf.Int32Value result = new com.google.protobuf.Int32Value(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.Int32Value result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.value_ = value_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.Int32Value) { - return mergeFrom((com.google.protobuf.Int32Value)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.Int32Value other) { - if (other == com.google.protobuf.Int32Value.getDefaultInstance()) return this; - if (other.getValue() != 0) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - value_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int value_ ; - /** - * <pre> - * The int32 value. - * </pre> - * - * <code>int32 value = 1;</code> - * @return The value. - */ - @java.lang.Override - public int getValue() { - return value_; - } - /** - * <pre> - * The int32 value. - * </pre> - * - * <code>int32 value = 1;</code> - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(int value) { - - value_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * The int32 value. - * </pre> - * - * <code>int32 value = 1;</code> - * @return This builder for chaining. - */ - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000001); - value_ = 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.Int32Value) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.Int32Value) - private static final com.google.protobuf.Int32Value DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.Int32Value(); - } - - public static com.google.protobuf.Int32Value getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static com.google.protobuf.Int32Value of(int value) { - return newBuilder().setValue(value).build(); - } - - private static final com.google.protobuf.Parser<Int32Value> - PARSER = new com.google.protobuf.AbstractParser<Int32Value>() { - @java.lang.Override - public Int32Value parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<Int32Value> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Int32Value> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Int32Value getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/Int32ValueOrBuilder.java b/src/main/java/com/google/protobuf/Int32ValueOrBuilder.java deleted file mode 100644 index 0963508..0000000 --- a/src/main/java/com/google/protobuf/Int32ValueOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package com.google.protobuf; - -public interface Int32ValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.Int32Value) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * The int32 value. - * </pre> - * - * <code>int32 value = 1;</code> - * @return The value. - */ - int getValue(); -} diff --git a/src/main/java/com/google/protobuf/Int64Value.java b/src/main/java/com/google/protobuf/Int64Value.java deleted file mode 100644 index 8f9a152..0000000 --- a/src/main/java/com/google/protobuf/Int64Value.java +++ /dev/null @@ -1,470 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package com.google.protobuf; - -/** - * <pre> - * Wrapper message for `int64`. - * - * The JSON representation for `Int64Value` is JSON string. - * </pre> - * - * Protobuf type {@code google.protobuf.Int64Value} - */ -public final class Int64Value extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.Int64Value) - Int64ValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use Int64Value.newBuilder() to construct. - private Int64Value(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Int64Value() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Int64Value(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_Int64Value_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_Int64Value_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Int64Value.class, com.google.protobuf.Int64Value.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private long value_ = 0L; - /** - * <pre> - * The int64 value. - * </pre> - * - * <code>int64 value = 1;</code> - * @return The value. - */ - @java.lang.Override - public long getValue() { - return value_; - } - - 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 (value_ != 0L) { - output.writeInt64(1, value_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (value_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, value_); - } - size += getUnknownFields().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.Int64Value)) { - return super.equals(obj); - } - com.google.protobuf.Int64Value other = (com.google.protobuf.Int64Value) obj; - - if (getValue() - != other.getValue()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getValue()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.Int64Value parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Int64Value 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.Int64Value parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Int64Value 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.Int64Value parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Int64Value parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.Int64Value parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Int64Value 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.Int64Value parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.Int64Value 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.Int64Value parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Int64Value 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.Int64Value 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; - } - /** - * <pre> - * Wrapper message for `int64`. - * - * The JSON representation for `Int64Value` is JSON string. - * </pre> - * - * Protobuf type {@code google.protobuf.Int64Value} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.Int64Value) - com.google.protobuf.Int64ValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_Int64Value_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_Int64Value_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Int64Value.class, com.google.protobuf.Int64Value.Builder.class); - } - - // Construct using com.google.protobuf.Int64Value.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - value_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_Int64Value_descriptor; - } - - @java.lang.Override - public com.google.protobuf.Int64Value getDefaultInstanceForType() { - return com.google.protobuf.Int64Value.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.Int64Value build() { - com.google.protobuf.Int64Value result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.Int64Value buildPartial() { - com.google.protobuf.Int64Value result = new com.google.protobuf.Int64Value(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.Int64Value result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.value_ = value_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.Int64Value) { - return mergeFrom((com.google.protobuf.Int64Value)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.Int64Value other) { - if (other == com.google.protobuf.Int64Value.getDefaultInstance()) return this; - if (other.getValue() != 0L) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - value_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long value_ ; - /** - * <pre> - * The int64 value. - * </pre> - * - * <code>int64 value = 1;</code> - * @return The value. - */ - @java.lang.Override - public long getValue() { - return value_; - } - /** - * <pre> - * The int64 value. - * </pre> - * - * <code>int64 value = 1;</code> - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(long value) { - - value_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * The int64 value. - * </pre> - * - * <code>int64 value = 1;</code> - * @return This builder for chaining. - */ - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000001); - value_ = 0L; - 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.Int64Value) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.Int64Value) - private static final com.google.protobuf.Int64Value DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.Int64Value(); - } - - public static com.google.protobuf.Int64Value getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static com.google.protobuf.Int64Value of(long value) { - return newBuilder().setValue(value).build(); - } - - private static final com.google.protobuf.Parser<Int64Value> - PARSER = new com.google.protobuf.AbstractParser<Int64Value>() { - @java.lang.Override - public Int64Value parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<Int64Value> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Int64Value> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Int64Value getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/Int64ValueOrBuilder.java b/src/main/java/com/google/protobuf/Int64ValueOrBuilder.java deleted file mode 100644 index 04c6af0..0000000 --- a/src/main/java/com/google/protobuf/Int64ValueOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package com.google.protobuf; - -public interface Int64ValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.Int64Value) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * The int64 value. - * </pre> - * - * <code>int64 value = 1;</code> - * @return The value. - */ - long getValue(); -} diff --git a/src/main/java/com/google/protobuf/ListValue.java b/src/main/java/com/google/protobuf/ListValue.java deleted file mode 100644 index 2ab3f34..0000000 --- a/src/main/java/com/google/protobuf/ListValue.java +++ /dev/null @@ -1,829 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/struct.proto - -package com.google.protobuf; - -/** - * <pre> - * `ListValue` is a wrapper around a repeated field of values. - * - * The JSON representation for `ListValue` is JSON array. - * </pre> - * - * Protobuf type {@code google.protobuf.ListValue} - */ -public final class ListValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.ListValue) - ListValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListValue.newBuilder() to construct. - private ListValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ListValue() { - values_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListValue(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.StructProto.internal_static_google_protobuf_ListValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.StructProto.internal_static_google_protobuf_ListValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.ListValue.class, com.google.protobuf.ListValue.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.Value> values_; - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.Value> getValuesList() { - return values_; - } - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.ValueOrBuilder> - getValuesOrBuilderList() { - return values_; - } - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - @java.lang.Override - public int getValuesCount() { - return values_.size(); - } - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - @java.lang.Override - public com.google.protobuf.Value getValues(int index) { - return values_.get(index); - } - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - @java.lang.Override - public com.google.protobuf.ValueOrBuilder getValuesOrBuilder( - int index) { - return values_.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 < values_.size(); i++) { - output.writeMessage(1, values_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < values_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, values_.get(i)); - } - size += getUnknownFields().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.ListValue)) { - return super.equals(obj); - } - com.google.protobuf.ListValue other = (com.google.protobuf.ListValue) obj; - - if (!getValuesList() - .equals(other.getValuesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.ListValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.ListValue 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.ListValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.ListValue 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.ListValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.ListValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.ListValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.ListValue 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.ListValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.ListValue 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.ListValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.ListValue 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.ListValue 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; - } - /** - * <pre> - * `ListValue` is a wrapper around a repeated field of values. - * - * The JSON representation for `ListValue` is JSON array. - * </pre> - * - * Protobuf type {@code google.protobuf.ListValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.ListValue) - com.google.protobuf.ListValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.StructProto.internal_static_google_protobuf_ListValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.StructProto.internal_static_google_protobuf_ListValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.ListValue.class, com.google.protobuf.ListValue.Builder.class); - } - - // Construct using com.google.protobuf.ListValue.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (valuesBuilder_ == null) { - values_ = java.util.Collections.emptyList(); - } else { - values_ = null; - valuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.StructProto.internal_static_google_protobuf_ListValue_descriptor; - } - - @java.lang.Override - public com.google.protobuf.ListValue getDefaultInstanceForType() { - return com.google.protobuf.ListValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.ListValue build() { - com.google.protobuf.ListValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.ListValue buildPartial() { - com.google.protobuf.ListValue result = new com.google.protobuf.ListValue(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.ListValue result) { - if (valuesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - values_ = java.util.Collections.unmodifiableList(values_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.values_ = values_; - } else { - result.values_ = valuesBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.ListValue result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.ListValue) { - return mergeFrom((com.google.protobuf.ListValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.ListValue other) { - if (other == com.google.protobuf.ListValue.getDefaultInstance()) return this; - if (valuesBuilder_ == null) { - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - } else { - if (!other.values_.isEmpty()) { - if (valuesBuilder_.isEmpty()) { - valuesBuilder_.dispose(); - valuesBuilder_ = null; - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - valuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValuesFieldBuilder() : null; - } else { - valuesBuilder_.addAllMessages(other.values_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.Value m = - input.readMessage( - com.google.protobuf.Value.parser(), - extensionRegistry); - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(m); - } else { - valuesBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List<com.google.protobuf.Value> values_ = - java.util.Collections.emptyList(); - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - values_ = new java.util.ArrayList<com.google.protobuf.Value>(values_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> valuesBuilder_; - - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - public java.util.List<com.google.protobuf.Value> getValuesList() { - if (valuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(values_); - } else { - return valuesBuilder_.getMessageList(); - } - } - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - public int getValuesCount() { - if (valuesBuilder_ == null) { - return values_.size(); - } else { - return valuesBuilder_.getCount(); - } - } - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - public com.google.protobuf.Value getValues(int index) { - if (valuesBuilder_ == null) { - return values_.get(index); - } else { - return valuesBuilder_.getMessage(index); - } - } - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - public Builder setValues( - int index, com.google.protobuf.Value value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - } else { - valuesBuilder_.setMessage(index, value); - } - return this; - } - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - public Builder setValues( - int index, com.google.protobuf.Value.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.set(index, builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - public Builder addValues(com.google.protobuf.Value value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - } else { - valuesBuilder_.addMessage(value); - } - return this; - } - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - public Builder addValues( - int index, com.google.protobuf.Value value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(index, value); - onChanged(); - } else { - valuesBuilder_.addMessage(index, value); - } - return this; - } - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - public Builder addValues( - com.google.protobuf.Value.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - public Builder addValues( - int index, com.google.protobuf.Value.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(index, builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - public Builder addAllValues( - java.lang.Iterable<? extends com.google.protobuf.Value> values) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - onChanged(); - } else { - valuesBuilder_.addAllMessages(values); - } - return this; - } - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - public Builder clearValues() { - if (valuesBuilder_ == null) { - values_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - valuesBuilder_.clear(); - } - return this; - } - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - public Builder removeValues(int index) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.remove(index); - onChanged(); - } else { - valuesBuilder_.remove(index); - } - return this; - } - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - public com.google.protobuf.Value.Builder getValuesBuilder( - int index) { - return getValuesFieldBuilder().getBuilder(index); - } - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - public com.google.protobuf.ValueOrBuilder getValuesOrBuilder( - int index) { - if (valuesBuilder_ == null) { - return values_.get(index); } else { - return valuesBuilder_.getMessageOrBuilder(index); - } - } - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - public java.util.List<? extends com.google.protobuf.ValueOrBuilder> - getValuesOrBuilderList() { - if (valuesBuilder_ != null) { - return valuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(values_); - } - } - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - public com.google.protobuf.Value.Builder addValuesBuilder() { - return getValuesFieldBuilder().addBuilder( - com.google.protobuf.Value.getDefaultInstance()); - } - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - public com.google.protobuf.Value.Builder addValuesBuilder( - int index) { - return getValuesFieldBuilder().addBuilder( - index, com.google.protobuf.Value.getDefaultInstance()); - } - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - public java.util.List<com.google.protobuf.Value.Builder> - getValuesBuilderList() { - return getValuesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> - getValuesFieldBuilder() { - if (valuesBuilder_ == null) { - valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( - values_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - values_ = null; - } - return valuesBuilder_; - } - @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.ListValue) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.ListValue) - private static final com.google.protobuf.ListValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.ListValue(); - } - - public static com.google.protobuf.ListValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ListValue> - PARSER = new com.google.protobuf.AbstractParser<ListValue>() { - @java.lang.Override - public ListValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<ListValue> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ListValue> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.ListValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/ListValueOrBuilder.java b/src/main/java/com/google/protobuf/ListValueOrBuilder.java deleted file mode 100644 index 1aa5a8c..0000000 --- a/src/main/java/com/google/protobuf/ListValueOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/struct.proto - -package com.google.protobuf; - -public interface ListValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.ListValue) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - java.util.List<com.google.protobuf.Value> - getValuesList(); - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - com.google.protobuf.Value getValues(int index); - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - int getValuesCount(); - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - java.util.List<? extends com.google.protobuf.ValueOrBuilder> - getValuesOrBuilderList(); - /** - * <pre> - * Repeated field of dynamically typed values. - * </pre> - * - * <code>repeated .google.protobuf.Value values = 1;</code> - */ - com.google.protobuf.ValueOrBuilder getValuesOrBuilder( - int index); -} diff --git a/src/main/java/com/google/protobuf/Method.java b/src/main/java/com/google/protobuf/Method.java deleted file mode 100644 index 7eaedcd..0000000 --- a/src/main/java/com/google/protobuf/Method.java +++ /dev/null @@ -1,1605 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/api.proto - -package com.google.protobuf; - -/** - * <pre> - * Method represents a method of an API interface. - * </pre> - * - * Protobuf type {@code google.protobuf.Method} - */ -public final class Method extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.Method) - MethodOrBuilder { -private static final long serialVersionUID = 0L; - // Use Method.newBuilder() to construct. - private Method(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Method() { - name_ = ""; - requestTypeUrl_ = ""; - responseTypeUrl_ = ""; - options_ = java.util.Collections.emptyList(); - syntax_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Method(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.ApiProto.internal_static_google_protobuf_Method_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.ApiProto.internal_static_google_protobuf_Method_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Method.class, com.google.protobuf.Method.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * <pre> - * The simple name of this method. - * </pre> - * - * <code>string name = 1;</code> - * @return The name. - */ - @java.lang.Override - 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(); - name_ = s; - return s; - } - } - /** - * <pre> - * The simple name of this method. - * </pre> - * - * <code>string name = 1;</code> - * @return The bytes for name. - */ - @java.lang.Override - 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 REQUEST_TYPE_URL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object requestTypeUrl_ = ""; - /** - * <pre> - * A URL of the input message type. - * </pre> - * - * <code>string request_type_url = 2;</code> - * @return The requestTypeUrl. - */ - @java.lang.Override - public java.lang.String getRequestTypeUrl() { - java.lang.Object ref = requestTypeUrl_; - 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(); - requestTypeUrl_ = s; - return s; - } - } - /** - * <pre> - * A URL of the input message type. - * </pre> - * - * <code>string request_type_url = 2;</code> - * @return The bytes for requestTypeUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRequestTypeUrlBytes() { - java.lang.Object ref = requestTypeUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestTypeUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REQUEST_STREAMING_FIELD_NUMBER = 3; - private boolean requestStreaming_ = false; - /** - * <pre> - * If true, the request is streamed. - * </pre> - * - * <code>bool request_streaming = 3;</code> - * @return The requestStreaming. - */ - @java.lang.Override - public boolean getRequestStreaming() { - return requestStreaming_; - } - - public static final int RESPONSE_TYPE_URL_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object responseTypeUrl_ = ""; - /** - * <pre> - * The URL of the output message type. - * </pre> - * - * <code>string response_type_url = 4;</code> - * @return The responseTypeUrl. - */ - @java.lang.Override - public java.lang.String getResponseTypeUrl() { - java.lang.Object ref = responseTypeUrl_; - 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(); - responseTypeUrl_ = s; - return s; - } - } - /** - * <pre> - * The URL of the output message type. - * </pre> - * - * <code>string response_type_url = 4;</code> - * @return The bytes for responseTypeUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getResponseTypeUrlBytes() { - java.lang.Object ref = responseTypeUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - responseTypeUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESPONSE_STREAMING_FIELD_NUMBER = 5; - private boolean responseStreaming_ = false; - /** - * <pre> - * If true, the response is streamed. - * </pre> - * - * <code>bool response_streaming = 5;</code> - * @return The responseStreaming. - */ - @java.lang.Override - public boolean getResponseStreaming() { - return responseStreaming_; - } - - public static final int OPTIONS_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.Option> options_; - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.Option> getOptionsList() { - return options_; - } - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.OptionOrBuilder> - getOptionsOrBuilderList() { - return options_; - } - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - @java.lang.Override - public int getOptionsCount() { - return options_.size(); - } - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - @java.lang.Override - public com.google.protobuf.Option getOptions(int index) { - return options_.get(index); - } - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - @java.lang.Override - public com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( - int index) { - return options_.get(index); - } - - public static final int SYNTAX_FIELD_NUMBER = 7; - private int syntax_ = 0; - /** - * <pre> - * The source syntax of this method. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 7;</code> - * @return The enum numeric value on the wire for syntax. - */ - @java.lang.Override public int getSyntaxValue() { - return syntax_; - } - /** - * <pre> - * The source syntax of this method. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 7;</code> - * @return The syntax. - */ - @java.lang.Override public com.google.protobuf.Syntax getSyntax() { - com.google.protobuf.Syntax result = com.google.protobuf.Syntax.forNumber(syntax_); - return result == null ? com.google.protobuf.Syntax.UNRECOGNIZED : result; - } - - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestTypeUrl_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestTypeUrl_); - } - if (requestStreaming_ != false) { - output.writeBool(3, requestStreaming_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseTypeUrl_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, responseTypeUrl_); - } - if (responseStreaming_ != false) { - output.writeBool(5, responseStreaming_); - } - for (int i = 0; i < options_.size(); i++) { - output.writeMessage(6, options_.get(i)); - } - if (syntax_ != com.google.protobuf.Syntax.SYNTAX_PROTO2.getNumber()) { - output.writeEnum(7, syntax_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestTypeUrl_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestTypeUrl_); - } - if (requestStreaming_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, requestStreaming_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseTypeUrl_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, responseTypeUrl_); - } - if (responseStreaming_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, responseStreaming_); - } - for (int i = 0; i < options_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, options_.get(i)); - } - if (syntax_ != com.google.protobuf.Syntax.SYNTAX_PROTO2.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, syntax_); - } - size += getUnknownFields().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.Method)) { - return super.equals(obj); - } - com.google.protobuf.Method other = (com.google.protobuf.Method) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getRequestTypeUrl() - .equals(other.getRequestTypeUrl())) return false; - if (getRequestStreaming() - != other.getRequestStreaming()) return false; - if (!getResponseTypeUrl() - .equals(other.getResponseTypeUrl())) return false; - if (getResponseStreaming() - != other.getResponseStreaming()) return false; - if (!getOptionsList() - .equals(other.getOptionsList())) return false; - if (syntax_ != other.syntax_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + REQUEST_TYPE_URL_FIELD_NUMBER; - hash = (53 * hash) + getRequestTypeUrl().hashCode(); - hash = (37 * hash) + REQUEST_STREAMING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequestStreaming()); - hash = (37 * hash) + RESPONSE_TYPE_URL_FIELD_NUMBER; - hash = (53 * hash) + getResponseTypeUrl().hashCode(); - hash = (37 * hash) + RESPONSE_STREAMING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getResponseStreaming()); - if (getOptionsCount() > 0) { - hash = (37 * hash) + OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getOptionsList().hashCode(); - } - hash = (37 * hash) + SYNTAX_FIELD_NUMBER; - hash = (53 * hash) + syntax_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.Method parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Method 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.Method parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Method 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.Method parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Method parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.Method parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Method 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.Method parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.Method 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.Method parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Method 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.Method 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; - } - /** - * <pre> - * Method represents a method of an API interface. - * </pre> - * - * Protobuf type {@code google.protobuf.Method} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.Method) - com.google.protobuf.MethodOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.ApiProto.internal_static_google_protobuf_Method_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.ApiProto.internal_static_google_protobuf_Method_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Method.class, com.google.protobuf.Method.Builder.class); - } - - // Construct using com.google.protobuf.Method.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - requestTypeUrl_ = ""; - requestStreaming_ = false; - responseTypeUrl_ = ""; - responseStreaming_ = false; - if (optionsBuilder_ == null) { - options_ = java.util.Collections.emptyList(); - } else { - options_ = null; - optionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - syntax_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.ApiProto.internal_static_google_protobuf_Method_descriptor; - } - - @java.lang.Override - public com.google.protobuf.Method getDefaultInstanceForType() { - return com.google.protobuf.Method.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.Method build() { - com.google.protobuf.Method result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.Method buildPartial() { - com.google.protobuf.Method result = new com.google.protobuf.Method(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.Method result) { - if (optionsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - options_ = java.util.Collections.unmodifiableList(options_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.options_ = options_; - } else { - result.options_ = optionsBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.Method result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.requestTypeUrl_ = requestTypeUrl_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.requestStreaming_ = requestStreaming_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.responseTypeUrl_ = responseTypeUrl_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.responseStreaming_ = responseStreaming_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.syntax_ = syntax_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.Method) { - return mergeFrom((com.google.protobuf.Method)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.Method other) { - if (other == com.google.protobuf.Method.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getRequestTypeUrl().isEmpty()) { - requestTypeUrl_ = other.requestTypeUrl_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getRequestStreaming() != false) { - setRequestStreaming(other.getRequestStreaming()); - } - if (!other.getResponseTypeUrl().isEmpty()) { - responseTypeUrl_ = other.responseTypeUrl_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.getResponseStreaming() != false) { - setResponseStreaming(other.getResponseStreaming()); - } - if (optionsBuilder_ == null) { - if (!other.options_.isEmpty()) { - if (options_.isEmpty()) { - options_ = other.options_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureOptionsIsMutable(); - options_.addAll(other.options_); - } - onChanged(); - } - } else { - if (!other.options_.isEmpty()) { - if (optionsBuilder_.isEmpty()) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - options_ = other.options_; - bitField0_ = (bitField0_ & ~0x00000020); - optionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOptionsFieldBuilder() : null; - } else { - optionsBuilder_.addAllMessages(other.options_); - } - } - } - if (other.syntax_ != 0) { - setSyntaxValue(other.getSyntaxValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - requestTypeUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - requestStreaming_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - responseTypeUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - responseStreaming_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: { - com.google.protobuf.Option m = - input.readMessage( - com.google.protobuf.Option.parser(), - extensionRegistry); - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.add(m); - } else { - optionsBuilder_.addMessage(m); - } - break; - } // case 50 - case 56: { - syntax_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 56 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * <pre> - * The simple name of this method. - * </pre> - * - * <code>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(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <pre> - * The simple name of this method. - * </pre> - * - * <code>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; - } - } - /** - * <pre> - * The simple name of this method. - * </pre> - * - * <code>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(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * The simple name of this method. - * </pre> - * - * <code>string name = 1;</code> - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * <pre> - * The simple name of this method. - * </pre> - * - * <code>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(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object requestTypeUrl_ = ""; - /** - * <pre> - * A URL of the input message type. - * </pre> - * - * <code>string request_type_url = 2;</code> - * @return The requestTypeUrl. - */ - public java.lang.String getRequestTypeUrl() { - java.lang.Object ref = requestTypeUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestTypeUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <pre> - * A URL of the input message type. - * </pre> - * - * <code>string request_type_url = 2;</code> - * @return The bytes for requestTypeUrl. - */ - public com.google.protobuf.ByteString - getRequestTypeUrlBytes() { - java.lang.Object ref = requestTypeUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestTypeUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <pre> - * A URL of the input message type. - * </pre> - * - * <code>string request_type_url = 2;</code> - * @param value The requestTypeUrl to set. - * @return This builder for chaining. - */ - public Builder setRequestTypeUrl( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - requestTypeUrl_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <pre> - * A URL of the input message type. - * </pre> - * - * <code>string request_type_url = 2;</code> - * @return This builder for chaining. - */ - public Builder clearRequestTypeUrl() { - requestTypeUrl_ = getDefaultInstance().getRequestTypeUrl(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * <pre> - * A URL of the input message type. - * </pre> - * - * <code>string request_type_url = 2;</code> - * @param value The bytes for requestTypeUrl to set. - * @return This builder for chaining. - */ - public Builder setRequestTypeUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - requestTypeUrl_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean requestStreaming_ ; - /** - * <pre> - * If true, the request is streamed. - * </pre> - * - * <code>bool request_streaming = 3;</code> - * @return The requestStreaming. - */ - @java.lang.Override - public boolean getRequestStreaming() { - return requestStreaming_; - } - /** - * <pre> - * If true, the request is streamed. - * </pre> - * - * <code>bool request_streaming = 3;</code> - * @param value The requestStreaming to set. - * @return This builder for chaining. - */ - public Builder setRequestStreaming(boolean value) { - - requestStreaming_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <pre> - * If true, the request is streamed. - * </pre> - * - * <code>bool request_streaming = 3;</code> - * @return This builder for chaining. - */ - public Builder clearRequestStreaming() { - bitField0_ = (bitField0_ & ~0x00000004); - requestStreaming_ = false; - onChanged(); - return this; - } - - private java.lang.Object responseTypeUrl_ = ""; - /** - * <pre> - * The URL of the output message type. - * </pre> - * - * <code>string response_type_url = 4;</code> - * @return The responseTypeUrl. - */ - public java.lang.String getResponseTypeUrl() { - java.lang.Object ref = responseTypeUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - responseTypeUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <pre> - * The URL of the output message type. - * </pre> - * - * <code>string response_type_url = 4;</code> - * @return The bytes for responseTypeUrl. - */ - public com.google.protobuf.ByteString - getResponseTypeUrlBytes() { - java.lang.Object ref = responseTypeUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - responseTypeUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <pre> - * The URL of the output message type. - * </pre> - * - * <code>string response_type_url = 4;</code> - * @param value The responseTypeUrl to set. - * @return This builder for chaining. - */ - public Builder setResponseTypeUrl( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - responseTypeUrl_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * <pre> - * The URL of the output message type. - * </pre> - * - * <code>string response_type_url = 4;</code> - * @return This builder for chaining. - */ - public Builder clearResponseTypeUrl() { - responseTypeUrl_ = getDefaultInstance().getResponseTypeUrl(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * <pre> - * The URL of the output message type. - * </pre> - * - * <code>string response_type_url = 4;</code> - * @param value The bytes for responseTypeUrl to set. - * @return This builder for chaining. - */ - public Builder setResponseTypeUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - responseTypeUrl_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private boolean responseStreaming_ ; - /** - * <pre> - * If true, the response is streamed. - * </pre> - * - * <code>bool response_streaming = 5;</code> - * @return The responseStreaming. - */ - @java.lang.Override - public boolean getResponseStreaming() { - return responseStreaming_; - } - /** - * <pre> - * If true, the response is streamed. - * </pre> - * - * <code>bool response_streaming = 5;</code> - * @param value The responseStreaming to set. - * @return This builder for chaining. - */ - public Builder setResponseStreaming(boolean value) { - - responseStreaming_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * <pre> - * If true, the response is streamed. - * </pre> - * - * <code>bool response_streaming = 5;</code> - * @return This builder for chaining. - */ - public Builder clearResponseStreaming() { - bitField0_ = (bitField0_ & ~0x00000010); - responseStreaming_ = false; - onChanged(); - return this; - } - - private java.util.List<com.google.protobuf.Option> options_ = - java.util.Collections.emptyList(); - private void ensureOptionsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - options_ = new java.util.ArrayList<com.google.protobuf.Option>(options_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Option, com.google.protobuf.Option.Builder, com.google.protobuf.OptionOrBuilder> optionsBuilder_; - - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - public java.util.List<com.google.protobuf.Option> getOptionsList() { - if (optionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(options_); - } else { - return optionsBuilder_.getMessageList(); - } - } - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - public int getOptionsCount() { - if (optionsBuilder_ == null) { - return options_.size(); - } else { - return optionsBuilder_.getCount(); - } - } - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - public com.google.protobuf.Option getOptions(int index) { - if (optionsBuilder_ == null) { - return options_.get(index); - } else { - return optionsBuilder_.getMessage(index); - } - } - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - public Builder setOptions( - int index, com.google.protobuf.Option value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionsIsMutable(); - options_.set(index, value); - onChanged(); - } else { - optionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - public Builder setOptions( - int index, com.google.protobuf.Option.Builder builderForValue) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.set(index, builderForValue.build()); - onChanged(); - } else { - optionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - public Builder addOptions(com.google.protobuf.Option value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionsIsMutable(); - options_.add(value); - onChanged(); - } else { - optionsBuilder_.addMessage(value); - } - return this; - } - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - public Builder addOptions( - int index, com.google.protobuf.Option value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionsIsMutable(); - options_.add(index, value); - onChanged(); - } else { - optionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - public Builder addOptions( - com.google.protobuf.Option.Builder builderForValue) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.add(builderForValue.build()); - onChanged(); - } else { - optionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - public Builder addOptions( - int index, com.google.protobuf.Option.Builder builderForValue) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.add(index, builderForValue.build()); - onChanged(); - } else { - optionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - public Builder addAllOptions( - java.lang.Iterable<? extends com.google.protobuf.Option> values) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, options_); - onChanged(); - } else { - optionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - public Builder clearOptions() { - if (optionsBuilder_ == null) { - options_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - optionsBuilder_.clear(); - } - return this; - } - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - public Builder removeOptions(int index) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.remove(index); - onChanged(); - } else { - optionsBuilder_.remove(index); - } - return this; - } - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - public com.google.protobuf.Option.Builder getOptionsBuilder( - int index) { - return getOptionsFieldBuilder().getBuilder(index); - } - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - public com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( - int index) { - if (optionsBuilder_ == null) { - return options_.get(index); } else { - return optionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - public java.util.List<? extends com.google.protobuf.OptionOrBuilder> - getOptionsOrBuilderList() { - if (optionsBuilder_ != null) { - return optionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(options_); - } - } - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - public com.google.protobuf.Option.Builder addOptionsBuilder() { - return getOptionsFieldBuilder().addBuilder( - com.google.protobuf.Option.getDefaultInstance()); - } - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - public com.google.protobuf.Option.Builder addOptionsBuilder( - int index) { - return getOptionsFieldBuilder().addBuilder( - index, com.google.protobuf.Option.getDefaultInstance()); - } - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - public java.util.List<com.google.protobuf.Option.Builder> - getOptionsBuilderList() { - return getOptionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Option, com.google.protobuf.Option.Builder, com.google.protobuf.OptionOrBuilder> - getOptionsFieldBuilder() { - if (optionsBuilder_ == null) { - optionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Option, com.google.protobuf.Option.Builder, com.google.protobuf.OptionOrBuilder>( - options_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - options_ = null; - } - return optionsBuilder_; - } - - private int syntax_ = 0; - /** - * <pre> - * The source syntax of this method. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 7;</code> - * @return The enum numeric value on the wire for syntax. - */ - @java.lang.Override public int getSyntaxValue() { - return syntax_; - } - /** - * <pre> - * The source syntax of this method. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 7;</code> - * @param value The enum numeric value on the wire for syntax to set. - * @return This builder for chaining. - */ - public Builder setSyntaxValue(int value) { - syntax_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * <pre> - * The source syntax of this method. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 7;</code> - * @return The syntax. - */ - @java.lang.Override - public com.google.protobuf.Syntax getSyntax() { - com.google.protobuf.Syntax result = com.google.protobuf.Syntax.forNumber(syntax_); - return result == null ? com.google.protobuf.Syntax.UNRECOGNIZED : result; - } - /** - * <pre> - * The source syntax of this method. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 7;</code> - * @param value The syntax to set. - * @return This builder for chaining. - */ - public Builder setSyntax(com.google.protobuf.Syntax value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - syntax_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <pre> - * The source syntax of this method. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 7;</code> - * @return This builder for chaining. - */ - public Builder clearSyntax() { - bitField0_ = (bitField0_ & ~0x00000040); - syntax_ = 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.Method) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.Method) - private static final com.google.protobuf.Method DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.Method(); - } - - public static com.google.protobuf.Method getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Method> - PARSER = new com.google.protobuf.AbstractParser<Method>() { - @java.lang.Override - public Method parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<Method> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Method> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Method getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/MethodOrBuilder.java b/src/main/java/com/google/protobuf/MethodOrBuilder.java deleted file mode 100644 index 9e3aaa0..0000000 --- a/src/main/java/com/google/protobuf/MethodOrBuilder.java +++ /dev/null @@ -1,152 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/api.proto - -package com.google.protobuf; - -public interface MethodOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.Method) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * The simple name of this method. - * </pre> - * - * <code>string name = 1;</code> - * @return The name. - */ - java.lang.String getName(); - /** - * <pre> - * The simple name of this method. - * </pre> - * - * <code>string name = 1;</code> - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * <pre> - * A URL of the input message type. - * </pre> - * - * <code>string request_type_url = 2;</code> - * @return The requestTypeUrl. - */ - java.lang.String getRequestTypeUrl(); - /** - * <pre> - * A URL of the input message type. - * </pre> - * - * <code>string request_type_url = 2;</code> - * @return The bytes for requestTypeUrl. - */ - com.google.protobuf.ByteString - getRequestTypeUrlBytes(); - - /** - * <pre> - * If true, the request is streamed. - * </pre> - * - * <code>bool request_streaming = 3;</code> - * @return The requestStreaming. - */ - boolean getRequestStreaming(); - - /** - * <pre> - * The URL of the output message type. - * </pre> - * - * <code>string response_type_url = 4;</code> - * @return The responseTypeUrl. - */ - java.lang.String getResponseTypeUrl(); - /** - * <pre> - * The URL of the output message type. - * </pre> - * - * <code>string response_type_url = 4;</code> - * @return The bytes for responseTypeUrl. - */ - com.google.protobuf.ByteString - getResponseTypeUrlBytes(); - - /** - * <pre> - * If true, the response is streamed. - * </pre> - * - * <code>bool response_streaming = 5;</code> - * @return The responseStreaming. - */ - boolean getResponseStreaming(); - - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - java.util.List<com.google.protobuf.Option> - getOptionsList(); - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - com.google.protobuf.Option getOptions(int index); - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - int getOptionsCount(); - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - java.util.List<? extends com.google.protobuf.OptionOrBuilder> - getOptionsOrBuilderList(); - /** - * <pre> - * Any metadata attached to the method. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 6;</code> - */ - com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( - int index); - - /** - * <pre> - * The source syntax of this method. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 7;</code> - * @return The enum numeric value on the wire for syntax. - */ - int getSyntaxValue(); - /** - * <pre> - * The source syntax of this method. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 7;</code> - * @return The syntax. - */ - com.google.protobuf.Syntax getSyntax(); -} diff --git a/src/main/java/com/google/protobuf/Mixin.java b/src/main/java/com/google/protobuf/Mixin.java deleted file mode 100644 index 488e6af..0000000 --- a/src/main/java/com/google/protobuf/Mixin.java +++ /dev/null @@ -1,868 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/api.proto - -package com.google.protobuf; - -/** - * <pre> - * Declares an API Interface to be included in this interface. The including - * interface must redeclare all the methods from the included interface, but - * documentation and options are inherited as follows: - * - * - If after comment and whitespace stripping, the documentation - * string of the redeclared method is empty, it will be inherited - * from the original method. - * - * - Each annotation belonging to the service config (http, - * visibility) which is not set in the redeclared method will be - * inherited. - * - * - If an http annotation is inherited, the path pattern will be - * modified as follows. Any version prefix will be replaced by the - * version of the including interface plus the [root][] path if - * specified. - * - * Example of a simple mixin: - * - * package google.acl.v1; - * service AccessControl { - * // Get the underlying ACL object. - * rpc GetAcl(GetAclRequest) returns (Acl) { - * option (google.api.http).get = "/v1/{resource=**}:getAcl"; - * } - * } - * - * package google.storage.v2; - * service Storage { - * rpc GetAcl(GetAclRequest) returns (Acl); - * - * // Get a data record. - * rpc GetData(GetDataRequest) returns (Data) { - * option (google.api.http).get = "/v2/{resource=**}"; - * } - * } - * - * Example of a mixin configuration: - * - * apis: - * - name: google.storage.v2.Storage - * mixins: - * - name: google.acl.v1.AccessControl - * - * The mixin construct implies that all methods in `AccessControl` are - * also declared with same name and request/response types in - * `Storage`. A documentation generator or annotation processor will - * see the effective `Storage.GetAcl` method after inheriting - * documentation and annotations as follows: - * - * service Storage { - * // Get the underlying ACL object. - * rpc GetAcl(GetAclRequest) returns (Acl) { - * option (google.api.http).get = "/v2/{resource=**}:getAcl"; - * } - * ... - * } - * - * Note how the version in the path pattern changed from `v1` to `v2`. - * - * If the `root` field in the mixin is specified, it should be a - * relative path under which inherited HTTP paths are placed. Example: - * - * apis: - * - name: google.storage.v2.Storage - * mixins: - * - name: google.acl.v1.AccessControl - * root: acls - * - * This implies the following inherited HTTP annotation: - * - * service Storage { - * // Get the underlying ACL object. - * rpc GetAcl(GetAclRequest) returns (Acl) { - * option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; - * } - * ... - * } - * </pre> - * - * Protobuf type {@code google.protobuf.Mixin} - */ -public final class Mixin extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.Mixin) - MixinOrBuilder { -private static final long serialVersionUID = 0L; - // Use Mixin.newBuilder() to construct. - private Mixin(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Mixin() { - name_ = ""; - root_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Mixin(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.ApiProto.internal_static_google_protobuf_Mixin_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.ApiProto.internal_static_google_protobuf_Mixin_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Mixin.class, com.google.protobuf.Mixin.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * <pre> - * The fully qualified name of the interface which is included. - * </pre> - * - * <code>string name = 1;</code> - * @return The name. - */ - @java.lang.Override - 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(); - name_ = s; - return s; - } - } - /** - * <pre> - * The fully qualified name of the interface which is included. - * </pre> - * - * <code>string name = 1;</code> - * @return The bytes for name. - */ - @java.lang.Override - 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 ROOT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object root_ = ""; - /** - * <pre> - * If non-empty specifies a path under which inherited HTTP paths - * are rooted. - * </pre> - * - * <code>string root = 2;</code> - * @return The root. - */ - @java.lang.Override - public java.lang.String getRoot() { - java.lang.Object ref = root_; - 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(); - root_ = s; - return s; - } - } - /** - * <pre> - * If non-empty specifies a path under which inherited HTTP paths - * are rooted. - * </pre> - * - * <code>string root = 2;</code> - * @return The bytes for root. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRootBytes() { - java.lang.Object ref = root_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - root_ = 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; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(root_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, root_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(root_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, root_); - } - size += getUnknownFields().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.Mixin)) { - return super.equals(obj); - } - com.google.protobuf.Mixin other = (com.google.protobuf.Mixin) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getRoot() - .equals(other.getRoot())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + ROOT_FIELD_NUMBER; - hash = (53 * hash) + getRoot().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.Mixin parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Mixin 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.Mixin parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Mixin 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.Mixin parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Mixin parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.Mixin parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Mixin 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.Mixin parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.Mixin 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.Mixin parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Mixin 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.Mixin 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; - } - /** - * <pre> - * Declares an API Interface to be included in this interface. The including - * interface must redeclare all the methods from the included interface, but - * documentation and options are inherited as follows: - * - * - If after comment and whitespace stripping, the documentation - * string of the redeclared method is empty, it will be inherited - * from the original method. - * - * - Each annotation belonging to the service config (http, - * visibility) which is not set in the redeclared method will be - * inherited. - * - * - If an http annotation is inherited, the path pattern will be - * modified as follows. Any version prefix will be replaced by the - * version of the including interface plus the [root][] path if - * specified. - * - * Example of a simple mixin: - * - * package google.acl.v1; - * service AccessControl { - * // Get the underlying ACL object. - * rpc GetAcl(GetAclRequest) returns (Acl) { - * option (google.api.http).get = "/v1/{resource=**}:getAcl"; - * } - * } - * - * package google.storage.v2; - * service Storage { - * rpc GetAcl(GetAclRequest) returns (Acl); - * - * // Get a data record. - * rpc GetData(GetDataRequest) returns (Data) { - * option (google.api.http).get = "/v2/{resource=**}"; - * } - * } - * - * Example of a mixin configuration: - * - * apis: - * - name: google.storage.v2.Storage - * mixins: - * - name: google.acl.v1.AccessControl - * - * The mixin construct implies that all methods in `AccessControl` are - * also declared with same name and request/response types in - * `Storage`. A documentation generator or annotation processor will - * see the effective `Storage.GetAcl` method after inheriting - * documentation and annotations as follows: - * - * service Storage { - * // Get the underlying ACL object. - * rpc GetAcl(GetAclRequest) returns (Acl) { - * option (google.api.http).get = "/v2/{resource=**}:getAcl"; - * } - * ... - * } - * - * Note how the version in the path pattern changed from `v1` to `v2`. - * - * If the `root` field in the mixin is specified, it should be a - * relative path under which inherited HTTP paths are placed. Example: - * - * apis: - * - name: google.storage.v2.Storage - * mixins: - * - name: google.acl.v1.AccessControl - * root: acls - * - * This implies the following inherited HTTP annotation: - * - * service Storage { - * // Get the underlying ACL object. - * rpc GetAcl(GetAclRequest) returns (Acl) { - * option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; - * } - * ... - * } - * </pre> - * - * Protobuf type {@code google.protobuf.Mixin} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.Mixin) - com.google.protobuf.MixinOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.ApiProto.internal_static_google_protobuf_Mixin_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.ApiProto.internal_static_google_protobuf_Mixin_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Mixin.class, com.google.protobuf.Mixin.Builder.class); - } - - // Construct using com.google.protobuf.Mixin.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - root_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.ApiProto.internal_static_google_protobuf_Mixin_descriptor; - } - - @java.lang.Override - public com.google.protobuf.Mixin getDefaultInstanceForType() { - return com.google.protobuf.Mixin.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.Mixin build() { - com.google.protobuf.Mixin result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.Mixin buildPartial() { - com.google.protobuf.Mixin result = new com.google.protobuf.Mixin(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.Mixin result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.root_ = root_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.Mixin) { - return mergeFrom((com.google.protobuf.Mixin)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.Mixin other) { - if (other == com.google.protobuf.Mixin.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getRoot().isEmpty()) { - root_ = other.root_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - root_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * <pre> - * The fully qualified name of the interface which is included. - * </pre> - * - * <code>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(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <pre> - * The fully qualified name of the interface which is included. - * </pre> - * - * <code>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; - } - } - /** - * <pre> - * The fully qualified name of the interface which is included. - * </pre> - * - * <code>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(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * The fully qualified name of the interface which is included. - * </pre> - * - * <code>string name = 1;</code> - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * <pre> - * The fully qualified name of the interface which is included. - * </pre> - * - * <code>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(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object root_ = ""; - /** - * <pre> - * If non-empty specifies a path under which inherited HTTP paths - * are rooted. - * </pre> - * - * <code>string root = 2;</code> - * @return The root. - */ - public java.lang.String getRoot() { - java.lang.Object ref = root_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - root_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <pre> - * If non-empty specifies a path under which inherited HTTP paths - * are rooted. - * </pre> - * - * <code>string root = 2;</code> - * @return The bytes for root. - */ - public com.google.protobuf.ByteString - getRootBytes() { - java.lang.Object ref = root_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - root_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <pre> - * If non-empty specifies a path under which inherited HTTP paths - * are rooted. - * </pre> - * - * <code>string root = 2;</code> - * @param value The root to set. - * @return This builder for chaining. - */ - public Builder setRoot( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - root_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <pre> - * If non-empty specifies a path under which inherited HTTP paths - * are rooted. - * </pre> - * - * <code>string root = 2;</code> - * @return This builder for chaining. - */ - public Builder clearRoot() { - root_ = getDefaultInstance().getRoot(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * <pre> - * If non-empty specifies a path under which inherited HTTP paths - * are rooted. - * </pre> - * - * <code>string root = 2;</code> - * @param value The bytes for root to set. - * @return This builder for chaining. - */ - public Builder setRootBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - root_ = value; - bitField0_ |= 0x00000002; - 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.Mixin) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.Mixin) - private static final com.google.protobuf.Mixin DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.Mixin(); - } - - public static com.google.protobuf.Mixin getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Mixin> - PARSER = new com.google.protobuf.AbstractParser<Mixin>() { - @java.lang.Override - public Mixin parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<Mixin> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Mixin> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Mixin getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/MixinOrBuilder.java b/src/main/java/com/google/protobuf/MixinOrBuilder.java deleted file mode 100644 index 6173d18..0000000 --- a/src/main/java/com/google/protobuf/MixinOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/api.proto - -package com.google.protobuf; - -public interface MixinOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.Mixin) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * The fully qualified name of the interface which is included. - * </pre> - * - * <code>string name = 1;</code> - * @return The name. - */ - java.lang.String getName(); - /** - * <pre> - * The fully qualified name of the interface which is included. - * </pre> - * - * <code>string name = 1;</code> - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * <pre> - * If non-empty specifies a path under which inherited HTTP paths - * are rooted. - * </pre> - * - * <code>string root = 2;</code> - * @return The root. - */ - java.lang.String getRoot(); - /** - * <pre> - * If non-empty specifies a path under which inherited HTTP paths - * are rooted. - * </pre> - * - * <code>string root = 2;</code> - * @return The bytes for root. - */ - com.google.protobuf.ByteString - getRootBytes(); -} diff --git a/src/main/java/com/google/protobuf/NullValue.java b/src/main/java/com/google/protobuf/NullValue.java deleted file mode 100644 index 075b0d3..0000000 --- a/src/main/java/com/google/protobuf/NullValue.java +++ /dev/null @@ -1,119 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/struct.proto - -package com.google.protobuf; - -/** - * <pre> - * `NullValue` is a singleton enumeration to represent the null value for the - * `Value` type union. - * - * The JSON representation for `NullValue` is JSON `null`. - * </pre> - * - * Protobuf enum {@code google.protobuf.NullValue} - */ -public enum NullValue - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <pre> - * Null value. - * </pre> - * - * <code>NULL_VALUE = 0;</code> - */ - NULL_VALUE(0), - UNRECOGNIZED(-1), - ; - - /** - * <pre> - * Null value. - * </pre> - * - * <code>NULL_VALUE = 0;</code> - */ - public static final int NULL_VALUE_VALUE = 0; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @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 NullValue valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static NullValue forNumber(int value) { - switch (value) { - case 0: return NULL_VALUE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<NullValue> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - NullValue> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<NullValue>() { - public NullValue findValueByNumber(int number) { - return NullValue.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - 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.StructProto.getDescriptor().getEnumTypes().get(0); - } - - private static final NullValue[] VALUES = values(); - - public static NullValue valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private NullValue(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.protobuf.NullValue) -} - diff --git a/src/main/java/com/google/protobuf/Option.java b/src/main/java/com/google/protobuf/Option.java deleted file mode 100644 index 274c726..0000000 --- a/src/main/java/com/google/protobuf/Option.java +++ /dev/null @@ -1,831 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/type.proto - -package com.google.protobuf; - -/** - * <pre> - * A protocol buffer option, which can be attached to a message, field, - * enumeration, etc. - * </pre> - * - * Protobuf type {@code google.protobuf.Option} - */ -public final class Option extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.Option) - OptionOrBuilder { -private static final long serialVersionUID = 0L; - // Use Option.newBuilder() to construct. - private Option(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Option() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Option(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_Option_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_Option_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Option.class, com.google.protobuf.Option.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * <pre> - * The option's name. For protobuf built-in options (options defined in - * descriptor.proto), this is the short name. For example, `"map_entry"`. - * For custom options, it should be the fully-qualified name. For example, - * `"google.api.http"`. - * </pre> - * - * <code>string name = 1;</code> - * @return The name. - */ - @java.lang.Override - 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(); - name_ = s; - return s; - } - } - /** - * <pre> - * The option's name. For protobuf built-in options (options defined in - * descriptor.proto), this is the short name. For example, `"map_entry"`. - * For custom options, it should be the fully-qualified name. For example, - * `"google.api.http"`. - * </pre> - * - * <code>string name = 1;</code> - * @return The bytes for name. - */ - @java.lang.Override - 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 com.google.protobuf.Any value_; - /** - * <pre> - * The option's value packed in an Any message. If the value is a primitive, - * the corresponding wrapper type defined in google/protobuf/wrappers.proto - * should be used. If the value is an enum, it should be stored as an int32 - * value using the google.protobuf.Int32Value type. - * </pre> - * - * <code>.google.protobuf.Any value = 2;</code> - * @return Whether the value field is set. - */ - @java.lang.Override - public boolean hasValue() { - return value_ != null; - } - /** - * <pre> - * The option's value packed in an Any message. If the value is a primitive, - * the corresponding wrapper type defined in google/protobuf/wrappers.proto - * should be used. If the value is an enum, it should be stored as an int32 - * value using the google.protobuf.Int32Value type. - * </pre> - * - * <code>.google.protobuf.Any value = 2;</code> - * @return The value. - */ - @java.lang.Override - public com.google.protobuf.Any getValue() { - return value_ == null ? com.google.protobuf.Any.getDefaultInstance() : value_; - } - /** - * <pre> - * The option's value packed in an Any message. If the value is a primitive, - * the corresponding wrapper type defined in google/protobuf/wrappers.proto - * should be used. If the value is an enum, it should be stored as an int32 - * value using the google.protobuf.Int32Value type. - * </pre> - * - * <code>.google.protobuf.Any value = 2;</code> - */ - @java.lang.Override - public com.google.protobuf.AnyOrBuilder getValueOrBuilder() { - return value_ == null ? com.google.protobuf.Any.getDefaultInstance() : value_; - } - - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (value_ != null) { - output.writeMessage(2, getValue()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (value_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getValue()); - } - size += getUnknownFields().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.Option)) { - return super.equals(obj); - } - com.google.protobuf.Option other = (com.google.protobuf.Option) obj; - - if (!getName() - .equals(other.getName())) return false; - if (hasValue() != other.hasValue()) return false; - if (hasValue()) { - if (!getValue() - .equals(other.getValue())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasValue()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.Option parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Option 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.Option parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Option 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.Option parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Option parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.Option parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Option 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.Option parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.Option 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.Option parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Option 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.Option 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; - } - /** - * <pre> - * A protocol buffer option, which can be attached to a message, field, - * enumeration, etc. - * </pre> - * - * Protobuf type {@code google.protobuf.Option} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.Option) - com.google.protobuf.OptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_Option_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_Option_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Option.class, com.google.protobuf.Option.Builder.class); - } - - // Construct using com.google.protobuf.Option.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - value_ = null; - if (valueBuilder_ != null) { - valueBuilder_.dispose(); - valueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_Option_descriptor; - } - - @java.lang.Override - public com.google.protobuf.Option getDefaultInstanceForType() { - return com.google.protobuf.Option.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.Option build() { - com.google.protobuf.Option result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.Option buildPartial() { - com.google.protobuf.Option result = new com.google.protobuf.Option(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.Option result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.value_ = valueBuilder_ == null - ? value_ - : valueBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.Option) { - return mergeFrom((com.google.protobuf.Option)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.Option other) { - if (other == com.google.protobuf.Option.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasValue()) { - mergeValue(other.getValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getValueFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * <pre> - * The option's name. For protobuf built-in options (options defined in - * descriptor.proto), this is the short name. For example, `"map_entry"`. - * For custom options, it should be the fully-qualified name. For example, - * `"google.api.http"`. - * </pre> - * - * <code>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(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <pre> - * The option's name. For protobuf built-in options (options defined in - * descriptor.proto), this is the short name. For example, `"map_entry"`. - * For custom options, it should be the fully-qualified name. For example, - * `"google.api.http"`. - * </pre> - * - * <code>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; - } - } - /** - * <pre> - * The option's name. For protobuf built-in options (options defined in - * descriptor.proto), this is the short name. For example, `"map_entry"`. - * For custom options, it should be the fully-qualified name. For example, - * `"google.api.http"`. - * </pre> - * - * <code>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(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * The option's name. For protobuf built-in options (options defined in - * descriptor.proto), this is the short name. For example, `"map_entry"`. - * For custom options, it should be the fully-qualified name. For example, - * `"google.api.http"`. - * </pre> - * - * <code>string name = 1;</code> - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * <pre> - * The option's name. For protobuf built-in options (options defined in - * descriptor.proto), this is the short name. For example, `"map_entry"`. - * For custom options, it should be the fully-qualified name. For example, - * `"google.api.http"`. - * </pre> - * - * <code>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(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.Any value_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> valueBuilder_; - /** - * <pre> - * The option's value packed in an Any message. If the value is a primitive, - * the corresponding wrapper type defined in google/protobuf/wrappers.proto - * should be used. If the value is an enum, it should be stored as an int32 - * value using the google.protobuf.Int32Value type. - * </pre> - * - * <code>.google.protobuf.Any value = 2;</code> - * @return Whether the value field is set. - */ - public boolean hasValue() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * <pre> - * The option's value packed in an Any message. If the value is a primitive, - * the corresponding wrapper type defined in google/protobuf/wrappers.proto - * should be used. If the value is an enum, it should be stored as an int32 - * value using the google.protobuf.Int32Value type. - * </pre> - * - * <code>.google.protobuf.Any value = 2;</code> - * @return The value. - */ - public com.google.protobuf.Any getValue() { - if (valueBuilder_ == null) { - return value_ == null ? com.google.protobuf.Any.getDefaultInstance() : value_; - } else { - return valueBuilder_.getMessage(); - } - } - /** - * <pre> - * The option's value packed in an Any message. If the value is a primitive, - * the corresponding wrapper type defined in google/protobuf/wrappers.proto - * should be used. If the value is an enum, it should be stored as an int32 - * value using the google.protobuf.Int32Value type. - * </pre> - * - * <code>.google.protobuf.Any value = 2;</code> - */ - public Builder setValue(com.google.protobuf.Any value) { - if (valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - } else { - valueBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <pre> - * The option's value packed in an Any message. If the value is a primitive, - * the corresponding wrapper type defined in google/protobuf/wrappers.proto - * should be used. If the value is an enum, it should be stored as an int32 - * value using the google.protobuf.Int32Value type. - * </pre> - * - * <code>.google.protobuf.Any value = 2;</code> - */ - public Builder setValue( - com.google.protobuf.Any.Builder builderForValue) { - if (valueBuilder_ == null) { - value_ = builderForValue.build(); - } else { - valueBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <pre> - * The option's value packed in an Any message. If the value is a primitive, - * the corresponding wrapper type defined in google/protobuf/wrappers.proto - * should be used. If the value is an enum, it should be stored as an int32 - * value using the google.protobuf.Int32Value type. - * </pre> - * - * <code>.google.protobuf.Any value = 2;</code> - */ - public Builder mergeValue(com.google.protobuf.Any value) { - if (valueBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - value_ != null && - value_ != com.google.protobuf.Any.getDefaultInstance()) { - getValueBuilder().mergeFrom(value); - } else { - value_ = value; - } - } else { - valueBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <pre> - * The option's value packed in an Any message. If the value is a primitive, - * the corresponding wrapper type defined in google/protobuf/wrappers.proto - * should be used. If the value is an enum, it should be stored as an int32 - * value using the google.protobuf.Int32Value type. - * </pre> - * - * <code>.google.protobuf.Any value = 2;</code> - */ - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000002); - value_ = null; - if (valueBuilder_ != null) { - valueBuilder_.dispose(); - valueBuilder_ = null; - } - onChanged(); - return this; - } - /** - * <pre> - * The option's value packed in an Any message. If the value is a primitive, - * the corresponding wrapper type defined in google/protobuf/wrappers.proto - * should be used. If the value is an enum, it should be stored as an int32 - * value using the google.protobuf.Int32Value type. - * </pre> - * - * <code>.google.protobuf.Any value = 2;</code> - */ - public com.google.protobuf.Any.Builder getValueBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getValueFieldBuilder().getBuilder(); - } - /** - * <pre> - * The option's value packed in an Any message. If the value is a primitive, - * the corresponding wrapper type defined in google/protobuf/wrappers.proto - * should be used. If the value is an enum, it should be stored as an int32 - * value using the google.protobuf.Int32Value type. - * </pre> - * - * <code>.google.protobuf.Any value = 2;</code> - */ - public com.google.protobuf.AnyOrBuilder getValueOrBuilder() { - if (valueBuilder_ != null) { - return valueBuilder_.getMessageOrBuilder(); - } else { - return value_ == null ? - com.google.protobuf.Any.getDefaultInstance() : value_; - } - } - /** - * <pre> - * The option's value packed in an Any message. If the value is a primitive, - * the corresponding wrapper type defined in google/protobuf/wrappers.proto - * should be used. If the value is an enum, it should be stored as an int32 - * value using the google.protobuf.Int32Value type. - * </pre> - * - * <code>.google.protobuf.Any value = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getValue(), - getParentForChildren(), - isClean()); - value_ = null; - } - return valueBuilder_; - } - @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.Option) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.Option) - private static final com.google.protobuf.Option DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.Option(); - } - - public static com.google.protobuf.Option getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Option> - PARSER = new com.google.protobuf.AbstractParser<Option>() { - @java.lang.Override - public Option parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<Option> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Option> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Option getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/OptionOrBuilder.java b/src/main/java/com/google/protobuf/OptionOrBuilder.java deleted file mode 100644 index 516d8e6..0000000 --- a/src/main/java/com/google/protobuf/OptionOrBuilder.java +++ /dev/null @@ -1,71 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/type.proto - -package com.google.protobuf; - -public interface OptionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.Option) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * The option's name. For protobuf built-in options (options defined in - * descriptor.proto), this is the short name. For example, `"map_entry"`. - * For custom options, it should be the fully-qualified name. For example, - * `"google.api.http"`. - * </pre> - * - * <code>string name = 1;</code> - * @return The name. - */ - java.lang.String getName(); - /** - * <pre> - * The option's name. For protobuf built-in options (options defined in - * descriptor.proto), this is the short name. For example, `"map_entry"`. - * For custom options, it should be the fully-qualified name. For example, - * `"google.api.http"`. - * </pre> - * - * <code>string name = 1;</code> - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * <pre> - * The option's value packed in an Any message. If the value is a primitive, - * the corresponding wrapper type defined in google/protobuf/wrappers.proto - * should be used. If the value is an enum, it should be stored as an int32 - * value using the google.protobuf.Int32Value type. - * </pre> - * - * <code>.google.protobuf.Any value = 2;</code> - * @return Whether the value field is set. - */ - boolean hasValue(); - /** - * <pre> - * The option's value packed in an Any message. If the value is a primitive, - * the corresponding wrapper type defined in google/protobuf/wrappers.proto - * should be used. If the value is an enum, it should be stored as an int32 - * value using the google.protobuf.Int32Value type. - * </pre> - * - * <code>.google.protobuf.Any value = 2;</code> - * @return The value. - */ - com.google.protobuf.Any getValue(); - /** - * <pre> - * The option's value packed in an Any message. If the value is a primitive, - * the corresponding wrapper type defined in google/protobuf/wrappers.proto - * should be used. If the value is an enum, it should be stored as an int32 - * value using the google.protobuf.Int32Value type. - * </pre> - * - * <code>.google.protobuf.Any value = 2;</code> - */ - com.google.protobuf.AnyOrBuilder getValueOrBuilder(); -} diff --git a/src/main/java/com/google/protobuf/SourceContext.java b/src/main/java/com/google/protobuf/SourceContext.java deleted file mode 100644 index 585938a..0000000 --- a/src/main/java/com/google/protobuf/SourceContext.java +++ /dev/null @@ -1,552 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/source_context.proto - -package com.google.protobuf; - -/** - * <pre> - * `SourceContext` represents information about the source of a - * protobuf element, like the file in which it is defined. - * </pre> - * - * Protobuf type {@code google.protobuf.SourceContext} - */ -public final class SourceContext extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.SourceContext) - SourceContextOrBuilder { -private static final long serialVersionUID = 0L; - // Use SourceContext.newBuilder() to construct. - private SourceContext(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SourceContext() { - fileName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SourceContext(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.SourceContextProto.internal_static_google_protobuf_SourceContext_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.SourceContextProto.internal_static_google_protobuf_SourceContext_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.SourceContext.class, com.google.protobuf.SourceContext.Builder.class); - } - - public static final int FILE_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object fileName_ = ""; - /** - * <pre> - * The path-qualified name of the .proto file that contained the associated - * protobuf element. For example: `"google/protobuf/source_context.proto"`. - * </pre> - * - * <code>string file_name = 1;</code> - * @return The fileName. - */ - @java.lang.Override - public java.lang.String getFileName() { - java.lang.Object ref = fileName_; - 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(); - fileName_ = s; - return s; - } - } - /** - * <pre> - * The path-qualified name of the .proto file that contained the associated - * protobuf element. For example: `"google/protobuf/source_context.proto"`. - * </pre> - * - * <code>string file_name = 1;</code> - * @return The bytes for fileName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFileNameBytes() { - java.lang.Object ref = fileName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fileName_ = 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; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fileName_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fileName_); - } - size += getUnknownFields().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.SourceContext)) { - return super.equals(obj); - } - com.google.protobuf.SourceContext other = (com.google.protobuf.SourceContext) obj; - - if (!getFileName() - .equals(other.getFileName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FILE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFileName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.SourceContext parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.SourceContext 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.SourceContext parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.SourceContext 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.SourceContext parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.SourceContext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.SourceContext parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.SourceContext 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.SourceContext parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.SourceContext 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.SourceContext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.SourceContext 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.SourceContext 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; - } - /** - * <pre> - * `SourceContext` represents information about the source of a - * protobuf element, like the file in which it is defined. - * </pre> - * - * Protobuf type {@code google.protobuf.SourceContext} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.SourceContext) - com.google.protobuf.SourceContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.SourceContextProto.internal_static_google_protobuf_SourceContext_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.SourceContextProto.internal_static_google_protobuf_SourceContext_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.SourceContext.class, com.google.protobuf.SourceContext.Builder.class); - } - - // Construct using com.google.protobuf.SourceContext.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - fileName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.SourceContextProto.internal_static_google_protobuf_SourceContext_descriptor; - } - - @java.lang.Override - public com.google.protobuf.SourceContext getDefaultInstanceForType() { - return com.google.protobuf.SourceContext.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.SourceContext build() { - com.google.protobuf.SourceContext result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.SourceContext buildPartial() { - com.google.protobuf.SourceContext result = new com.google.protobuf.SourceContext(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.SourceContext result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.fileName_ = fileName_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.SourceContext) { - return mergeFrom((com.google.protobuf.SourceContext)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.SourceContext other) { - if (other == com.google.protobuf.SourceContext.getDefaultInstance()) return this; - if (!other.getFileName().isEmpty()) { - fileName_ = other.fileName_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - fileName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object fileName_ = ""; - /** - * <pre> - * The path-qualified name of the .proto file that contained the associated - * protobuf element. For example: `"google/protobuf/source_context.proto"`. - * </pre> - * - * <code>string file_name = 1;</code> - * @return The fileName. - */ - public java.lang.String getFileName() { - java.lang.Object ref = fileName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fileName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <pre> - * The path-qualified name of the .proto file that contained the associated - * protobuf element. For example: `"google/protobuf/source_context.proto"`. - * </pre> - * - * <code>string file_name = 1;</code> - * @return The bytes for fileName. - */ - public com.google.protobuf.ByteString - getFileNameBytes() { - java.lang.Object ref = fileName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fileName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <pre> - * The path-qualified name of the .proto file that contained the associated - * protobuf element. For example: `"google/protobuf/source_context.proto"`. - * </pre> - * - * <code>string file_name = 1;</code> - * @param value The fileName to set. - * @return This builder for chaining. - */ - public Builder setFileName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - fileName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * The path-qualified name of the .proto file that contained the associated - * protobuf element. For example: `"google/protobuf/source_context.proto"`. - * </pre> - * - * <code>string file_name = 1;</code> - * @return This builder for chaining. - */ - public Builder clearFileName() { - fileName_ = getDefaultInstance().getFileName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * <pre> - * The path-qualified name of the .proto file that contained the associated - * protobuf element. For example: `"google/protobuf/source_context.proto"`. - * </pre> - * - * <code>string file_name = 1;</code> - * @param value The bytes for fileName to set. - * @return This builder for chaining. - */ - public Builder setFileNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - fileName_ = value; - bitField0_ |= 0x00000001; - 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.SourceContext) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.SourceContext) - private static final com.google.protobuf.SourceContext DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.SourceContext(); - } - - public static com.google.protobuf.SourceContext getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SourceContext> - PARSER = new com.google.protobuf.AbstractParser<SourceContext>() { - @java.lang.Override - public SourceContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<SourceContext> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SourceContext> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.SourceContext getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/SourceContextOrBuilder.java b/src/main/java/com/google/protobuf/SourceContextOrBuilder.java deleted file mode 100644 index 64e6cc5..0000000 --- a/src/main/java/com/google/protobuf/SourceContextOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/source_context.proto - -package com.google.protobuf; - -public interface SourceContextOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.SourceContext) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * The path-qualified name of the .proto file that contained the associated - * protobuf element. For example: `"google/protobuf/source_context.proto"`. - * </pre> - * - * <code>string file_name = 1;</code> - * @return The fileName. - */ - java.lang.String getFileName(); - /** - * <pre> - * The path-qualified name of the .proto file that contained the associated - * protobuf element. For example: `"google/protobuf/source_context.proto"`. - * </pre> - * - * <code>string file_name = 1;</code> - * @return The bytes for fileName. - */ - com.google.protobuf.ByteString - getFileNameBytes(); -} diff --git a/src/main/java/com/google/protobuf/SourceContextProto.java b/src/main/java/com/google/protobuf/SourceContextProto.java deleted file mode 100644 index 6301767..0000000 --- a/src/main/java/com/google/protobuf/SourceContextProto.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/source_context.proto - -package com.google.protobuf; - -public final class SourceContextProto { - private SourceContextProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_SourceContext_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_SourceContext_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/source_context.proto\022\017" + - "google.protobuf\"\"\n\rSourceContext\022\021\n\tfile" + - "_name\030\001 \001(\tB\212\001\n\023com.google.protobufB\022Sou" + - "rceContextProtoP\001Z6google.golang.org/pro" + - "tobuf/types/known/sourcecontextpb\242\002\003GPB\252" + - "\002\036Google.Protobuf.WellKnownTypesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_protobuf_SourceContext_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_protobuf_SourceContext_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_SourceContext_descriptor, - new java.lang.String[] { "FileName", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/com/google/protobuf/StringValue.java b/src/main/java/com/google/protobuf/StringValue.java deleted file mode 100644 index 3f2a225..0000000 --- a/src/main/java/com/google/protobuf/StringValue.java +++ /dev/null @@ -1,551 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package com.google.protobuf; - -/** - * <pre> - * Wrapper message for `string`. - * - * The JSON representation for `StringValue` is JSON string. - * </pre> - * - * Protobuf type {@code google.protobuf.StringValue} - */ -public final class StringValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.StringValue) - StringValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use StringValue.newBuilder() to construct. - private StringValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private StringValue() { - value_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringValue(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_StringValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_StringValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.StringValue.class, com.google.protobuf.StringValue.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object value_ = ""; - /** - * <pre> - * The string value. - * </pre> - * - * <code>string value = 1;</code> - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = value_; - 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(); - value_ = s; - return s; - } - } - /** - * <pre> - * The string value. - * </pre> - * - * <code>string value = 1;</code> - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = 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; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); - } - size += getUnknownFields().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.StringValue)) { - return super.equals(obj); - } - com.google.protobuf.StringValue other = (com.google.protobuf.StringValue) obj; - - if (!getValue() - .equals(other.getValue())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.StringValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.StringValue 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.StringValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.StringValue 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.StringValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.StringValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.StringValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.StringValue 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.StringValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.StringValue 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.StringValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.StringValue 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.StringValue 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; - } - /** - * <pre> - * Wrapper message for `string`. - * - * The JSON representation for `StringValue` is JSON string. - * </pre> - * - * Protobuf type {@code google.protobuf.StringValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.StringValue) - com.google.protobuf.StringValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_StringValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_StringValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.StringValue.class, com.google.protobuf.StringValue.Builder.class); - } - - // Construct using com.google.protobuf.StringValue.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - value_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_StringValue_descriptor; - } - - @java.lang.Override - public com.google.protobuf.StringValue getDefaultInstanceForType() { - return com.google.protobuf.StringValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.StringValue build() { - com.google.protobuf.StringValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.StringValue buildPartial() { - com.google.protobuf.StringValue result = new com.google.protobuf.StringValue(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.StringValue result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.value_ = value_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.StringValue) { - return mergeFrom((com.google.protobuf.StringValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.StringValue other) { - if (other == com.google.protobuf.StringValue.getDefaultInstance()) return this; - if (!other.getValue().isEmpty()) { - value_ = other.value_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object value_ = ""; - /** - * <pre> - * The string value. - * </pre> - * - * <code>string value = 1;</code> - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <pre> - * The string value. - * </pre> - * - * <code>string value = 1;</code> - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <pre> - * The string value. - * </pre> - * - * <code>string value = 1;</code> - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - value_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * The string value. - * </pre> - * - * <code>string value = 1;</code> - * @return This builder for chaining. - */ - public Builder clearValue() { - value_ = getDefaultInstance().getValue(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * <pre> - * The string value. - * </pre> - * - * <code>string value = 1;</code> - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - value_ = value; - bitField0_ |= 0x00000001; - 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.StringValue) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.StringValue) - private static final com.google.protobuf.StringValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.StringValue(); - } - - public static com.google.protobuf.StringValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static com.google.protobuf.StringValue of(java.lang.String value) { - return newBuilder().setValue(value).build(); - } - - private static final com.google.protobuf.Parser<StringValue> - PARSER = new com.google.protobuf.AbstractParser<StringValue>() { - @java.lang.Override - public StringValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<StringValue> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<StringValue> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.StringValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/StringValueOrBuilder.java b/src/main/java/com/google/protobuf/StringValueOrBuilder.java deleted file mode 100644 index 29dc5eb..0000000 --- a/src/main/java/com/google/protobuf/StringValueOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package com.google.protobuf; - -public interface StringValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.StringValue) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * The string value. - * </pre> - * - * <code>string value = 1;</code> - * @return The value. - */ - java.lang.String getValue(); - /** - * <pre> - * The string value. - * </pre> - * - * <code>string value = 1;</code> - * @return The bytes for value. - */ - com.google.protobuf.ByteString - getValueBytes(); -} diff --git a/src/main/java/com/google/protobuf/Struct.java b/src/main/java/com/google/protobuf/Struct.java deleted file mode 100644 index cd4a717..0000000 --- a/src/main/java/com/google/protobuf/Struct.java +++ /dev/null @@ -1,716 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/struct.proto - -package com.google.protobuf; - -/** - * <pre> - * `Struct` represents a structured data value, consisting of fields - * which map to dynamically typed values. In some languages, `Struct` - * might be supported by a native representation. For example, in - * scripting languages like JS a struct is represented as an - * object. The details of that representation are described together - * with the proto support for the language. - * - * The JSON representation for `Struct` is JSON object. - * </pre> - * - * Protobuf type {@code google.protobuf.Struct} - */ -public final class Struct extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.Struct) - StructOrBuilder { -private static final long serialVersionUID = 0L; - // Use Struct.newBuilder() to construct. - private Struct(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Struct() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Struct(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.StructProto.internal_static_google_protobuf_Struct_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetFields(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.StructProto.internal_static_google_protobuf_Struct_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Struct.class, com.google.protobuf.Struct.Builder.class); - } - - public static final int FIELDS_FIELD_NUMBER = 1; - private static final class FieldsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protobuf.Value> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.String, com.google.protobuf.Value>newDefaultInstance( - com.google.protobuf.StructProto.internal_static_google_protobuf_Struct_FieldsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> fields_; - private com.google.protobuf.MapField<java.lang.String, com.google.protobuf.Value> - internalGetFields() { - if (fields_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FieldsDefaultEntryHolder.defaultEntry); - } - return fields_; - } - public int getFieldsCount() { - return internalGetFields().getMap().size(); - } - /** - * <pre> - * Unordered map of dynamically typed values. - * </pre> - * - * <code>map<string, .google.protobuf.Value> fields = 1;</code> - */ - @java.lang.Override - public boolean containsFields( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetFields().getMap().containsKey(key); - } - /** - * Use {@link #getFieldsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.String, com.google.protobuf.Value> getFields() { - return getFieldsMap(); - } - /** - * <pre> - * Unordered map of dynamically typed values. - * </pre> - * - * <code>map<string, .google.protobuf.Value> fields = 1;</code> - */ - @java.lang.Override - public java.util.Map<java.lang.String, com.google.protobuf.Value> getFieldsMap() { - return internalGetFields().getMap(); - } - /** - * <pre> - * Unordered map of dynamically typed values. - * </pre> - * - * <code>map<string, .google.protobuf.Value> fields = 1;</code> - */ - @java.lang.Override - public /* nullable */ -com.google.protobuf.Value getFieldsOrDefault( - java.lang.String key, - /* nullable */ -com.google.protobuf.Value defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map<java.lang.String, com.google.protobuf.Value> map = - internalGetFields().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <pre> - * Unordered map of dynamically typed values. - * </pre> - * - * <code>map<string, .google.protobuf.Value> fields = 1;</code> - */ - @java.lang.Override - public com.google.protobuf.Value getFieldsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map<java.lang.String, com.google.protobuf.Value> map = - internalGetFields().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetFields(), - FieldsDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry<java.lang.String, com.google.protobuf.Value> entry - : internalGetFields().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.String, com.google.protobuf.Value> - fields__ = FieldsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, fields__); - } - size += getUnknownFields().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.Struct)) { - return super.equals(obj); - } - com.google.protobuf.Struct other = (com.google.protobuf.Struct) obj; - - if (!internalGetFields().equals( - other.internalGetFields())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetFields().getMap().isEmpty()) { - hash = (37 * hash) + FIELDS_FIELD_NUMBER; - hash = (53 * hash) + internalGetFields().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.Struct parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Struct 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.Struct parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Struct 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.Struct parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Struct parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.Struct parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Struct 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.Struct parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.Struct 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.Struct parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Struct 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.Struct 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; - } - /** - * <pre> - * `Struct` represents a structured data value, consisting of fields - * which map to dynamically typed values. In some languages, `Struct` - * might be supported by a native representation. For example, in - * scripting languages like JS a struct is represented as an - * object. The details of that representation are described together - * with the proto support for the language. - * - * The JSON representation for `Struct` is JSON object. - * </pre> - * - * Protobuf type {@code google.protobuf.Struct} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.Struct) - com.google.protobuf.StructOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.StructProto.internal_static_google_protobuf_Struct_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetFields(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableFields(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.StructProto.internal_static_google_protobuf_Struct_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Struct.class, com.google.protobuf.Struct.Builder.class); - } - - // Construct using com.google.protobuf.Struct.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableFields().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.StructProto.internal_static_google_protobuf_Struct_descriptor; - } - - @java.lang.Override - public com.google.protobuf.Struct getDefaultInstanceForType() { - return com.google.protobuf.Struct.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.Struct build() { - com.google.protobuf.Struct result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.Struct buildPartial() { - com.google.protobuf.Struct result = new com.google.protobuf.Struct(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.Struct result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.fields_ = internalGetFields(); - result.fields_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.Struct) { - return mergeFrom((com.google.protobuf.Struct)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.Struct other) { - if (other == com.google.protobuf.Struct.getDefaultInstance()) return this; - internalGetMutableFields().mergeFrom( - other.internalGetFields()); - bitField0_ |= 0x00000001; - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.MapEntry<java.lang.String, com.google.protobuf.Value> - fields__ = input.readMessage( - FieldsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableFields().getMutableMap().put( - fields__.getKey(), fields__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> fields_; - private com.google.protobuf.MapField<java.lang.String, com.google.protobuf.Value> - internalGetFields() { - if (fields_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FieldsDefaultEntryHolder.defaultEntry); - } - return fields_; - } - private com.google.protobuf.MapField<java.lang.String, com.google.protobuf.Value> - internalGetMutableFields() { - if (fields_ == null) { - fields_ = com.google.protobuf.MapField.newMapField( - FieldsDefaultEntryHolder.defaultEntry); - } - if (!fields_.isMutable()) { - fields_ = fields_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return fields_; - } - public int getFieldsCount() { - return internalGetFields().getMap().size(); - } - /** - * <pre> - * Unordered map of dynamically typed values. - * </pre> - * - * <code>map<string, .google.protobuf.Value> fields = 1;</code> - */ - @java.lang.Override - public boolean containsFields( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetFields().getMap().containsKey(key); - } - /** - * Use {@link #getFieldsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.String, com.google.protobuf.Value> getFields() { - return getFieldsMap(); - } - /** - * <pre> - * Unordered map of dynamically typed values. - * </pre> - * - * <code>map<string, .google.protobuf.Value> fields = 1;</code> - */ - @java.lang.Override - public java.util.Map<java.lang.String, com.google.protobuf.Value> getFieldsMap() { - return internalGetFields().getMap(); - } - /** - * <pre> - * Unordered map of dynamically typed values. - * </pre> - * - * <code>map<string, .google.protobuf.Value> fields = 1;</code> - */ - @java.lang.Override - public /* nullable */ -com.google.protobuf.Value getFieldsOrDefault( - java.lang.String key, - /* nullable */ -com.google.protobuf.Value defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map<java.lang.String, com.google.protobuf.Value> map = - internalGetFields().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <pre> - * Unordered map of dynamically typed values. - * </pre> - * - * <code>map<string, .google.protobuf.Value> fields = 1;</code> - */ - @java.lang.Override - public com.google.protobuf.Value getFieldsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map<java.lang.String, com.google.protobuf.Value> map = - internalGetFields().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearFields() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableFields().getMutableMap() - .clear(); - return this; - } - /** - * <pre> - * Unordered map of dynamically typed values. - * </pre> - * - * <code>map<string, .google.protobuf.Value> fields = 1;</code> - */ - public Builder removeFields( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableFields().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.String, com.google.protobuf.Value> - getMutableFields() { - bitField0_ |= 0x00000001; - return internalGetMutableFields().getMutableMap(); - } - /** - * <pre> - * Unordered map of dynamically typed values. - * </pre> - * - * <code>map<string, .google.protobuf.Value> fields = 1;</code> - */ - public Builder putFields( - java.lang.String key, - com.google.protobuf.Value value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableFields().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * <pre> - * Unordered map of dynamically typed values. - * </pre> - * - * <code>map<string, .google.protobuf.Value> fields = 1;</code> - */ - public Builder putAllFields( - java.util.Map<java.lang.String, com.google.protobuf.Value> values) { - internalGetMutableFields().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - 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.Struct) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.Struct) - private static final com.google.protobuf.Struct DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.Struct(); - } - - public static com.google.protobuf.Struct getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Struct> - PARSER = new com.google.protobuf.AbstractParser<Struct>() { - @java.lang.Override - public Struct parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<Struct> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Struct> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Struct getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/StructOrBuilder.java b/src/main/java/com/google/protobuf/StructOrBuilder.java deleted file mode 100644 index ed41f17..0000000 --- a/src/main/java/com/google/protobuf/StructOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/struct.proto - -package com.google.protobuf; - -public interface StructOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.Struct) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * Unordered map of dynamically typed values. - * </pre> - * - * <code>map<string, .google.protobuf.Value> fields = 1;</code> - */ - int getFieldsCount(); - /** - * <pre> - * Unordered map of dynamically typed values. - * </pre> - * - * <code>map<string, .google.protobuf.Value> fields = 1;</code> - */ - boolean containsFields( - java.lang.String key); - /** - * Use {@link #getFieldsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.String, com.google.protobuf.Value> - getFields(); - /** - * <pre> - * Unordered map of dynamically typed values. - * </pre> - * - * <code>map<string, .google.protobuf.Value> fields = 1;</code> - */ - java.util.Map<java.lang.String, com.google.protobuf.Value> - getFieldsMap(); - /** - * <pre> - * Unordered map of dynamically typed values. - * </pre> - * - * <code>map<string, .google.protobuf.Value> fields = 1;</code> - */ - /* nullable */ -com.google.protobuf.Value getFieldsOrDefault( - java.lang.String key, - /* nullable */ -com.google.protobuf.Value defaultValue); - /** - * <pre> - * Unordered map of dynamically typed values. - * </pre> - * - * <code>map<string, .google.protobuf.Value> fields = 1;</code> - */ - com.google.protobuf.Value getFieldsOrThrow( - java.lang.String key); -} diff --git a/src/main/java/com/google/protobuf/StructProto.java b/src/main/java/com/google/protobuf/StructProto.java deleted file mode 100644 index a04a196..0000000 --- a/src/main/java/com/google/protobuf/StructProto.java +++ /dev/null @@ -1,94 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/struct.proto - -package com.google.protobuf; - -public final class StructProto { - private StructProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_Struct_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_Struct_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_Struct_FieldsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_Struct_FieldsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_Value_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_Value_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_ListValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_ListValue_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\034google/protobuf/struct.proto\022\017google.p" + - "rotobuf\"\204\001\n\006Struct\0223\n\006fields\030\001 \003(\0132#.goo" + - "gle.protobuf.Struct.FieldsEntry\032E\n\013Field" + - "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo" + - "gle.protobuf.Value:\0028\001\"\352\001\n\005Value\0220\n\nnull" + - "_value\030\001 \001(\0162\032.google.protobuf.NullValue" + - "H\000\022\026\n\014number_value\030\002 \001(\001H\000\022\026\n\014string_val" + - "ue\030\003 \001(\tH\000\022\024\n\nbool_value\030\004 \001(\010H\000\022/\n\014stru" + - "ct_value\030\005 \001(\0132\027.google.protobuf.StructH" + - "\000\0220\n\nlist_value\030\006 \001(\0132\032.google.protobuf." + - "ListValueH\000B\006\n\004kind\"3\n\tListValue\022&\n\006valu" + - "es\030\001 \003(\0132\026.google.protobuf.Value*\033\n\tNull" + - "Value\022\016\n\nNULL_VALUE\020\000B\177\n\023com.google.prot" + - "obufB\013StructProtoP\001Z/google.golang.org/p" + - "rotobuf/types/known/structpb\370\001\001\242\002\003GPB\252\002\036" + - "Google.Protobuf.WellKnownTypesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_protobuf_Struct_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_protobuf_Struct_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_Struct_descriptor, - new java.lang.String[] { "Fields", }); - internal_static_google_protobuf_Struct_FieldsEntry_descriptor = - internal_static_google_protobuf_Struct_descriptor.getNestedTypes().get(0); - internal_static_google_protobuf_Struct_FieldsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_Struct_FieldsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_protobuf_Value_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_protobuf_Value_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_Value_descriptor, - new java.lang.String[] { "NullValue", "NumberValue", "StringValue", "BoolValue", "StructValue", "ListValue", "Kind", }); - internal_static_google_protobuf_ListValue_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_protobuf_ListValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_ListValue_descriptor, - new java.lang.String[] { "Values", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/com/google/protobuf/Syntax.java b/src/main/java/com/google/protobuf/Syntax.java deleted file mode 100644 index 40a74af..0000000 --- a/src/main/java/com/google/protobuf/Syntax.java +++ /dev/null @@ -1,133 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/type.proto - -package com.google.protobuf; - -/** - * <pre> - * The syntax in which a protocol buffer element is defined. - * </pre> - * - * Protobuf enum {@code google.protobuf.Syntax} - */ -public enum Syntax - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <pre> - * Syntax `proto2`. - * </pre> - * - * <code>SYNTAX_PROTO2 = 0;</code> - */ - SYNTAX_PROTO2(0), - /** - * <pre> - * Syntax `proto3`. - * </pre> - * - * <code>SYNTAX_PROTO3 = 1;</code> - */ - SYNTAX_PROTO3(1), - UNRECOGNIZED(-1), - ; - - /** - * <pre> - * Syntax `proto2`. - * </pre> - * - * <code>SYNTAX_PROTO2 = 0;</code> - */ - public static final int SYNTAX_PROTO2_VALUE = 0; - /** - * <pre> - * Syntax `proto3`. - * </pre> - * - * <code>SYNTAX_PROTO3 = 1;</code> - */ - public static final int SYNTAX_PROTO3_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @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 Syntax valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Syntax forNumber(int value) { - switch (value) { - case 0: return SYNTAX_PROTO2; - case 1: return SYNTAX_PROTO3; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<Syntax> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Syntax> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<Syntax>() { - public Syntax findValueByNumber(int number) { - return Syntax.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - 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.TypeProto.getDescriptor().getEnumTypes().get(0); - } - - private static final Syntax[] VALUES = values(); - - public static Syntax valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Syntax(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.protobuf.Syntax) -} - diff --git a/src/main/java/com/google/protobuf/Timestamp.java b/src/main/java/com/google/protobuf/Timestamp.java deleted file mode 100644 index 1542567..0000000 --- a/src/main/java/com/google/protobuf/Timestamp.java +++ /dev/null @@ -1,740 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/timestamp.proto - -package com.google.protobuf; - -/** - * <pre> - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * Example 5: Compute Timestamp from Java `Instant.now()`. - * - * Instant now = Instant.now(); - * - * Timestamp timestamp = - * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - * .setNanos(now.getNano()).build(); - * - * Example 6: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D - * ) to obtain a formatter capable of generating timestamps in this format. - * </pre> - * - * Protobuf type {@code google.protobuf.Timestamp} - */ -public final class Timestamp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.Timestamp) - TimestampOrBuilder { -private static final long serialVersionUID = 0L; - // Use Timestamp.newBuilder() to construct. - private Timestamp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Timestamp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Timestamp(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.TimestampProto.internal_static_google_protobuf_Timestamp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.TimestampProto.internal_static_google_protobuf_Timestamp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Timestamp.class, com.google.protobuf.Timestamp.Builder.class); - } - - public static final int SECONDS_FIELD_NUMBER = 1; - private long seconds_ = 0L; - /** - * <pre> - * Represents seconds of UTC time since Unix epoch - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - * 9999-12-31T23:59:59Z inclusive. - * </pre> - * - * <code>int64 seconds = 1;</code> - * @return The seconds. - */ - @java.lang.Override - public long getSeconds() { - return seconds_; - } - - public static final int NANOS_FIELD_NUMBER = 2; - private int nanos_ = 0; - /** - * <pre> - * Non-negative fractions of a second at nanosecond resolution. Negative - * second values with fractions must still have non-negative nanos values - * that count forward in time. Must be from 0 to 999,999,999 - * inclusive. - * </pre> - * - * <code>int32 nanos = 2;</code> - * @return The nanos. - */ - @java.lang.Override - public int getNanos() { - return nanos_; - } - - 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 (seconds_ != 0L) { - output.writeInt64(1, seconds_); - } - if (nanos_ != 0) { - output.writeInt32(2, nanos_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (seconds_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, seconds_); - } - if (nanos_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, nanos_); - } - size += getUnknownFields().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.Timestamp)) { - return super.equals(obj); - } - com.google.protobuf.Timestamp other = (com.google.protobuf.Timestamp) obj; - - if (getSeconds() - != other.getSeconds()) return false; - if (getNanos() - != other.getNanos()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SECONDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSeconds()); - hash = (37 * hash) + NANOS_FIELD_NUMBER; - hash = (53 * hash) + getNanos(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.Timestamp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Timestamp 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.Timestamp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Timestamp 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.Timestamp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Timestamp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.Timestamp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Timestamp 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.Timestamp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.Timestamp 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.Timestamp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Timestamp 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.Timestamp 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; - } - /** - * <pre> - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * Example 5: Compute Timestamp from Java `Instant.now()`. - * - * Instant now = Instant.now(); - * - * Timestamp timestamp = - * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - * .setNanos(now.getNano()).build(); - * - * Example 6: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D - * ) to obtain a formatter capable of generating timestamps in this format. - * </pre> - * - * Protobuf type {@code google.protobuf.Timestamp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.Timestamp) - com.google.protobuf.TimestampOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.TimestampProto.internal_static_google_protobuf_Timestamp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.TimestampProto.internal_static_google_protobuf_Timestamp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Timestamp.class, com.google.protobuf.Timestamp.Builder.class); - } - - // Construct using com.google.protobuf.Timestamp.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - seconds_ = 0L; - nanos_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.TimestampProto.internal_static_google_protobuf_Timestamp_descriptor; - } - - @java.lang.Override - public com.google.protobuf.Timestamp getDefaultInstanceForType() { - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.Timestamp build() { - com.google.protobuf.Timestamp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.Timestamp buildPartial() { - com.google.protobuf.Timestamp result = new com.google.protobuf.Timestamp(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.Timestamp result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.seconds_ = seconds_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nanos_ = nanos_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.Timestamp) { - return mergeFrom((com.google.protobuf.Timestamp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.Timestamp other) { - if (other == com.google.protobuf.Timestamp.getDefaultInstance()) return this; - if (other.getSeconds() != 0L) { - setSeconds(other.getSeconds()); - } - if (other.getNanos() != 0) { - setNanos(other.getNanos()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - seconds_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - nanos_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long seconds_ ; - /** - * <pre> - * Represents seconds of UTC time since Unix epoch - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - * 9999-12-31T23:59:59Z inclusive. - * </pre> - * - * <code>int64 seconds = 1;</code> - * @return The seconds. - */ - @java.lang.Override - public long getSeconds() { - return seconds_; - } - /** - * <pre> - * Represents seconds of UTC time since Unix epoch - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - * 9999-12-31T23:59:59Z inclusive. - * </pre> - * - * <code>int64 seconds = 1;</code> - * @param value The seconds to set. - * @return This builder for chaining. - */ - public Builder setSeconds(long value) { - - seconds_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * Represents seconds of UTC time since Unix epoch - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - * 9999-12-31T23:59:59Z inclusive. - * </pre> - * - * <code>int64 seconds = 1;</code> - * @return This builder for chaining. - */ - public Builder clearSeconds() { - bitField0_ = (bitField0_ & ~0x00000001); - seconds_ = 0L; - onChanged(); - return this; - } - - private int nanos_ ; - /** - * <pre> - * Non-negative fractions of a second at nanosecond resolution. Negative - * second values with fractions must still have non-negative nanos values - * that count forward in time. Must be from 0 to 999,999,999 - * inclusive. - * </pre> - * - * <code>int32 nanos = 2;</code> - * @return The nanos. - */ - @java.lang.Override - public int getNanos() { - return nanos_; - } - /** - * <pre> - * Non-negative fractions of a second at nanosecond resolution. Negative - * second values with fractions must still have non-negative nanos values - * that count forward in time. Must be from 0 to 999,999,999 - * inclusive. - * </pre> - * - * <code>int32 nanos = 2;</code> - * @param value The nanos to set. - * @return This builder for chaining. - */ - public Builder setNanos(int value) { - - nanos_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * <pre> - * Non-negative fractions of a second at nanosecond resolution. Negative - * second values with fractions must still have non-negative nanos values - * that count forward in time. Must be from 0 to 999,999,999 - * inclusive. - * </pre> - * - * <code>int32 nanos = 2;</code> - * @return This builder for chaining. - */ - public Builder clearNanos() { - bitField0_ = (bitField0_ & ~0x00000002); - nanos_ = 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.Timestamp) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.Timestamp) - private static final com.google.protobuf.Timestamp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.Timestamp(); - } - - public static com.google.protobuf.Timestamp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Timestamp> - PARSER = new com.google.protobuf.AbstractParser<Timestamp>() { - @java.lang.Override - public Timestamp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<Timestamp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Timestamp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Timestamp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/TimestampOrBuilder.java b/src/main/java/com/google/protobuf/TimestampOrBuilder.java deleted file mode 100644 index 106e78f..0000000 --- a/src/main/java/com/google/protobuf/TimestampOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/timestamp.proto - -package com.google.protobuf; - -public interface TimestampOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.Timestamp) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * Represents seconds of UTC time since Unix epoch - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - * 9999-12-31T23:59:59Z inclusive. - * </pre> - * - * <code>int64 seconds = 1;</code> - * @return The seconds. - */ - long getSeconds(); - - /** - * <pre> - * Non-negative fractions of a second at nanosecond resolution. Negative - * second values with fractions must still have non-negative nanos values - * that count forward in time. Must be from 0 to 999,999,999 - * inclusive. - * </pre> - * - * <code>int32 nanos = 2;</code> - * @return The nanos. - */ - int getNanos(); -} diff --git a/src/main/java/com/google/protobuf/TimestampProto.java b/src/main/java/com/google/protobuf/TimestampProto.java deleted file mode 100644 index 8162973..0000000 --- a/src/main/java/com/google/protobuf/TimestampProto.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/timestamp.proto - -package com.google.protobuf; - -public final class TimestampProto { - private TimestampProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_Timestamp_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_Timestamp_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\037google/protobuf/timestamp.proto\022\017googl" + - "e.protobuf\"+\n\tTimestamp\022\017\n\007seconds\030\001 \001(\003" + - "\022\r\n\005nanos\030\002 \001(\005B\205\001\n\023com.google.protobufB" + - "\016TimestampProtoP\001Z2google.golang.org/pro" + - "tobuf/types/known/timestamppb\370\001\001\242\002\003GPB\252\002" + - "\036Google.Protobuf.WellKnownTypesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_protobuf_Timestamp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_protobuf_Timestamp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_Timestamp_descriptor, - new java.lang.String[] { "Seconds", "Nanos", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/com/google/protobuf/Type.java b/src/main/java/com/google/protobuf/Type.java deleted file mode 100644 index c858ac2..0000000 --- a/src/main/java/com/google/protobuf/Type.java +++ /dev/null @@ -1,2023 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/type.proto - -package com.google.protobuf; - -/** - * <pre> - * A protocol buffer message type. - * </pre> - * - * Protobuf type {@code google.protobuf.Type} - */ -public final class Type extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.Type) - TypeOrBuilder { -private static final long serialVersionUID = 0L; - // Use Type.newBuilder() to construct. - private Type(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Type() { - name_ = ""; - fields_ = java.util.Collections.emptyList(); - oneofs_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - options_ = java.util.Collections.emptyList(); - syntax_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Type(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_Type_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_Type_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Type.class, com.google.protobuf.Type.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * <pre> - * The fully qualified message name. - * </pre> - * - * <code>string name = 1;</code> - * @return The name. - */ - @java.lang.Override - 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(); - name_ = s; - return s; - } - } - /** - * <pre> - * The fully qualified message name. - * </pre> - * - * <code>string name = 1;</code> - * @return The bytes for name. - */ - @java.lang.Override - 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 FIELDS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.Field> fields_; - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.Field> getFieldsList() { - return fields_; - } - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.FieldOrBuilder> - getFieldsOrBuilderList() { - return fields_; - } - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - @java.lang.Override - public int getFieldsCount() { - return fields_.size(); - } - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - @java.lang.Override - public com.google.protobuf.Field getFields(int index) { - return fields_.get(index); - } - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - @java.lang.Override - public com.google.protobuf.FieldOrBuilder getFieldsOrBuilder( - int index) { - return fields_.get(index); - } - - public static final int ONEOFS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList oneofs_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * <pre> - * The list of types appearing in `oneof` definitions in this type. - * </pre> - * - * <code>repeated string oneofs = 3;</code> - * @return A list containing the oneofs. - */ - public com.google.protobuf.ProtocolStringList - getOneofsList() { - return oneofs_; - } - /** - * <pre> - * The list of types appearing in `oneof` definitions in this type. - * </pre> - * - * <code>repeated string oneofs = 3;</code> - * @return The count of oneofs. - */ - public int getOneofsCount() { - return oneofs_.size(); - } - /** - * <pre> - * The list of types appearing in `oneof` definitions in this type. - * </pre> - * - * <code>repeated string oneofs = 3;</code> - * @param index The index of the element to return. - * @return The oneofs at the given index. - */ - public java.lang.String getOneofs(int index) { - return oneofs_.get(index); - } - /** - * <pre> - * The list of types appearing in `oneof` definitions in this type. - * </pre> - * - * <code>repeated string oneofs = 3;</code> - * @param index The index of the value to return. - * @return The bytes of the oneofs at the given index. - */ - public com.google.protobuf.ByteString - getOneofsBytes(int index) { - return oneofs_.getByteString(index); - } - - public static final int OPTIONS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private java.util.List<com.google.protobuf.Option> options_; - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - @java.lang.Override - public java.util.List<com.google.protobuf.Option> getOptionsList() { - return options_; - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - @java.lang.Override - public java.util.List<? extends com.google.protobuf.OptionOrBuilder> - getOptionsOrBuilderList() { - return options_; - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - @java.lang.Override - public int getOptionsCount() { - return options_.size(); - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - @java.lang.Override - public com.google.protobuf.Option getOptions(int index) { - return options_.get(index); - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - @java.lang.Override - public com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( - int index) { - return options_.get(index); - } - - public static final int SOURCE_CONTEXT_FIELD_NUMBER = 5; - private com.google.protobuf.SourceContext sourceContext_; - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - * @return Whether the sourceContext field is set. - */ - @java.lang.Override - public boolean hasSourceContext() { - return sourceContext_ != null; - } - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - * @return The sourceContext. - */ - @java.lang.Override - public com.google.protobuf.SourceContext getSourceContext() { - return sourceContext_ == null ? com.google.protobuf.SourceContext.getDefaultInstance() : sourceContext_; - } - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - */ - @java.lang.Override - public com.google.protobuf.SourceContextOrBuilder getSourceContextOrBuilder() { - return sourceContext_ == null ? com.google.protobuf.SourceContext.getDefaultInstance() : sourceContext_; - } - - public static final int SYNTAX_FIELD_NUMBER = 6; - private int syntax_ = 0; - /** - * <pre> - * The source syntax. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 6;</code> - * @return The enum numeric value on the wire for syntax. - */ - @java.lang.Override public int getSyntaxValue() { - return syntax_; - } - /** - * <pre> - * The source syntax. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 6;</code> - * @return The syntax. - */ - @java.lang.Override public com.google.protobuf.Syntax getSyntax() { - com.google.protobuf.Syntax result = com.google.protobuf.Syntax.forNumber(syntax_); - return result == null ? com.google.protobuf.Syntax.UNRECOGNIZED : result; - } - - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - for (int i = 0; i < fields_.size(); i++) { - output.writeMessage(2, fields_.get(i)); - } - for (int i = 0; i < oneofs_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, oneofs_.getRaw(i)); - } - for (int i = 0; i < options_.size(); i++) { - output.writeMessage(4, options_.get(i)); - } - if (sourceContext_ != null) { - output.writeMessage(5, getSourceContext()); - } - if (syntax_ != com.google.protobuf.Syntax.SYNTAX_PROTO2.getNumber()) { - output.writeEnum(6, syntax_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - for (int i = 0; i < fields_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, fields_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < oneofs_.size(); i++) { - dataSize += computeStringSizeNoTag(oneofs_.getRaw(i)); - } - size += dataSize; - size += 1 * getOneofsList().size(); - } - for (int i = 0; i < options_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, options_.get(i)); - } - if (sourceContext_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSourceContext()); - } - if (syntax_ != com.google.protobuf.Syntax.SYNTAX_PROTO2.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, syntax_); - } - size += getUnknownFields().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.Type)) { - return super.equals(obj); - } - com.google.protobuf.Type other = (com.google.protobuf.Type) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getFieldsList() - .equals(other.getFieldsList())) return false; - if (!getOneofsList() - .equals(other.getOneofsList())) return false; - if (!getOptionsList() - .equals(other.getOptionsList())) return false; - if (hasSourceContext() != other.hasSourceContext()) return false; - if (hasSourceContext()) { - if (!getSourceContext() - .equals(other.getSourceContext())) return false; - } - if (syntax_ != other.syntax_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (getFieldsCount() > 0) { - hash = (37 * hash) + FIELDS_FIELD_NUMBER; - hash = (53 * hash) + getFieldsList().hashCode(); - } - if (getOneofsCount() > 0) { - hash = (37 * hash) + ONEOFS_FIELD_NUMBER; - hash = (53 * hash) + getOneofsList().hashCode(); - } - if (getOptionsCount() > 0) { - hash = (37 * hash) + OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getOptionsList().hashCode(); - } - if (hasSourceContext()) { - hash = (37 * hash) + SOURCE_CONTEXT_FIELD_NUMBER; - hash = (53 * hash) + getSourceContext().hashCode(); - } - hash = (37 * hash) + SYNTAX_FIELD_NUMBER; - hash = (53 * hash) + syntax_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.Type parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Type 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.Type parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Type 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.Type parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Type parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.Type parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Type 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.Type parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.Type 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.Type parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Type 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.Type 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; - } - /** - * <pre> - * A protocol buffer message type. - * </pre> - * - * Protobuf type {@code google.protobuf.Type} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.Type) - com.google.protobuf.TypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_Type_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_Type_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Type.class, com.google.protobuf.Type.Builder.class); - } - - // Construct using com.google.protobuf.Type.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - if (fieldsBuilder_ == null) { - fields_ = java.util.Collections.emptyList(); - } else { - fields_ = null; - fieldsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - oneofs_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - if (optionsBuilder_ == null) { - options_ = java.util.Collections.emptyList(); - } else { - options_ = null; - optionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - sourceContext_ = null; - if (sourceContextBuilder_ != null) { - sourceContextBuilder_.dispose(); - sourceContextBuilder_ = null; - } - syntax_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.TypeProto.internal_static_google_protobuf_Type_descriptor; - } - - @java.lang.Override - public com.google.protobuf.Type getDefaultInstanceForType() { - return com.google.protobuf.Type.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.Type build() { - com.google.protobuf.Type result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.Type buildPartial() { - com.google.protobuf.Type result = new com.google.protobuf.Type(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.protobuf.Type result) { - if (fieldsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - fields_ = java.util.Collections.unmodifiableList(fields_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.fields_ = fields_; - } else { - result.fields_ = fieldsBuilder_.build(); - } - if (optionsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - options_ = java.util.Collections.unmodifiableList(options_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.options_ = options_; - } else { - result.options_ = optionsBuilder_.build(); - } - } - - private void buildPartial0(com.google.protobuf.Type result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - oneofs_.makeImmutable(); - result.oneofs_ = oneofs_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.sourceContext_ = sourceContextBuilder_ == null - ? sourceContext_ - : sourceContextBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.syntax_ = syntax_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.Type) { - return mergeFrom((com.google.protobuf.Type)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.Type other) { - if (other == com.google.protobuf.Type.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (fieldsBuilder_ == null) { - if (!other.fields_.isEmpty()) { - if (fields_.isEmpty()) { - fields_ = other.fields_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureFieldsIsMutable(); - fields_.addAll(other.fields_); - } - onChanged(); - } - } else { - if (!other.fields_.isEmpty()) { - if (fieldsBuilder_.isEmpty()) { - fieldsBuilder_.dispose(); - fieldsBuilder_ = null; - fields_ = other.fields_; - bitField0_ = (bitField0_ & ~0x00000002); - fieldsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFieldsFieldBuilder() : null; - } else { - fieldsBuilder_.addAllMessages(other.fields_); - } - } - } - if (!other.oneofs_.isEmpty()) { - if (oneofs_.isEmpty()) { - oneofs_ = other.oneofs_; - bitField0_ |= 0x00000004; - } else { - ensureOneofsIsMutable(); - oneofs_.addAll(other.oneofs_); - } - onChanged(); - } - if (optionsBuilder_ == null) { - if (!other.options_.isEmpty()) { - if (options_.isEmpty()) { - options_ = other.options_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureOptionsIsMutable(); - options_.addAll(other.options_); - } - onChanged(); - } - } else { - if (!other.options_.isEmpty()) { - if (optionsBuilder_.isEmpty()) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - options_ = other.options_; - bitField0_ = (bitField0_ & ~0x00000008); - optionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOptionsFieldBuilder() : null; - } else { - optionsBuilder_.addAllMessages(other.options_); - } - } - } - if (other.hasSourceContext()) { - mergeSourceContext(other.getSourceContext()); - } - if (other.syntax_ != 0) { - setSyntaxValue(other.getSyntaxValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.protobuf.Field m = - input.readMessage( - com.google.protobuf.Field.parser(), - extensionRegistry); - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.add(m); - } else { - fieldsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureOneofsIsMutable(); - oneofs_.add(s); - break; - } // case 26 - case 34: { - com.google.protobuf.Option m = - input.readMessage( - com.google.protobuf.Option.parser(), - extensionRegistry); - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.add(m); - } else { - optionsBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: { - input.readMessage( - getSourceContextFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - syntax_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * <pre> - * The fully qualified message name. - * </pre> - * - * <code>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(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <pre> - * The fully qualified message name. - * </pre> - * - * <code>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; - } - } - /** - * <pre> - * The fully qualified message name. - * </pre> - * - * <code>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(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * The fully qualified message name. - * </pre> - * - * <code>string name = 1;</code> - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * <pre> - * The fully qualified message name. - * </pre> - * - * <code>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(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.util.List<com.google.protobuf.Field> fields_ = - java.util.Collections.emptyList(); - private void ensureFieldsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - fields_ = new java.util.ArrayList<com.google.protobuf.Field>(fields_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Field, com.google.protobuf.Field.Builder, com.google.protobuf.FieldOrBuilder> fieldsBuilder_; - - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - public java.util.List<com.google.protobuf.Field> getFieldsList() { - if (fieldsBuilder_ == null) { - return java.util.Collections.unmodifiableList(fields_); - } else { - return fieldsBuilder_.getMessageList(); - } - } - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - public int getFieldsCount() { - if (fieldsBuilder_ == null) { - return fields_.size(); - } else { - return fieldsBuilder_.getCount(); - } - } - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - public com.google.protobuf.Field getFields(int index) { - if (fieldsBuilder_ == null) { - return fields_.get(index); - } else { - return fieldsBuilder_.getMessage(index); - } - } - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - public Builder setFields( - int index, com.google.protobuf.Field value) { - if (fieldsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.set(index, value); - onChanged(); - } else { - fieldsBuilder_.setMessage(index, value); - } - return this; - } - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - public Builder setFields( - int index, com.google.protobuf.Field.Builder builderForValue) { - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.set(index, builderForValue.build()); - onChanged(); - } else { - fieldsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - public Builder addFields(com.google.protobuf.Field value) { - if (fieldsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.add(value); - onChanged(); - } else { - fieldsBuilder_.addMessage(value); - } - return this; - } - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - public Builder addFields( - int index, com.google.protobuf.Field value) { - if (fieldsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.add(index, value); - onChanged(); - } else { - fieldsBuilder_.addMessage(index, value); - } - return this; - } - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - public Builder addFields( - com.google.protobuf.Field.Builder builderForValue) { - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.add(builderForValue.build()); - onChanged(); - } else { - fieldsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - public Builder addFields( - int index, com.google.protobuf.Field.Builder builderForValue) { - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.add(index, builderForValue.build()); - onChanged(); - } else { - fieldsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - public Builder addAllFields( - java.lang.Iterable<? extends com.google.protobuf.Field> values) { - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fields_); - onChanged(); - } else { - fieldsBuilder_.addAllMessages(values); - } - return this; - } - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - public Builder clearFields() { - if (fieldsBuilder_ == null) { - fields_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - fieldsBuilder_.clear(); - } - return this; - } - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - public Builder removeFields(int index) { - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.remove(index); - onChanged(); - } else { - fieldsBuilder_.remove(index); - } - return this; - } - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - public com.google.protobuf.Field.Builder getFieldsBuilder( - int index) { - return getFieldsFieldBuilder().getBuilder(index); - } - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - public com.google.protobuf.FieldOrBuilder getFieldsOrBuilder( - int index) { - if (fieldsBuilder_ == null) { - return fields_.get(index); } else { - return fieldsBuilder_.getMessageOrBuilder(index); - } - } - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - public java.util.List<? extends com.google.protobuf.FieldOrBuilder> - getFieldsOrBuilderList() { - if (fieldsBuilder_ != null) { - return fieldsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(fields_); - } - } - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - public com.google.protobuf.Field.Builder addFieldsBuilder() { - return getFieldsFieldBuilder().addBuilder( - com.google.protobuf.Field.getDefaultInstance()); - } - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - public com.google.protobuf.Field.Builder addFieldsBuilder( - int index) { - return getFieldsFieldBuilder().addBuilder( - index, com.google.protobuf.Field.getDefaultInstance()); - } - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - public java.util.List<com.google.protobuf.Field.Builder> - getFieldsBuilderList() { - return getFieldsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Field, com.google.protobuf.Field.Builder, com.google.protobuf.FieldOrBuilder> - getFieldsFieldBuilder() { - if (fieldsBuilder_ == null) { - fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Field, com.google.protobuf.Field.Builder, com.google.protobuf.FieldOrBuilder>( - fields_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - fields_ = null; - } - return fieldsBuilder_; - } - - private com.google.protobuf.LazyStringArrayList oneofs_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureOneofsIsMutable() { - if (!oneofs_.isModifiable()) { - oneofs_ = new com.google.protobuf.LazyStringArrayList(oneofs_); - } - bitField0_ |= 0x00000004; - } - /** - * <pre> - * The list of types appearing in `oneof` definitions in this type. - * </pre> - * - * <code>repeated string oneofs = 3;</code> - * @return A list containing the oneofs. - */ - public com.google.protobuf.ProtocolStringList - getOneofsList() { - oneofs_.makeImmutable(); - return oneofs_; - } - /** - * <pre> - * The list of types appearing in `oneof` definitions in this type. - * </pre> - * - * <code>repeated string oneofs = 3;</code> - * @return The count of oneofs. - */ - public int getOneofsCount() { - return oneofs_.size(); - } - /** - * <pre> - * The list of types appearing in `oneof` definitions in this type. - * </pre> - * - * <code>repeated string oneofs = 3;</code> - * @param index The index of the element to return. - * @return The oneofs at the given index. - */ - public java.lang.String getOneofs(int index) { - return oneofs_.get(index); - } - /** - * <pre> - * The list of types appearing in `oneof` definitions in this type. - * </pre> - * - * <code>repeated string oneofs = 3;</code> - * @param index The index of the value to return. - * @return The bytes of the oneofs at the given index. - */ - public com.google.protobuf.ByteString - getOneofsBytes(int index) { - return oneofs_.getByteString(index); - } - /** - * <pre> - * The list of types appearing in `oneof` definitions in this type. - * </pre> - * - * <code>repeated string oneofs = 3;</code> - * @param index The index to set the value at. - * @param value The oneofs to set. - * @return This builder for chaining. - */ - public Builder setOneofs( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureOneofsIsMutable(); - oneofs_.set(index, value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <pre> - * The list of types appearing in `oneof` definitions in this type. - * </pre> - * - * <code>repeated string oneofs = 3;</code> - * @param value The oneofs to add. - * @return This builder for chaining. - */ - public Builder addOneofs( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureOneofsIsMutable(); - oneofs_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <pre> - * The list of types appearing in `oneof` definitions in this type. - * </pre> - * - * <code>repeated string oneofs = 3;</code> - * @param values The oneofs to add. - * @return This builder for chaining. - */ - public Builder addAllOneofs( - java.lang.Iterable<java.lang.String> values) { - ensureOneofsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, oneofs_); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * <pre> - * The list of types appearing in `oneof` definitions in this type. - * </pre> - * - * <code>repeated string oneofs = 3;</code> - * @return This builder for chaining. - */ - public Builder clearOneofs() { - oneofs_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; - onChanged(); - return this; - } - /** - * <pre> - * The list of types appearing in `oneof` definitions in this type. - * </pre> - * - * <code>repeated string oneofs = 3;</code> - * @param value The bytes of the oneofs to add. - * @return This builder for chaining. - */ - public Builder addOneofsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureOneofsIsMutable(); - oneofs_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.util.List<com.google.protobuf.Option> options_ = - java.util.Collections.emptyList(); - private void ensureOptionsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - options_ = new java.util.ArrayList<com.google.protobuf.Option>(options_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Option, com.google.protobuf.Option.Builder, com.google.protobuf.OptionOrBuilder> optionsBuilder_; - - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - public java.util.List<com.google.protobuf.Option> getOptionsList() { - if (optionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(options_); - } else { - return optionsBuilder_.getMessageList(); - } - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - public int getOptionsCount() { - if (optionsBuilder_ == null) { - return options_.size(); - } else { - return optionsBuilder_.getCount(); - } - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - public com.google.protobuf.Option getOptions(int index) { - if (optionsBuilder_ == null) { - return options_.get(index); - } else { - return optionsBuilder_.getMessage(index); - } - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - public Builder setOptions( - int index, com.google.protobuf.Option value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionsIsMutable(); - options_.set(index, value); - onChanged(); - } else { - optionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - public Builder setOptions( - int index, com.google.protobuf.Option.Builder builderForValue) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.set(index, builderForValue.build()); - onChanged(); - } else { - optionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - public Builder addOptions(com.google.protobuf.Option value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionsIsMutable(); - options_.add(value); - onChanged(); - } else { - optionsBuilder_.addMessage(value); - } - return this; - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - public Builder addOptions( - int index, com.google.protobuf.Option value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionsIsMutable(); - options_.add(index, value); - onChanged(); - } else { - optionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - public Builder addOptions( - com.google.protobuf.Option.Builder builderForValue) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.add(builderForValue.build()); - onChanged(); - } else { - optionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - public Builder addOptions( - int index, com.google.protobuf.Option.Builder builderForValue) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.add(index, builderForValue.build()); - onChanged(); - } else { - optionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - public Builder addAllOptions( - java.lang.Iterable<? extends com.google.protobuf.Option> values) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, options_); - onChanged(); - } else { - optionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - public Builder clearOptions() { - if (optionsBuilder_ == null) { - options_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - optionsBuilder_.clear(); - } - return this; - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - public Builder removeOptions(int index) { - if (optionsBuilder_ == null) { - ensureOptionsIsMutable(); - options_.remove(index); - onChanged(); - } else { - optionsBuilder_.remove(index); - } - return this; - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - public com.google.protobuf.Option.Builder getOptionsBuilder( - int index) { - return getOptionsFieldBuilder().getBuilder(index); - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - public com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( - int index) { - if (optionsBuilder_ == null) { - return options_.get(index); } else { - return optionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - public java.util.List<? extends com.google.protobuf.OptionOrBuilder> - getOptionsOrBuilderList() { - if (optionsBuilder_ != null) { - return optionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(options_); - } - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - public com.google.protobuf.Option.Builder addOptionsBuilder() { - return getOptionsFieldBuilder().addBuilder( - com.google.protobuf.Option.getDefaultInstance()); - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - public com.google.protobuf.Option.Builder addOptionsBuilder( - int index) { - return getOptionsFieldBuilder().addBuilder( - index, com.google.protobuf.Option.getDefaultInstance()); - } - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - public java.util.List<com.google.protobuf.Option.Builder> - getOptionsBuilderList() { - return getOptionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Option, com.google.protobuf.Option.Builder, com.google.protobuf.OptionOrBuilder> - getOptionsFieldBuilder() { - if (optionsBuilder_ == null) { - optionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Option, com.google.protobuf.Option.Builder, com.google.protobuf.OptionOrBuilder>( - options_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - options_ = null; - } - return optionsBuilder_; - } - - private com.google.protobuf.SourceContext sourceContext_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.SourceContext, com.google.protobuf.SourceContext.Builder, com.google.protobuf.SourceContextOrBuilder> sourceContextBuilder_; - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - * @return Whether the sourceContext field is set. - */ - public boolean hasSourceContext() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - * @return The sourceContext. - */ - public com.google.protobuf.SourceContext getSourceContext() { - if (sourceContextBuilder_ == null) { - return sourceContext_ == null ? com.google.protobuf.SourceContext.getDefaultInstance() : sourceContext_; - } else { - return sourceContextBuilder_.getMessage(); - } - } - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - */ - public Builder setSourceContext(com.google.protobuf.SourceContext value) { - if (sourceContextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sourceContext_ = value; - } else { - sourceContextBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - */ - public Builder setSourceContext( - com.google.protobuf.SourceContext.Builder builderForValue) { - if (sourceContextBuilder_ == null) { - sourceContext_ = builderForValue.build(); - } else { - sourceContextBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - */ - public Builder mergeSourceContext(com.google.protobuf.SourceContext value) { - if (sourceContextBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - sourceContext_ != null && - sourceContext_ != com.google.protobuf.SourceContext.getDefaultInstance()) { - getSourceContextBuilder().mergeFrom(value); - } else { - sourceContext_ = value; - } - } else { - sourceContextBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - */ - public Builder clearSourceContext() { - bitField0_ = (bitField0_ & ~0x00000010); - sourceContext_ = null; - if (sourceContextBuilder_ != null) { - sourceContextBuilder_.dispose(); - sourceContextBuilder_ = null; - } - onChanged(); - return this; - } - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - */ - public com.google.protobuf.SourceContext.Builder getSourceContextBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getSourceContextFieldBuilder().getBuilder(); - } - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - */ - public com.google.protobuf.SourceContextOrBuilder getSourceContextOrBuilder() { - if (sourceContextBuilder_ != null) { - return sourceContextBuilder_.getMessageOrBuilder(); - } else { - return sourceContext_ == null ? - com.google.protobuf.SourceContext.getDefaultInstance() : sourceContext_; - } - } - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.SourceContext, com.google.protobuf.SourceContext.Builder, com.google.protobuf.SourceContextOrBuilder> - getSourceContextFieldBuilder() { - if (sourceContextBuilder_ == null) { - sourceContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.SourceContext, com.google.protobuf.SourceContext.Builder, com.google.protobuf.SourceContextOrBuilder>( - getSourceContext(), - getParentForChildren(), - isClean()); - sourceContext_ = null; - } - return sourceContextBuilder_; - } - - private int syntax_ = 0; - /** - * <pre> - * The source syntax. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 6;</code> - * @return The enum numeric value on the wire for syntax. - */ - @java.lang.Override public int getSyntaxValue() { - return syntax_; - } - /** - * <pre> - * The source syntax. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 6;</code> - * @param value The enum numeric value on the wire for syntax to set. - * @return This builder for chaining. - */ - public Builder setSyntaxValue(int value) { - syntax_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * <pre> - * The source syntax. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 6;</code> - * @return The syntax. - */ - @java.lang.Override - public com.google.protobuf.Syntax getSyntax() { - com.google.protobuf.Syntax result = com.google.protobuf.Syntax.forNumber(syntax_); - return result == null ? com.google.protobuf.Syntax.UNRECOGNIZED : result; - } - /** - * <pre> - * The source syntax. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 6;</code> - * @param value The syntax to set. - * @return This builder for chaining. - */ - public Builder setSyntax(com.google.protobuf.Syntax value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - syntax_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <pre> - * The source syntax. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 6;</code> - * @return This builder for chaining. - */ - public Builder clearSyntax() { - bitField0_ = (bitField0_ & ~0x00000020); - syntax_ = 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.Type) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.Type) - private static final com.google.protobuf.Type DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.Type(); - } - - public static com.google.protobuf.Type getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Type> - PARSER = new com.google.protobuf.AbstractParser<Type>() { - @java.lang.Override - public Type parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<Type> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Type> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Type getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/TypeOrBuilder.java b/src/main/java/com/google/protobuf/TypeOrBuilder.java deleted file mode 100644 index 7c547df..0000000 --- a/src/main/java/com/google/protobuf/TypeOrBuilder.java +++ /dev/null @@ -1,204 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/type.proto - -package com.google.protobuf; - -public interface TypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.Type) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * The fully qualified message name. - * </pre> - * - * <code>string name = 1;</code> - * @return The name. - */ - java.lang.String getName(); - /** - * <pre> - * The fully qualified message name. - * </pre> - * - * <code>string name = 1;</code> - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - java.util.List<com.google.protobuf.Field> - getFieldsList(); - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - com.google.protobuf.Field getFields(int index); - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - int getFieldsCount(); - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - java.util.List<? extends com.google.protobuf.FieldOrBuilder> - getFieldsOrBuilderList(); - /** - * <pre> - * The list of fields. - * </pre> - * - * <code>repeated .google.protobuf.Field fields = 2;</code> - */ - com.google.protobuf.FieldOrBuilder getFieldsOrBuilder( - int index); - - /** - * <pre> - * The list of types appearing in `oneof` definitions in this type. - * </pre> - * - * <code>repeated string oneofs = 3;</code> - * @return A list containing the oneofs. - */ - java.util.List<java.lang.String> - getOneofsList(); - /** - * <pre> - * The list of types appearing in `oneof` definitions in this type. - * </pre> - * - * <code>repeated string oneofs = 3;</code> - * @return The count of oneofs. - */ - int getOneofsCount(); - /** - * <pre> - * The list of types appearing in `oneof` definitions in this type. - * </pre> - * - * <code>repeated string oneofs = 3;</code> - * @param index The index of the element to return. - * @return The oneofs at the given index. - */ - java.lang.String getOneofs(int index); - /** - * <pre> - * The list of types appearing in `oneof` definitions in this type. - * </pre> - * - * <code>repeated string oneofs = 3;</code> - * @param index The index of the value to return. - * @return The bytes of the oneofs at the given index. - */ - com.google.protobuf.ByteString - getOneofsBytes(int index); - - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - java.util.List<com.google.protobuf.Option> - getOptionsList(); - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - com.google.protobuf.Option getOptions(int index); - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - int getOptionsCount(); - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - java.util.List<? extends com.google.protobuf.OptionOrBuilder> - getOptionsOrBuilderList(); - /** - * <pre> - * The protocol buffer options. - * </pre> - * - * <code>repeated .google.protobuf.Option options = 4;</code> - */ - com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( - int index); - - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - * @return Whether the sourceContext field is set. - */ - boolean hasSourceContext(); - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - * @return The sourceContext. - */ - com.google.protobuf.SourceContext getSourceContext(); - /** - * <pre> - * The source context. - * </pre> - * - * <code>.google.protobuf.SourceContext source_context = 5;</code> - */ - com.google.protobuf.SourceContextOrBuilder getSourceContextOrBuilder(); - - /** - * <pre> - * The source syntax. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 6;</code> - * @return The enum numeric value on the wire for syntax. - */ - int getSyntaxValue(); - /** - * <pre> - * The source syntax. - * </pre> - * - * <code>.google.protobuf.Syntax syntax = 6;</code> - * @return The syntax. - */ - com.google.protobuf.Syntax getSyntax(); -} diff --git a/src/main/java/com/google/protobuf/TypeProto.java b/src/main/java/com/google/protobuf/TypeProto.java deleted file mode 100644 index 3ef2707..0000000 --- a/src/main/java/com/google/protobuf/TypeProto.java +++ /dev/null @@ -1,133 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/type.proto - -package com.google.protobuf; - -public final class TypeProto { - private TypeProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_Type_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_Type_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_Field_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_Field_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_Enum_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_Enum_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_EnumValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_EnumValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_Option_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_Option_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\032google/protobuf/type.proto\022\017google.pro" + - "tobuf\032\031google/protobuf/any.proto\032$google" + - "/protobuf/source_context.proto\"\327\001\n\004Type\022" + - "\014\n\004name\030\001 \001(\t\022&\n\006fields\030\002 \003(\0132\026.google.p" + - "rotobuf.Field\022\016\n\006oneofs\030\003 \003(\t\022(\n\007options" + - "\030\004 \003(\0132\027.google.protobuf.Option\0226\n\016sourc" + - "e_context\030\005 \001(\0132\036.google.protobuf.Source" + - "Context\022\'\n\006syntax\030\006 \001(\0162\027.google.protobu" + - "f.Syntax\"\325\005\n\005Field\022)\n\004kind\030\001 \001(\0162\033.googl" + - "e.protobuf.Field.Kind\0227\n\013cardinality\030\002 \001" + - "(\0162\".google.protobuf.Field.Cardinality\022\016" + - "\n\006number\030\003 \001(\005\022\014\n\004name\030\004 \001(\t\022\020\n\010type_url" + - "\030\006 \001(\t\022\023\n\013oneof_index\030\007 \001(\005\022\016\n\006packed\030\010 " + - "\001(\010\022(\n\007options\030\t \003(\0132\027.google.protobuf.O" + - "ption\022\021\n\tjson_name\030\n \001(\t\022\025\n\rdefault_valu" + - "e\030\013 \001(\t\"\310\002\n\004Kind\022\020\n\014TYPE_UNKNOWN\020\000\022\017\n\013TY" + - "PE_DOUBLE\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE_INT6" + - "4\020\003\022\017\n\013TYPE_UINT64\020\004\022\016\n\nTYPE_INT32\020\005\022\020\n\014" + - "TYPE_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\013TY" + - "PE_UINT32\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_SFIXE" + - "D32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017\n\013TYPE_SINT32\020" + - "\021\022\017\n\013TYPE_SINT64\020\022\"t\n\013Cardinality\022\027\n\023CAR" + - "DINALITY_UNKNOWN\020\000\022\030\n\024CARDINALITY_OPTION" + - "AL\020\001\022\030\n\024CARDINALITY_REQUIRED\020\002\022\030\n\024CARDIN" + - "ALITY_REPEATED\020\003\"\316\001\n\004Enum\022\014\n\004name\030\001 \001(\t\022" + - "-\n\tenumvalue\030\002 \003(\0132\032.google.protobuf.Enu" + - "mValue\022(\n\007options\030\003 \003(\0132\027.google.protobu" + - "f.Option\0226\n\016source_context\030\004 \001(\0132\036.googl" + - "e.protobuf.SourceContext\022\'\n\006syntax\030\005 \001(\016" + - "2\027.google.protobuf.Syntax\"S\n\tEnumValue\022\014" + - "\n\004name\030\001 \001(\t\022\016\n\006number\030\002 \001(\005\022(\n\007options\030" + - "\003 \003(\0132\027.google.protobuf.Option\";\n\006Option" + - "\022\014\n\004name\030\001 \001(\t\022#\n\005value\030\002 \001(\0132\024.google.p" + - "rotobuf.Any*.\n\006Syntax\022\021\n\rSYNTAX_PROTO2\020\000" + - "\022\021\n\rSYNTAX_PROTO3\020\001B{\n\023com.google.protob" + - "ufB\tTypeProtoP\001Z-google.golang.org/proto" + - "buf/types/known/typepb\370\001\001\242\002\003GPB\252\002\036Google" + - ".Protobuf.WellKnownTypesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.SourceContextProto.getDescriptor(), - }); - internal_static_google_protobuf_Type_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_protobuf_Type_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_Type_descriptor, - new java.lang.String[] { "Name", "Fields", "Oneofs", "Options", "SourceContext", "Syntax", }); - internal_static_google_protobuf_Field_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_protobuf_Field_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_Field_descriptor, - new java.lang.String[] { "Kind", "Cardinality", "Number", "Name", "TypeUrl", "OneofIndex", "Packed", "Options", "JsonName", "DefaultValue", }); - internal_static_google_protobuf_Enum_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_protobuf_Enum_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_Enum_descriptor, - new java.lang.String[] { "Name", "Enumvalue", "Options", "SourceContext", "Syntax", }); - internal_static_google_protobuf_EnumValue_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_protobuf_EnumValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_EnumValue_descriptor, - new java.lang.String[] { "Name", "Number", "Options", }); - internal_static_google_protobuf_Option_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_protobuf_Option_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_Option_descriptor, - new java.lang.String[] { "Name", "Value", }); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.SourceContextProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/com/google/protobuf/UInt32Value.java b/src/main/java/com/google/protobuf/UInt32Value.java deleted file mode 100644 index 1e8a879..0000000 --- a/src/main/java/com/google/protobuf/UInt32Value.java +++ /dev/null @@ -1,469 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package com.google.protobuf; - -/** - * <pre> - * Wrapper message for `uint32`. - * - * The JSON representation for `UInt32Value` is JSON number. - * </pre> - * - * Protobuf type {@code google.protobuf.UInt32Value} - */ -public final class UInt32Value extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.UInt32Value) - UInt32ValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use UInt32Value.newBuilder() to construct. - private UInt32Value(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private UInt32Value() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UInt32Value(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_UInt32Value_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_UInt32Value_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.UInt32Value.class, com.google.protobuf.UInt32Value.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private int value_ = 0; - /** - * <pre> - * The uint32 value. - * </pre> - * - * <code>uint32 value = 1;</code> - * @return The value. - */ - @java.lang.Override - public int getValue() { - return value_; - } - - 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 (value_ != 0) { - output.writeUInt32(1, value_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (value_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, value_); - } - size += getUnknownFields().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.UInt32Value)) { - return super.equals(obj); - } - com.google.protobuf.UInt32Value other = (com.google.protobuf.UInt32Value) obj; - - if (getValue() - != other.getValue()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.UInt32Value parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.UInt32Value 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.UInt32Value parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.UInt32Value 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.UInt32Value parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.UInt32Value parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.UInt32Value parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.UInt32Value 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.UInt32Value parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.UInt32Value 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.UInt32Value parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.UInt32Value 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.UInt32Value 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; - } - /** - * <pre> - * Wrapper message for `uint32`. - * - * The JSON representation for `UInt32Value` is JSON number. - * </pre> - * - * Protobuf type {@code google.protobuf.UInt32Value} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.UInt32Value) - com.google.protobuf.UInt32ValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_UInt32Value_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_UInt32Value_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.UInt32Value.class, com.google.protobuf.UInt32Value.Builder.class); - } - - // Construct using com.google.protobuf.UInt32Value.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - value_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_UInt32Value_descriptor; - } - - @java.lang.Override - public com.google.protobuf.UInt32Value getDefaultInstanceForType() { - return com.google.protobuf.UInt32Value.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.UInt32Value build() { - com.google.protobuf.UInt32Value result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.UInt32Value buildPartial() { - com.google.protobuf.UInt32Value result = new com.google.protobuf.UInt32Value(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.UInt32Value result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.value_ = value_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.UInt32Value) { - return mergeFrom((com.google.protobuf.UInt32Value)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.UInt32Value other) { - if (other == com.google.protobuf.UInt32Value.getDefaultInstance()) return this; - if (other.getValue() != 0) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - value_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int value_ ; - /** - * <pre> - * The uint32 value. - * </pre> - * - * <code>uint32 value = 1;</code> - * @return The value. - */ - @java.lang.Override - public int getValue() { - return value_; - } - /** - * <pre> - * The uint32 value. - * </pre> - * - * <code>uint32 value = 1;</code> - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(int value) { - - value_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * The uint32 value. - * </pre> - * - * <code>uint32 value = 1;</code> - * @return This builder for chaining. - */ - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000001); - value_ = 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.UInt32Value) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.UInt32Value) - private static final com.google.protobuf.UInt32Value DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.UInt32Value(); - } - - public static com.google.protobuf.UInt32Value getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static com.google.protobuf.UInt32Value of(int value) { - return newBuilder().setValue(value).build(); - } - - private static final com.google.protobuf.Parser<UInt32Value> - PARSER = new com.google.protobuf.AbstractParser<UInt32Value>() { - @java.lang.Override - public UInt32Value parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<UInt32Value> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<UInt32Value> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.UInt32Value getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/UInt32ValueOrBuilder.java b/src/main/java/com/google/protobuf/UInt32ValueOrBuilder.java deleted file mode 100644 index 7bf1dbd..0000000 --- a/src/main/java/com/google/protobuf/UInt32ValueOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package com.google.protobuf; - -public interface UInt32ValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.UInt32Value) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * The uint32 value. - * </pre> - * - * <code>uint32 value = 1;</code> - * @return The value. - */ - int getValue(); -} diff --git a/src/main/java/com/google/protobuf/UInt64Value.java b/src/main/java/com/google/protobuf/UInt64Value.java deleted file mode 100644 index e04fbf6..0000000 --- a/src/main/java/com/google/protobuf/UInt64Value.java +++ /dev/null @@ -1,470 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package com.google.protobuf; - -/** - * <pre> - * Wrapper message for `uint64`. - * - * The JSON representation for `UInt64Value` is JSON string. - * </pre> - * - * Protobuf type {@code google.protobuf.UInt64Value} - */ -public final class UInt64Value extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.UInt64Value) - UInt64ValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use UInt64Value.newBuilder() to construct. - private UInt64Value(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private UInt64Value() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UInt64Value(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_UInt64Value_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_UInt64Value_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.UInt64Value.class, com.google.protobuf.UInt64Value.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private long value_ = 0L; - /** - * <pre> - * The uint64 value. - * </pre> - * - * <code>uint64 value = 1;</code> - * @return The value. - */ - @java.lang.Override - public long getValue() { - return value_; - } - - 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 (value_ != 0L) { - output.writeUInt64(1, value_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (value_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, value_); - } - size += getUnknownFields().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.UInt64Value)) { - return super.equals(obj); - } - com.google.protobuf.UInt64Value other = (com.google.protobuf.UInt64Value) obj; - - if (getValue() - != other.getValue()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getValue()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.UInt64Value parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.UInt64Value 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.UInt64Value parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.UInt64Value 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.UInt64Value parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.UInt64Value parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.UInt64Value parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.UInt64Value 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.UInt64Value parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.UInt64Value 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.UInt64Value parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.UInt64Value 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.UInt64Value 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; - } - /** - * <pre> - * Wrapper message for `uint64`. - * - * The JSON representation for `UInt64Value` is JSON string. - * </pre> - * - * Protobuf type {@code google.protobuf.UInt64Value} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.UInt64Value) - com.google.protobuf.UInt64ValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_UInt64Value_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_UInt64Value_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.UInt64Value.class, com.google.protobuf.UInt64Value.Builder.class); - } - - // Construct using com.google.protobuf.UInt64Value.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - value_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.WrappersProto.internal_static_google_protobuf_UInt64Value_descriptor; - } - - @java.lang.Override - public com.google.protobuf.UInt64Value getDefaultInstanceForType() { - return com.google.protobuf.UInt64Value.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.UInt64Value build() { - com.google.protobuf.UInt64Value result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.UInt64Value buildPartial() { - com.google.protobuf.UInt64Value result = new com.google.protobuf.UInt64Value(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.UInt64Value result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.value_ = value_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.UInt64Value) { - return mergeFrom((com.google.protobuf.UInt64Value)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.UInt64Value other) { - if (other == com.google.protobuf.UInt64Value.getDefaultInstance()) return this; - if (other.getValue() != 0L) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - value_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long value_ ; - /** - * <pre> - * The uint64 value. - * </pre> - * - * <code>uint64 value = 1;</code> - * @return The value. - */ - @java.lang.Override - public long getValue() { - return value_; - } - /** - * <pre> - * The uint64 value. - * </pre> - * - * <code>uint64 value = 1;</code> - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(long value) { - - value_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * <pre> - * The uint64 value. - * </pre> - * - * <code>uint64 value = 1;</code> - * @return This builder for chaining. - */ - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000001); - value_ = 0L; - 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.UInt64Value) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.UInt64Value) - private static final com.google.protobuf.UInt64Value DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.UInt64Value(); - } - - public static com.google.protobuf.UInt64Value getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static com.google.protobuf.UInt64Value of(long value) { - return newBuilder().setValue(value).build(); - } - - private static final com.google.protobuf.Parser<UInt64Value> - PARSER = new com.google.protobuf.AbstractParser<UInt64Value>() { - @java.lang.Override - public UInt64Value parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<UInt64Value> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<UInt64Value> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.UInt64Value getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/UInt64ValueOrBuilder.java b/src/main/java/com/google/protobuf/UInt64ValueOrBuilder.java deleted file mode 100644 index a6893aa..0000000 --- a/src/main/java/com/google/protobuf/UInt64ValueOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package com.google.protobuf; - -public interface UInt64ValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.UInt64Value) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * The uint64 value. - * </pre> - * - * <code>uint64 value = 1;</code> - * @return The value. - */ - long getValue(); -} diff --git a/src/main/java/com/google/protobuf/Value.java b/src/main/java/com/google/protobuf/Value.java deleted file mode 100644 index 4112ba1..0000000 --- a/src/main/java/com/google/protobuf/Value.java +++ /dev/null @@ -1,1582 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/struct.proto - -package com.google.protobuf; - -/** - * <pre> - * `Value` represents a dynamically typed value which can be either - * null, a number, a string, a boolean, a recursive struct value, or a - * list of values. A producer of value is expected to set one of these - * variants. Absence of any variant indicates an error. - * - * The JSON representation for `Value` is JSON value. - * </pre> - * - * Protobuf type {@code google.protobuf.Value} - */ -public final class Value extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.Value) - ValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use Value.newBuilder() to construct. - private Value(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Value() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Value(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.StructProto.internal_static_google_protobuf_Value_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.StructProto.internal_static_google_protobuf_Value_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Value.class, com.google.protobuf.Value.Builder.class); - } - - private int kindCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object kind_; - public enum KindCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - NULL_VALUE(1), - NUMBER_VALUE(2), - STRING_VALUE(3), - BOOL_VALUE(4), - STRUCT_VALUE(5), - LIST_VALUE(6), - KIND_NOT_SET(0); - private final int value; - private KindCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static KindCase valueOf(int value) { - return forNumber(value); - } - - public static KindCase forNumber(int value) { - switch (value) { - case 1: return NULL_VALUE; - case 2: return NUMBER_VALUE; - case 3: return STRING_VALUE; - case 4: return BOOL_VALUE; - case 5: return STRUCT_VALUE; - case 6: return LIST_VALUE; - case 0: return KIND_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public KindCase - getKindCase() { - return KindCase.forNumber( - kindCase_); - } - - public static final int NULL_VALUE_FIELD_NUMBER = 1; - /** - * <pre> - * Represents a null value. - * </pre> - * - * <code>.google.protobuf.NullValue null_value = 1;</code> - * @return Whether the nullValue field is set. - */ - public boolean hasNullValue() { - return kindCase_ == 1; - } - /** - * <pre> - * Represents a null value. - * </pre> - * - * <code>.google.protobuf.NullValue null_value = 1;</code> - * @return The enum numeric value on the wire for nullValue. - */ - public int getNullValueValue() { - if (kindCase_ == 1) { - return (java.lang.Integer) kind_; - } - return 0; - } - /** - * <pre> - * Represents a null value. - * </pre> - * - * <code>.google.protobuf.NullValue null_value = 1;</code> - * @return The nullValue. - */ - public com.google.protobuf.NullValue getNullValue() { - if (kindCase_ == 1) { - com.google.protobuf.NullValue result = com.google.protobuf.NullValue.forNumber( - (java.lang.Integer) kind_); - return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result; - } - return com.google.protobuf.NullValue.NULL_VALUE; - } - - public static final int NUMBER_VALUE_FIELD_NUMBER = 2; - /** - * <pre> - * Represents a double value. - * </pre> - * - * <code>double number_value = 2;</code> - * @return Whether the numberValue field is set. - */ - @java.lang.Override - public boolean hasNumberValue() { - return kindCase_ == 2; - } - /** - * <pre> - * Represents a double value. - * </pre> - * - * <code>double number_value = 2;</code> - * @return The numberValue. - */ - @java.lang.Override - public double getNumberValue() { - if (kindCase_ == 2) { - return (java.lang.Double) kind_; - } - return 0D; - } - - public static final int STRING_VALUE_FIELD_NUMBER = 3; - /** - * <pre> - * Represents a string value. - * </pre> - * - * <code>string string_value = 3;</code> - * @return Whether the stringValue field is set. - */ - public boolean hasStringValue() { - return kindCase_ == 3; - } - /** - * <pre> - * Represents a string value. - * </pre> - * - * <code>string string_value = 3;</code> - * @return The stringValue. - */ - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (kindCase_ == 3) { - ref = kind_; - } - 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 (kindCase_ == 3) { - kind_ = s; - } - return s; - } - } - /** - * <pre> - * Represents a string value. - * </pre> - * - * <code>string string_value = 3;</code> - * @return The bytes for stringValue. - */ - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = ""; - if (kindCase_ == 3) { - ref = kind_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (kindCase_ == 3) { - kind_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BOOL_VALUE_FIELD_NUMBER = 4; - /** - * <pre> - * Represents a boolean value. - * </pre> - * - * <code>bool bool_value = 4;</code> - * @return Whether the boolValue field is set. - */ - @java.lang.Override - public boolean hasBoolValue() { - return kindCase_ == 4; - } - /** - * <pre> - * Represents a boolean value. - * </pre> - * - * <code>bool bool_value = 4;</code> - * @return The boolValue. - */ - @java.lang.Override - public boolean getBoolValue() { - if (kindCase_ == 4) { - return (java.lang.Boolean) kind_; - } - return false; - } - - public static final int STRUCT_VALUE_FIELD_NUMBER = 5; - /** - * <pre> - * Represents a structured value. - * </pre> - * - * <code>.google.protobuf.Struct struct_value = 5;</code> - * @return Whether the structValue field is set. - */ - @java.lang.Override - public boolean hasStructValue() { - return kindCase_ == 5; - } - /** - * <pre> - * Represents a structured value. - * </pre> - * - * <code>.google.protobuf.Struct struct_value = 5;</code> - * @return The structValue. - */ - @java.lang.Override - public com.google.protobuf.Struct getStructValue() { - if (kindCase_ == 5) { - return (com.google.protobuf.Struct) kind_; - } - return com.google.protobuf.Struct.getDefaultInstance(); - } - /** - * <pre> - * Represents a structured value. - * </pre> - * - * <code>.google.protobuf.Struct struct_value = 5;</code> - */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getStructValueOrBuilder() { - if (kindCase_ == 5) { - return (com.google.protobuf.Struct) kind_; - } - return com.google.protobuf.Struct.getDefaultInstance(); - } - - public static final int LIST_VALUE_FIELD_NUMBER = 6; - /** - * <pre> - * Represents a repeated `Value`. - * </pre> - * - * <code>.google.protobuf.ListValue list_value = 6;</code> - * @return Whether the listValue field is set. - */ - @java.lang.Override - public boolean hasListValue() { - return kindCase_ == 6; - } - /** - * <pre> - * Represents a repeated `Value`. - * </pre> - * - * <code>.google.protobuf.ListValue list_value = 6;</code> - * @return The listValue. - */ - @java.lang.Override - public com.google.protobuf.ListValue getListValue() { - if (kindCase_ == 6) { - return (com.google.protobuf.ListValue) kind_; - } - return com.google.protobuf.ListValue.getDefaultInstance(); - } - /** - * <pre> - * Represents a repeated `Value`. - * </pre> - * - * <code>.google.protobuf.ListValue list_value = 6;</code> - */ - @java.lang.Override - public com.google.protobuf.ListValueOrBuilder getListValueOrBuilder() { - if (kindCase_ == 6) { - return (com.google.protobuf.ListValue) kind_; - } - return com.google.protobuf.ListValue.getDefaultInstance(); - } - - 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 (kindCase_ == 1) { - output.writeEnum(1, ((java.lang.Integer) kind_)); - } - if (kindCase_ == 2) { - output.writeDouble( - 2, (double)((java.lang.Double) kind_)); - } - if (kindCase_ == 3) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kind_); - } - if (kindCase_ == 4) { - output.writeBool( - 4, (boolean)((java.lang.Boolean) kind_)); - } - if (kindCase_ == 5) { - output.writeMessage(5, (com.google.protobuf.Struct) kind_); - } - if (kindCase_ == 6) { - output.writeMessage(6, (com.google.protobuf.ListValue) kind_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (kindCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, ((java.lang.Integer) kind_)); - } - if (kindCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize( - 2, (double)((java.lang.Double) kind_)); - } - if (kindCase_ == 3) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kind_); - } - if (kindCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 4, (boolean)((java.lang.Boolean) kind_)); - } - if (kindCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.protobuf.Struct) kind_); - } - if (kindCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.protobuf.ListValue) kind_); - } - size += getUnknownFields().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.Value)) { - return super.equals(obj); - } - com.google.protobuf.Value other = (com.google.protobuf.Value) obj; - - if (!getKindCase().equals(other.getKindCase())) return false; - switch (kindCase_) { - case 1: - if (getNullValueValue() - != other.getNullValueValue()) return false; - break; - case 2: - if (java.lang.Double.doubleToLongBits(getNumberValue()) - != java.lang.Double.doubleToLongBits( - other.getNumberValue())) return false; - break; - case 3: - if (!getStringValue() - .equals(other.getStringValue())) return false; - break; - case 4: - if (getBoolValue() - != other.getBoolValue()) return false; - break; - case 5: - if (!getStructValue() - .equals(other.getStructValue())) return false; - break; - case 6: - if (!getListValue() - .equals(other.getListValue())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (kindCase_) { - case 1: - hash = (37 * hash) + NULL_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getNullValueValue(); - break; - case 2: - hash = (37 * hash) + NUMBER_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getNumberValue())); - break; - case 3: - hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getStringValue().hashCode(); - break; - case 4: - hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBoolValue()); - break; - case 5: - hash = (37 * hash) + STRUCT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getStructValue().hashCode(); - break; - case 6: - hash = (37 * hash) + LIST_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getListValue().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.protobuf.Value parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Value 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.Value parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Value 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.Value parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.protobuf.Value parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.protobuf.Value parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Value 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.Value parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.protobuf.Value 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.Value parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.protobuf.Value 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.Value 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; - } - /** - * <pre> - * `Value` represents a dynamically typed value which can be either - * null, a number, a string, a boolean, a recursive struct value, or a - * list of values. A producer of value is expected to set one of these - * variants. Absence of any variant indicates an error. - * - * The JSON representation for `Value` is JSON value. - * </pre> - * - * Protobuf type {@code google.protobuf.Value} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.Value) - com.google.protobuf.ValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.StructProto.internal_static_google_protobuf_Value_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.StructProto.internal_static_google_protobuf_Value_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.protobuf.Value.class, com.google.protobuf.Value.Builder.class); - } - - // Construct using com.google.protobuf.Value.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (structValueBuilder_ != null) { - structValueBuilder_.clear(); - } - if (listValueBuilder_ != null) { - listValueBuilder_.clear(); - } - kindCase_ = 0; - kind_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.StructProto.internal_static_google_protobuf_Value_descriptor; - } - - @java.lang.Override - public com.google.protobuf.Value getDefaultInstanceForType() { - return com.google.protobuf.Value.getDefaultInstance(); - } - - @java.lang.Override - public com.google.protobuf.Value build() { - com.google.protobuf.Value result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.protobuf.Value buildPartial() { - com.google.protobuf.Value result = new com.google.protobuf.Value(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.protobuf.Value result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.protobuf.Value result) { - result.kindCase_ = kindCase_; - result.kind_ = this.kind_; - if (kindCase_ == 5 && - structValueBuilder_ != null) { - result.kind_ = structValueBuilder_.build(); - } - if (kindCase_ == 6 && - listValueBuilder_ != null) { - result.kind_ = listValueBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.Value) { - return mergeFrom((com.google.protobuf.Value)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.Value other) { - if (other == com.google.protobuf.Value.getDefaultInstance()) return this; - switch (other.getKindCase()) { - case NULL_VALUE: { - setNullValueValue(other.getNullValueValue()); - break; - } - case NUMBER_VALUE: { - setNumberValue(other.getNumberValue()); - break; - } - case STRING_VALUE: { - kindCase_ = 3; - kind_ = other.kind_; - onChanged(); - break; - } - case BOOL_VALUE: { - setBoolValue(other.getBoolValue()); - break; - } - case STRUCT_VALUE: { - mergeStructValue(other.getStructValue()); - break; - } - case LIST_VALUE: { - mergeListValue(other.getListValue()); - break; - } - case KIND_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - kindCase_ = 1; - kind_ = rawValue; - break; - } // case 8 - case 17: { - kind_ = input.readDouble(); - kindCase_ = 2; - break; - } // case 17 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - kindCase_ = 3; - kind_ = s; - break; - } // case 26 - case 32: { - kind_ = input.readBool(); - kindCase_ = 4; - break; - } // case 32 - case 42: { - input.readMessage( - getStructValueFieldBuilder().getBuilder(), - extensionRegistry); - kindCase_ = 5; - break; - } // case 42 - case 50: { - input.readMessage( - getListValueFieldBuilder().getBuilder(), - extensionRegistry); - kindCase_ = 6; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int kindCase_ = 0; - private java.lang.Object kind_; - public KindCase - getKindCase() { - return KindCase.forNumber( - kindCase_); - } - - public Builder clearKind() { - kindCase_ = 0; - kind_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * <pre> - * Represents a null value. - * </pre> - * - * <code>.google.protobuf.NullValue null_value = 1;</code> - * @return Whether the nullValue field is set. - */ - @java.lang.Override - public boolean hasNullValue() { - return kindCase_ == 1; - } - /** - * <pre> - * Represents a null value. - * </pre> - * - * <code>.google.protobuf.NullValue null_value = 1;</code> - * @return The enum numeric value on the wire for nullValue. - */ - @java.lang.Override - public int getNullValueValue() { - if (kindCase_ == 1) { - return ((java.lang.Integer) kind_).intValue(); - } - return 0; - } - /** - * <pre> - * Represents a null value. - * </pre> - * - * <code>.google.protobuf.NullValue null_value = 1;</code> - * @param value The enum numeric value on the wire for nullValue to set. - * @return This builder for chaining. - */ - public Builder setNullValueValue(int value) { - kindCase_ = 1; - kind_ = value; - onChanged(); - return this; - } - /** - * <pre> - * Represents a null value. - * </pre> - * - * <code>.google.protobuf.NullValue null_value = 1;</code> - * @return The nullValue. - */ - @java.lang.Override - public com.google.protobuf.NullValue getNullValue() { - if (kindCase_ == 1) { - com.google.protobuf.NullValue result = com.google.protobuf.NullValue.forNumber( - (java.lang.Integer) kind_); - return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result; - } - return com.google.protobuf.NullValue.NULL_VALUE; - } - /** - * <pre> - * Represents a null value. - * </pre> - * - * <code>.google.protobuf.NullValue null_value = 1;</code> - * @param value The nullValue to set. - * @return This builder for chaining. - */ - public Builder setNullValue(com.google.protobuf.NullValue value) { - if (value == null) { - throw new NullPointerException(); - } - kindCase_ = 1; - kind_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <pre> - * Represents a null value. - * </pre> - * - * <code>.google.protobuf.NullValue null_value = 1;</code> - * @return This builder for chaining. - */ - public Builder clearNullValue() { - if (kindCase_ == 1) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - return this; - } - - /** - * <pre> - * Represents a double value. - * </pre> - * - * <code>double number_value = 2;</code> - * @return Whether the numberValue field is set. - */ - public boolean hasNumberValue() { - return kindCase_ == 2; - } - /** - * <pre> - * Represents a double value. - * </pre> - * - * <code>double number_value = 2;</code> - * @return The numberValue. - */ - public double getNumberValue() { - if (kindCase_ == 2) { - return (java.lang.Double) kind_; - } - return 0D; - } - /** - * <pre> - * Represents a double value. - * </pre> - * - * <code>double number_value = 2;</code> - * @param value The numberValue to set. - * @return This builder for chaining. - */ - public Builder setNumberValue(double value) { - - kindCase_ = 2; - kind_ = value; - onChanged(); - return this; - } - /** - * <pre> - * Represents a double value. - * </pre> - * - * <code>double number_value = 2;</code> - * @return This builder for chaining. - */ - public Builder clearNumberValue() { - if (kindCase_ == 2) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - return this; - } - - /** - * <pre> - * Represents a string value. - * </pre> - * - * <code>string string_value = 3;</code> - * @return Whether the stringValue field is set. - */ - @java.lang.Override - public boolean hasStringValue() { - return kindCase_ == 3; - } - /** - * <pre> - * Represents a string value. - * </pre> - * - * <code>string string_value = 3;</code> - * @return The stringValue. - */ - @java.lang.Override - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (kindCase_ == 3) { - ref = kind_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (kindCase_ == 3) { - kind_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <pre> - * Represents a string value. - * </pre> - * - * <code>string string_value = 3;</code> - * @return The bytes for stringValue. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = ""; - if (kindCase_ == 3) { - ref = kind_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (kindCase_ == 3) { - kind_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <pre> - * Represents a string value. - * </pre> - * - * <code>string string_value = 3;</code> - * @param value The stringValue to set. - * @return This builder for chaining. - */ - public Builder setStringValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - kindCase_ = 3; - kind_ = value; - onChanged(); - return this; - } - /** - * <pre> - * Represents a string value. - * </pre> - * - * <code>string string_value = 3;</code> - * @return This builder for chaining. - */ - public Builder clearStringValue() { - if (kindCase_ == 3) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - return this; - } - /** - * <pre> - * Represents a string value. - * </pre> - * - * <code>string string_value = 3;</code> - * @param value The bytes for stringValue to set. - * @return This builder for chaining. - */ - public Builder setStringValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - kindCase_ = 3; - kind_ = value; - onChanged(); - return this; - } - - /** - * <pre> - * Represents a boolean value. - * </pre> - * - * <code>bool bool_value = 4;</code> - * @return Whether the boolValue field is set. - */ - public boolean hasBoolValue() { - return kindCase_ == 4; - } - /** - * <pre> - * Represents a boolean value. - * </pre> - * - * <code>bool bool_value = 4;</code> - * @return The boolValue. - */ - public boolean getBoolValue() { - if (kindCase_ == 4) { - return (java.lang.Boolean) kind_; - } - return false; - } - /** - * <pre> - * Represents a boolean value. - * </pre> - * - * <code>bool bool_value = 4;</code> - * @param value The boolValue to set. - * @return This builder for chaining. - */ - public Builder setBoolValue(boolean value) { - - kindCase_ = 4; - kind_ = value; - onChanged(); - return this; - } - /** - * <pre> - * Represents a boolean value. - * </pre> - * - * <code>bool bool_value = 4;</code> - * @return This builder for chaining. - */ - public Builder clearBoolValue() { - if (kindCase_ == 4) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> structValueBuilder_; - /** - * <pre> - * Represents a structured value. - * </pre> - * - * <code>.google.protobuf.Struct struct_value = 5;</code> - * @return Whether the structValue field is set. - */ - @java.lang.Override - public boolean hasStructValue() { - return kindCase_ == 5; - } - /** - * <pre> - * Represents a structured value. - * </pre> - * - * <code>.google.protobuf.Struct struct_value = 5;</code> - * @return The structValue. - */ - @java.lang.Override - public com.google.protobuf.Struct getStructValue() { - if (structValueBuilder_ == null) { - if (kindCase_ == 5) { - return (com.google.protobuf.Struct) kind_; - } - return com.google.protobuf.Struct.getDefaultInstance(); - } else { - if (kindCase_ == 5) { - return structValueBuilder_.getMessage(); - } - return com.google.protobuf.Struct.getDefaultInstance(); - } - } - /** - * <pre> - * Represents a structured value. - * </pre> - * - * <code>.google.protobuf.Struct struct_value = 5;</code> - */ - public Builder setStructValue(com.google.protobuf.Struct value) { - if (structValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - structValueBuilder_.setMessage(value); - } - kindCase_ = 5; - return this; - } - /** - * <pre> - * Represents a structured value. - * </pre> - * - * <code>.google.protobuf.Struct struct_value = 5;</code> - */ - public Builder setStructValue( - com.google.protobuf.Struct.Builder builderForValue) { - if (structValueBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - structValueBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 5; - return this; - } - /** - * <pre> - * Represents a structured value. - * </pre> - * - * <code>.google.protobuf.Struct struct_value = 5;</code> - */ - public Builder mergeStructValue(com.google.protobuf.Struct value) { - if (structValueBuilder_ == null) { - if (kindCase_ == 5 && - kind_ != com.google.protobuf.Struct.getDefaultInstance()) { - kind_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 5) { - structValueBuilder_.mergeFrom(value); - } else { - structValueBuilder_.setMessage(value); - } - } - kindCase_ = 5; - return this; - } - /** - * <pre> - * Represents a structured value. - * </pre> - * - * <code>.google.protobuf.Struct struct_value = 5;</code> - */ - public Builder clearStructValue() { - if (structValueBuilder_ == null) { - if (kindCase_ == 5) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 5) { - kindCase_ = 0; - kind_ = null; - } - structValueBuilder_.clear(); - } - return this; - } - /** - * <pre> - * Represents a structured value. - * </pre> - * - * <code>.google.protobuf.Struct struct_value = 5;</code> - */ - public com.google.protobuf.Struct.Builder getStructValueBuilder() { - return getStructValueFieldBuilder().getBuilder(); - } - /** - * <pre> - * Represents a structured value. - * </pre> - * - * <code>.google.protobuf.Struct struct_value = 5;</code> - */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getStructValueOrBuilder() { - if ((kindCase_ == 5) && (structValueBuilder_ != null)) { - return structValueBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 5) { - return (com.google.protobuf.Struct) kind_; - } - return com.google.protobuf.Struct.getDefaultInstance(); - } - } - /** - * <pre> - * Represents a structured value. - * </pre> - * - * <code>.google.protobuf.Struct struct_value = 5;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getStructValueFieldBuilder() { - if (structValueBuilder_ == null) { - if (!(kindCase_ == 5)) { - kind_ = com.google.protobuf.Struct.getDefaultInstance(); - } - structValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - (com.google.protobuf.Struct) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 5; - onChanged(); - return structValueBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> listValueBuilder_; - /** - * <pre> - * Represents a repeated `Value`. - * </pre> - * - * <code>.google.protobuf.ListValue list_value = 6;</code> - * @return Whether the listValue field is set. - */ - @java.lang.Override - public boolean hasListValue() { - return kindCase_ == 6; - } - /** - * <pre> - * Represents a repeated `Value`. - * </pre> - * - * <code>.google.protobuf.ListValue list_value = 6;</code> - * @return The listValue. - */ - @java.lang.Override - public com.google.protobuf.ListValue getListValue() { - if (listValueBuilder_ == null) { - if (kindCase_ == 6) { - return (com.google.protobuf.ListValue) kind_; - } - return com.google.protobuf.ListValue.getDefaultInstance(); - } else { - if (kindCase_ == 6) { - return listValueBuilder_.getMessage(); - } - return com.google.protobuf.ListValue.getDefaultInstance(); - } - } - /** - * <pre> - * Represents a repeated `Value`. - * </pre> - * - * <code>.google.protobuf.ListValue list_value = 6;</code> - */ - public Builder setListValue(com.google.protobuf.ListValue value) { - if (listValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - listValueBuilder_.setMessage(value); - } - kindCase_ = 6; - return this; - } - /** - * <pre> - * Represents a repeated `Value`. - * </pre> - * - * <code>.google.protobuf.ListValue list_value = 6;</code> - */ - public Builder setListValue( - com.google.protobuf.ListValue.Builder builderForValue) { - if (listValueBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - listValueBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 6; - return this; - } - /** - * <pre> - * Represents a repeated `Value`. - * </pre> - * - * <code>.google.protobuf.ListValue list_value = 6;</code> - */ - public Builder mergeListValue(com.google.protobuf.ListValue value) { - if (listValueBuilder_ == null) { - if (kindCase_ == 6 && - kind_ != com.google.protobuf.ListValue.getDefaultInstance()) { - kind_ = com.google.protobuf.ListValue.newBuilder((com.google.protobuf.ListValue) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 6) { - listValueBuilder_.mergeFrom(value); - } else { - listValueBuilder_.setMessage(value); - } - } - kindCase_ = 6; - return this; - } - /** - * <pre> - * Represents a repeated `Value`. - * </pre> - * - * <code>.google.protobuf.ListValue list_value = 6;</code> - */ - public Builder clearListValue() { - if (listValueBuilder_ == null) { - if (kindCase_ == 6) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 6) { - kindCase_ = 0; - kind_ = null; - } - listValueBuilder_.clear(); - } - return this; - } - /** - * <pre> - * Represents a repeated `Value`. - * </pre> - * - * <code>.google.protobuf.ListValue list_value = 6;</code> - */ - public com.google.protobuf.ListValue.Builder getListValueBuilder() { - return getListValueFieldBuilder().getBuilder(); - } - /** - * <pre> - * Represents a repeated `Value`. - * </pre> - * - * <code>.google.protobuf.ListValue list_value = 6;</code> - */ - @java.lang.Override - public com.google.protobuf.ListValueOrBuilder getListValueOrBuilder() { - if ((kindCase_ == 6) && (listValueBuilder_ != null)) { - return listValueBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 6) { - return (com.google.protobuf.ListValue) kind_; - } - return com.google.protobuf.ListValue.getDefaultInstance(); - } - } - /** - * <pre> - * Represents a repeated `Value`. - * </pre> - * - * <code>.google.protobuf.ListValue list_value = 6;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> - getListValueFieldBuilder() { - if (listValueBuilder_ == null) { - if (!(kindCase_ == 6)) { - kind_ = com.google.protobuf.ListValue.getDefaultInstance(); - } - listValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder>( - (com.google.protobuf.ListValue) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 6; - onChanged(); - return listValueBuilder_; - } - @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.Value) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.Value) - private static final com.google.protobuf.Value DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.protobuf.Value(); - } - - public static com.google.protobuf.Value getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Value> - PARSER = new com.google.protobuf.AbstractParser<Value>() { - @java.lang.Override - public Value parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<Value> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Value> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Value getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/google/protobuf/ValueOrBuilder.java b/src/main/java/com/google/protobuf/ValueOrBuilder.java deleted file mode 100644 index 77be757..0000000 --- a/src/main/java/com/google/protobuf/ValueOrBuilder.java +++ /dev/null @@ -1,160 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/struct.proto - -package com.google.protobuf; - -public interface ValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.Value) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * Represents a null value. - * </pre> - * - * <code>.google.protobuf.NullValue null_value = 1;</code> - * @return Whether the nullValue field is set. - */ - boolean hasNullValue(); - /** - * <pre> - * Represents a null value. - * </pre> - * - * <code>.google.protobuf.NullValue null_value = 1;</code> - * @return The enum numeric value on the wire for nullValue. - */ - int getNullValueValue(); - /** - * <pre> - * Represents a null value. - * </pre> - * - * <code>.google.protobuf.NullValue null_value = 1;</code> - * @return The nullValue. - */ - com.google.protobuf.NullValue getNullValue(); - - /** - * <pre> - * Represents a double value. - * </pre> - * - * <code>double number_value = 2;</code> - * @return Whether the numberValue field is set. - */ - boolean hasNumberValue(); - /** - * <pre> - * Represents a double value. - * </pre> - * - * <code>double number_value = 2;</code> - * @return The numberValue. - */ - double getNumberValue(); - - /** - * <pre> - * Represents a string value. - * </pre> - * - * <code>string string_value = 3;</code> - * @return Whether the stringValue field is set. - */ - boolean hasStringValue(); - /** - * <pre> - * Represents a string value. - * </pre> - * - * <code>string string_value = 3;</code> - * @return The stringValue. - */ - java.lang.String getStringValue(); - /** - * <pre> - * Represents a string value. - * </pre> - * - * <code>string string_value = 3;</code> - * @return The bytes for stringValue. - */ - com.google.protobuf.ByteString - getStringValueBytes(); - - /** - * <pre> - * Represents a boolean value. - * </pre> - * - * <code>bool bool_value = 4;</code> - * @return Whether the boolValue field is set. - */ - boolean hasBoolValue(); - /** - * <pre> - * Represents a boolean value. - * </pre> - * - * <code>bool bool_value = 4;</code> - * @return The boolValue. - */ - boolean getBoolValue(); - - /** - * <pre> - * Represents a structured value. - * </pre> - * - * <code>.google.protobuf.Struct struct_value = 5;</code> - * @return Whether the structValue field is set. - */ - boolean hasStructValue(); - /** - * <pre> - * Represents a structured value. - * </pre> - * - * <code>.google.protobuf.Struct struct_value = 5;</code> - * @return The structValue. - */ - com.google.protobuf.Struct getStructValue(); - /** - * <pre> - * Represents a structured value. - * </pre> - * - * <code>.google.protobuf.Struct struct_value = 5;</code> - */ - com.google.protobuf.StructOrBuilder getStructValueOrBuilder(); - - /** - * <pre> - * Represents a repeated `Value`. - * </pre> - * - * <code>.google.protobuf.ListValue list_value = 6;</code> - * @return Whether the listValue field is set. - */ - boolean hasListValue(); - /** - * <pre> - * Represents a repeated `Value`. - * </pre> - * - * <code>.google.protobuf.ListValue list_value = 6;</code> - * @return The listValue. - */ - com.google.protobuf.ListValue getListValue(); - /** - * <pre> - * Represents a repeated `Value`. - * </pre> - * - * <code>.google.protobuf.ListValue list_value = 6;</code> - */ - com.google.protobuf.ListValueOrBuilder getListValueOrBuilder(); - - com.google.protobuf.Value.KindCase getKindCase(); -} diff --git a/src/main/java/com/google/protobuf/WrappersProto.java b/src/main/java/com/google/protobuf/WrappersProto.java deleted file mode 100644 index a17dae8..0000000 --- a/src/main/java/com/google/protobuf/WrappersProto.java +++ /dev/null @@ -1,145 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package com.google.protobuf; - -public final class WrappersProto { - private WrappersProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_DoubleValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_DoubleValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_FloatValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_FloatValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_Int64Value_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_Int64Value_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_UInt64Value_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_UInt64Value_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_Int32Value_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_Int32Value_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_UInt32Value_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_UInt32Value_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_BoolValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_BoolValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_StringValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_StringValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_protobuf_BytesValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_protobuf_BytesValue_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\036google/protobuf/wrappers.proto\022\017google" + - ".protobuf\"\034\n\013DoubleValue\022\r\n\005value\030\001 \001(\001\"" + - "\033\n\nFloatValue\022\r\n\005value\030\001 \001(\002\"\033\n\nInt64Val" + - "ue\022\r\n\005value\030\001 \001(\003\"\034\n\013UInt64Value\022\r\n\005valu" + - "e\030\001 \001(\004\"\033\n\nInt32Value\022\r\n\005value\030\001 \001(\005\"\034\n\013" + - "UInt32Value\022\r\n\005value\030\001 \001(\r\"\032\n\tBoolValue\022" + - "\r\n\005value\030\001 \001(\010\"\034\n\013StringValue\022\r\n\005value\030\001" + - " \001(\t\"\033\n\nBytesValue\022\r\n\005value\030\001 \001(\014B\203\001\n\023co" + - "m.google.protobufB\rWrappersProtoP\001Z1goog" + - "le.golang.org/protobuf/types/known/wrapp" + - "erspb\370\001\001\242\002\003GPB\252\002\036Google.Protobuf.WellKno" + - "wnTypesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_protobuf_DoubleValue_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_protobuf_DoubleValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_DoubleValue_descriptor, - new java.lang.String[] { "Value", }); - internal_static_google_protobuf_FloatValue_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_protobuf_FloatValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_FloatValue_descriptor, - new java.lang.String[] { "Value", }); - internal_static_google_protobuf_Int64Value_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_protobuf_Int64Value_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_Int64Value_descriptor, - new java.lang.String[] { "Value", }); - internal_static_google_protobuf_UInt64Value_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_protobuf_UInt64Value_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_UInt64Value_descriptor, - new java.lang.String[] { "Value", }); - internal_static_google_protobuf_Int32Value_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_protobuf_Int32Value_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_Int32Value_descriptor, - new java.lang.String[] { "Value", }); - internal_static_google_protobuf_UInt32Value_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_protobuf_UInt32Value_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_UInt32Value_descriptor, - new java.lang.String[] { "Value", }); - internal_static_google_protobuf_BoolValue_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_protobuf_BoolValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_BoolValue_descriptor, - new java.lang.String[] { "Value", }); - internal_static_google_protobuf_StringValue_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_protobuf_StringValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_StringValue_descriptor, - new java.lang.String[] { "Value", }); - internal_static_google_protobuf_BytesValue_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_protobuf_BytesValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_protobuf_BytesValue_descriptor, - new java.lang.String[] { "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} |