Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8B9AF200BAB for ; Fri, 7 Oct 2016 21:14:36 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8A73F160AF3; Fri, 7 Oct 2016 19:14:36 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8255E160AF1 for ; Fri, 7 Oct 2016 21:14:34 +0200 (CEST) Received: (qmail 54126 invoked by uid 500); 7 Oct 2016 19:14:31 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 53026 invoked by uid 99); 7 Oct 2016 19:14:30 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2016 19:14:30 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2A1E4E7DFC; Fri, 7 Oct 2016 19:14:30 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: syuanjiang@apache.org To: commits@hbase.apache.org Date: Fri, 07 Oct 2016 19:14:44 -0000 Message-Id: <4f2e5fd952064926968e49a5352be247@git.apache.org> In-Reply-To: <295db4c17996483194b1b57279ff191a@git.apache.org> References: <295db4c17996483194b1b57279ff191a@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [16/77] [abbrv] [partial] hbase git commit: HBASE-15638 Shade protobuf Which includes archived-at: Fri, 07 Oct 2016 19:14:36 -0000 http://git-wip-us.apache.org/repos/asf/hbase/blob/95c1dc93/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Field.java ---------------------------------------------------------------------- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Field.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Field.java new file mode 100644 index 0000000..15951b3 --- /dev/null +++ b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Field.java @@ -0,0 +1,2450 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/protobuf/type.proto + +package org.apache.hadoop.hbase.shaded.com.google.protobuf; + +/** + *
+ * A single field of a message type.
+ * 
+ * + * Protobuf type {@code google.protobuf.Field} + */ +public final class Field extends + org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.protobuf.Field) + FieldOrBuilder { + // Use Field.newBuilder() to construct. + private Field(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Field() { + kind_ = 0; + cardinality_ = 0; + number_ = 0; + name_ = ""; + typeUrl_ = ""; + oneofIndex_ = 0; + packed_ = false; + options_ = java.util.Collections.emptyList(); + jsonName_ = ""; + defaultValue_ = ""; + } + + @java.lang.Override + public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private Field( + org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, + org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + kind_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); + + cardinality_ = rawValue; + break; + } + case 24: { + + number_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + typeUrl_ = s; + break; + } + case 56: { + + oneofIndex_ = input.readInt32(); + break; + } + case 64: { + + packed_ = input.readBool(); + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + options_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + options_.add( + input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.Option.parser(), extensionRegistry)); + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + jsonName_ = s; + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + defaultValue_ = s; + break; + } + } + } + } catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + options_ = java.util.Collections.unmodifiableList(options_); + } + makeExtensionsImmutable(); + } + } + public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.apache.hadoop.hbase.shaded.com.google.protobuf.TypeProto.internal_static_google_protobuf_Field_descriptor; + } + + protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.apache.hadoop.hbase.shaded.com.google.protobuf.TypeProto.internal_static_google_protobuf_Field_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.class, org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Builder.class); + } + + /** + *
+   * Basic field types.
+   * 
+ * + * Protobuf enum {@code google.protobuf.Field.Kind} + */ + public enum Kind + implements org.apache.hadoop.hbase.shaded.com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Field type unknown.
+     * 
+ * + * TYPE_UNKNOWN = 0; + */ + TYPE_UNKNOWN(0), + /** + *
+     * Field type double.
+     * 
+ * + * TYPE_DOUBLE = 1; + */ + TYPE_DOUBLE(1), + /** + *
+     * Field type float.
+     * 
+ * + * TYPE_FLOAT = 2; + */ + TYPE_FLOAT(2), + /** + *
+     * Field type int64.
+     * 
+ * + * TYPE_INT64 = 3; + */ + TYPE_INT64(3), + /** + *
+     * Field type uint64.
+     * 
+ * + * TYPE_UINT64 = 4; + */ + TYPE_UINT64(4), + /** + *
+     * Field type int32.
+     * 
+ * + * TYPE_INT32 = 5; + */ + TYPE_INT32(5), + /** + *
+     * Field type fixed64.
+     * 
+ * + * TYPE_FIXED64 = 6; + */ + TYPE_FIXED64(6), + /** + *
+     * Field type fixed32.
+     * 
+ * + * TYPE_FIXED32 = 7; + */ + TYPE_FIXED32(7), + /** + *
+     * Field type bool.
+     * 
+ * + * TYPE_BOOL = 8; + */ + TYPE_BOOL(8), + /** + *
+     * Field type string.
+     * 
+ * + * TYPE_STRING = 9; + */ + TYPE_STRING(9), + /** + *
+     * Field type group. Proto2 syntax only, and deprecated.
+     * 
+ * + * TYPE_GROUP = 10; + */ + TYPE_GROUP(10), + /** + *
+     * Field type message.
+     * 
+ * + * TYPE_MESSAGE = 11; + */ + TYPE_MESSAGE(11), + /** + *
+     * Field type bytes.
+     * 
+ * + * TYPE_BYTES = 12; + */ + TYPE_BYTES(12), + /** + *
+     * Field type uint32.
+     * 
+ * + * TYPE_UINT32 = 13; + */ + TYPE_UINT32(13), + /** + *
+     * Field type enum.
+     * 
+ * + * TYPE_ENUM = 14; + */ + TYPE_ENUM(14), + /** + *
+     * Field type sfixed32.
+     * 
+ * + * TYPE_SFIXED32 = 15; + */ + TYPE_SFIXED32(15), + /** + *
+     * Field type sfixed64.
+     * 
+ * + * TYPE_SFIXED64 = 16; + */ + TYPE_SFIXED64(16), + /** + *
+     * Field type sint32.
+     * 
+ * + * TYPE_SINT32 = 17; + */ + TYPE_SINT32(17), + /** + *
+     * Field type sint64.
+     * 
+ * + * TYPE_SINT64 = 18; + */ + TYPE_SINT64(18), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Field type unknown.
+     * 
+ * + * TYPE_UNKNOWN = 0; + */ + public static final int TYPE_UNKNOWN_VALUE = 0; + /** + *
+     * Field type double.
+     * 
+ * + * TYPE_DOUBLE = 1; + */ + public static final int TYPE_DOUBLE_VALUE = 1; + /** + *
+     * Field type float.
+     * 
+ * + * TYPE_FLOAT = 2; + */ + public static final int TYPE_FLOAT_VALUE = 2; + /** + *
+     * Field type int64.
+     * 
+ * + * TYPE_INT64 = 3; + */ + public static final int TYPE_INT64_VALUE = 3; + /** + *
+     * Field type uint64.
+     * 
+ * + * TYPE_UINT64 = 4; + */ + public static final int TYPE_UINT64_VALUE = 4; + /** + *
+     * Field type int32.
+     * 
+ * + * TYPE_INT32 = 5; + */ + public static final int TYPE_INT32_VALUE = 5; + /** + *
+     * Field type fixed64.
+     * 
+ * + * TYPE_FIXED64 = 6; + */ + public static final int TYPE_FIXED64_VALUE = 6; + /** + *
+     * Field type fixed32.
+     * 
+ * + * TYPE_FIXED32 = 7; + */ + public static final int TYPE_FIXED32_VALUE = 7; + /** + *
+     * Field type bool.
+     * 
+ * + * TYPE_BOOL = 8; + */ + public static final int TYPE_BOOL_VALUE = 8; + /** + *
+     * Field type string.
+     * 
+ * + * TYPE_STRING = 9; + */ + public static final int TYPE_STRING_VALUE = 9; + /** + *
+     * Field type group. Proto2 syntax only, and deprecated.
+     * 
+ * + * TYPE_GROUP = 10; + */ + public static final int TYPE_GROUP_VALUE = 10; + /** + *
+     * Field type message.
+     * 
+ * + * TYPE_MESSAGE = 11; + */ + public static final int TYPE_MESSAGE_VALUE = 11; + /** + *
+     * Field type bytes.
+     * 
+ * + * TYPE_BYTES = 12; + */ + public static final int TYPE_BYTES_VALUE = 12; + /** + *
+     * Field type uint32.
+     * 
+ * + * TYPE_UINT32 = 13; + */ + public static final int TYPE_UINT32_VALUE = 13; + /** + *
+     * Field type enum.
+     * 
+ * + * TYPE_ENUM = 14; + */ + public static final int TYPE_ENUM_VALUE = 14; + /** + *
+     * Field type sfixed32.
+     * 
+ * + * TYPE_SFIXED32 = 15; + */ + public static final int TYPE_SFIXED32_VALUE = 15; + /** + *
+     * Field type sfixed64.
+     * 
+ * + * TYPE_SFIXED64 = 16; + */ + public static final int TYPE_SFIXED64_VALUE = 16; + /** + *
+     * Field type sint32.
+     * 
+ * + * TYPE_SINT32 = 17; + */ + public static final int TYPE_SINT32_VALUE = 17; + /** + *
+     * Field type sint64.
+     * 
+ * + * TYPE_SINT64 = 18; + */ + 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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Kind valueOf(int value) { + return forNumber(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 org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EnumLiteMap< + Kind> internalValueMap = + new org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EnumLiteMap() { + public Kind findValueByNumber(int number) { + return Kind.forNumber(number); + } + }; + + public final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.getDescriptor().getEnumTypes().get(0); + } + + private static final Kind[] VALUES = values(); + + public static Kind valueOf( + org.apache.hadoop.hbase.shaded.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) + } + + /** + *
+   * Whether a field is optional, required, or repeated.
+   * 
+ * + * Protobuf enum {@code google.protobuf.Field.Cardinality} + */ + public enum Cardinality + implements org.apache.hadoop.hbase.shaded.com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * For fields with unknown cardinality.
+     * 
+ * + * CARDINALITY_UNKNOWN = 0; + */ + CARDINALITY_UNKNOWN(0), + /** + *
+     * For optional fields.
+     * 
+ * + * CARDINALITY_OPTIONAL = 1; + */ + CARDINALITY_OPTIONAL(1), + /** + *
+     * For required fields. Proto2 syntax only.
+     * 
+ * + * CARDINALITY_REQUIRED = 2; + */ + CARDINALITY_REQUIRED(2), + /** + *
+     * For repeated fields.
+     * 
+ * + * CARDINALITY_REPEATED = 3; + */ + CARDINALITY_REPEATED(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * For fields with unknown cardinality.
+     * 
+ * + * CARDINALITY_UNKNOWN = 0; + */ + public static final int CARDINALITY_UNKNOWN_VALUE = 0; + /** + *
+     * For optional fields.
+     * 
+ * + * CARDINALITY_OPTIONAL = 1; + */ + public static final int CARDINALITY_OPTIONAL_VALUE = 1; + /** + *
+     * For required fields. Proto2 syntax only.
+     * 
+ * + * CARDINALITY_REQUIRED = 2; + */ + public static final int CARDINALITY_REQUIRED_VALUE = 2; + /** + *
+     * For repeated fields.
+     * 
+ * + * CARDINALITY_REPEATED = 3; + */ + 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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Cardinality valueOf(int value) { + return forNumber(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 org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EnumLiteMap< + Cardinality> internalValueMap = + new org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EnumLiteMap() { + public Cardinality findValueByNumber(int number) { + return Cardinality.forNumber(number); + } + }; + + public final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.getDescriptor().getEnumTypes().get(1); + } + + private static final Cardinality[] VALUES = values(); + + public static Cardinality valueOf( + org.apache.hadoop.hbase.shaded.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) + } + + private int bitField0_; + public static final int KIND_FIELD_NUMBER = 1; + private int kind_; + /** + *
+   * The field type.
+   * 
+ * + * optional .google.protobuf.Field.Kind kind = 1; + */ + public int getKindValue() { + return kind_; + } + /** + *
+   * The field type.
+   * 
+ * + * optional .google.protobuf.Field.Kind kind = 1; + */ + public org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Kind getKind() { + org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Kind result = org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Kind.valueOf(kind_); + return result == null ? org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Kind.UNRECOGNIZED : result; + } + + public static final int CARDINALITY_FIELD_NUMBER = 2; + private int cardinality_; + /** + *
+   * The field cardinality.
+   * 
+ * + * optional .google.protobuf.Field.Cardinality cardinality = 2; + */ + public int getCardinalityValue() { + return cardinality_; + } + /** + *
+   * The field cardinality.
+   * 
+ * + * optional .google.protobuf.Field.Cardinality cardinality = 2; + */ + public org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Cardinality getCardinality() { + org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Cardinality result = org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Cardinality.valueOf(cardinality_); + return result == null ? org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Cardinality.UNRECOGNIZED : result; + } + + public static final int NUMBER_FIELD_NUMBER = 3; + private int number_; + /** + *
+   * The field number.
+   * 
+ * + * optional int32 number = 3; + */ + public int getNumber() { + return number_; + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + *
+   * The field name.
+   * 
+ * + * optional string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString bs = + (org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The field name.
+   * 
+ * + * optional string name = 4; + */ + public org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString b = + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_URL_FIELD_NUMBER = 6; + private volatile java.lang.Object typeUrl_; + /** + *
+   * The field type URL, without the scheme, for message or enumeration
+   * types. Example: `"type.googleapis.org.apache.hadoop.hbase.shaded.com.google.protobuf.Timestamp"`.
+   * 
+ * + * optional string type_url = 6; + */ + public java.lang.String getTypeUrl() { + java.lang.Object ref = typeUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString bs = + (org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + typeUrl_ = s; + return s; + } + } + /** + *
+   * The field type URL, without the scheme, for message or enumeration
+   * types. Example: `"type.googleapis.org.apache.hadoop.hbase.shaded.com.google.protobuf.Timestamp"`.
+   * 
+ * + * optional string type_url = 6; + */ + public org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString + getTypeUrlBytes() { + java.lang.Object ref = typeUrl_; + if (ref instanceof java.lang.String) { + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString b = + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + typeUrl_ = b; + return b; + } else { + return (org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString) ref; + } + } + + public static final int ONEOF_INDEX_FIELD_NUMBER = 7; + private int oneofIndex_; + /** + *
+   * 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.
+   * 
+ * + * optional int32 oneof_index = 7; + */ + public int getOneofIndex() { + return oneofIndex_; + } + + public static final int PACKED_FIELD_NUMBER = 8; + private boolean packed_; + /** + *
+   * Whether to use alternative packed wire representation.
+   * 
+ * + * optional bool packed = 8; + */ + public boolean getPacked() { + return packed_; + } + + public static final int OPTIONS_FIELD_NUMBER = 9; + private java.util.List options_; + /** + *
+   * The protocol buffer options.
+   * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public java.util.List getOptionsList() { + return options_; + } + /** + *
+   * The protocol buffer options.
+   * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public java.util.List + getOptionsOrBuilderList() { + return options_; + } + /** + *
+   * The protocol buffer options.
+   * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public int getOptionsCount() { + return options_.size(); + } + /** + *
+   * The protocol buffer options.
+   * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public org.apache.hadoop.hbase.shaded.com.google.protobuf.Option getOptions(int index) { + return options_.get(index); + } + /** + *
+   * The protocol buffer options.
+   * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public org.apache.hadoop.hbase.shaded.com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( + int index) { + return options_.get(index); + } + + public static final int JSON_NAME_FIELD_NUMBER = 10; + private volatile java.lang.Object jsonName_; + /** + *
+   * The field JSON name.
+   * 
+ * + * optional string json_name = 10; + */ + public java.lang.String getJsonName() { + java.lang.Object ref = jsonName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString bs = + (org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jsonName_ = s; + return s; + } + } + /** + *
+   * The field JSON name.
+   * 
+ * + * optional string json_name = 10; + */ + public org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString + getJsonNameBytes() { + java.lang.Object ref = jsonName_; + if (ref instanceof java.lang.String) { + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString b = + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jsonName_ = b; + return b; + } else { + return (org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFAULT_VALUE_FIELD_NUMBER = 11; + private volatile java.lang.Object defaultValue_; + /** + *
+   * The string value of the default value of this field. Proto2 syntax only.
+   * 
+ * + * optional string default_value = 11; + */ + public java.lang.String getDefaultValue() { + java.lang.Object ref = defaultValue_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString bs = + (org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultValue_ = s; + return s; + } + } + /** + *
+   * The string value of the default value of this field. Proto2 syntax only.
+   * 
+ * + * optional string default_value = 11; + */ + public org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString + getDefaultValueBytes() { + java.lang.Object ref = defaultValue_; + if (ref instanceof java.lang.String) { + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString b = + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultValue_ = b; + return b; + } else { + return (org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (kind_ != org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Kind.TYPE_UNKNOWN.getNumber()) { + output.writeEnum(1, kind_); + } + if (cardinality_ != org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Cardinality.CARDINALITY_UNKNOWN.getNumber()) { + output.writeEnum(2, cardinality_); + } + if (number_ != 0) { + output.writeInt32(3, number_); + } + if (!getNameBytes().isEmpty()) { + org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + if (!getTypeUrlBytes().isEmpty()) { + org.apache.hadoop.hbase.shaded.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 (!getJsonNameBytes().isEmpty()) { + org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 10, jsonName_); + } + if (!getDefaultValueBytes().isEmpty()) { + org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 11, defaultValue_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (kind_ != org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Kind.TYPE_UNKNOWN.getNumber()) { + size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream + .computeEnumSize(1, kind_); + } + if (cardinality_ != org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Cardinality.CARDINALITY_UNKNOWN.getNumber()) { + size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream + .computeEnumSize(2, cardinality_); + } + if (number_ != 0) { + size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream + .computeInt32Size(3, number_); + } + if (!getNameBytes().isEmpty()) { + size += org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + if (!getTypeUrlBytes().isEmpty()) { + size += org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(6, typeUrl_); + } + if (oneofIndex_ != 0) { + size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream + .computeInt32Size(7, oneofIndex_); + } + if (packed_ != false) { + size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream + .computeBoolSize(8, packed_); + } + for (int i = 0; i < options_.size(); i++) { + size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream + .computeMessageSize(9, options_.get(i)); + } + if (!getJsonNameBytes().isEmpty()) { + size += org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(10, jsonName_); + } + if (!getDefaultValueBytes().isEmpty()) { + size += org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(11, defaultValue_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.apache.hadoop.hbase.shaded.com.google.protobuf.Field)) { + return super.equals(obj); + } + org.apache.hadoop.hbase.shaded.com.google.protobuf.Field other = (org.apache.hadoop.hbase.shaded.com.google.protobuf.Field) obj; + + boolean result = true; + result = result && kind_ == other.kind_; + result = result && cardinality_ == other.cardinality_; + result = result && (getNumber() + == other.getNumber()); + result = result && getName() + .equals(other.getName()); + result = result && getTypeUrl() + .equals(other.getTypeUrl()); + result = result && (getOneofIndex() + == other.getOneofIndex()); + result = result && (getPacked() + == other.getPacked()); + result = result && getOptionsList() + .equals(other.getOptionsList()); + result = result && getJsonName() + .equals(other.getJsonName()); + result = result && getDefaultValue() + .equals(other.getDefaultValue()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().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) + org.apache.hadoop.hbase.shaded.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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Field parseFrom( + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString data) + throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Field parseFrom( + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString data, + org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Field parseFrom(byte[] data) + throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Field parseFrom( + byte[] data, + org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Field parseFrom(java.io.InputStream input) + throws java.io.IOException { + return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Field parseFrom( + java.io.InputStream input, + org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Field parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Field parseDelimitedFrom( + java.io.InputStream input, + org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Field parseFrom( + org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Field parseFrom( + org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, + org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.apache.hadoop.hbase.shaded.com.google.protobuf.Field prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A single field of a message type.
+   * 
+ * + * Protobuf type {@code google.protobuf.Field} + */ + public static final class Builder extends + org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.protobuf.Field) + org.apache.hadoop.hbase.shaded.com.google.protobuf.FieldOrBuilder { + public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.apache.hadoop.hbase.shaded.com.google.protobuf.TypeProto.internal_static_google_protobuf_Field_descriptor; + } + + protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.apache.hadoop.hbase.shaded.com.google.protobuf.TypeProto.internal_static_google_protobuf_Field_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.class, org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Builder.class); + } + + // Construct using org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getOptionsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + kind_ = 0; + + cardinality_ = 0; + + number_ = 0; + + name_ = ""; + + typeUrl_ = ""; + + oneofIndex_ = 0; + + packed_ = false; + + if (optionsBuilder_ == null) { + options_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + } else { + optionsBuilder_.clear(); + } + jsonName_ = ""; + + defaultValue_ = ""; + + return this; + } + + public org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.apache.hadoop.hbase.shaded.com.google.protobuf.TypeProto.internal_static_google_protobuf_Field_descriptor; + } + + public org.apache.hadoop.hbase.shaded.com.google.protobuf.Field getDefaultInstanceForType() { + return org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.getDefaultInstance(); + } + + public org.apache.hadoop.hbase.shaded.com.google.protobuf.Field build() { + org.apache.hadoop.hbase.shaded.com.google.protobuf.Field result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.apache.hadoop.hbase.shaded.com.google.protobuf.Field buildPartial() { + org.apache.hadoop.hbase.shaded.com.google.protobuf.Field result = new org.apache.hadoop.hbase.shaded.com.google.protobuf.Field(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.kind_ = kind_; + result.cardinality_ = cardinality_; + result.number_ = number_; + result.name_ = name_; + result.typeUrl_ = typeUrl_; + result.oneofIndex_ = oneofIndex_; + result.packed_ = packed_; + if (optionsBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { + options_ = java.util.Collections.unmodifiableList(options_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.options_ = options_; + } else { + result.options_ = optionsBuilder_.build(); + } + result.jsonName_ = jsonName_; + result.defaultValue_ = defaultValue_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(org.apache.hadoop.hbase.shaded.com.google.protobuf.Message other) { + if (other instanceof org.apache.hadoop.hbase.shaded.com.google.protobuf.Field) { + return mergeFrom((org.apache.hadoop.hbase.shaded.com.google.protobuf.Field)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.apache.hadoop.hbase.shaded.com.google.protobuf.Field other) { + if (other == org.apache.hadoop.hbase.shaded.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_; + onChanged(); + } + if (!other.getTypeUrl().isEmpty()) { + typeUrl_ = other.typeUrl_; + 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_ = + org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOptionsFieldBuilder() : null; + } else { + optionsBuilder_.addAllMessages(other.options_); + } + } + } + if (!other.getJsonName().isEmpty()) { + jsonName_ = other.jsonName_; + onChanged(); + } + if (!other.getDefaultValue().isEmpty()) { + defaultValue_ = other.defaultValue_; + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, + org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.apache.hadoop.hbase.shaded.com.google.protobuf.Field parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.shaded.com.google.protobuf.Field) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int kind_ = 0; + /** + *
+     * The field type.
+     * 
+ * + * optional .google.protobuf.Field.Kind kind = 1; + */ + public int getKindValue() { + return kind_; + } + /** + *
+     * The field type.
+     * 
+ * + * optional .google.protobuf.Field.Kind kind = 1; + */ + public Builder setKindValue(int value) { + kind_ = value; + onChanged(); + return this; + } + /** + *
+     * The field type.
+     * 
+ * + * optional .google.protobuf.Field.Kind kind = 1; + */ + public org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Kind getKind() { + org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Kind result = org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Kind.valueOf(kind_); + return result == null ? org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Kind.UNRECOGNIZED : result; + } + /** + *
+     * The field type.
+     * 
+ * + * optional .google.protobuf.Field.Kind kind = 1; + */ + public Builder setKind(org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Kind value) { + if (value == null) { + throw new NullPointerException(); + } + + kind_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The field type.
+     * 
+ * + * optional .google.protobuf.Field.Kind kind = 1; + */ + public Builder clearKind() { + + kind_ = 0; + onChanged(); + return this; + } + + private int cardinality_ = 0; + /** + *
+     * The field cardinality.
+     * 
+ * + * optional .google.protobuf.Field.Cardinality cardinality = 2; + */ + public int getCardinalityValue() { + return cardinality_; + } + /** + *
+     * The field cardinality.
+     * 
+ * + * optional .google.protobuf.Field.Cardinality cardinality = 2; + */ + public Builder setCardinalityValue(int value) { + cardinality_ = value; + onChanged(); + return this; + } + /** + *
+     * The field cardinality.
+     * 
+ * + * optional .google.protobuf.Field.Cardinality cardinality = 2; + */ + public org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Cardinality getCardinality() { + org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Cardinality result = org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Cardinality.valueOf(cardinality_); + return result == null ? org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Cardinality.UNRECOGNIZED : result; + } + /** + *
+     * The field cardinality.
+     * 
+ * + * optional .google.protobuf.Field.Cardinality cardinality = 2; + */ + public Builder setCardinality(org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.Cardinality value) { + if (value == null) { + throw new NullPointerException(); + } + + cardinality_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The field cardinality.
+     * 
+ * + * optional .google.protobuf.Field.Cardinality cardinality = 2; + */ + public Builder clearCardinality() { + + cardinality_ = 0; + onChanged(); + return this; + } + + private int number_ ; + /** + *
+     * The field number.
+     * 
+ * + * optional int32 number = 3; + */ + public int getNumber() { + return number_; + } + /** + *
+     * The field number.
+     * 
+ * + * optional int32 number = 3; + */ + public Builder setNumber(int value) { + + number_ = value; + onChanged(); + return this; + } + /** + *
+     * The field number.
+     * 
+ * + * optional int32 number = 3; + */ + public Builder clearNumber() { + + number_ = 0; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The field name.
+     * 
+ * + * optional string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString bs = + (org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The field name.
+     * 
+ * + * optional string name = 4; + */ + public org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString b = + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The field name.
+     * 
+ * + * optional string name = 4; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The field name.
+     * 
+ * + * optional string name = 4; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The field name.
+     * 
+ * + * optional string name = 4; + */ + public Builder setNameBytes( + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object typeUrl_ = ""; + /** + *
+     * The field type URL, without the scheme, for message or enumeration
+     * types. Example: `"type.googleapis.org.apache.hadoop.hbase.shaded.com.google.protobuf.Timestamp"`.
+     * 
+ * + * optional string type_url = 6; + */ + public java.lang.String getTypeUrl() { + java.lang.Object ref = typeUrl_; + if (!(ref instanceof java.lang.String)) { + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString bs = + (org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + typeUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The field type URL, without the scheme, for message or enumeration
+     * types. Example: `"type.googleapis.org.apache.hadoop.hbase.shaded.com.google.protobuf.Timestamp"`.
+     * 
+ * + * optional string type_url = 6; + */ + public org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString + getTypeUrlBytes() { + java.lang.Object ref = typeUrl_; + if (ref instanceof String) { + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString b = + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + typeUrl_ = b; + return b; + } else { + return (org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The field type URL, without the scheme, for message or enumeration
+     * types. Example: `"type.googleapis.org.apache.hadoop.hbase.shaded.com.google.protobuf.Timestamp"`.
+     * 
+ * + * optional string type_url = 6; + */ + public Builder setTypeUrl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + typeUrl_ = value; + onChanged(); + return this; + } + /** + *
+     * The field type URL, without the scheme, for message or enumeration
+     * types. Example: `"type.googleapis.org.apache.hadoop.hbase.shaded.com.google.protobuf.Timestamp"`.
+     * 
+ * + * optional string type_url = 6; + */ + public Builder clearTypeUrl() { + + typeUrl_ = getDefaultInstance().getTypeUrl(); + onChanged(); + return this; + } + /** + *
+     * The field type URL, without the scheme, for message or enumeration
+     * types. Example: `"type.googleapis.org.apache.hadoop.hbase.shaded.com.google.protobuf.Timestamp"`.
+     * 
+ * + * optional string type_url = 6; + */ + public Builder setTypeUrlBytes( + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + typeUrl_ = value; + onChanged(); + return this; + } + + private int oneofIndex_ ; + /** + *
+     * 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.
+     * 
+ * + * optional int32 oneof_index = 7; + */ + public int getOneofIndex() { + return oneofIndex_; + } + /** + *
+     * 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.
+     * 
+ * + * optional int32 oneof_index = 7; + */ + public Builder setOneofIndex(int value) { + + oneofIndex_ = value; + onChanged(); + return this; + } + /** + *
+     * 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.
+     * 
+ * + * optional int32 oneof_index = 7; + */ + public Builder clearOneofIndex() { + + oneofIndex_ = 0; + onChanged(); + return this; + } + + private boolean packed_ ; + /** + *
+     * Whether to use alternative packed wire representation.
+     * 
+ * + * optional bool packed = 8; + */ + public boolean getPacked() { + return packed_; + } + /** + *
+     * Whether to use alternative packed wire representation.
+     * 
+ * + * optional bool packed = 8; + */ + public Builder setPacked(boolean value) { + + packed_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether to use alternative packed wire representation.
+     * 
+ * + * optional bool packed = 8; + */ + public Builder clearPacked() { + + packed_ = false; + onChanged(); + return this; + } + + private java.util.List options_ = + java.util.Collections.emptyList(); + private void ensureOptionsIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + options_ = new java.util.ArrayList(options_); + bitField0_ |= 0x00000080; + } + } + + private org.apache.hadoop.hbase.shaded.com.google.protobuf.RepeatedFieldBuilderV3< + org.apache.hadoop.hbase.shaded.com.google.protobuf.Option, org.apache.hadoop.hbase.shaded.com.google.protobuf.Option.Builder, org.apache.hadoop.hbase.shaded.com.google.protobuf.OptionOrBuilder> optionsBuilder_; + + /** + *
+     * The protocol buffer options.
+     * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public java.util.List getOptionsList() { + if (optionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(options_); + } else { + return optionsBuilder_.getMessageList(); + } + } + /** + *
+     * The protocol buffer options.
+     * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public int getOptionsCount() { + if (optionsBuilder_ == null) { + return options_.size(); + } else { + return optionsBuilder_.getCount(); + } + } + /** + *
+     * The protocol buffer options.
+     * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public org.apache.hadoop.hbase.shaded.com.google.protobuf.Option getOptions(int index) { + if (optionsBuilder_ == null) { + return options_.get(index); + } else { + return optionsBuilder_.getMessage(index); + } + } + /** + *
+     * The protocol buffer options.
+     * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public Builder setOptions( + int index, org.apache.hadoop.hbase.shaded.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; + } + /** + *
+     * The protocol buffer options.
+     * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public Builder setOptions( + int index, org.apache.hadoop.hbase.shaded.com.google.protobuf.Option.Builder builderForValue) { + if (optionsBuilder_ == null) { + ensureOptionsIsMutable(); + options_.set(index, builderForValue.build()); + onChanged(); + } else { + optionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The protocol buffer options.
+     * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public Builder addOptions(org.apache.hadoop.hbase.shaded.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; + } + /** + *
+     * The protocol buffer options.
+     * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public Builder addOptions( + int index, org.apache.hadoop.hbase.shaded.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; + } + /** + *
+     * The protocol buffer options.
+     * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public Builder addOptions( + org.apache.hadoop.hbase.shaded.com.google.protobuf.Option.Builder builderForValue) { + if (optionsBuilder_ == null) { + ensureOptionsIsMutable(); + options_.add(builderForValue.build()); + onChanged(); + } else { + optionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The protocol buffer options.
+     * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public Builder addOptions( + int index, org.apache.hadoop.hbase.shaded.com.google.protobuf.Option.Builder builderForValue) { + if (optionsBuilder_ == null) { + ensureOptionsIsMutable(); + options_.add(index, builderForValue.build()); + onChanged(); + } else { + optionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The protocol buffer options.
+     * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public Builder addAllOptions( + java.lang.Iterable values) { + if (optionsBuilder_ == null) { + ensureOptionsIsMutable(); + org.apache.hadoop.hbase.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, options_); + onChanged(); + } else { + optionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The protocol buffer options.
+     * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public Builder clearOptions() { + if (optionsBuilder_ == null) { + options_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + optionsBuilder_.clear(); + } + return this; + } + /** + *
+     * The protocol buffer options.
+     * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public Builder removeOptions(int index) { + if (optionsBuilder_ == null) { + ensureOptionsIsMutable(); + options_.remove(index); + onChanged(); + } else { + optionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The protocol buffer options.
+     * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public org.apache.hadoop.hbase.shaded.com.google.protobuf.Option.Builder getOptionsBuilder( + int index) { + return getOptionsFieldBuilder().getBuilder(index); + } + /** + *
+     * The protocol buffer options.
+     * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public org.apache.hadoop.hbase.shaded.com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( + int index) { + if (optionsBuilder_ == null) { + return options_.get(index); } else { + return optionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The protocol buffer options.
+     * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public java.util.List + getOptionsOrBuilderList() { + if (optionsBuilder_ != null) { + return optionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(options_); + } + } + /** + *
+     * The protocol buffer options.
+     * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public org.apache.hadoop.hbase.shaded.com.google.protobuf.Option.Builder addOptionsBuilder() { + return getOptionsFieldBuilder().addBuilder( + org.apache.hadoop.hbase.shaded.com.google.protobuf.Option.getDefaultInstance()); + } + /** + *
+     * The protocol buffer options.
+     * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public org.apache.hadoop.hbase.shaded.com.google.protobuf.Option.Builder addOptionsBuilder( + int index) { + return getOptionsFieldBuilder().addBuilder( + index, org.apache.hadoop.hbase.shaded.com.google.protobuf.Option.getDefaultInstance()); + } + /** + *
+     * The protocol buffer options.
+     * 
+ * + * repeated .google.protobuf.Option options = 9; + */ + public java.util.List + getOptionsBuilderList() { + return getOptionsFieldBuilder().getBuilderList(); + } + private org.apache.hadoop.hbase.shaded.com.google.protobuf.RepeatedFieldBuilderV3< + org.apache.hadoop.hbase.shaded.com.google.protobuf.Option, org.apache.hadoop.hbase.shaded.com.google.protobuf.Option.Builder, org.apache.hadoop.hbase.shaded.com.google.protobuf.OptionOrBuilder> + getOptionsFieldBuilder() { + if (optionsBuilder_ == null) { + optionsBuilder_ = new org.apache.hadoop.hbase.shaded.com.google.protobuf.RepeatedFieldBuilderV3< + org.apache.hadoop.hbase.shaded.com.google.protobuf.Option, org.apache.hadoop.hbase.shaded.com.google.protobuf.Option.Builder, org.apache.hadoop.hbase.shaded.com.google.protobuf.OptionOrBuilder>( + options_, + ((bitField0_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + options_ = null; + } + return optionsBuilder_; + } + + private java.lang.Object jsonName_ = ""; + /** + *
+     * The field JSON name.
+     * 
+ * + * optional string json_name = 10; + */ + public java.lang.String getJsonName() { + java.lang.Object ref = jsonName_; + if (!(ref instanceof java.lang.String)) { + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString bs = + (org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jsonName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The field JSON name.
+     * 
+ * + * optional string json_name = 10; + */ + public org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString + getJsonNameBytes() { + java.lang.Object ref = jsonName_; + if (ref instanceof String) { + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString b = + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jsonName_ = b; + return b; + } else { + return (org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The field JSON name.
+     * 
+ * + * optional string json_name = 10; + */ + public Builder setJsonName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jsonName_ = value; + onChanged(); + return this; + } + /** + *
+     * The field JSON name.
+     * 
+ * + * optional string json_name = 10; + */ + public Builder clearJsonName() { + + jsonName_ = getDefaultInstance().getJsonName(); + onChanged(); + return this; + } + /** + *
+     * The field JSON name.
+     * 
+ * + * optional string json_name = 10; + */ + public Builder setJsonNameBytes( + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jsonName_ = value; + onChanged(); + return this; + } + + private java.lang.Object defaultValue_ = ""; + /** + *
+     * The string value of the default value of this field. Proto2 syntax only.
+     * 
+ * + * optional string default_value = 11; + */ + public java.lang.String getDefaultValue() { + java.lang.Object ref = defaultValue_; + if (!(ref instanceof java.lang.String)) { + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString bs = + (org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The string value of the default value of this field. Proto2 syntax only.
+     * 
+ * + * optional string default_value = 11; + */ + public org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString + getDefaultValueBytes() { + java.lang.Object ref = defaultValue_; + if (ref instanceof String) { + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString b = + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultValue_ = b; + return b; + } else { + return (org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The string value of the default value of this field. Proto2 syntax only.
+     * 
+ * + * optional string default_value = 11; + */ + public Builder setDefaultValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + defaultValue_ = value; + onChanged(); + return this; + } + /** + *
+     * The string value of the default value of this field. Proto2 syntax only.
+     * 
+ * + * optional string default_value = 11; + */ + public Builder clearDefaultValue() { + + defaultValue_ = getDefaultInstance().getDefaultValue(); + onChanged(); + return this; + } + /** + *
+     * The string value of the default value of this field. Proto2 syntax only.
+     * 
+ * + * optional string default_value = 11; + */ + public Builder setDefaultValueBytes( + org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + defaultValue_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:google.protobuf.Field) + } + + // @@protoc_insertion_point(class_scope:google.protobuf.Field) + private static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Field DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.apache.hadoop.hbase.shaded.com.google.protobuf.Field(); + } + + public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Field getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Parser + PARSER = new org.apache.hadoop.hbase.shaded.com.google.protobuf.AbstractParser() { + public Field parsePartialFrom( + org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, + org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { + return new Field(input, extensionRegistry); + } + }; + + public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public org.apache.hadoop.hbase.shaded.com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.apache.hadoop.hbase.shaded.com.google.protobuf.Field getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} +