com.google.protobuf.Field Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobuf-kotlin-lite Show documentation
Show all versions of protobuf-kotlin-lite Show documentation
Kotlin lite Protocol Buffers library. Protocol Buffers are a way of encoding structured data in an
efficient yet extensible format.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: google/protobuf/type.proto
// Protobuf Java Version: 4.28.2
package com.google.protobuf;
/**
* 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_ = "";
}
/**
* Protobuf enum {@code google.protobuf.Field.Kind}
*/
public enum Kind
implements com.google.protobuf.Internal.EnumLite {
/**
* TYPE_UNKNOWN = 0;
*/
TYPE_UNKNOWN(0),
/**
* TYPE_DOUBLE = 1;
*/
TYPE_DOUBLE(1),
/**
* TYPE_FLOAT = 2;
*/
TYPE_FLOAT(2),
/**
* TYPE_INT64 = 3;
*/
TYPE_INT64(3),
/**
* TYPE_UINT64 = 4;
*/
TYPE_UINT64(4),
/**
* TYPE_INT32 = 5;
*/
TYPE_INT32(5),
/**
* TYPE_FIXED64 = 6;
*/
TYPE_FIXED64(6),
/**
* TYPE_FIXED32 = 7;
*/
TYPE_FIXED32(7),
/**
* TYPE_BOOL = 8;
*/
TYPE_BOOL(8),
/**
* TYPE_STRING = 9;
*/
TYPE_STRING(9),
/**
* TYPE_GROUP = 10;
*/
TYPE_GROUP(10),
/**
* TYPE_MESSAGE = 11;
*/
TYPE_MESSAGE(11),
/**
* TYPE_BYTES = 12;
*/
TYPE_BYTES(12),
/**
* TYPE_UINT32 = 13;
*/
TYPE_UINT32(13),
/**
* TYPE_ENUM = 14;
*/
TYPE_ENUM(14),
/**
* TYPE_SFIXED32 = 15;
*/
TYPE_SFIXED32(15),
/**
* TYPE_SFIXED64 = 16;
*/
TYPE_SFIXED64(16),
/**
* TYPE_SINT32 = 17;
*/
TYPE_SINT32(17),
/**
* TYPE_SINT64 = 18;
*/
TYPE_SINT64(18),
UNRECOGNIZED(-1),
;
/**
* TYPE_UNKNOWN = 0;
*/
public static final int TYPE_UNKNOWN_VALUE = 0;
/**
* TYPE_DOUBLE = 1;
*/
public static final int TYPE_DOUBLE_VALUE = 1;
/**
* TYPE_FLOAT = 2;
*/
public static final int TYPE_FLOAT_VALUE = 2;
/**
* TYPE_INT64 = 3;
*/
public static final int TYPE_INT64_VALUE = 3;
/**
* TYPE_UINT64 = 4;
*/
public static final int TYPE_UINT64_VALUE = 4;
/**
* TYPE_INT32 = 5;
*/
public static final int TYPE_INT32_VALUE = 5;
/**
* TYPE_FIXED64 = 6;
*/
public static final int TYPE_FIXED64_VALUE = 6;
/**
* TYPE_FIXED32 = 7;
*/
public static final int TYPE_FIXED32_VALUE = 7;
/**
* TYPE_BOOL = 8;
*/
public static final int TYPE_BOOL_VALUE = 8;
/**
* TYPE_STRING = 9;
*/
public static final int TYPE_STRING_VALUE = 9;
/**
* TYPE_GROUP = 10;
*/
public static final int TYPE_GROUP_VALUE = 10;
/**
* TYPE_MESSAGE = 11;
*/
public static final int TYPE_MESSAGE_VALUE = 11;
/**
* TYPE_BYTES = 12;
*/
public static final int TYPE_BYTES_VALUE = 12;
/**
* TYPE_UINT32 = 13;
*/
public static final int TYPE_UINT32_VALUE = 13;
/**
* TYPE_ENUM = 14;
*/
public static final int TYPE_ENUM_VALUE = 14;
/**
* TYPE_SFIXED32 = 15;
*/
public static final int TYPE_SFIXED32_VALUE = 15;
/**
* TYPE_SFIXED64 = 16;
*/
public static final int TYPE_SFIXED64_VALUE = 16;
/**
* TYPE_SINT32 = 17;
*/
public static final int TYPE_SINT32_VALUE = 17;
/**
* 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)
}
/**
* Protobuf enum {@code google.protobuf.Field.Cardinality}
*/
public enum Cardinality
implements com.google.protobuf.Internal.EnumLite {
/**
* CARDINALITY_UNKNOWN = 0;
*/
CARDINALITY_UNKNOWN(0),
/**
* CARDINALITY_OPTIONAL = 1;
*/
CARDINALITY_OPTIONAL(1),
/**
* CARDINALITY_REQUIRED = 2;
*/
CARDINALITY_REQUIRED(2),
/**
* CARDINALITY_REPEATED = 3;
*/
CARDINALITY_REPEATED(3),
UNRECOGNIZED(-1),
;
/**
* CARDINALITY_UNKNOWN = 0;
*/
public static final int CARDINALITY_UNKNOWN_VALUE = 0;
/**
* CARDINALITY_OPTIONAL = 1;
*/
public static final int CARDINALITY_OPTIONAL_VALUE = 1;
/**
* CARDINALITY_REQUIRED = 2;
*/
public static final int CARDINALITY_REQUIRED_VALUE = 2;
/**
* 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_;
/**
* .google.protobuf.Field.Kind kind = 1 [json_name = "kind"];
* @return The enum numeric value on the wire for kind.
*/
@java.lang.Override
public int getKindValue() {
return kind_;
}
/**
* .google.protobuf.Field.Kind kind = 1 [json_name = "kind"];
* @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;
}
/**
* .google.protobuf.Field.Kind kind = 1 [json_name = "kind"];
* @param value The enum numeric value on the wire for kind to set.
*/
private void setKindValue(int value) {
kind_ = value;
}
/**
* .google.protobuf.Field.Kind kind = 1 [json_name = "kind"];
* @param value The kind to set.
*/
private void setKind(com.google.protobuf.Field.Kind value) {
kind_ = value.getNumber();
}
/**
* .google.protobuf.Field.Kind kind = 1 [json_name = "kind"];
*/
private void clearKind() {
kind_ = 0;
}
public static final int CARDINALITY_FIELD_NUMBER = 2;
private int cardinality_;
/**
* .google.protobuf.Field.Cardinality cardinality = 2 [json_name = "cardinality"];
* @return The enum numeric value on the wire for cardinality.
*/
@java.lang.Override
public int getCardinalityValue() {
return cardinality_;
}
/**
* .google.protobuf.Field.Cardinality cardinality = 2 [json_name = "cardinality"];
* @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;
}
/**
* .google.protobuf.Field.Cardinality cardinality = 2 [json_name = "cardinality"];
* @param value The enum numeric value on the wire for cardinality to set.
*/
private void setCardinalityValue(int value) {
cardinality_ = value;
}
/**
* .google.protobuf.Field.Cardinality cardinality = 2 [json_name = "cardinality"];
* @param value The cardinality to set.
*/
private void setCardinality(com.google.protobuf.Field.Cardinality value) {
cardinality_ = value.getNumber();
}
/**
* .google.protobuf.Field.Cardinality cardinality = 2 [json_name = "cardinality"];
*/
private void clearCardinality() {
cardinality_ = 0;
}
public static final int NUMBER_FIELD_NUMBER = 3;
private int number_;
/**
* int32 number = 3 [json_name = "number"];
* @return The number.
*/
@java.lang.Override
public int getNumber() {
return number_;
}
/**
* int32 number = 3 [json_name = "number"];
* @param value The number to set.
*/
private void setNumber(int value) {
number_ = value;
}
/**
* int32 number = 3 [json_name = "number"];
*/
private void clearNumber() {
number_ = 0;
}
public static final int NAME_FIELD_NUMBER = 4;
private java.lang.String name_;
/**
* string name = 4 [json_name = "name"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
return name_;
}
/**
* string name = 4 [json_name = "name"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(name_);
}
/**
* string name = 4 [json_name = "name"];
* @param value The name to set.
*/
private void setName(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
name_ = value;
}
/**
* string name = 4 [json_name = "name"];
*/
private void clearName() {
name_ = getDefaultInstance().getName();
}
/**
* string name = 4 [json_name = "name"];
* @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_;
/**
* string type_url = 6 [json_name = "typeUrl"];
* @return The typeUrl.
*/
@java.lang.Override
public java.lang.String getTypeUrl() {
return typeUrl_;
}
/**
* string type_url = 6 [json_name = "typeUrl"];
* @return The bytes for typeUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeUrlBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(typeUrl_);
}
/**
* string type_url = 6 [json_name = "typeUrl"];
* @param value The typeUrl to set.
*/
private void setTypeUrl(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
typeUrl_ = value;
}
/**
* string type_url = 6 [json_name = "typeUrl"];
*/
private void clearTypeUrl() {
typeUrl_ = getDefaultInstance().getTypeUrl();
}
/**
* string type_url = 6 [json_name = "typeUrl"];
* @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_;
/**
* int32 oneof_index = 7 [json_name = "oneofIndex"];
* @return The oneofIndex.
*/
@java.lang.Override
public int getOneofIndex() {
return oneofIndex_;
}
/**
* int32 oneof_index = 7 [json_name = "oneofIndex"];
* @param value The oneofIndex to set.
*/
private void setOneofIndex(int value) {
oneofIndex_ = value;
}
/**
* int32 oneof_index = 7 [json_name = "oneofIndex"];
*/
private void clearOneofIndex() {
oneofIndex_ = 0;
}
public static final int PACKED_FIELD_NUMBER = 8;
private boolean packed_;
/**
* bool packed = 8 [json_name = "packed"];
* @return The packed.
*/
@java.lang.Override
public boolean getPacked() {
return packed_;
}
/**
* bool packed = 8 [json_name = "packed"];
* @param value The packed to set.
*/
private void setPacked(boolean value) {
packed_ = value;
}
/**
* bool packed = 8 [json_name = "packed"];
*/
private void clearPacked() {
packed_ = false;
}
public static final int OPTIONS_FIELD_NUMBER = 9;
private com.google.protobuf.Internal.ProtobufList options_;
/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
@java.lang.Override
public java.util.List getOptionsList() {
return options_;
}
/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
public java.util.List extends com.google.protobuf.OptionOrBuilder>
getOptionsOrBuilderList() {
return options_;
}
/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
@java.lang.Override
public int getOptionsCount() {
return options_.size();
}
/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
@java.lang.Override
public com.google.protobuf.Option getOptions(int index) {
return options_.get(index);
}
/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
public com.google.protobuf.OptionOrBuilder getOptionsOrBuilder(
int index) {
return options_.get(index);
}
private void ensureOptionsIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = options_;
if (!tmp.isModifiable()) {
options_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
private void setOptions(
int index, com.google.protobuf.Option value) {
value.getClass();
ensureOptionsIsMutable();
options_.set(index, value);
}
/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
private void addOptions(com.google.protobuf.Option value) {
value.getClass();
ensureOptionsIsMutable();
options_.add(value);
}
/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
private void addOptions(
int index, com.google.protobuf.Option value) {
value.getClass();
ensureOptionsIsMutable();
options_.add(index, value);
}
/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
private void addAllOptions(
java.lang.Iterable extends com.google.protobuf.Option> values) {
ensureOptionsIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, options_);
}
/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
private void clearOptions() {
options_ = emptyProtobufList();
}
/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
private void removeOptions(int index) {
ensureOptionsIsMutable();
options_.remove(index);
}
public static final int JSON_NAME_FIELD_NUMBER = 10;
private java.lang.String jsonName_;
/**
* string json_name = 10 [json_name = "jsonName"];
* @return The jsonName.
*/
@java.lang.Override
public java.lang.String getJsonName() {
return jsonName_;
}
/**
* string json_name = 10 [json_name = "jsonName"];
* @return The bytes for jsonName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getJsonNameBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(jsonName_);
}
/**
* string json_name = 10 [json_name = "jsonName"];
* @param value The jsonName to set.
*/
private void setJsonName(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
jsonName_ = value;
}
/**
* string json_name = 10 [json_name = "jsonName"];
*/
private void clearJsonName() {
jsonName_ = getDefaultInstance().getJsonName();
}
/**
* string json_name = 10 [json_name = "jsonName"];
* @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_;
/**
* string default_value = 11 [json_name = "defaultValue"];
* @return The defaultValue.
*/
@java.lang.Override
public java.lang.String getDefaultValue() {
return defaultValue_;
}
/**
* string default_value = 11 [json_name = "defaultValue"];
* @return The bytes for defaultValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDefaultValueBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(defaultValue_);
}
/**
* string default_value = 11 [json_name = "defaultValue"];
* @param value The defaultValue to set.
*/
private void setDefaultValue(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
defaultValue_ = value;
}
/**
* string default_value = 11 [json_name = "defaultValue"];
*/
private void clearDefaultValue() {
defaultValue_ = getDefaultInstance().getDefaultValue();
}
/**
* string default_value = 11 [json_name = "defaultValue"];
* @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 DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* 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);
}
/**
* .google.protobuf.Field.Kind kind = 1 [json_name = "kind"];
* @return The enum numeric value on the wire for kind.
*/
@java.lang.Override
public int getKindValue() {
return instance.getKindValue();
}
/**
* .google.protobuf.Field.Kind kind = 1 [json_name = "kind"];
* @param value The kind to set.
* @return This builder for chaining.
*/
public Builder setKindValue(int value) {
copyOnWrite();
instance.setKindValue(value);
return this;
}
/**
* .google.protobuf.Field.Kind kind = 1 [json_name = "kind"];
* @return The kind.
*/
@java.lang.Override
public com.google.protobuf.Field.Kind getKind() {
return instance.getKind();
}
/**
* .google.protobuf.Field.Kind kind = 1 [json_name = "kind"];
* @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;
}
/**
* .google.protobuf.Field.Kind kind = 1 [json_name = "kind"];
* @return This builder for chaining.
*/
public Builder clearKind() {
copyOnWrite();
instance.clearKind();
return this;
}
/**
* .google.protobuf.Field.Cardinality cardinality = 2 [json_name = "cardinality"];
* @return The enum numeric value on the wire for cardinality.
*/
@java.lang.Override
public int getCardinalityValue() {
return instance.getCardinalityValue();
}
/**
* .google.protobuf.Field.Cardinality cardinality = 2 [json_name = "cardinality"];
* @param value The cardinality to set.
* @return This builder for chaining.
*/
public Builder setCardinalityValue(int value) {
copyOnWrite();
instance.setCardinalityValue(value);
return this;
}
/**
* .google.protobuf.Field.Cardinality cardinality = 2 [json_name = "cardinality"];
* @return The cardinality.
*/
@java.lang.Override
public com.google.protobuf.Field.Cardinality getCardinality() {
return instance.getCardinality();
}
/**
* .google.protobuf.Field.Cardinality cardinality = 2 [json_name = "cardinality"];
* @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;
}
/**
* .google.protobuf.Field.Cardinality cardinality = 2 [json_name = "cardinality"];
* @return This builder for chaining.
*/
public Builder clearCardinality() {
copyOnWrite();
instance.clearCardinality();
return this;
}
/**
* int32 number = 3 [json_name = "number"];
* @return The number.
*/
@java.lang.Override
public int getNumber() {
return instance.getNumber();
}
/**
* int32 number = 3 [json_name = "number"];
* @param value The number to set.
* @return This builder for chaining.
*/
public Builder setNumber(int value) {
copyOnWrite();
instance.setNumber(value);
return this;
}
/**
* int32 number = 3 [json_name = "number"];
* @return This builder for chaining.
*/
public Builder clearNumber() {
copyOnWrite();
instance.clearNumber();
return this;
}
/**
* string name = 4 [json_name = "name"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
return instance.getName();
}
/**
* string name = 4 [json_name = "name"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
return instance.getNameBytes();
}
/**
* string name = 4 [json_name = "name"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
copyOnWrite();
instance.setName(value);
return this;
}
/**
* string name = 4 [json_name = "name"];
* @return This builder for chaining.
*/
public Builder clearName() {
copyOnWrite();
instance.clearName();
return this;
}
/**
* string name = 4 [json_name = "name"];
* @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;
}
/**
* string type_url = 6 [json_name = "typeUrl"];
* @return The typeUrl.
*/
@java.lang.Override
public java.lang.String getTypeUrl() {
return instance.getTypeUrl();
}
/**
* string type_url = 6 [json_name = "typeUrl"];
* @return The bytes for typeUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeUrlBytes() {
return instance.getTypeUrlBytes();
}
/**
* string type_url = 6 [json_name = "typeUrl"];
* @param value The typeUrl to set.
* @return This builder for chaining.
*/
public Builder setTypeUrl(
java.lang.String value) {
copyOnWrite();
instance.setTypeUrl(value);
return this;
}
/**
* string type_url = 6 [json_name = "typeUrl"];
* @return This builder for chaining.
*/
public Builder clearTypeUrl() {
copyOnWrite();
instance.clearTypeUrl();
return this;
}
/**
* string type_url = 6 [json_name = "typeUrl"];
* @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;
}
/**
* int32 oneof_index = 7 [json_name = "oneofIndex"];
* @return The oneofIndex.
*/
@java.lang.Override
public int getOneofIndex() {
return instance.getOneofIndex();
}
/**
* int32 oneof_index = 7 [json_name = "oneofIndex"];
* @param value The oneofIndex to set.
* @return This builder for chaining.
*/
public Builder setOneofIndex(int value) {
copyOnWrite();
instance.setOneofIndex(value);
return this;
}
/**
* int32 oneof_index = 7 [json_name = "oneofIndex"];
* @return This builder for chaining.
*/
public Builder clearOneofIndex() {
copyOnWrite();
instance.clearOneofIndex();
return this;
}
/**
* bool packed = 8 [json_name = "packed"];
* @return The packed.
*/
@java.lang.Override
public boolean getPacked() {
return instance.getPacked();
}
/**
* bool packed = 8 [json_name = "packed"];
* @param value The packed to set.
* @return This builder for chaining.
*/
public Builder setPacked(boolean value) {
copyOnWrite();
instance.setPacked(value);
return this;
}
/**
* bool packed = 8 [json_name = "packed"];
* @return This builder for chaining.
*/
public Builder clearPacked() {
copyOnWrite();
instance.clearPacked();
return this;
}
/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
@java.lang.Override
public java.util.List getOptionsList() {
return java.util.Collections.unmodifiableList(
instance.getOptionsList());
}
/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
@java.lang.Override
public int getOptionsCount() {
return instance.getOptionsCount();
}/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
@java.lang.Override
public com.google.protobuf.Option getOptions(int index) {
return instance.getOptions(index);
}
/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
public Builder setOptions(
int index, com.google.protobuf.Option value) {
copyOnWrite();
instance.setOptions(index, value);
return this;
}
/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
public Builder setOptions(
int index, com.google.protobuf.Option.Builder builderForValue) {
copyOnWrite();
instance.setOptions(index,
builderForValue.build());
return this;
}
/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
public Builder addOptions(com.google.protobuf.Option value) {
copyOnWrite();
instance.addOptions(value);
return this;
}
/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
public Builder addOptions(
int index, com.google.protobuf.Option value) {
copyOnWrite();
instance.addOptions(index, value);
return this;
}
/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
public Builder addOptions(
com.google.protobuf.Option.Builder builderForValue) {
copyOnWrite();
instance.addOptions(builderForValue.build());
return this;
}
/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
public Builder addOptions(
int index, com.google.protobuf.Option.Builder builderForValue) {
copyOnWrite();
instance.addOptions(index,
builderForValue.build());
return this;
}
/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
public Builder addAllOptions(
java.lang.Iterable extends com.google.protobuf.Option> values) {
copyOnWrite();
instance.addAllOptions(values);
return this;
}
/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
public Builder clearOptions() {
copyOnWrite();
instance.clearOptions();
return this;
}
/**
* repeated .google.protobuf.Option options = 9 [json_name = "options"];
*/
public Builder removeOptions(int index) {
copyOnWrite();
instance.removeOptions(index);
return this;
}
/**
* string json_name = 10 [json_name = "jsonName"];
* @return The jsonName.
*/
@java.lang.Override
public java.lang.String getJsonName() {
return instance.getJsonName();
}
/**
* string json_name = 10 [json_name = "jsonName"];
* @return The bytes for jsonName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getJsonNameBytes() {
return instance.getJsonNameBytes();
}
/**
* string json_name = 10 [json_name = "jsonName"];
* @param value The jsonName to set.
* @return This builder for chaining.
*/
public Builder setJsonName(
java.lang.String value) {
copyOnWrite();
instance.setJsonName(value);
return this;
}
/**
* string json_name = 10 [json_name = "jsonName"];
* @return This builder for chaining.
*/
public Builder clearJsonName() {
copyOnWrite();
instance.clearJsonName();
return this;
}
/**
* string json_name = 10 [json_name = "jsonName"];
* @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;
}
/**
* string default_value = 11 [json_name = "defaultValue"];
* @return The defaultValue.
*/
@java.lang.Override
public java.lang.String getDefaultValue() {
return instance.getDefaultValue();
}
/**
* string default_value = 11 [json_name = "defaultValue"];
* @return The bytes for defaultValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDefaultValueBytes() {
return instance.getDefaultValueBytes();
}
/**
* string default_value = 11 [json_name = "defaultValue"];
* @param value The defaultValue to set.
* @return This builder for chaining.
*/
public Builder setDefaultValue(
java.lang.String value) {
copyOnWrite();
instance.setDefaultValue(value);
return this;
}
/**
* string default_value = 11 [json_name = "defaultValue"];
* @return This builder for chaining.
*/
public Builder clearDefaultValue() {
copyOnWrite();
instance.clearDefaultValue();
return this;
}
/**
* string default_value = 11 [json_name = "defaultValue"];
* @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();
}
}