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

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

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/protobuf/type.proto

package com.google.protobuf;

/**
 * 
 * A single field of a message type.
 * 
* * Protobuf type {@code google.protobuf.Field} */ public final class Field extends com.google.protobuf.GeneratedMessageLite< Field, Field.Builder> implements // @@protoc_insertion_point(message_implements:google.protobuf.Field) FieldOrBuilder { private Field() { name_ = ""; typeUrl_ = ""; options_ = emptyProtobufList(); jsonName_ = ""; defaultValue_ = ""; } /** *
   * Basic field types.
   * 
* * Protobuf enum {@code google.protobuf.Field.Kind} */ public enum Kind implements com.google.protobuf.Internal.EnumLite { /** *
     * 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; @java.lang.Override 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 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 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 com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Kind> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { @java.lang.Override public Kind findValueByNumber(int number) { return Kind.forNumber(number); } }; public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier() { return KindVerifier.INSTANCE; } private static final class KindVerifier implements com.google.protobuf.Internal.EnumVerifier { static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new KindVerifier(); @java.lang.Override public boolean isInRange(int number) { return Kind.forNumber(number) != null; } }; 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 com.google.protobuf.Internal.EnumLite { /** *
     * 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; @java.lang.Override 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 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 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 com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Cardinality> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { @java.lang.Override public Cardinality findValueByNumber(int number) { return Cardinality.forNumber(number); } }; public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier() { return CardinalityVerifier.INSTANCE; } private static final class CardinalityVerifier implements com.google.protobuf.Internal.EnumVerifier { static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new CardinalityVerifier(); @java.lang.Override public boolean isInRange(int number) { return Cardinality.forNumber(number) != null; } }; 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_; /** *
   * The field type.
   * 
* * .google.protobuf.Field.Kind kind = 1; * @return The enum numeric value on the wire for kind. */ @java.lang.Override public int getKindValue() { return kind_; } /** *
   * The field type.
   * 
* * .google.protobuf.Field.Kind kind = 1; * @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; } /** *
   * The field type.
   * 
* * .google.protobuf.Field.Kind kind = 1; * @param value The enum numeric value on the wire for kind to set. */ private void setKindValue(int value) { kind_ = value; } /** *
   * The field type.
   * 
* * .google.protobuf.Field.Kind kind = 1; * @param value The kind to set. */ private void setKind(com.google.protobuf.Field.Kind value) { kind_ = value.getNumber(); } /** *
   * The field type.
   * 
* * .google.protobuf.Field.Kind kind = 1; */ private void clearKind() { kind_ = 0; } public static final int CARDINALITY_FIELD_NUMBER = 2; private int cardinality_; /** *
   * The field cardinality.
   * 
* * .google.protobuf.Field.Cardinality cardinality = 2; * @return The enum numeric value on the wire for cardinality. */ @java.lang.Override public int getCardinalityValue() { return cardinality_; } /** *
   * The field cardinality.
   * 
* * .google.protobuf.Field.Cardinality cardinality = 2; * @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; } /** *
   * The field cardinality.
   * 
* * .google.protobuf.Field.Cardinality cardinality = 2; * @param value The enum numeric value on the wire for cardinality to set. */ private void setCardinalityValue(int value) { cardinality_ = value; } /** *
   * The field cardinality.
   * 
* * .google.protobuf.Field.Cardinality cardinality = 2; * @param value The cardinality to set. */ private void setCardinality(com.google.protobuf.Field.Cardinality value) { cardinality_ = value.getNumber(); } /** *
   * The field cardinality.
   * 
* * .google.protobuf.Field.Cardinality cardinality = 2; */ private void clearCardinality() { cardinality_ = 0; } public static final int NUMBER_FIELD_NUMBER = 3; private int number_; /** *
   * The field number.
   * 
* * int32 number = 3; * @return The number. */ @java.lang.Override public int getNumber() { return number_; } /** *
   * The field number.
   * 
* * int32 number = 3; * @param value The number to set. */ private void setNumber(int value) { number_ = value; } /** *
   * The field number.
   * 
* * int32 number = 3; */ private void clearNumber() { number_ = 0; } public static final int NAME_FIELD_NUMBER = 4; private java.lang.String name_; /** *
   * The field name.
   * 
* * string name = 4; * @return The name. */ @java.lang.Override public java.lang.String getName() { return name_; } /** *
   * The field name.
   * 
* * string name = 4; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { return com.google.protobuf.ByteString.copyFromUtf8(name_); } /** *
   * The field name.
   * 
* * string name = 4; * @param value The name to set. */ private void setName( java.lang.String value) { value.getClass(); name_ = value; } /** *
   * The field name.
   * 
* * string name = 4; */ private void clearName() { name_ = getDefaultInstance().getName(); } /** *
   * The field name.
   * 
* * string name = 4; * @param value The bytes for name to set. */ private void setNameBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); name_ = value.toStringUtf8(); } public static final int TYPE_URL_FIELD_NUMBER = 6; private java.lang.String typeUrl_; /** *
   * The field type URL, without the scheme, for message or enumeration
   * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
   * 
* * string type_url = 6; * @return The typeUrl. */ @java.lang.Override public java.lang.String getTypeUrl() { return typeUrl_; } /** *
   * The field type URL, without the scheme, for message or enumeration
   * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
   * 
* * string type_url = 6; * @return The bytes for typeUrl. */ @java.lang.Override public com.google.protobuf.ByteString getTypeUrlBytes() { return com.google.protobuf.ByteString.copyFromUtf8(typeUrl_); } /** *
   * The field type URL, without the scheme, for message or enumeration
   * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
   * 
* * string type_url = 6; * @param value The typeUrl to set. */ private void setTypeUrl( java.lang.String value) { value.getClass(); typeUrl_ = value; } /** *
   * The field type URL, without the scheme, for message or enumeration
   * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
   * 
* * string type_url = 6; */ private void clearTypeUrl() { typeUrl_ = getDefaultInstance().getTypeUrl(); } /** *
   * The field type URL, without the scheme, for message or enumeration
   * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
   * 
* * string type_url = 6; * @param value The bytes for typeUrl to set. */ private void setTypeUrlBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); typeUrl_ = value.toStringUtf8(); } 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.
   * 
* * int32 oneof_index = 7; * @return The oneofIndex. */ @java.lang.Override 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.
   * 
* * int32 oneof_index = 7; * @param value The oneofIndex to set. */ private void setOneofIndex(int value) { oneofIndex_ = value; } /** *
   * 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.
   * 
* * int32 oneof_index = 7; */ private void clearOneofIndex() { oneofIndex_ = 0; } public static final int PACKED_FIELD_NUMBER = 8; private boolean packed_; /** *
   * Whether to use alternative packed wire representation.
   * 
* * bool packed = 8; * @return The packed. */ @java.lang.Override public boolean getPacked() { return packed_; } /** *
   * Whether to use alternative packed wire representation.
   * 
* * bool packed = 8; * @param value The packed to set. */ private void setPacked(boolean value) { packed_ = value; } /** *
   * Whether to use alternative packed wire representation.
   * 
* * bool packed = 8; */ private void clearPacked() { packed_ = false; } public static final int OPTIONS_FIELD_NUMBER = 9; private com.google.protobuf.Internal.ProtobufList options_; /** *
   * The protocol buffer options.
   * 
* * repeated .google.protobuf.Option options = 9; */ @java.lang.Override 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; */ @java.lang.Override public int getOptionsCount() { return options_.size(); } /** *
   * The protocol buffer options.
   * 
* * repeated .google.protobuf.Option options = 9; */ @java.lang.Override public com.google.protobuf.Option getOptions(int index) { return options_.get(index); } /** *
   * The protocol buffer options.
   * 
* * repeated .google.protobuf.Option options = 9; */ public com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( int index) { return options_.get(index); } private void ensureOptionsIsMutable() { if (!options_.isModifiable()) { options_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(options_); } } /** *
   * The protocol buffer options.
   * 
* * repeated .google.protobuf.Option options = 9; */ private void setOptions( int index, com.google.protobuf.Option value) { value.getClass(); ensureOptionsIsMutable(); options_.set(index, value); } /** *
   * The protocol buffer options.
   * 
* * repeated .google.protobuf.Option options = 9; */ private void addOptions(com.google.protobuf.Option value) { value.getClass(); ensureOptionsIsMutable(); options_.add(value); } /** *
   * The protocol buffer options.
   * 
* * repeated .google.protobuf.Option options = 9; */ private void addOptions( int index, com.google.protobuf.Option value) { value.getClass(); ensureOptionsIsMutable(); options_.add(index, value); } /** *
   * The protocol buffer options.
   * 
* * repeated .google.protobuf.Option options = 9; */ private void addAllOptions( java.lang.Iterable values) { ensureOptionsIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, options_); } /** *
   * The protocol buffer options.
   * 
* * repeated .google.protobuf.Option options = 9; */ private void clearOptions() { options_ = emptyProtobufList(); } /** *
   * The protocol buffer options.
   * 
* * repeated .google.protobuf.Option options = 9; */ private void removeOptions(int index) { ensureOptionsIsMutable(); options_.remove(index); } public static final int JSON_NAME_FIELD_NUMBER = 10; private java.lang.String jsonName_; /** *
   * The field JSON name.
   * 
* * string json_name = 10; * @return The jsonName. */ @java.lang.Override public java.lang.String getJsonName() { return jsonName_; } /** *
   * The field JSON name.
   * 
* * string json_name = 10; * @return The bytes for jsonName. */ @java.lang.Override public com.google.protobuf.ByteString getJsonNameBytes() { return com.google.protobuf.ByteString.copyFromUtf8(jsonName_); } /** *
   * The field JSON name.
   * 
* * string json_name = 10; * @param value The jsonName to set. */ private void setJsonName( java.lang.String value) { value.getClass(); jsonName_ = value; } /** *
   * The field JSON name.
   * 
* * string json_name = 10; */ private void clearJsonName() { jsonName_ = getDefaultInstance().getJsonName(); } /** *
   * The field JSON name.
   * 
* * string json_name = 10; * @param value The bytes for jsonName to set. */ private void setJsonNameBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); jsonName_ = value.toStringUtf8(); } public static final int DEFAULT_VALUE_FIELD_NUMBER = 11; private java.lang.String defaultValue_; /** *
   * The string value of the default value of this field. Proto2 syntax only.
   * 
* * string default_value = 11; * @return The defaultValue. */ @java.lang.Override public java.lang.String getDefaultValue() { return defaultValue_; } /** *
   * The string value of the default value of this field. Proto2 syntax only.
   * 
* * string default_value = 11; * @return The bytes for defaultValue. */ @java.lang.Override public com.google.protobuf.ByteString getDefaultValueBytes() { return com.google.protobuf.ByteString.copyFromUtf8(defaultValue_); } /** *
   * The string value of the default value of this field. Proto2 syntax only.
   * 
* * string default_value = 11; * @param value The defaultValue to set. */ private void setDefaultValue( java.lang.String value) { value.getClass(); defaultValue_ = value; } /** *
   * The string value of the default value of this field. Proto2 syntax only.
   * 
* * string default_value = 11; */ private void clearDefaultValue() { defaultValue_ = getDefaultInstance().getDefaultValue(); } /** *
   * The string value of the default value of this field. Proto2 syntax only.
   * 
* * string default_value = 11; * @param value The bytes for defaultValue to set. */ private void setDefaultValueBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); defaultValue_ = value.toStringUtf8(); } public static com.google.protobuf.Field parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.google.protobuf.Field parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.google.protobuf.Field parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.google.protobuf.Field parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.google.protobuf.Field parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.google.protobuf.Field parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.google.protobuf.Field parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static com.google.protobuf.Field parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.google.protobuf.Field parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.google.protobuf.Field parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static Builder newBuilder(com.google.protobuf.Field prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   * A single field of a message type.
   * 
* * Protobuf type {@code google.protobuf.Field} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protobuf.Field, Builder> implements // @@protoc_insertion_point(builder_implements:google.protobuf.Field) com.google.protobuf.FieldOrBuilder { // Construct using com.google.protobuf.Field.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     * The field type.
     * 
* * .google.protobuf.Field.Kind kind = 1; * @return The enum numeric value on the wire for kind. */ @java.lang.Override public int getKindValue() { return instance.getKindValue(); } /** *
     * The field type.
     * 
* * .google.protobuf.Field.Kind kind = 1; * @param value The kind to set. * @return This builder for chaining. */ public Builder setKindValue(int value) { copyOnWrite(); instance.setKindValue(value); return this; } /** *
     * The field type.
     * 
* * .google.protobuf.Field.Kind kind = 1; * @return The kind. */ @java.lang.Override public com.google.protobuf.Field.Kind getKind() { return instance.getKind(); } /** *
     * The field type.
     * 
* * .google.protobuf.Field.Kind kind = 1; * @param value The enum numeric value on the wire for kind to set. * @return This builder for chaining. */ public Builder setKind(com.google.protobuf.Field.Kind value) { copyOnWrite(); instance.setKind(value); return this; } /** *
     * The field type.
     * 
* * .google.protobuf.Field.Kind kind = 1; * @return This builder for chaining. */ public Builder clearKind() { copyOnWrite(); instance.clearKind(); return this; } /** *
     * The field cardinality.
     * 
* * .google.protobuf.Field.Cardinality cardinality = 2; * @return The enum numeric value on the wire for cardinality. */ @java.lang.Override public int getCardinalityValue() { return instance.getCardinalityValue(); } /** *
     * The field cardinality.
     * 
* * .google.protobuf.Field.Cardinality cardinality = 2; * @param value The cardinality to set. * @return This builder for chaining. */ public Builder setCardinalityValue(int value) { copyOnWrite(); instance.setCardinalityValue(value); return this; } /** *
     * The field cardinality.
     * 
* * .google.protobuf.Field.Cardinality cardinality = 2; * @return The cardinality. */ @java.lang.Override public com.google.protobuf.Field.Cardinality getCardinality() { return instance.getCardinality(); } /** *
     * The field cardinality.
     * 
* * .google.protobuf.Field.Cardinality cardinality = 2; * @param value The enum numeric value on the wire for cardinality to set. * @return This builder for chaining. */ public Builder setCardinality(com.google.protobuf.Field.Cardinality value) { copyOnWrite(); instance.setCardinality(value); return this; } /** *
     * The field cardinality.
     * 
* * .google.protobuf.Field.Cardinality cardinality = 2; * @return This builder for chaining. */ public Builder clearCardinality() { copyOnWrite(); instance.clearCardinality(); return this; } /** *
     * The field number.
     * 
* * int32 number = 3; * @return The number. */ @java.lang.Override public int getNumber() { return instance.getNumber(); } /** *
     * The field number.
     * 
* * int32 number = 3; * @param value The number to set. * @return This builder for chaining. */ public Builder setNumber(int value) { copyOnWrite(); instance.setNumber(value); return this; } /** *
     * The field number.
     * 
* * int32 number = 3; * @return This builder for chaining. */ public Builder clearNumber() { copyOnWrite(); instance.clearNumber(); return this; } /** *
     * The field name.
     * 
* * string name = 4; * @return The name. */ @java.lang.Override public java.lang.String getName() { return instance.getName(); } /** *
     * The field name.
     * 
* * string name = 4; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { return instance.getNameBytes(); } /** *
     * The field name.
     * 
* * string name = 4; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { copyOnWrite(); instance.setName(value); return this; } /** *
     * The field name.
     * 
* * string name = 4; * @return This builder for chaining. */ public Builder clearName() { copyOnWrite(); instance.clearName(); return this; } /** *
     * The field name.
     * 
* * string name = 4; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setNameBytes(value); return this; } /** *
     * The field type URL, without the scheme, for message or enumeration
     * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
     * 
* * string type_url = 6; * @return The typeUrl. */ @java.lang.Override public java.lang.String getTypeUrl() { return instance.getTypeUrl(); } /** *
     * The field type URL, without the scheme, for message or enumeration
     * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
     * 
* * string type_url = 6; * @return The bytes for typeUrl. */ @java.lang.Override public com.google.protobuf.ByteString getTypeUrlBytes() { return instance.getTypeUrlBytes(); } /** *
     * The field type URL, without the scheme, for message or enumeration
     * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
     * 
* * string type_url = 6; * @param value The typeUrl to set. * @return This builder for chaining. */ public Builder setTypeUrl( java.lang.String value) { copyOnWrite(); instance.setTypeUrl(value); return this; } /** *
     * The field type URL, without the scheme, for message or enumeration
     * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
     * 
* * string type_url = 6; * @return This builder for chaining. */ public Builder clearTypeUrl() { copyOnWrite(); instance.clearTypeUrl(); return this; } /** *
     * The field type URL, without the scheme, for message or enumeration
     * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
     * 
* * string type_url = 6; * @param value The bytes for typeUrl to set. * @return This builder for chaining. */ public Builder setTypeUrlBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTypeUrlBytes(value); 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.
     * 
* * int32 oneof_index = 7; * @return The oneofIndex. */ @java.lang.Override public int getOneofIndex() { return instance.getOneofIndex(); } /** *
     * 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.
     * 
* * int32 oneof_index = 7; * @param value The oneofIndex to set. * @return This builder for chaining. */ public Builder setOneofIndex(int value) { copyOnWrite(); instance.setOneofIndex(value); 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.
     * 
* * int32 oneof_index = 7; * @return This builder for chaining. */ public Builder clearOneofIndex() { copyOnWrite(); instance.clearOneofIndex(); return this; } /** *
     * Whether to use alternative packed wire representation.
     * 
* * bool packed = 8; * @return The packed. */ @java.lang.Override public boolean getPacked() { return instance.getPacked(); } /** *
     * Whether to use alternative packed wire representation.
     * 
* * bool packed = 8; * @param value The packed to set. * @return This builder for chaining. */ public Builder setPacked(boolean value) { copyOnWrite(); instance.setPacked(value); return this; } /** *
     * Whether to use alternative packed wire representation.
     * 
* * bool packed = 8; * @return This builder for chaining. */ public Builder clearPacked() { copyOnWrite(); instance.clearPacked(); return this; } /** *
     * The protocol buffer options.
     * 
* * repeated .google.protobuf.Option options = 9; */ @java.lang.Override public java.util.List getOptionsList() { return java.util.Collections.unmodifiableList( instance.getOptionsList()); } /** *
     * The protocol buffer options.
     * 
* * repeated .google.protobuf.Option options = 9; */ @java.lang.Override public int getOptionsCount() { return instance.getOptionsCount(); }/** *
     * The protocol buffer options.
     * 
* * repeated .google.protobuf.Option options = 9; */ @java.lang.Override public com.google.protobuf.Option getOptions(int index) { return instance.getOptions(index); } /** *
     * The protocol buffer options.
     * 
* * repeated .google.protobuf.Option options = 9; */ public Builder setOptions( int index, com.google.protobuf.Option value) { copyOnWrite(); instance.setOptions(index, value); return this; } /** *
     * The protocol buffer options.
     * 
* * repeated .google.protobuf.Option options = 9; */ public Builder setOptions( int index, com.google.protobuf.Option.Builder builderForValue) { copyOnWrite(); instance.setOptions(index, builderForValue.build()); return this; } /** *
     * The protocol buffer options.
     * 
* * repeated .google.protobuf.Option options = 9; */ public Builder addOptions(com.google.protobuf.Option value) { copyOnWrite(); instance.addOptions(value); return this; } /** *
     * The protocol buffer options.
     * 
* * repeated .google.protobuf.Option options = 9; */ public Builder addOptions( int index, com.google.protobuf.Option value) { copyOnWrite(); instance.addOptions(index, value); return this; } /** *
     * The protocol buffer options.
     * 
* * repeated .google.protobuf.Option options = 9; */ public Builder addOptions( com.google.protobuf.Option.Builder builderForValue) { copyOnWrite(); instance.addOptions(builderForValue.build()); return this; } /** *
     * The protocol buffer options.
     * 
* * repeated .google.protobuf.Option options = 9; */ public Builder addOptions( int index, com.google.protobuf.Option.Builder builderForValue) { copyOnWrite(); instance.addOptions(index, builderForValue.build()); return this; } /** *
     * The protocol buffer options.
     * 
* * repeated .google.protobuf.Option options = 9; */ public Builder addAllOptions( java.lang.Iterable values) { copyOnWrite(); instance.addAllOptions(values); return this; } /** *
     * The protocol buffer options.
     * 
* * repeated .google.protobuf.Option options = 9; */ public Builder clearOptions() { copyOnWrite(); instance.clearOptions(); return this; } /** *
     * The protocol buffer options.
     * 
* * repeated .google.protobuf.Option options = 9; */ public Builder removeOptions(int index) { copyOnWrite(); instance.removeOptions(index); return this; } /** *
     * The field JSON name.
     * 
* * string json_name = 10; * @return The jsonName. */ @java.lang.Override public java.lang.String getJsonName() { return instance.getJsonName(); } /** *
     * The field JSON name.
     * 
* * string json_name = 10; * @return The bytes for jsonName. */ @java.lang.Override public com.google.protobuf.ByteString getJsonNameBytes() { return instance.getJsonNameBytes(); } /** *
     * The field JSON name.
     * 
* * string json_name = 10; * @param value The jsonName to set. * @return This builder for chaining. */ public Builder setJsonName( java.lang.String value) { copyOnWrite(); instance.setJsonName(value); return this; } /** *
     * The field JSON name.
     * 
* * string json_name = 10; * @return This builder for chaining. */ public Builder clearJsonName() { copyOnWrite(); instance.clearJsonName(); return this; } /** *
     * The field JSON name.
     * 
* * string json_name = 10; * @param value The bytes for jsonName to set. * @return This builder for chaining. */ public Builder setJsonNameBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setJsonNameBytes(value); return this; } /** *
     * The string value of the default value of this field. Proto2 syntax only.
     * 
* * string default_value = 11; * @return The defaultValue. */ @java.lang.Override public java.lang.String getDefaultValue() { return instance.getDefaultValue(); } /** *
     * The string value of the default value of this field. Proto2 syntax only.
     * 
* * string default_value = 11; * @return The bytes for defaultValue. */ @java.lang.Override public com.google.protobuf.ByteString getDefaultValueBytes() { return instance.getDefaultValueBytes(); } /** *
     * The string value of the default value of this field. Proto2 syntax only.
     * 
* * string default_value = 11; * @param value The defaultValue to set. * @return This builder for chaining. */ public Builder setDefaultValue( java.lang.String value) { copyOnWrite(); instance.setDefaultValue(value); return this; } /** *
     * The string value of the default value of this field. Proto2 syntax only.
     * 
* * string default_value = 11; * @return This builder for chaining. */ public Builder clearDefaultValue() { copyOnWrite(); instance.clearDefaultValue(); return this; } /** *
     * The string value of the default value of this field. Proto2 syntax only.
     * 
* * string default_value = 11; * @param value The bytes for defaultValue to set. * @return This builder for chaining. */ public Builder setDefaultValueBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setDefaultValueBytes(value); return this; } // @@protoc_insertion_point(builder_scope:google.protobuf.Field) } @java.lang.Override @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) protected final java.lang.Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new com.google.protobuf.Field(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "kind_", "cardinality_", "number_", "name_", "typeUrl_", "oneofIndex_", "packed_", "options_", com.google.protobuf.Option.class, "jsonName_", "defaultValue_", }; java.lang.String info = "\u0000\n\u0000\u0000\u0001\u000b\n\u0000\u0001\u0000\u0001\f\u0002\f\u0003\u0004" + "\u0004\u0208\u0006\u0208\u0007\u0004\b\u0007\t\u001b\n\u0208\u000b\u0208"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (com.google.protobuf.Field.class) { parser = PARSER; if (parser == null) { parser = new DefaultInstanceBasedParser( DEFAULT_INSTANCE); PARSER = parser; } } } return parser; } case GET_MEMOIZED_IS_INITIALIZED: { return (byte) 1; } case SET_MEMOIZED_IS_INITIALIZED: { return null; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:google.protobuf.Field) private static final com.google.protobuf.Field DEFAULT_INSTANCE; static { Field defaultInstance = new Field(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( Field.class, defaultInstance); } public static com.google.protobuf.Field getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy