Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
*
* .google.protobuf.NullValue void_type = 201;
* @return Whether the voidType field is set.
*/
boolean hasVoidType();
/**
*
* Special types
*
*
* .google.protobuf.NullValue void_type = 201;
* @return The enum numeric value on the wire for voidType.
*/
int getVoidTypeValue();
/**
*
* Special types
*
*
* .google.protobuf.NullValue void_type = 201;
* @return The voidType.
*/
com.google.protobuf.NullValue getVoidType();
/**
* .google.protobuf.NullValue null_type = 202;
* @return Whether the nullType field is set.
*/
boolean hasNullType();
/**
* .google.protobuf.NullValue null_type = 202;
* @return The enum numeric value on the wire for nullType.
*/
int getNullTypeValue();
/**
* .google.protobuf.NullValue null_type = 202;
* @return The nullType.
*/
com.google.protobuf.NullValue getNullType();
/**
* .google.protobuf.NullValue empty_list_type = 203;
* @return Whether the emptyListType field is set.
*/
boolean hasEmptyListType();
/**
* .google.protobuf.NullValue empty_list_type = 203;
* @return The enum numeric value on the wire for emptyListType.
*/
int getEmptyListTypeValue();
/**
* .google.protobuf.NullValue empty_list_type = 203;
* @return The emptyListType.
*/
com.google.protobuf.NullValue getEmptyListType();
/**
* .google.protobuf.NullValue empty_dict_type = 204;
* @return Whether the emptyDictType field is set.
*/
boolean hasEmptyDictType();
/**
* .google.protobuf.NullValue empty_dict_type = 204;
* @return The enum numeric value on the wire for emptyDictType.
*/
int getEmptyDictTypeValue();
/**
* .google.protobuf.NullValue empty_dict_type = 204;
* @return The emptyDictType.
*/
com.google.protobuf.NullValue getEmptyDictType();
public com.yandex.ydb.ValueProtos.Type.TypeCase getTypeCase();
}
/**
* Protobuf type {@code Ydb.Type}
*/
public static final class Type extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Type)
TypeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Type.newBuilder() to construct.
private Type(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Type() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Type();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Type(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
typeCase_ = 1;
type_ = rawValue;
break;
}
case 18: {
com.yandex.ydb.ValueProtos.DecimalType.Builder subBuilder = null;
if (typeCase_ == 2) {
subBuilder = ((com.yandex.ydb.ValueProtos.DecimalType) type_).toBuilder();
}
type_ =
input.readMessage(com.yandex.ydb.ValueProtos.DecimalType.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.ValueProtos.DecimalType) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 2;
break;
}
case 810: {
com.yandex.ydb.ValueProtos.OptionalType.Builder subBuilder = null;
if (typeCase_ == 101) {
subBuilder = ((com.yandex.ydb.ValueProtos.OptionalType) type_).toBuilder();
}
type_ =
input.readMessage(com.yandex.ydb.ValueProtos.OptionalType.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.ValueProtos.OptionalType) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 101;
break;
}
case 818: {
com.yandex.ydb.ValueProtos.ListType.Builder subBuilder = null;
if (typeCase_ == 102) {
subBuilder = ((com.yandex.ydb.ValueProtos.ListType) type_).toBuilder();
}
type_ =
input.readMessage(com.yandex.ydb.ValueProtos.ListType.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.ValueProtos.ListType) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 102;
break;
}
case 826: {
com.yandex.ydb.ValueProtos.TupleType.Builder subBuilder = null;
if (typeCase_ == 103) {
subBuilder = ((com.yandex.ydb.ValueProtos.TupleType) type_).toBuilder();
}
type_ =
input.readMessage(com.yandex.ydb.ValueProtos.TupleType.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.ValueProtos.TupleType) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 103;
break;
}
case 834: {
com.yandex.ydb.ValueProtos.StructType.Builder subBuilder = null;
if (typeCase_ == 104) {
subBuilder = ((com.yandex.ydb.ValueProtos.StructType) type_).toBuilder();
}
type_ =
input.readMessage(com.yandex.ydb.ValueProtos.StructType.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.ValueProtos.StructType) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 104;
break;
}
case 842: {
com.yandex.ydb.ValueProtos.DictType.Builder subBuilder = null;
if (typeCase_ == 105) {
subBuilder = ((com.yandex.ydb.ValueProtos.DictType) type_).toBuilder();
}
type_ =
input.readMessage(com.yandex.ydb.ValueProtos.DictType.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.ValueProtos.DictType) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 105;
break;
}
case 850: {
com.yandex.ydb.ValueProtos.VariantType.Builder subBuilder = null;
if (typeCase_ == 106) {
subBuilder = ((com.yandex.ydb.ValueProtos.VariantType) type_).toBuilder();
}
type_ =
input.readMessage(com.yandex.ydb.ValueProtos.VariantType.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.ValueProtos.VariantType) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 106;
break;
}
case 858: {
com.yandex.ydb.ValueProtos.TaggedType.Builder subBuilder = null;
if (typeCase_ == 107) {
subBuilder = ((com.yandex.ydb.ValueProtos.TaggedType) type_).toBuilder();
}
type_ =
input.readMessage(com.yandex.ydb.ValueProtos.TaggedType.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.ValueProtos.TaggedType) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 107;
break;
}
case 1608: {
int rawValue = input.readEnum();
typeCase_ = 201;
type_ = rawValue;
break;
}
case 1616: {
int rawValue = input.readEnum();
typeCase_ = 202;
type_ = rawValue;
break;
}
case 1624: {
int rawValue = input.readEnum();
typeCase_ = 203;
type_ = rawValue;
break;
}
case 1632: {
int rawValue = input.readEnum();
typeCase_ = 204;
type_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_Type_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_Type_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.Type.class, com.yandex.ydb.ValueProtos.Type.Builder.class);
}
/**
* Protobuf enum {@code Ydb.Type.PrimitiveTypeId}
*/
public enum PrimitiveTypeId
implements com.google.protobuf.ProtocolMessageEnum {
/**
* PRIMITIVE_TYPE_ID_UNSPECIFIED = 0;
*/
PRIMITIVE_TYPE_ID_UNSPECIFIED(0),
/**
* BOOL = 6;
*/
BOOL(6),
/**
* INT8 = 7;
*/
INT8(7),
/**
* UINT8 = 5;
*/
UINT8(5),
/**
* INT16 = 8;
*/
INT16(8),
/**
* UINT16 = 9;
*/
UINT16(9),
/**
* INT32 = 1;
*/
INT32(1),
/**
* UINT32 = 2;
*/
UINT32(2),
/**
* INT64 = 3;
*/
INT64(3),
/**
* UINT64 = 4;
*/
UINT64(4),
/**
* FLOAT = 33;
*/
FLOAT(33),
/**
* DOUBLE = 32;
*/
DOUBLE(32),
/**
* DATE = 48;
*/
DATE(48),
/**
* DATETIME = 49;
*/
DATETIME(49),
/**
* TIMESTAMP = 50;
*/
TIMESTAMP(50),
/**
* INTERVAL = 51;
*/
INTERVAL(51),
/**
* TZ_DATE = 52;
*/
TZ_DATE(52),
/**
* TZ_DATETIME = 53;
*/
TZ_DATETIME(53),
/**
* TZ_TIMESTAMP = 54;
*/
TZ_TIMESTAMP(54),
/**
* STRING = 4097;
*/
STRING(4097),
/**
* UTF8 = 4608;
*/
UTF8(4608),
/**
* YSON = 4609;
*/
YSON(4609),
/**
* JSON = 4610;
*/
JSON(4610),
/**
* UUID = 4611;
*/
UUID(4611),
/**
* JSON_DOCUMENT = 4612;
*/
JSON_DOCUMENT(4612),
/**
* DYNUMBER = 4866;
*/
DYNUMBER(4866),
UNRECOGNIZED(-1),
;
/**
* PRIMITIVE_TYPE_ID_UNSPECIFIED = 0;
*/
public static final int PRIMITIVE_TYPE_ID_UNSPECIFIED_VALUE = 0;
/**
* BOOL = 6;
*/
public static final int BOOL_VALUE = 6;
/**
* INT8 = 7;
*/
public static final int INT8_VALUE = 7;
/**
* UINT8 = 5;
*/
public static final int UINT8_VALUE = 5;
/**
* INT16 = 8;
*/
public static final int INT16_VALUE = 8;
/**
* UINT16 = 9;
*/
public static final int UINT16_VALUE = 9;
/**
* INT32 = 1;
*/
public static final int INT32_VALUE = 1;
/**
* UINT32 = 2;
*/
public static final int UINT32_VALUE = 2;
/**
* INT64 = 3;
*/
public static final int INT64_VALUE = 3;
/**
* UINT64 = 4;
*/
public static final int UINT64_VALUE = 4;
/**
* FLOAT = 33;
*/
public static final int FLOAT_VALUE = 33;
/**
* DOUBLE = 32;
*/
public static final int DOUBLE_VALUE = 32;
/**
* DATE = 48;
*/
public static final int DATE_VALUE = 48;
/**
* DATETIME = 49;
*/
public static final int DATETIME_VALUE = 49;
/**
* TIMESTAMP = 50;
*/
public static final int TIMESTAMP_VALUE = 50;
/**
* INTERVAL = 51;
*/
public static final int INTERVAL_VALUE = 51;
/**
* TZ_DATE = 52;
*/
public static final int TZ_DATE_VALUE = 52;
/**
* TZ_DATETIME = 53;
*/
public static final int TZ_DATETIME_VALUE = 53;
/**
* TZ_TIMESTAMP = 54;
*/
public static final int TZ_TIMESTAMP_VALUE = 54;
/**
* STRING = 4097;
*/
public static final int STRING_VALUE = 4097;
/**
* UTF8 = 4608;
*/
public static final int UTF8_VALUE = 4608;
/**
* YSON = 4609;
*/
public static final int YSON_VALUE = 4609;
/**
* JSON = 4610;
*/
public static final int JSON_VALUE = 4610;
/**
* UUID = 4611;
*/
public static final int UUID_VALUE = 4611;
/**
* JSON_DOCUMENT = 4612;
*/
public static final int JSON_DOCUMENT_VALUE = 4612;
/**
* DYNUMBER = 4866;
*/
public static final int DYNUMBER_VALUE = 4866;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static PrimitiveTypeId valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static PrimitiveTypeId forNumber(int value) {
switch (value) {
case 0: return PRIMITIVE_TYPE_ID_UNSPECIFIED;
case 6: return BOOL;
case 7: return INT8;
case 5: return UINT8;
case 8: return INT16;
case 9: return UINT16;
case 1: return INT32;
case 2: return UINT32;
case 3: return INT64;
case 4: return UINT64;
case 33: return FLOAT;
case 32: return DOUBLE;
case 48: return DATE;
case 49: return DATETIME;
case 50: return TIMESTAMP;
case 51: return INTERVAL;
case 52: return TZ_DATE;
case 53: return TZ_DATETIME;
case 54: return TZ_TIMESTAMP;
case 4097: return STRING;
case 4608: return UTF8;
case 4609: return YSON;
case 4610: return JSON;
case 4611: return UUID;
case 4612: return JSON_DOCUMENT;
case 4866: return DYNUMBER;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
PrimitiveTypeId> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public PrimitiveTypeId findValueByNumber(int number) {
return PrimitiveTypeId.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.Type.getDescriptor().getEnumTypes().get(0);
}
private static final PrimitiveTypeId[] VALUES = values();
public static PrimitiveTypeId valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private PrimitiveTypeId(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Ydb.Type.PrimitiveTypeId)
}
private int typeCase_ = 0;
private java.lang.Object type_;
public enum TypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
TYPE_ID(1),
DECIMAL_TYPE(2),
OPTIONAL_TYPE(101),
LIST_TYPE(102),
TUPLE_TYPE(103),
STRUCT_TYPE(104),
DICT_TYPE(105),
VARIANT_TYPE(106),
TAGGED_TYPE(107),
VOID_TYPE(201),
NULL_TYPE(202),
EMPTY_LIST_TYPE(203),
EMPTY_DICT_TYPE(204),
TYPE_NOT_SET(0);
private final int value;
private TypeCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TypeCase valueOf(int value) {
return forNumber(value);
}
public static TypeCase forNumber(int value) {
switch (value) {
case 1: return TYPE_ID;
case 2: return DECIMAL_TYPE;
case 101: return OPTIONAL_TYPE;
case 102: return LIST_TYPE;
case 103: return TUPLE_TYPE;
case 104: return STRUCT_TYPE;
case 105: return DICT_TYPE;
case 106: return VARIANT_TYPE;
case 107: return TAGGED_TYPE;
case 201: return VOID_TYPE;
case 202: return NULL_TYPE;
case 203: return EMPTY_LIST_TYPE;
case 204: return EMPTY_DICT_TYPE;
case 0: return TYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public TypeCase
getTypeCase() {
return TypeCase.forNumber(
typeCase_);
}
public static final int TYPE_ID_FIELD_NUMBER = 1;
/**
*
* Data types
*
*
* .Ydb.Type.PrimitiveTypeId type_id = 1;
* @return Whether the typeId field is set.
*/
public boolean hasTypeId() {
return typeCase_ == 1;
}
/**
*
* Data types
*
*
* .Ydb.Type.PrimitiveTypeId type_id = 1;
* @return The enum numeric value on the wire for typeId.
*/
public int getTypeIdValue() {
if (typeCase_ == 1) {
return (java.lang.Integer) type_;
}
return 0;
}
/**
*
* Data types
*
*
* .Ydb.Type.PrimitiveTypeId type_id = 1;
* @return The typeId.
*/
public com.yandex.ydb.ValueProtos.Type.PrimitiveTypeId getTypeId() {
if (typeCase_ == 1) {
@SuppressWarnings("deprecation")
com.yandex.ydb.ValueProtos.Type.PrimitiveTypeId result = com.yandex.ydb.ValueProtos.Type.PrimitiveTypeId.valueOf(
(java.lang.Integer) type_);
return result == null ? com.yandex.ydb.ValueProtos.Type.PrimitiveTypeId.UNRECOGNIZED : result;
}
return com.yandex.ydb.ValueProtos.Type.PrimitiveTypeId.PRIMITIVE_TYPE_ID_UNSPECIFIED;
}
public static final int DECIMAL_TYPE_FIELD_NUMBER = 2;
/**
* .Ydb.DecimalType decimal_type = 2;
* @return Whether the decimalType field is set.
*/
@java.lang.Override
public boolean hasDecimalType() {
return typeCase_ == 2;
}
/**
* .Ydb.DecimalType decimal_type = 2;
* @return The decimalType.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.DecimalType getDecimalType() {
if (typeCase_ == 2) {
return (com.yandex.ydb.ValueProtos.DecimalType) type_;
}
return com.yandex.ydb.ValueProtos.DecimalType.getDefaultInstance();
}
/**
* .Ydb.DecimalType decimal_type = 2;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.DecimalTypeOrBuilder getDecimalTypeOrBuilder() {
if (typeCase_ == 2) {
return (com.yandex.ydb.ValueProtos.DecimalType) type_;
}
return com.yandex.ydb.ValueProtos.DecimalType.getDefaultInstance();
}
public static final int OPTIONAL_TYPE_FIELD_NUMBER = 101;
/**
*
* Container types
*
*
* .Ydb.OptionalType optional_type = 101;
* @return Whether the optionalType field is set.
*/
@java.lang.Override
public boolean hasOptionalType() {
return typeCase_ == 101;
}
/**
*
* Container types
*
*
* .Ydb.OptionalType optional_type = 101;
* @return The optionalType.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.OptionalType getOptionalType() {
if (typeCase_ == 101) {
return (com.yandex.ydb.ValueProtos.OptionalType) type_;
}
return com.yandex.ydb.ValueProtos.OptionalType.getDefaultInstance();
}
/**
*
* Container types
*
*
* .Ydb.OptionalType optional_type = 101;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.OptionalTypeOrBuilder getOptionalTypeOrBuilder() {
if (typeCase_ == 101) {
return (com.yandex.ydb.ValueProtos.OptionalType) type_;
}
return com.yandex.ydb.ValueProtos.OptionalType.getDefaultInstance();
}
public static final int LIST_TYPE_FIELD_NUMBER = 102;
/**
* .Ydb.ListType list_type = 102;
* @return Whether the listType field is set.
*/
@java.lang.Override
public boolean hasListType() {
return typeCase_ == 102;
}
/**
* .Ydb.ListType list_type = 102;
* @return The listType.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.ListType getListType() {
if (typeCase_ == 102) {
return (com.yandex.ydb.ValueProtos.ListType) type_;
}
return com.yandex.ydb.ValueProtos.ListType.getDefaultInstance();
}
/**
* .Ydb.ListType list_type = 102;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.ListTypeOrBuilder getListTypeOrBuilder() {
if (typeCase_ == 102) {
return (com.yandex.ydb.ValueProtos.ListType) type_;
}
return com.yandex.ydb.ValueProtos.ListType.getDefaultInstance();
}
public static final int TUPLE_TYPE_FIELD_NUMBER = 103;
/**
* .Ydb.TupleType tuple_type = 103;
* @return Whether the tupleType field is set.
*/
@java.lang.Override
public boolean hasTupleType() {
return typeCase_ == 103;
}
/**
* .Ydb.TupleType tuple_type = 103;
* @return The tupleType.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TupleType getTupleType() {
if (typeCase_ == 103) {
return (com.yandex.ydb.ValueProtos.TupleType) type_;
}
return com.yandex.ydb.ValueProtos.TupleType.getDefaultInstance();
}
/**
* .Ydb.TupleType tuple_type = 103;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TupleTypeOrBuilder getTupleTypeOrBuilder() {
if (typeCase_ == 103) {
return (com.yandex.ydb.ValueProtos.TupleType) type_;
}
return com.yandex.ydb.ValueProtos.TupleType.getDefaultInstance();
}
public static final int STRUCT_TYPE_FIELD_NUMBER = 104;
/**
* .Ydb.StructType struct_type = 104;
* @return Whether the structType field is set.
*/
@java.lang.Override
public boolean hasStructType() {
return typeCase_ == 104;
}
/**
* .Ydb.StructType struct_type = 104;
* @return The structType.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.StructType getStructType() {
if (typeCase_ == 104) {
return (com.yandex.ydb.ValueProtos.StructType) type_;
}
return com.yandex.ydb.ValueProtos.StructType.getDefaultInstance();
}
/**
* .Ydb.StructType struct_type = 104;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.StructTypeOrBuilder getStructTypeOrBuilder() {
if (typeCase_ == 104) {
return (com.yandex.ydb.ValueProtos.StructType) type_;
}
return com.yandex.ydb.ValueProtos.StructType.getDefaultInstance();
}
public static final int DICT_TYPE_FIELD_NUMBER = 105;
/**
* .Ydb.DictType dict_type = 105;
* @return Whether the dictType field is set.
*/
@java.lang.Override
public boolean hasDictType() {
return typeCase_ == 105;
}
/**
* .Ydb.DictType dict_type = 105;
* @return The dictType.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.DictType getDictType() {
if (typeCase_ == 105) {
return (com.yandex.ydb.ValueProtos.DictType) type_;
}
return com.yandex.ydb.ValueProtos.DictType.getDefaultInstance();
}
/**
* .Ydb.DictType dict_type = 105;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.DictTypeOrBuilder getDictTypeOrBuilder() {
if (typeCase_ == 105) {
return (com.yandex.ydb.ValueProtos.DictType) type_;
}
return com.yandex.ydb.ValueProtos.DictType.getDefaultInstance();
}
public static final int VARIANT_TYPE_FIELD_NUMBER = 106;
/**
* .Ydb.VariantType variant_type = 106;
* @return Whether the variantType field is set.
*/
@java.lang.Override
public boolean hasVariantType() {
return typeCase_ == 106;
}
/**
* .Ydb.VariantType variant_type = 106;
* @return The variantType.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.VariantType getVariantType() {
if (typeCase_ == 106) {
return (com.yandex.ydb.ValueProtos.VariantType) type_;
}
return com.yandex.ydb.ValueProtos.VariantType.getDefaultInstance();
}
/**
* .Ydb.VariantType variant_type = 106;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.VariantTypeOrBuilder getVariantTypeOrBuilder() {
if (typeCase_ == 106) {
return (com.yandex.ydb.ValueProtos.VariantType) type_;
}
return com.yandex.ydb.ValueProtos.VariantType.getDefaultInstance();
}
public static final int TAGGED_TYPE_FIELD_NUMBER = 107;
/**
* .Ydb.TaggedType tagged_type = 107;
* @return Whether the taggedType field is set.
*/
@java.lang.Override
public boolean hasTaggedType() {
return typeCase_ == 107;
}
/**
* .Ydb.TaggedType tagged_type = 107;
* @return The taggedType.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TaggedType getTaggedType() {
if (typeCase_ == 107) {
return (com.yandex.ydb.ValueProtos.TaggedType) type_;
}
return com.yandex.ydb.ValueProtos.TaggedType.getDefaultInstance();
}
/**
* .Ydb.TaggedType tagged_type = 107;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TaggedTypeOrBuilder getTaggedTypeOrBuilder() {
if (typeCase_ == 107) {
return (com.yandex.ydb.ValueProtos.TaggedType) type_;
}
return com.yandex.ydb.ValueProtos.TaggedType.getDefaultInstance();
}
public static final int VOID_TYPE_FIELD_NUMBER = 201;
/**
*
* Special types
*
*
* .google.protobuf.NullValue void_type = 201;
* @return Whether the voidType field is set.
*/
public boolean hasVoidType() {
return typeCase_ == 201;
}
/**
*
* Special types
*
*
* .google.protobuf.NullValue void_type = 201;
* @return The enum numeric value on the wire for voidType.
*/
public int getVoidTypeValue() {
if (typeCase_ == 201) {
return (java.lang.Integer) type_;
}
return 0;
}
/**
*
* Special types
*
*
* .google.protobuf.NullValue void_type = 201;
* @return The voidType.
*/
public com.google.protobuf.NullValue getVoidType() {
if (typeCase_ == 201) {
@SuppressWarnings("deprecation")
com.google.protobuf.NullValue result = com.google.protobuf.NullValue.valueOf(
(java.lang.Integer) type_);
return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result;
}
return com.google.protobuf.NullValue.NULL_VALUE;
}
public static final int NULL_TYPE_FIELD_NUMBER = 202;
/**
* .google.protobuf.NullValue null_type = 202;
* @return Whether the nullType field is set.
*/
public boolean hasNullType() {
return typeCase_ == 202;
}
/**
* .google.protobuf.NullValue null_type = 202;
* @return The enum numeric value on the wire for nullType.
*/
public int getNullTypeValue() {
if (typeCase_ == 202) {
return (java.lang.Integer) type_;
}
return 0;
}
/**
* .google.protobuf.NullValue null_type = 202;
* @return The nullType.
*/
public com.google.protobuf.NullValue getNullType() {
if (typeCase_ == 202) {
@SuppressWarnings("deprecation")
com.google.protobuf.NullValue result = com.google.protobuf.NullValue.valueOf(
(java.lang.Integer) type_);
return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result;
}
return com.google.protobuf.NullValue.NULL_VALUE;
}
public static final int EMPTY_LIST_TYPE_FIELD_NUMBER = 203;
/**
* .google.protobuf.NullValue empty_list_type = 203;
* @return Whether the emptyListType field is set.
*/
public boolean hasEmptyListType() {
return typeCase_ == 203;
}
/**
* .google.protobuf.NullValue empty_list_type = 203;
* @return The enum numeric value on the wire for emptyListType.
*/
public int getEmptyListTypeValue() {
if (typeCase_ == 203) {
return (java.lang.Integer) type_;
}
return 0;
}
/**
* .google.protobuf.NullValue empty_list_type = 203;
* @return The emptyListType.
*/
public com.google.protobuf.NullValue getEmptyListType() {
if (typeCase_ == 203) {
@SuppressWarnings("deprecation")
com.google.protobuf.NullValue result = com.google.protobuf.NullValue.valueOf(
(java.lang.Integer) type_);
return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result;
}
return com.google.protobuf.NullValue.NULL_VALUE;
}
public static final int EMPTY_DICT_TYPE_FIELD_NUMBER = 204;
/**
* .google.protobuf.NullValue empty_dict_type = 204;
* @return Whether the emptyDictType field is set.
*/
public boolean hasEmptyDictType() {
return typeCase_ == 204;
}
/**
* .google.protobuf.NullValue empty_dict_type = 204;
* @return The enum numeric value on the wire for emptyDictType.
*/
public int getEmptyDictTypeValue() {
if (typeCase_ == 204) {
return (java.lang.Integer) type_;
}
return 0;
}
/**
* .google.protobuf.NullValue empty_dict_type = 204;
* @return The emptyDictType.
*/
public com.google.protobuf.NullValue getEmptyDictType() {
if (typeCase_ == 204) {
@SuppressWarnings("deprecation")
com.google.protobuf.NullValue result = com.google.protobuf.NullValue.valueOf(
(java.lang.Integer) type_);
return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result;
}
return com.google.protobuf.NullValue.NULL_VALUE;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (typeCase_ == 1) {
output.writeEnum(1, ((java.lang.Integer) type_));
}
if (typeCase_ == 2) {
output.writeMessage(2, (com.yandex.ydb.ValueProtos.DecimalType) type_);
}
if (typeCase_ == 101) {
output.writeMessage(101, (com.yandex.ydb.ValueProtos.OptionalType) type_);
}
if (typeCase_ == 102) {
output.writeMessage(102, (com.yandex.ydb.ValueProtos.ListType) type_);
}
if (typeCase_ == 103) {
output.writeMessage(103, (com.yandex.ydb.ValueProtos.TupleType) type_);
}
if (typeCase_ == 104) {
output.writeMessage(104, (com.yandex.ydb.ValueProtos.StructType) type_);
}
if (typeCase_ == 105) {
output.writeMessage(105, (com.yandex.ydb.ValueProtos.DictType) type_);
}
if (typeCase_ == 106) {
output.writeMessage(106, (com.yandex.ydb.ValueProtos.VariantType) type_);
}
if (typeCase_ == 107) {
output.writeMessage(107, (com.yandex.ydb.ValueProtos.TaggedType) type_);
}
if (typeCase_ == 201) {
output.writeEnum(201, ((java.lang.Integer) type_));
}
if (typeCase_ == 202) {
output.writeEnum(202, ((java.lang.Integer) type_));
}
if (typeCase_ == 203) {
output.writeEnum(203, ((java.lang.Integer) type_));
}
if (typeCase_ == 204) {
output.writeEnum(204, ((java.lang.Integer) type_));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (typeCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, ((java.lang.Integer) type_));
}
if (typeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.yandex.ydb.ValueProtos.DecimalType) type_);
}
if (typeCase_ == 101) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(101, (com.yandex.ydb.ValueProtos.OptionalType) type_);
}
if (typeCase_ == 102) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(102, (com.yandex.ydb.ValueProtos.ListType) type_);
}
if (typeCase_ == 103) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(103, (com.yandex.ydb.ValueProtos.TupleType) type_);
}
if (typeCase_ == 104) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(104, (com.yandex.ydb.ValueProtos.StructType) type_);
}
if (typeCase_ == 105) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(105, (com.yandex.ydb.ValueProtos.DictType) type_);
}
if (typeCase_ == 106) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(106, (com.yandex.ydb.ValueProtos.VariantType) type_);
}
if (typeCase_ == 107) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(107, (com.yandex.ydb.ValueProtos.TaggedType) type_);
}
if (typeCase_ == 201) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(201, ((java.lang.Integer) type_));
}
if (typeCase_ == 202) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(202, ((java.lang.Integer) type_));
}
if (typeCase_ == 203) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(203, ((java.lang.Integer) type_));
}
if (typeCase_ == 204) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(204, ((java.lang.Integer) type_));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.ValueProtos.Type)) {
return super.equals(obj);
}
com.yandex.ydb.ValueProtos.Type other = (com.yandex.ydb.ValueProtos.Type) obj;
if (!getTypeCase().equals(other.getTypeCase())) return false;
switch (typeCase_) {
case 1:
if (getTypeIdValue()
!= other.getTypeIdValue()) return false;
break;
case 2:
if (!getDecimalType()
.equals(other.getDecimalType())) return false;
break;
case 101:
if (!getOptionalType()
.equals(other.getOptionalType())) return false;
break;
case 102:
if (!getListType()
.equals(other.getListType())) return false;
break;
case 103:
if (!getTupleType()
.equals(other.getTupleType())) return false;
break;
case 104:
if (!getStructType()
.equals(other.getStructType())) return false;
break;
case 105:
if (!getDictType()
.equals(other.getDictType())) return false;
break;
case 106:
if (!getVariantType()
.equals(other.getVariantType())) return false;
break;
case 107:
if (!getTaggedType()
.equals(other.getTaggedType())) return false;
break;
case 201:
if (getVoidTypeValue()
!= other.getVoidTypeValue()) return false;
break;
case 202:
if (getNullTypeValue()
!= other.getNullTypeValue()) return false;
break;
case 203:
if (getEmptyListTypeValue()
!= other.getEmptyListTypeValue()) return false;
break;
case 204:
if (getEmptyDictTypeValue()
!= other.getEmptyDictTypeValue()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (typeCase_) {
case 1:
hash = (37 * hash) + TYPE_ID_FIELD_NUMBER;
hash = (53 * hash) + getTypeIdValue();
break;
case 2:
hash = (37 * hash) + DECIMAL_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getDecimalType().hashCode();
break;
case 101:
hash = (37 * hash) + OPTIONAL_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getOptionalType().hashCode();
break;
case 102:
hash = (37 * hash) + LIST_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getListType().hashCode();
break;
case 103:
hash = (37 * hash) + TUPLE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getTupleType().hashCode();
break;
case 104:
hash = (37 * hash) + STRUCT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getStructType().hashCode();
break;
case 105:
hash = (37 * hash) + DICT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getDictType().hashCode();
break;
case 106:
hash = (37 * hash) + VARIANT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getVariantType().hashCode();
break;
case 107:
hash = (37 * hash) + TAGGED_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getTaggedType().hashCode();
break;
case 201:
hash = (37 * hash) + VOID_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getVoidTypeValue();
break;
case 202:
hash = (37 * hash) + NULL_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getNullTypeValue();
break;
case 203:
hash = (37 * hash) + EMPTY_LIST_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getEmptyListTypeValue();
break;
case 204:
hash = (37 * hash) + EMPTY_DICT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getEmptyDictTypeValue();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.ValueProtos.Type parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.Type parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.Type parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.Type parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.Type parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.Type parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.Type parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.Type parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.Type parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.Type parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.Type parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.Type parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.ValueProtos.Type prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Type}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Type)
com.yandex.ydb.ValueProtos.TypeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_Type_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_Type_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.Type.class, com.yandex.ydb.ValueProtos.Type.Builder.class);
}
// Construct using com.yandex.ydb.ValueProtos.Type.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
typeCase_ = 0;
type_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_Type_descriptor;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.Type getDefaultInstanceForType() {
return com.yandex.ydb.ValueProtos.Type.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.Type build() {
com.yandex.ydb.ValueProtos.Type result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.Type buildPartial() {
com.yandex.ydb.ValueProtos.Type result = new com.yandex.ydb.ValueProtos.Type(this);
if (typeCase_ == 1) {
result.type_ = type_;
}
if (typeCase_ == 2) {
if (decimalTypeBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = decimalTypeBuilder_.build();
}
}
if (typeCase_ == 101) {
if (optionalTypeBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = optionalTypeBuilder_.build();
}
}
if (typeCase_ == 102) {
if (listTypeBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = listTypeBuilder_.build();
}
}
if (typeCase_ == 103) {
if (tupleTypeBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = tupleTypeBuilder_.build();
}
}
if (typeCase_ == 104) {
if (structTypeBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = structTypeBuilder_.build();
}
}
if (typeCase_ == 105) {
if (dictTypeBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = dictTypeBuilder_.build();
}
}
if (typeCase_ == 106) {
if (variantTypeBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = variantTypeBuilder_.build();
}
}
if (typeCase_ == 107) {
if (taggedTypeBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = taggedTypeBuilder_.build();
}
}
if (typeCase_ == 201) {
result.type_ = type_;
}
if (typeCase_ == 202) {
result.type_ = type_;
}
if (typeCase_ == 203) {
result.type_ = type_;
}
if (typeCase_ == 204) {
result.type_ = type_;
}
result.typeCase_ = typeCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.ValueProtos.Type) {
return mergeFrom((com.yandex.ydb.ValueProtos.Type)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.ValueProtos.Type other) {
if (other == com.yandex.ydb.ValueProtos.Type.getDefaultInstance()) return this;
switch (other.getTypeCase()) {
case TYPE_ID: {
setTypeIdValue(other.getTypeIdValue());
break;
}
case DECIMAL_TYPE: {
mergeDecimalType(other.getDecimalType());
break;
}
case OPTIONAL_TYPE: {
mergeOptionalType(other.getOptionalType());
break;
}
case LIST_TYPE: {
mergeListType(other.getListType());
break;
}
case TUPLE_TYPE: {
mergeTupleType(other.getTupleType());
break;
}
case STRUCT_TYPE: {
mergeStructType(other.getStructType());
break;
}
case DICT_TYPE: {
mergeDictType(other.getDictType());
break;
}
case VARIANT_TYPE: {
mergeVariantType(other.getVariantType());
break;
}
case TAGGED_TYPE: {
mergeTaggedType(other.getTaggedType());
break;
}
case VOID_TYPE: {
setVoidTypeValue(other.getVoidTypeValue());
break;
}
case NULL_TYPE: {
setNullTypeValue(other.getNullTypeValue());
break;
}
case EMPTY_LIST_TYPE: {
setEmptyListTypeValue(other.getEmptyListTypeValue());
break;
}
case EMPTY_DICT_TYPE: {
setEmptyDictTypeValue(other.getEmptyDictTypeValue());
break;
}
case TYPE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.ValueProtos.Type parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.ValueProtos.Type) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int typeCase_ = 0;
private java.lang.Object type_;
public TypeCase
getTypeCase() {
return TypeCase.forNumber(
typeCase_);
}
public Builder clearType() {
typeCase_ = 0;
type_ = null;
onChanged();
return this;
}
/**
*
* Data types
*
*
* .Ydb.Type.PrimitiveTypeId type_id = 1;
* @return Whether the typeId field is set.
*/
@java.lang.Override
public boolean hasTypeId() {
return typeCase_ == 1;
}
/**
*
* Data types
*
*
* .Ydb.Type.PrimitiveTypeId type_id = 1;
* @return The enum numeric value on the wire for typeId.
*/
@java.lang.Override
public int getTypeIdValue() {
if (typeCase_ == 1) {
return ((java.lang.Integer) type_).intValue();
}
return 0;
}
/**
*
* Data types
*
*
* .Ydb.Type.PrimitiveTypeId type_id = 1;
* @param value The enum numeric value on the wire for typeId to set.
* @return This builder for chaining.
*/
public Builder setTypeIdValue(int value) {
typeCase_ = 1;
type_ = value;
onChanged();
return this;
}
/**
*
* Data types
*
*
* .Ydb.Type.PrimitiveTypeId type_id = 1;
* @return The typeId.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.Type.PrimitiveTypeId getTypeId() {
if (typeCase_ == 1) {
@SuppressWarnings("deprecation")
com.yandex.ydb.ValueProtos.Type.PrimitiveTypeId result = com.yandex.ydb.ValueProtos.Type.PrimitiveTypeId.valueOf(
(java.lang.Integer) type_);
return result == null ? com.yandex.ydb.ValueProtos.Type.PrimitiveTypeId.UNRECOGNIZED : result;
}
return com.yandex.ydb.ValueProtos.Type.PrimitiveTypeId.PRIMITIVE_TYPE_ID_UNSPECIFIED;
}
/**
*
* Data types
*
*
* .Ydb.Type.PrimitiveTypeId type_id = 1;
* @param value The typeId to set.
* @return This builder for chaining.
*/
public Builder setTypeId(com.yandex.ydb.ValueProtos.Type.PrimitiveTypeId value) {
if (value == null) {
throw new NullPointerException();
}
typeCase_ = 1;
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
* .google.protobuf.NullValue void_type = 201;
* @return Whether the voidType field is set.
*/
@java.lang.Override
public boolean hasVoidType() {
return typeCase_ == 201;
}
/**
*
* Special types
*
*
* .google.protobuf.NullValue void_type = 201;
* @return The enum numeric value on the wire for voidType.
*/
@java.lang.Override
public int getVoidTypeValue() {
if (typeCase_ == 201) {
return ((java.lang.Integer) type_).intValue();
}
return 0;
}
/**
*
* Special types
*
*
* .google.protobuf.NullValue void_type = 201;
* @param value The enum numeric value on the wire for voidType to set.
* @return This builder for chaining.
*/
public Builder setVoidTypeValue(int value) {
typeCase_ = 201;
type_ = value;
onChanged();
return this;
}
/**
*
* Special types
*
*
* .google.protobuf.NullValue void_type = 201;
* @return The voidType.
*/
@java.lang.Override
public com.google.protobuf.NullValue getVoidType() {
if (typeCase_ == 201) {
@SuppressWarnings("deprecation")
com.google.protobuf.NullValue result = com.google.protobuf.NullValue.valueOf(
(java.lang.Integer) type_);
return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result;
}
return com.google.protobuf.NullValue.NULL_VALUE;
}
/**
*
* Special types
*
*
* .google.protobuf.NullValue void_type = 201;
* @param value The voidType to set.
* @return This builder for chaining.
*/
public Builder setVoidType(com.google.protobuf.NullValue value) {
if (value == null) {
throw new NullPointerException();
}
typeCase_ = 201;
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Special types
*
*
* .google.protobuf.NullValue void_type = 201;
* @return This builder for chaining.
*/
public Builder clearVoidType() {
if (typeCase_ == 201) {
typeCase_ = 0;
type_ = null;
onChanged();
}
return this;
}
/**
* .google.protobuf.NullValue null_type = 202;
* @return Whether the nullType field is set.
*/
@java.lang.Override
public boolean hasNullType() {
return typeCase_ == 202;
}
/**
* .google.protobuf.NullValue null_type = 202;
* @return The enum numeric value on the wire for nullType.
*/
@java.lang.Override
public int getNullTypeValue() {
if (typeCase_ == 202) {
return ((java.lang.Integer) type_).intValue();
}
return 0;
}
/**
* .google.protobuf.NullValue null_type = 202;
* @param value The enum numeric value on the wire for nullType to set.
* @return This builder for chaining.
*/
public Builder setNullTypeValue(int value) {
typeCase_ = 202;
type_ = value;
onChanged();
return this;
}
/**
* .google.protobuf.NullValue null_type = 202;
* @return The nullType.
*/
@java.lang.Override
public com.google.protobuf.NullValue getNullType() {
if (typeCase_ == 202) {
@SuppressWarnings("deprecation")
com.google.protobuf.NullValue result = com.google.protobuf.NullValue.valueOf(
(java.lang.Integer) type_);
return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result;
}
return com.google.protobuf.NullValue.NULL_VALUE;
}
/**
* .google.protobuf.NullValue null_type = 202;
* @param value The nullType to set.
* @return This builder for chaining.
*/
public Builder setNullType(com.google.protobuf.NullValue value) {
if (value == null) {
throw new NullPointerException();
}
typeCase_ = 202;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .google.protobuf.NullValue null_type = 202;
* @return This builder for chaining.
*/
public Builder clearNullType() {
if (typeCase_ == 202) {
typeCase_ = 0;
type_ = null;
onChanged();
}
return this;
}
/**
* .google.protobuf.NullValue empty_list_type = 203;
* @return Whether the emptyListType field is set.
*/
@java.lang.Override
public boolean hasEmptyListType() {
return typeCase_ == 203;
}
/**
* .google.protobuf.NullValue empty_list_type = 203;
* @return The enum numeric value on the wire for emptyListType.
*/
@java.lang.Override
public int getEmptyListTypeValue() {
if (typeCase_ == 203) {
return ((java.lang.Integer) type_).intValue();
}
return 0;
}
/**
* .google.protobuf.NullValue empty_list_type = 203;
* @param value The enum numeric value on the wire for emptyListType to set.
* @return This builder for chaining.
*/
public Builder setEmptyListTypeValue(int value) {
typeCase_ = 203;
type_ = value;
onChanged();
return this;
}
/**
* .google.protobuf.NullValue empty_list_type = 203;
* @return The emptyListType.
*/
@java.lang.Override
public com.google.protobuf.NullValue getEmptyListType() {
if (typeCase_ == 203) {
@SuppressWarnings("deprecation")
com.google.protobuf.NullValue result = com.google.protobuf.NullValue.valueOf(
(java.lang.Integer) type_);
return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result;
}
return com.google.protobuf.NullValue.NULL_VALUE;
}
/**
* .google.protobuf.NullValue empty_list_type = 203;
* @param value The emptyListType to set.
* @return This builder for chaining.
*/
public Builder setEmptyListType(com.google.protobuf.NullValue value) {
if (value == null) {
throw new NullPointerException();
}
typeCase_ = 203;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .google.protobuf.NullValue empty_list_type = 203;
* @return This builder for chaining.
*/
public Builder clearEmptyListType() {
if (typeCase_ == 203) {
typeCase_ = 0;
type_ = null;
onChanged();
}
return this;
}
/**
* .google.protobuf.NullValue empty_dict_type = 204;
* @return Whether the emptyDictType field is set.
*/
@java.lang.Override
public boolean hasEmptyDictType() {
return typeCase_ == 204;
}
/**
* .google.protobuf.NullValue empty_dict_type = 204;
* @return The enum numeric value on the wire for emptyDictType.
*/
@java.lang.Override
public int getEmptyDictTypeValue() {
if (typeCase_ == 204) {
return ((java.lang.Integer) type_).intValue();
}
return 0;
}
/**
* .google.protobuf.NullValue empty_dict_type = 204;
* @param value The enum numeric value on the wire for emptyDictType to set.
* @return This builder for chaining.
*/
public Builder setEmptyDictTypeValue(int value) {
typeCase_ = 204;
type_ = value;
onChanged();
return this;
}
/**
* .google.protobuf.NullValue empty_dict_type = 204;
* @return The emptyDictType.
*/
@java.lang.Override
public com.google.protobuf.NullValue getEmptyDictType() {
if (typeCase_ == 204) {
@SuppressWarnings("deprecation")
com.google.protobuf.NullValue result = com.google.protobuf.NullValue.valueOf(
(java.lang.Integer) type_);
return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result;
}
return com.google.protobuf.NullValue.NULL_VALUE;
}
/**
* .google.protobuf.NullValue empty_dict_type = 204;
* @param value The emptyDictType to set.
* @return This builder for chaining.
*/
public Builder setEmptyDictType(com.google.protobuf.NullValue value) {
if (value == null) {
throw new NullPointerException();
}
typeCase_ = 204;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .google.protobuf.NullValue empty_dict_type = 204;
* @return This builder for chaining.
*/
public Builder clearEmptyDictType() {
if (typeCase_ == 204) {
typeCase_ = 0;
type_ = null;
onChanged();
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Type)
}
// @@protoc_insertion_point(class_scope:Ydb.Type)
private static final com.yandex.ydb.ValueProtos.Type DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.ValueProtos.Type();
}
public static com.yandex.ydb.ValueProtos.Type getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Type parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Type(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.Type getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValuePairOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.ValuePair)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Value key = 1;
* @return Whether the key field is set.
*/
boolean hasKey();
/**
* .Ydb.Value key = 1;
* @return The key.
*/
com.yandex.ydb.ValueProtos.Value getKey();
/**
* .Ydb.Value key = 1;
*/
com.yandex.ydb.ValueProtos.ValueOrBuilder getKeyOrBuilder();
/**
* .Ydb.Value payload = 2;
* @return Whether the payload field is set.
*/
boolean hasPayload();
/**
* .Ydb.Value payload = 2;
* @return The payload.
*/
com.yandex.ydb.ValueProtos.Value getPayload();
/**
* .Ydb.Value payload = 2;
*/
com.yandex.ydb.ValueProtos.ValueOrBuilder getPayloadOrBuilder();
}
/**
* Protobuf type {@code Ydb.ValuePair}
*/
public static final class ValuePair extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.ValuePair)
ValuePairOrBuilder {
private static final long serialVersionUID = 0L;
// Use ValuePair.newBuilder() to construct.
private ValuePair(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ValuePair() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ValuePair();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ValuePair(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.ValueProtos.Value.Builder subBuilder = null;
if (key_ != null) {
subBuilder = key_.toBuilder();
}
key_ = input.readMessage(com.yandex.ydb.ValueProtos.Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(key_);
key_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.yandex.ydb.ValueProtos.Value.Builder subBuilder = null;
if (payload_ != null) {
subBuilder = payload_.toBuilder();
}
payload_ = input.readMessage(com.yandex.ydb.ValueProtos.Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(payload_);
payload_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_ValuePair_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_ValuePair_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.ValuePair.class, com.yandex.ydb.ValueProtos.ValuePair.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
private com.yandex.ydb.ValueProtos.Value key_;
/**
* .Ydb.Value key = 1;
* @return Whether the key field is set.
*/
@java.lang.Override
public boolean hasKey() {
return key_ != null;
}
/**
* .Ydb.Value key = 1;
* @return The key.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.Value getKey() {
return key_ == null ? com.yandex.ydb.ValueProtos.Value.getDefaultInstance() : key_;
}
/**
* .Ydb.Value key = 1;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.ValueOrBuilder getKeyOrBuilder() {
return getKey();
}
public static final int PAYLOAD_FIELD_NUMBER = 2;
private com.yandex.ydb.ValueProtos.Value payload_;
/**
* .Ydb.Value payload = 2;
* @return Whether the payload field is set.
*/
@java.lang.Override
public boolean hasPayload() {
return payload_ != null;
}
/**
* .Ydb.Value payload = 2;
* @return The payload.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.Value getPayload() {
return payload_ == null ? com.yandex.ydb.ValueProtos.Value.getDefaultInstance() : payload_;
}
/**
* .Ydb.Value payload = 2;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.ValueOrBuilder getPayloadOrBuilder() {
return getPayload();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (key_ != null) {
output.writeMessage(1, getKey());
}
if (payload_ != null) {
output.writeMessage(2, getPayload());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (key_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getKey());
}
if (payload_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPayload());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.ValueProtos.ValuePair)) {
return super.equals(obj);
}
com.yandex.ydb.ValueProtos.ValuePair other = (com.yandex.ydb.ValueProtos.ValuePair) obj;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (hasPayload() != other.hasPayload()) return false;
if (hasPayload()) {
if (!getPayload()
.equals(other.getPayload())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
if (hasPayload()) {
hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
hash = (53 * hash) + getPayload().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.ValueProtos.ValuePair parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.ValuePair parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.ValuePair parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.ValuePair parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.ValuePair parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.ValuePair parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.ValuePair parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.ValuePair parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.ValuePair parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.ValuePair parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.ValuePair parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.ValuePair parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.ValueProtos.ValuePair prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.ValuePair}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.ValuePair)
com.yandex.ydb.ValueProtos.ValuePairOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_ValuePair_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_ValuePair_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.ValuePair.class, com.yandex.ydb.ValueProtos.ValuePair.Builder.class);
}
// Construct using com.yandex.ydb.ValueProtos.ValuePair.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (keyBuilder_ == null) {
key_ = null;
} else {
key_ = null;
keyBuilder_ = null;
}
if (payloadBuilder_ == null) {
payload_ = null;
} else {
payload_ = null;
payloadBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_ValuePair_descriptor;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.ValuePair getDefaultInstanceForType() {
return com.yandex.ydb.ValueProtos.ValuePair.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.ValuePair build() {
com.yandex.ydb.ValueProtos.ValuePair result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.ValuePair buildPartial() {
com.yandex.ydb.ValueProtos.ValuePair result = new com.yandex.ydb.ValueProtos.ValuePair(this);
if (keyBuilder_ == null) {
result.key_ = key_;
} else {
result.key_ = keyBuilder_.build();
}
if (payloadBuilder_ == null) {
result.payload_ = payload_;
} else {
result.payload_ = payloadBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.ValueProtos.ValuePair) {
return mergeFrom((com.yandex.ydb.ValueProtos.ValuePair)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.ValueProtos.ValuePair other) {
if (other == com.yandex.ydb.ValueProtos.ValuePair.getDefaultInstance()) return this;
if (other.hasKey()) {
mergeKey(other.getKey());
}
if (other.hasPayload()) {
mergePayload(other.getPayload());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.ValueProtos.ValuePair parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.ValueProtos.ValuePair) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.ValueProtos.Value key_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Value, com.yandex.ydb.ValueProtos.Value.Builder, com.yandex.ydb.ValueProtos.ValueOrBuilder> keyBuilder_;
/**
* .Ydb.Value key = 1;
* @return Whether the key field is set.
*/
public boolean hasKey() {
return keyBuilder_ != null || key_ != null;
}
/**
* .Ydb.Value key = 1;
* @return The key.
*/
public com.yandex.ydb.ValueProtos.Value getKey() {
if (keyBuilder_ == null) {
return key_ == null ? com.yandex.ydb.ValueProtos.Value.getDefaultInstance() : key_;
} else {
return keyBuilder_.getMessage();
}
}
/**
* .Ydb.Value key = 1;
*/
public Builder setKey(com.yandex.ydb.ValueProtos.Value value) {
if (keyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
} else {
keyBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Value key = 1;
*/
public Builder setKey(
com.yandex.ydb.ValueProtos.Value.Builder builderForValue) {
if (keyBuilder_ == null) {
key_ = builderForValue.build();
onChanged();
} else {
keyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Value key = 1;
*/
public Builder mergeKey(com.yandex.ydb.ValueProtos.Value value) {
if (keyBuilder_ == null) {
if (key_ != null) {
key_ =
com.yandex.ydb.ValueProtos.Value.newBuilder(key_).mergeFrom(value).buildPartial();
} else {
key_ = value;
}
onChanged();
} else {
keyBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Value key = 1;
*/
public Builder clearKey() {
if (keyBuilder_ == null) {
key_ = null;
onChanged();
} else {
key_ = null;
keyBuilder_ = null;
}
return this;
}
/**
* .Ydb.Value key = 1;
*/
public com.yandex.ydb.ValueProtos.Value.Builder getKeyBuilder() {
onChanged();
return getKeyFieldBuilder().getBuilder();
}
/**
* .Ydb.Value key = 1;
*/
public com.yandex.ydb.ValueProtos.ValueOrBuilder getKeyOrBuilder() {
if (keyBuilder_ != null) {
return keyBuilder_.getMessageOrBuilder();
} else {
return key_ == null ?
com.yandex.ydb.ValueProtos.Value.getDefaultInstance() : key_;
}
}
/**
* .Ydb.Value key = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Value, com.yandex.ydb.ValueProtos.Value.Builder, com.yandex.ydb.ValueProtos.ValueOrBuilder>
getKeyFieldBuilder() {
if (keyBuilder_ == null) {
keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Value, com.yandex.ydb.ValueProtos.Value.Builder, com.yandex.ydb.ValueProtos.ValueOrBuilder>(
getKey(),
getParentForChildren(),
isClean());
key_ = null;
}
return keyBuilder_;
}
private com.yandex.ydb.ValueProtos.Value payload_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Value, com.yandex.ydb.ValueProtos.Value.Builder, com.yandex.ydb.ValueProtos.ValueOrBuilder> payloadBuilder_;
/**
* .Ydb.Value payload = 2;
* @return Whether the payload field is set.
*/
public boolean hasPayload() {
return payloadBuilder_ != null || payload_ != null;
}
/**
* .Ydb.Value payload = 2;
* @return The payload.
*/
public com.yandex.ydb.ValueProtos.Value getPayload() {
if (payloadBuilder_ == null) {
return payload_ == null ? com.yandex.ydb.ValueProtos.Value.getDefaultInstance() : payload_;
} else {
return payloadBuilder_.getMessage();
}
}
/**
* .Ydb.Value payload = 2;
*/
public Builder setPayload(com.yandex.ydb.ValueProtos.Value value) {
if (payloadBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
payload_ = value;
onChanged();
} else {
payloadBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Value payload = 2;
*/
public Builder setPayload(
com.yandex.ydb.ValueProtos.Value.Builder builderForValue) {
if (payloadBuilder_ == null) {
payload_ = builderForValue.build();
onChanged();
} else {
payloadBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Value payload = 2;
*/
public Builder mergePayload(com.yandex.ydb.ValueProtos.Value value) {
if (payloadBuilder_ == null) {
if (payload_ != null) {
payload_ =
com.yandex.ydb.ValueProtos.Value.newBuilder(payload_).mergeFrom(value).buildPartial();
} else {
payload_ = value;
}
onChanged();
} else {
payloadBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Value payload = 2;
*/
public Builder clearPayload() {
if (payloadBuilder_ == null) {
payload_ = null;
onChanged();
} else {
payload_ = null;
payloadBuilder_ = null;
}
return this;
}
/**
* .Ydb.Value payload = 2;
*/
public com.yandex.ydb.ValueProtos.Value.Builder getPayloadBuilder() {
onChanged();
return getPayloadFieldBuilder().getBuilder();
}
/**
* .Ydb.Value payload = 2;
*/
public com.yandex.ydb.ValueProtos.ValueOrBuilder getPayloadOrBuilder() {
if (payloadBuilder_ != null) {
return payloadBuilder_.getMessageOrBuilder();
} else {
return payload_ == null ?
com.yandex.ydb.ValueProtos.Value.getDefaultInstance() : payload_;
}
}
/**
* .Ydb.Value payload = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Value, com.yandex.ydb.ValueProtos.Value.Builder, com.yandex.ydb.ValueProtos.ValueOrBuilder>
getPayloadFieldBuilder() {
if (payloadBuilder_ == null) {
payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Value, com.yandex.ydb.ValueProtos.Value.Builder, com.yandex.ydb.ValueProtos.ValueOrBuilder>(
getPayload(),
getParentForChildren(),
isClean());
payload_ = null;
}
return payloadBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.ValuePair)
}
// @@protoc_insertion_point(class_scope:Ydb.ValuePair)
private static final com.yandex.ydb.ValueProtos.ValuePair DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.ValueProtos.ValuePair();
}
public static com.yandex.ydb.ValueProtos.ValuePair getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ValuePair parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ValuePair(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.ValuePair getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Value)
com.google.protobuf.MessageOrBuilder {
/**
* bool bool_value = 1;
* @return Whether the boolValue field is set.
*/
boolean hasBoolValue();
/**
* bool bool_value = 1;
* @return The boolValue.
*/
boolean getBoolValue();
/**
* sfixed32 int32_value = 2;
* @return Whether the int32Value field is set.
*/
boolean hasInt32Value();
/**
* sfixed32 int32_value = 2;
* @return The int32Value.
*/
int getInt32Value();
/**
* fixed32 uint32_value = 3;
* @return Whether the uint32Value field is set.
*/
boolean hasUint32Value();
/**
* fixed32 uint32_value = 3;
* @return The uint32Value.
*/
int getUint32Value();
/**
* sfixed64 int64_value = 4;
* @return Whether the int64Value field is set.
*/
boolean hasInt64Value();
/**
* sfixed64 int64_value = 4;
* @return The int64Value.
*/
long getInt64Value();
/**
* fixed64 uint64_value = 5;
* @return Whether the uint64Value field is set.
*/
boolean hasUint64Value();
/**
* fixed64 uint64_value = 5;
* @return The uint64Value.
*/
long getUint64Value();
/**
* float float_value = 6;
* @return Whether the floatValue field is set.
*/
boolean hasFloatValue();
/**
* float float_value = 6;
* @return The floatValue.
*/
float getFloatValue();
/**
* double double_value = 7;
* @return Whether the doubleValue field is set.
*/
boolean hasDoubleValue();
/**
* double double_value = 7;
* @return The doubleValue.
*/
double getDoubleValue();
/**
* bytes bytes_value = 8;
* @return Whether the bytesValue field is set.
*/
boolean hasBytesValue();
/**
* bytes bytes_value = 8;
* @return The bytesValue.
*/
com.google.protobuf.ByteString getBytesValue();
/**
* string text_value = 9;
* @return Whether the textValue field is set.
*/
boolean hasTextValue();
/**
* string text_value = 9;
* @return The textValue.
*/
java.lang.String getTextValue();
/**
* string text_value = 9;
* @return The bytes for textValue.
*/
com.google.protobuf.ByteString
getTextValueBytes();
/**
*
* Set if current TValue is terminal Null
*
*
* .google.protobuf.NullValue null_flag_value = 10;
* @return Whether the nullFlagValue field is set.
*/
boolean hasNullFlagValue();
/**
*
* Set if current TValue is terminal Null
*
*
* .google.protobuf.NullValue null_flag_value = 10;
* @return The enum numeric value on the wire for nullFlagValue.
*/
int getNullFlagValueValue();
/**
*
*
* uint32 variant_index = 14;
* @return The variantIndex.
*/
int getVariantIndex();
/**
* fixed64 high_128 = 16;
* @return The high128.
*/
long getHigh128();
public com.yandex.ydb.ValueProtos.Value.ValueCase getValueCase();
}
/**
* Protobuf type {@code Ydb.Value}
*/
public static final class Value extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Value)
ValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use Value.newBuilder() to construct.
private Value(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Value() {
items_ = java.util.Collections.emptyList();
pairs_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Value();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Value(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
valueCase_ = 1;
value_ = input.readBool();
break;
}
case 21: {
valueCase_ = 2;
value_ = input.readSFixed32();
break;
}
case 29: {
valueCase_ = 3;
value_ = input.readFixed32();
break;
}
case 33: {
valueCase_ = 4;
value_ = input.readSFixed64();
break;
}
case 41: {
valueCase_ = 5;
value_ = input.readFixed64();
break;
}
case 53: {
valueCase_ = 6;
value_ = input.readFloat();
break;
}
case 57: {
valueCase_ = 7;
value_ = input.readDouble();
break;
}
case 66: {
valueCase_ = 8;
value_ = input.readBytes();
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
valueCase_ = 9;
value_ = s;
break;
}
case 80: {
int rawValue = input.readEnum();
valueCase_ = 10;
value_ = rawValue;
break;
}
case 90: {
com.yandex.ydb.ValueProtos.Value.Builder subBuilder = null;
if (valueCase_ == 11) {
subBuilder = ((com.yandex.ydb.ValueProtos.Value) value_).toBuilder();
}
value_ =
input.readMessage(com.yandex.ydb.ValueProtos.Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.ValueProtos.Value) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 11;
break;
}
case 98: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
items_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
items_.add(
input.readMessage(com.yandex.ydb.ValueProtos.Value.parser(), extensionRegistry));
break;
}
case 106: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
pairs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
pairs_.add(
input.readMessage(com.yandex.ydb.ValueProtos.ValuePair.parser(), extensionRegistry));
break;
}
case 112: {
variantIndex_ = input.readUInt32();
break;
}
case 121: {
valueCase_ = 15;
value_ = input.readFixed64();
break;
}
case 129: {
high128_ = input.readFixed64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
items_ = java.util.Collections.unmodifiableList(items_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
pairs_ = java.util.Collections.unmodifiableList(pairs_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_Value_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_Value_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.Value.class, com.yandex.ydb.ValueProtos.Value.Builder.class);
}
private int valueCase_ = 0;
private java.lang.Object value_;
public enum ValueCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
BOOL_VALUE(1),
INT32_VALUE(2),
UINT32_VALUE(3),
INT64_VALUE(4),
UINT64_VALUE(5),
FLOAT_VALUE(6),
DOUBLE_VALUE(7),
BYTES_VALUE(8),
TEXT_VALUE(9),
NULL_FLAG_VALUE(10),
NESTED_VALUE(11),
LOW_128(15),
VALUE_NOT_SET(0);
private final int value;
private ValueCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ValueCase valueOf(int value) {
return forNumber(value);
}
public static ValueCase forNumber(int value) {
switch (value) {
case 1: return BOOL_VALUE;
case 2: return INT32_VALUE;
case 3: return UINT32_VALUE;
case 4: return INT64_VALUE;
case 5: return UINT64_VALUE;
case 6: return FLOAT_VALUE;
case 7: return DOUBLE_VALUE;
case 8: return BYTES_VALUE;
case 9: return TEXT_VALUE;
case 10: return NULL_FLAG_VALUE;
case 11: return NESTED_VALUE;
case 15: return LOW_128;
case 0: return VALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public static final int BOOL_VALUE_FIELD_NUMBER = 1;
/**
* bool bool_value = 1;
* @return Whether the boolValue field is set.
*/
@java.lang.Override
public boolean hasBoolValue() {
return valueCase_ == 1;
}
/**
* bool bool_value = 1;
* @return The boolValue.
*/
@java.lang.Override
public boolean getBoolValue() {
if (valueCase_ == 1) {
return (java.lang.Boolean) value_;
}
return false;
}
public static final int INT32_VALUE_FIELD_NUMBER = 2;
/**
* sfixed32 int32_value = 2;
* @return Whether the int32Value field is set.
*/
@java.lang.Override
public boolean hasInt32Value() {
return valueCase_ == 2;
}
/**
* sfixed32 int32_value = 2;
* @return The int32Value.
*/
@java.lang.Override
public int getInt32Value() {
if (valueCase_ == 2) {
return (java.lang.Integer) value_;
}
return 0;
}
public static final int UINT32_VALUE_FIELD_NUMBER = 3;
/**
* fixed32 uint32_value = 3;
* @return Whether the uint32Value field is set.
*/
@java.lang.Override
public boolean hasUint32Value() {
return valueCase_ == 3;
}
/**
* fixed32 uint32_value = 3;
* @return The uint32Value.
*/
@java.lang.Override
public int getUint32Value() {
if (valueCase_ == 3) {
return (java.lang.Integer) value_;
}
return 0;
}
public static final int INT64_VALUE_FIELD_NUMBER = 4;
/**
* sfixed64 int64_value = 4;
* @return Whether the int64Value field is set.
*/
@java.lang.Override
public boolean hasInt64Value() {
return valueCase_ == 4;
}
/**
* sfixed64 int64_value = 4;
* @return The int64Value.
*/
@java.lang.Override
public long getInt64Value() {
if (valueCase_ == 4) {
return (java.lang.Long) value_;
}
return 0L;
}
public static final int UINT64_VALUE_FIELD_NUMBER = 5;
/**
* fixed64 uint64_value = 5;
* @return Whether the uint64Value field is set.
*/
@java.lang.Override
public boolean hasUint64Value() {
return valueCase_ == 5;
}
/**
* fixed64 uint64_value = 5;
* @return The uint64Value.
*/
@java.lang.Override
public long getUint64Value() {
if (valueCase_ == 5) {
return (java.lang.Long) value_;
}
return 0L;
}
public static final int FLOAT_VALUE_FIELD_NUMBER = 6;
/**
* float float_value = 6;
* @return Whether the floatValue field is set.
*/
@java.lang.Override
public boolean hasFloatValue() {
return valueCase_ == 6;
}
/**
* float float_value = 6;
* @return The floatValue.
*/
@java.lang.Override
public float getFloatValue() {
if (valueCase_ == 6) {
return (java.lang.Float) value_;
}
return 0F;
}
public static final int DOUBLE_VALUE_FIELD_NUMBER = 7;
/**
* double double_value = 7;
* @return Whether the doubleValue field is set.
*/
@java.lang.Override
public boolean hasDoubleValue() {
return valueCase_ == 7;
}
/**
* double double_value = 7;
* @return The doubleValue.
*/
@java.lang.Override
public double getDoubleValue() {
if (valueCase_ == 7) {
return (java.lang.Double) value_;
}
return 0D;
}
public static final int BYTES_VALUE_FIELD_NUMBER = 8;
/**
* bytes bytes_value = 8;
* @return Whether the bytesValue field is set.
*/
@java.lang.Override
public boolean hasBytesValue() {
return valueCase_ == 8;
}
/**
* bytes bytes_value = 8;
* @return The bytesValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBytesValue() {
if (valueCase_ == 8) {
return (com.google.protobuf.ByteString) value_;
}
return com.google.protobuf.ByteString.EMPTY;
}
public static final int TEXT_VALUE_FIELD_NUMBER = 9;
/**
* string text_value = 9;
* @return Whether the textValue field is set.
*/
public boolean hasTextValue() {
return valueCase_ == 9;
}
/**
* string text_value = 9;
* @return The textValue.
*/
public java.lang.String getTextValue() {
java.lang.Object ref = "";
if (valueCase_ == 9) {
ref = value_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (valueCase_ == 9) {
value_ = s;
}
return s;
}
}
/**
* string text_value = 9;
* @return The bytes for textValue.
*/
public com.google.protobuf.ByteString
getTextValueBytes() {
java.lang.Object ref = "";
if (valueCase_ == 9) {
ref = value_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (valueCase_ == 9) {
value_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NULL_FLAG_VALUE_FIELD_NUMBER = 10;
/**
*
* Set if current TValue is terminal Null
*
*
* .google.protobuf.NullValue null_flag_value = 10;
* @return Whether the nullFlagValue field is set.
*/
public boolean hasNullFlagValue() {
return valueCase_ == 10;
}
/**
*
* Set if current TValue is terminal Null
*
*
* .google.protobuf.NullValue null_flag_value = 10;
* @return The enum numeric value on the wire for nullFlagValue.
*/
public int getNullFlagValueValue() {
if (valueCase_ == 10) {
return (java.lang.Integer) value_;
}
return 0;
}
/**
*
* Set if current TValue is terminal Null
*
*
* .google.protobuf.NullValue null_flag_value = 10;
* @return The nullFlagValue.
*/
public com.google.protobuf.NullValue getNullFlagValue() {
if (valueCase_ == 10) {
@SuppressWarnings("deprecation")
com.google.protobuf.NullValue result = com.google.protobuf.NullValue.valueOf(
(java.lang.Integer) value_);
return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result;
}
return com.google.protobuf.NullValue.NULL_VALUE;
}
public static final int NESTED_VALUE_FIELD_NUMBER = 11;
/**
*
* Represents nested TValue for Optional<Optional<T>>(Null), or Variant<T> types
*
*
* .Ydb.Value nested_value = 11;
* @return Whether the nestedValue field is set.
*/
@java.lang.Override
public boolean hasNestedValue() {
return valueCase_ == 11;
}
/**
*
* Represents nested TValue for Optional<Optional<T>>(Null), or Variant<T> types
*
*
* .Ydb.Value nested_value = 11;
* @return The nestedValue.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.Value getNestedValue() {
if (valueCase_ == 11) {
return (com.yandex.ydb.ValueProtos.Value) value_;
}
return com.yandex.ydb.ValueProtos.Value.getDefaultInstance();
}
/**
*
* Represents nested TValue for Optional<Optional<T>>(Null), or Variant<T> types
*
*
* .Ydb.Value nested_value = 11;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.ValueOrBuilder getNestedValueOrBuilder() {
if (valueCase_ == 11) {
return (com.yandex.ydb.ValueProtos.Value) value_;
}
return com.yandex.ydb.ValueProtos.Value.getDefaultInstance();
}
public static final int LOW_128_FIELD_NUMBER = 15;
/**
* fixed64 low_128 = 15;
* @return Whether the low128 field is set.
*/
@java.lang.Override
public boolean hasLow128() {
return valueCase_ == 15;
}
/**
* fixed64 low_128 = 15;
* @return The low128.
*/
@java.lang.Override
public long getLow128() {
if (valueCase_ == 15) {
return (java.lang.Long) value_;
}
return 0L;
}
public static final int ITEMS_FIELD_NUMBER = 12;
private java.util.List items_;
/**
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.ValuePairOrBuilder getPairsOrBuilder(
int index) {
return pairs_.get(index);
}
public static final int VARIANT_INDEX_FIELD_NUMBER = 14;
private int variantIndex_;
/**
*
* Used for Variant type
*
*
* uint32 variant_index = 14;
* @return The variantIndex.
*/
@java.lang.Override
public int getVariantIndex() {
return variantIndex_;
}
public static final int HIGH_128_FIELD_NUMBER = 16;
private long high128_;
/**
* fixed64 high_128 = 16;
* @return The high128.
*/
@java.lang.Override
public long getHigh128() {
return high128_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (valueCase_ == 1) {
output.writeBool(
1, (boolean)((java.lang.Boolean) value_));
}
if (valueCase_ == 2) {
output.writeSFixed32(
2, (int)((java.lang.Integer) value_));
}
if (valueCase_ == 3) {
output.writeFixed32(
3, (int)((java.lang.Integer) value_));
}
if (valueCase_ == 4) {
output.writeSFixed64(
4, (long)((java.lang.Long) value_));
}
if (valueCase_ == 5) {
output.writeFixed64(
5, (long)((java.lang.Long) value_));
}
if (valueCase_ == 6) {
output.writeFloat(
6, (float)((java.lang.Float) value_));
}
if (valueCase_ == 7) {
output.writeDouble(
7, (double)((java.lang.Double) value_));
}
if (valueCase_ == 8) {
output.writeBytes(
8, (com.google.protobuf.ByteString) value_);
}
if (valueCase_ == 9) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, value_);
}
if (valueCase_ == 10) {
output.writeEnum(10, ((java.lang.Integer) value_));
}
if (valueCase_ == 11) {
output.writeMessage(11, (com.yandex.ydb.ValueProtos.Value) value_);
}
for (int i = 0; i < items_.size(); i++) {
output.writeMessage(12, items_.get(i));
}
for (int i = 0; i < pairs_.size(); i++) {
output.writeMessage(13, pairs_.get(i));
}
if (variantIndex_ != 0) {
output.writeUInt32(14, variantIndex_);
}
if (valueCase_ == 15) {
output.writeFixed64(
15, (long)((java.lang.Long) value_));
}
if (high128_ != 0L) {
output.writeFixed64(16, high128_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (valueCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
1, (boolean)((java.lang.Boolean) value_));
}
if (valueCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed32Size(
2, (int)((java.lang.Integer) value_));
}
if (valueCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(
3, (int)((java.lang.Integer) value_));
}
if (valueCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(
4, (long)((java.lang.Long) value_));
}
if (valueCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(
5, (long)((java.lang.Long) value_));
}
if (valueCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(
6, (float)((java.lang.Float) value_));
}
if (valueCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(
7, (double)((java.lang.Double) value_));
}
if (valueCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(
8, (com.google.protobuf.ByteString) value_);
}
if (valueCase_ == 9) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, value_);
}
if (valueCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(10, ((java.lang.Integer) value_));
}
if (valueCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (com.yandex.ydb.ValueProtos.Value) value_);
}
for (int i = 0; i < items_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, items_.get(i));
}
for (int i = 0; i < pairs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, pairs_.get(i));
}
if (variantIndex_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(14, variantIndex_);
}
if (valueCase_ == 15) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(
15, (long)((java.lang.Long) value_));
}
if (high128_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(16, high128_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.ValueProtos.Value)) {
return super.equals(obj);
}
com.yandex.ydb.ValueProtos.Value other = (com.yandex.ydb.ValueProtos.Value) obj;
if (!getItemsList()
.equals(other.getItemsList())) return false;
if (!getPairsList()
.equals(other.getPairsList())) return false;
if (getVariantIndex()
!= other.getVariantIndex()) return false;
if (getHigh128()
!= other.getHigh128()) return false;
if (!getValueCase().equals(other.getValueCase())) return false;
switch (valueCase_) {
case 1:
if (getBoolValue()
!= other.getBoolValue()) return false;
break;
case 2:
if (getInt32Value()
!= other.getInt32Value()) return false;
break;
case 3:
if (getUint32Value()
!= other.getUint32Value()) return false;
break;
case 4:
if (getInt64Value()
!= other.getInt64Value()) return false;
break;
case 5:
if (getUint64Value()
!= other.getUint64Value()) return false;
break;
case 6:
if (java.lang.Float.floatToIntBits(getFloatValue())
!= java.lang.Float.floatToIntBits(
other.getFloatValue())) return false;
break;
case 7:
if (java.lang.Double.doubleToLongBits(getDoubleValue())
!= java.lang.Double.doubleToLongBits(
other.getDoubleValue())) return false;
break;
case 8:
if (!getBytesValue()
.equals(other.getBytesValue())) return false;
break;
case 9:
if (!getTextValue()
.equals(other.getTextValue())) return false;
break;
case 10:
if (getNullFlagValueValue()
!= other.getNullFlagValueValue()) return false;
break;
case 11:
if (!getNestedValue()
.equals(other.getNestedValue())) return false;
break;
case 15:
if (getLow128()
!= other.getLow128()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getItemsCount() > 0) {
hash = (37 * hash) + ITEMS_FIELD_NUMBER;
hash = (53 * hash) + getItemsList().hashCode();
}
if (getPairsCount() > 0) {
hash = (37 * hash) + PAIRS_FIELD_NUMBER;
hash = (53 * hash) + getPairsList().hashCode();
}
hash = (37 * hash) + VARIANT_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getVariantIndex();
hash = (37 * hash) + HIGH_128_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHigh128());
switch (valueCase_) {
case 1:
hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getBoolValue());
break;
case 2:
hash = (37 * hash) + INT32_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getInt32Value();
break;
case 3:
hash = (37 * hash) + UINT32_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getUint32Value();
break;
case 4:
hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInt64Value());
break;
case 5:
hash = (37 * hash) + UINT64_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getUint64Value());
break;
case 6:
hash = (37 * hash) + FLOAT_VALUE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getFloatValue());
break;
case 7:
hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDoubleValue()));
break;
case 8:
hash = (37 * hash) + BYTES_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getBytesValue().hashCode();
break;
case 9:
hash = (37 * hash) + TEXT_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getTextValue().hashCode();
break;
case 10:
hash = (37 * hash) + NULL_FLAG_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getNullFlagValueValue();
break;
case 11:
hash = (37 * hash) + NESTED_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getNestedValue().hashCode();
break;
case 15:
hash = (37 * hash) + LOW_128_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLow128());
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.ValueProtos.Value parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.Value parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.Value parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.Value parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.Value parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.Value parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.Value parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.Value parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.Value parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.Value parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.Value parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.Value parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.ValueProtos.Value prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Value}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Value)
com.yandex.ydb.ValueProtos.ValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_Value_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_Value_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.Value.class, com.yandex.ydb.ValueProtos.Value.Builder.class);
}
// Construct using com.yandex.ydb.ValueProtos.Value.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getItemsFieldBuilder();
getPairsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
itemsBuilder_.clear();
}
if (pairsBuilder_ == null) {
pairs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
pairsBuilder_.clear();
}
variantIndex_ = 0;
high128_ = 0L;
valueCase_ = 0;
value_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_Value_descriptor;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.Value getDefaultInstanceForType() {
return com.yandex.ydb.ValueProtos.Value.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.Value build() {
com.yandex.ydb.ValueProtos.Value result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.Value buildPartial() {
com.yandex.ydb.ValueProtos.Value result = new com.yandex.ydb.ValueProtos.Value(this);
int from_bitField0_ = bitField0_;
if (valueCase_ == 1) {
result.value_ = value_;
}
if (valueCase_ == 2) {
result.value_ = value_;
}
if (valueCase_ == 3) {
result.value_ = value_;
}
if (valueCase_ == 4) {
result.value_ = value_;
}
if (valueCase_ == 5) {
result.value_ = value_;
}
if (valueCase_ == 6) {
result.value_ = value_;
}
if (valueCase_ == 7) {
result.value_ = value_;
}
if (valueCase_ == 8) {
result.value_ = value_;
}
if (valueCase_ == 9) {
result.value_ = value_;
}
if (valueCase_ == 10) {
result.value_ = value_;
}
if (valueCase_ == 11) {
if (nestedValueBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = nestedValueBuilder_.build();
}
}
if (valueCase_ == 15) {
result.value_ = value_;
}
if (itemsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
items_ = java.util.Collections.unmodifiableList(items_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.items_ = items_;
} else {
result.items_ = itemsBuilder_.build();
}
if (pairsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
pairs_ = java.util.Collections.unmodifiableList(pairs_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.pairs_ = pairs_;
} else {
result.pairs_ = pairsBuilder_.build();
}
result.variantIndex_ = variantIndex_;
result.high128_ = high128_;
result.valueCase_ = valueCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.ValueProtos.Value) {
return mergeFrom((com.yandex.ydb.ValueProtos.Value)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.ValueProtos.Value other) {
if (other == com.yandex.ydb.ValueProtos.Value.getDefaultInstance()) return this;
if (itemsBuilder_ == null) {
if (!other.items_.isEmpty()) {
if (items_.isEmpty()) {
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureItemsIsMutable();
items_.addAll(other.items_);
}
onChanged();
}
} else {
if (!other.items_.isEmpty()) {
if (itemsBuilder_.isEmpty()) {
itemsBuilder_.dispose();
itemsBuilder_ = null;
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000001);
itemsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getItemsFieldBuilder() : null;
} else {
itemsBuilder_.addAllMessages(other.items_);
}
}
}
if (pairsBuilder_ == null) {
if (!other.pairs_.isEmpty()) {
if (pairs_.isEmpty()) {
pairs_ = other.pairs_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePairsIsMutable();
pairs_.addAll(other.pairs_);
}
onChanged();
}
} else {
if (!other.pairs_.isEmpty()) {
if (pairsBuilder_.isEmpty()) {
pairsBuilder_.dispose();
pairsBuilder_ = null;
pairs_ = other.pairs_;
bitField0_ = (bitField0_ & ~0x00000002);
pairsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPairsFieldBuilder() : null;
} else {
pairsBuilder_.addAllMessages(other.pairs_);
}
}
}
if (other.getVariantIndex() != 0) {
setVariantIndex(other.getVariantIndex());
}
if (other.getHigh128() != 0L) {
setHigh128(other.getHigh128());
}
switch (other.getValueCase()) {
case BOOL_VALUE: {
setBoolValue(other.getBoolValue());
break;
}
case INT32_VALUE: {
setInt32Value(other.getInt32Value());
break;
}
case UINT32_VALUE: {
setUint32Value(other.getUint32Value());
break;
}
case INT64_VALUE: {
setInt64Value(other.getInt64Value());
break;
}
case UINT64_VALUE: {
setUint64Value(other.getUint64Value());
break;
}
case FLOAT_VALUE: {
setFloatValue(other.getFloatValue());
break;
}
case DOUBLE_VALUE: {
setDoubleValue(other.getDoubleValue());
break;
}
case BYTES_VALUE: {
setBytesValue(other.getBytesValue());
break;
}
case TEXT_VALUE: {
valueCase_ = 9;
value_ = other.value_;
onChanged();
break;
}
case NULL_FLAG_VALUE: {
setNullFlagValueValue(other.getNullFlagValueValue());
break;
}
case NESTED_VALUE: {
mergeNestedValue(other.getNestedValue());
break;
}
case LOW_128: {
setLow128(other.getLow128());
break;
}
case VALUE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.ValueProtos.Value parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.ValueProtos.Value) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int valueCase_ = 0;
private java.lang.Object value_;
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public Builder clearValue() {
valueCase_ = 0;
value_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
* bool bool_value = 1;
* @return Whether the boolValue field is set.
*/
public boolean hasBoolValue() {
return valueCase_ == 1;
}
/**
* bool bool_value = 1;
* @return The boolValue.
*/
public boolean getBoolValue() {
if (valueCase_ == 1) {
return (java.lang.Boolean) value_;
}
return false;
}
/**
* bool bool_value = 1;
* @param value The boolValue to set.
* @return This builder for chaining.
*/
public Builder setBoolValue(boolean value) {
valueCase_ = 1;
value_ = value;
onChanged();
return this;
}
/**
* bool bool_value = 1;
* @return This builder for chaining.
*/
public Builder clearBoolValue() {
if (valueCase_ == 1) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* sfixed32 int32_value = 2;
* @return Whether the int32Value field is set.
*/
public boolean hasInt32Value() {
return valueCase_ == 2;
}
/**
* sfixed32 int32_value = 2;
* @return The int32Value.
*/
public int getInt32Value() {
if (valueCase_ == 2) {
return (java.lang.Integer) value_;
}
return 0;
}
/**
* sfixed32 int32_value = 2;
* @param value The int32Value to set.
* @return This builder for chaining.
*/
public Builder setInt32Value(int value) {
valueCase_ = 2;
value_ = value;
onChanged();
return this;
}
/**
* sfixed32 int32_value = 2;
* @return This builder for chaining.
*/
public Builder clearInt32Value() {
if (valueCase_ == 2) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* fixed32 uint32_value = 3;
* @return Whether the uint32Value field is set.
*/
public boolean hasUint32Value() {
return valueCase_ == 3;
}
/**
* fixed32 uint32_value = 3;
* @return The uint32Value.
*/
public int getUint32Value() {
if (valueCase_ == 3) {
return (java.lang.Integer) value_;
}
return 0;
}
/**
* fixed32 uint32_value = 3;
* @param value The uint32Value to set.
* @return This builder for chaining.
*/
public Builder setUint32Value(int value) {
valueCase_ = 3;
value_ = value;
onChanged();
return this;
}
/**
* fixed32 uint32_value = 3;
* @return This builder for chaining.
*/
public Builder clearUint32Value() {
if (valueCase_ == 3) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* sfixed64 int64_value = 4;
* @return Whether the int64Value field is set.
*/
public boolean hasInt64Value() {
return valueCase_ == 4;
}
/**
* sfixed64 int64_value = 4;
* @return The int64Value.
*/
public long getInt64Value() {
if (valueCase_ == 4) {
return (java.lang.Long) value_;
}
return 0L;
}
/**
* sfixed64 int64_value = 4;
* @param value The int64Value to set.
* @return This builder for chaining.
*/
public Builder setInt64Value(long value) {
valueCase_ = 4;
value_ = value;
onChanged();
return this;
}
/**
* sfixed64 int64_value = 4;
* @return This builder for chaining.
*/
public Builder clearInt64Value() {
if (valueCase_ == 4) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* fixed64 uint64_value = 5;
* @return Whether the uint64Value field is set.
*/
public boolean hasUint64Value() {
return valueCase_ == 5;
}
/**
* fixed64 uint64_value = 5;
* @return The uint64Value.
*/
public long getUint64Value() {
if (valueCase_ == 5) {
return (java.lang.Long) value_;
}
return 0L;
}
/**
* fixed64 uint64_value = 5;
* @param value The uint64Value to set.
* @return This builder for chaining.
*/
public Builder setUint64Value(long value) {
valueCase_ = 5;
value_ = value;
onChanged();
return this;
}
/**
* fixed64 uint64_value = 5;
* @return This builder for chaining.
*/
public Builder clearUint64Value() {
if (valueCase_ == 5) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* float float_value = 6;
* @return Whether the floatValue field is set.
*/
public boolean hasFloatValue() {
return valueCase_ == 6;
}
/**
* float float_value = 6;
* @return The floatValue.
*/
public float getFloatValue() {
if (valueCase_ == 6) {
return (java.lang.Float) value_;
}
return 0F;
}
/**
* float float_value = 6;
* @param value The floatValue to set.
* @return This builder for chaining.
*/
public Builder setFloatValue(float value) {
valueCase_ = 6;
value_ = value;
onChanged();
return this;
}
/**
* float float_value = 6;
* @return This builder for chaining.
*/
public Builder clearFloatValue() {
if (valueCase_ == 6) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* double double_value = 7;
* @return Whether the doubleValue field is set.
*/
public boolean hasDoubleValue() {
return valueCase_ == 7;
}
/**
* double double_value = 7;
* @return The doubleValue.
*/
public double getDoubleValue() {
if (valueCase_ == 7) {
return (java.lang.Double) value_;
}
return 0D;
}
/**
* double double_value = 7;
* @param value The doubleValue to set.
* @return This builder for chaining.
*/
public Builder setDoubleValue(double value) {
valueCase_ = 7;
value_ = value;
onChanged();
return this;
}
/**
* double double_value = 7;
* @return This builder for chaining.
*/
public Builder clearDoubleValue() {
if (valueCase_ == 7) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* bytes bytes_value = 8;
* @return Whether the bytesValue field is set.
*/
public boolean hasBytesValue() {
return valueCase_ == 8;
}
/**
* bytes bytes_value = 8;
* @return The bytesValue.
*/
public com.google.protobuf.ByteString getBytesValue() {
if (valueCase_ == 8) {
return (com.google.protobuf.ByteString) value_;
}
return com.google.protobuf.ByteString.EMPTY;
}
/**
* bytes bytes_value = 8;
* @param value The bytesValue to set.
* @return This builder for chaining.
*/
public Builder setBytesValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
valueCase_ = 8;
value_ = value;
onChanged();
return this;
}
/**
* bytes bytes_value = 8;
* @return This builder for chaining.
*/
public Builder clearBytesValue() {
if (valueCase_ == 8) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* string text_value = 9;
* @return Whether the textValue field is set.
*/
@java.lang.Override
public boolean hasTextValue() {
return valueCase_ == 9;
}
/**
* string text_value = 9;
* @return The textValue.
*/
@java.lang.Override
public java.lang.String getTextValue() {
java.lang.Object ref = "";
if (valueCase_ == 9) {
ref = value_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (valueCase_ == 9) {
value_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string text_value = 9;
* @return The bytes for textValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTextValueBytes() {
java.lang.Object ref = "";
if (valueCase_ == 9) {
ref = value_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (valueCase_ == 9) {
value_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string text_value = 9;
* @param value The textValue to set.
* @return This builder for chaining.
*/
public Builder setTextValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
valueCase_ = 9;
value_ = value;
onChanged();
return this;
}
/**
* string text_value = 9;
* @return This builder for chaining.
*/
public Builder clearTextValue() {
if (valueCase_ == 9) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* string text_value = 9;
* @param value The bytes for textValue to set.
* @return This builder for chaining.
*/
public Builder setTextValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
valueCase_ = 9;
value_ = value;
onChanged();
return this;
}
/**
*
* Set if current TValue is terminal Null
*
*
* .google.protobuf.NullValue null_flag_value = 10;
* @return Whether the nullFlagValue field is set.
*/
@java.lang.Override
public boolean hasNullFlagValue() {
return valueCase_ == 10;
}
/**
*
* Set if current TValue is terminal Null
*
*
* .google.protobuf.NullValue null_flag_value = 10;
* @return The enum numeric value on the wire for nullFlagValue.
*/
@java.lang.Override
public int getNullFlagValueValue() {
if (valueCase_ == 10) {
return ((java.lang.Integer) value_).intValue();
}
return 0;
}
/**
*
* Set if current TValue is terminal Null
*
*
* .google.protobuf.NullValue null_flag_value = 10;
* @param value The enum numeric value on the wire for nullFlagValue to set.
* @return This builder for chaining.
*/
public Builder setNullFlagValueValue(int value) {
valueCase_ = 10;
value_ = value;
onChanged();
return this;
}
/**
*
* Set if current TValue is terminal Null
*
*
* .google.protobuf.NullValue null_flag_value = 10;
* @return The nullFlagValue.
*/
@java.lang.Override
public com.google.protobuf.NullValue getNullFlagValue() {
if (valueCase_ == 10) {
@SuppressWarnings("deprecation")
com.google.protobuf.NullValue result = com.google.protobuf.NullValue.valueOf(
(java.lang.Integer) value_);
return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result;
}
return com.google.protobuf.NullValue.NULL_VALUE;
}
/**
*
* Set if current TValue is terminal Null
*
*
* .google.protobuf.NullValue null_flag_value = 10;
* @param value The nullFlagValue to set.
* @return This builder for chaining.
*/
public Builder setNullFlagValue(com.google.protobuf.NullValue value) {
if (value == null) {
throw new NullPointerException();
}
valueCase_ = 10;
value_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
* uint32 variant_index = 14;
* @return The variantIndex.
*/
@java.lang.Override
public int getVariantIndex() {
return variantIndex_;
}
/**
*
* Used for Variant type
*
*
* uint32 variant_index = 14;
* @param value The variantIndex to set.
* @return This builder for chaining.
*/
public Builder setVariantIndex(int value) {
variantIndex_ = value;
onChanged();
return this;
}
/**
*
* Used for Variant type
*
*
* uint32 variant_index = 14;
* @return This builder for chaining.
*/
public Builder clearVariantIndex() {
variantIndex_ = 0;
onChanged();
return this;
}
private long high128_ ;
/**
* fixed64 high_128 = 16;
* @return The high128.
*/
@java.lang.Override
public long getHigh128() {
return high128_;
}
/**
* fixed64 high_128 = 16;
* @param value The high128 to set.
* @return This builder for chaining.
*/
public Builder setHigh128(long value) {
high128_ = value;
onChanged();
return this;
}
/**
* fixed64 high_128 = 16;
* @return This builder for chaining.
*/
public Builder clearHigh128() {
high128_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Value)
}
// @@protoc_insertion_point(class_scope:Ydb.Value)
private static final com.yandex.ydb.ValueProtos.Value DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.ValueProtos.Value();
}
public static com.yandex.ydb.ValueProtos.Value getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Value parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Value(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.Value getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TypedValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.TypedValue)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Type type = 1;
* @return Whether the type field is set.
*/
boolean hasType();
/**
* .Ydb.Type type = 1;
* @return The type.
*/
com.yandex.ydb.ValueProtos.Type getType();
/**
* .Ydb.Type type = 1;
*/
com.yandex.ydb.ValueProtos.TypeOrBuilder getTypeOrBuilder();
/**
* .Ydb.Value value = 2;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* .Ydb.Value value = 2;
* @return The value.
*/
com.yandex.ydb.ValueProtos.Value getValue();
/**
* .Ydb.Value value = 2;
*/
com.yandex.ydb.ValueProtos.ValueOrBuilder getValueOrBuilder();
}
/**
* Protobuf type {@code Ydb.TypedValue}
*/
public static final class TypedValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.TypedValue)
TypedValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use TypedValue.newBuilder() to construct.
private TypedValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TypedValue() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TypedValue();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TypedValue(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.ValueProtos.Type.Builder subBuilder = null;
if (type_ != null) {
subBuilder = type_.toBuilder();
}
type_ = input.readMessage(com.yandex.ydb.ValueProtos.Type.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(type_);
type_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.yandex.ydb.ValueProtos.Value.Builder subBuilder = null;
if (value_ != null) {
subBuilder = value_.toBuilder();
}
value_ = input.readMessage(com.yandex.ydb.ValueProtos.Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(value_);
value_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_TypedValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_TypedValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.TypedValue.class, com.yandex.ydb.ValueProtos.TypedValue.Builder.class);
}
public static final int TYPE_FIELD_NUMBER = 1;
private com.yandex.ydb.ValueProtos.Type type_;
/**
* .Ydb.Type type = 1;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return type_ != null;
}
/**
* .Ydb.Type type = 1;
* @return The type.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.Type getType() {
return type_ == null ? com.yandex.ydb.ValueProtos.Type.getDefaultInstance() : type_;
}
/**
* .Ydb.Type type = 1;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TypeOrBuilder getTypeOrBuilder() {
return getType();
}
public static final int VALUE_FIELD_NUMBER = 2;
private com.yandex.ydb.ValueProtos.Value value_;
/**
* .Ydb.Value value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return value_ != null;
}
/**
* .Ydb.Value value = 2;
* @return The value.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.Value getValue() {
return value_ == null ? com.yandex.ydb.ValueProtos.Value.getDefaultInstance() : value_;
}
/**
* .Ydb.Value value = 2;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.ValueOrBuilder getValueOrBuilder() {
return getValue();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (type_ != null) {
output.writeMessage(1, getType());
}
if (value_ != null) {
output.writeMessage(2, getValue());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (type_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getType());
}
if (value_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getValue());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.ValueProtos.TypedValue)) {
return super.equals(obj);
}
com.yandex.ydb.ValueProtos.TypedValue other = (com.yandex.ydb.ValueProtos.TypedValue) obj;
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (!getType()
.equals(other.getType())) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.ValueProtos.TypedValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.TypedValue parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.TypedValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.TypedValue parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.TypedValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.TypedValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.TypedValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.TypedValue parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.TypedValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.TypedValue parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.TypedValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.TypedValue parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.ValueProtos.TypedValue prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.TypedValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.TypedValue)
com.yandex.ydb.ValueProtos.TypedValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_TypedValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_TypedValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.TypedValue.class, com.yandex.ydb.ValueProtos.TypedValue.Builder.class);
}
// Construct using com.yandex.ydb.ValueProtos.TypedValue.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (typeBuilder_ == null) {
type_ = null;
} else {
type_ = null;
typeBuilder_ = null;
}
if (valueBuilder_ == null) {
value_ = null;
} else {
value_ = null;
valueBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_TypedValue_descriptor;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.TypedValue getDefaultInstanceForType() {
return com.yandex.ydb.ValueProtos.TypedValue.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.TypedValue build() {
com.yandex.ydb.ValueProtos.TypedValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.TypedValue buildPartial() {
com.yandex.ydb.ValueProtos.TypedValue result = new com.yandex.ydb.ValueProtos.TypedValue(this);
if (typeBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = typeBuilder_.build();
}
if (valueBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = valueBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.ValueProtos.TypedValue) {
return mergeFrom((com.yandex.ydb.ValueProtos.TypedValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.ValueProtos.TypedValue other) {
if (other == com.yandex.ydb.ValueProtos.TypedValue.getDefaultInstance()) return this;
if (other.hasType()) {
mergeType(other.getType());
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.ValueProtos.TypedValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.ValueProtos.TypedValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.ValueProtos.Type type_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Type, com.yandex.ydb.ValueProtos.Type.Builder, com.yandex.ydb.ValueProtos.TypeOrBuilder> typeBuilder_;
/**
* .Ydb.Type type = 1;
* @return Whether the type field is set.
*/
public boolean hasType() {
return typeBuilder_ != null || type_ != null;
}
/**
* .Ydb.Type type = 1;
* @return The type.
*/
public com.yandex.ydb.ValueProtos.Type getType() {
if (typeBuilder_ == null) {
return type_ == null ? com.yandex.ydb.ValueProtos.Type.getDefaultInstance() : type_;
} else {
return typeBuilder_.getMessage();
}
}
/**
* .Ydb.Type type = 1;
*/
public Builder setType(com.yandex.ydb.ValueProtos.Type value) {
if (typeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
typeBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Type type = 1;
*/
public Builder setType(
com.yandex.ydb.ValueProtos.Type.Builder builderForValue) {
if (typeBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
typeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Type type = 1;
*/
public Builder mergeType(com.yandex.ydb.ValueProtos.Type value) {
if (typeBuilder_ == null) {
if (type_ != null) {
type_ =
com.yandex.ydb.ValueProtos.Type.newBuilder(type_).mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
typeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Type type = 1;
*/
public Builder clearType() {
if (typeBuilder_ == null) {
type_ = null;
onChanged();
} else {
type_ = null;
typeBuilder_ = null;
}
return this;
}
/**
* .Ydb.Type type = 1;
*/
public com.yandex.ydb.ValueProtos.Type.Builder getTypeBuilder() {
onChanged();
return getTypeFieldBuilder().getBuilder();
}
/**
* .Ydb.Type type = 1;
*/
public com.yandex.ydb.ValueProtos.TypeOrBuilder getTypeOrBuilder() {
if (typeBuilder_ != null) {
return typeBuilder_.getMessageOrBuilder();
} else {
return type_ == null ?
com.yandex.ydb.ValueProtos.Type.getDefaultInstance() : type_;
}
}
/**
* .Ydb.Type type = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Type, com.yandex.ydb.ValueProtos.Type.Builder, com.yandex.ydb.ValueProtos.TypeOrBuilder>
getTypeFieldBuilder() {
if (typeBuilder_ == null) {
typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Type, com.yandex.ydb.ValueProtos.Type.Builder, com.yandex.ydb.ValueProtos.TypeOrBuilder>(
getType(),
getParentForChildren(),
isClean());
type_ = null;
}
return typeBuilder_;
}
private com.yandex.ydb.ValueProtos.Value value_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Value, com.yandex.ydb.ValueProtos.Value.Builder, com.yandex.ydb.ValueProtos.ValueOrBuilder> valueBuilder_;
/**
* .Ydb.Value value = 2;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return valueBuilder_ != null || value_ != null;
}
/**
* .Ydb.Value value = 2;
* @return The value.
*/
public com.yandex.ydb.ValueProtos.Value getValue() {
if (valueBuilder_ == null) {
return value_ == null ? com.yandex.ydb.ValueProtos.Value.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* .Ydb.Value value = 2;
*/
public Builder setValue(com.yandex.ydb.ValueProtos.Value value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
valueBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Value value = 2;
*/
public Builder setValue(
com.yandex.ydb.ValueProtos.Value.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Value value = 2;
*/
public Builder mergeValue(com.yandex.ydb.ValueProtos.Value value) {
if (valueBuilder_ == null) {
if (value_ != null) {
value_ =
com.yandex.ydb.ValueProtos.Value.newBuilder(value_).mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
valueBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Value value = 2;
*/
public Builder clearValue() {
if (valueBuilder_ == null) {
value_ = null;
onChanged();
} else {
value_ = null;
valueBuilder_ = null;
}
return this;
}
/**
* .Ydb.Value value = 2;
*/
public com.yandex.ydb.ValueProtos.Value.Builder getValueBuilder() {
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* .Ydb.Value value = 2;
*/
public com.yandex.ydb.ValueProtos.ValueOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
com.yandex.ydb.ValueProtos.Value.getDefaultInstance() : value_;
}
}
/**
* .Ydb.Value value = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Value, com.yandex.ydb.ValueProtos.Value.Builder, com.yandex.ydb.ValueProtos.ValueOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Value, com.yandex.ydb.ValueProtos.Value.Builder, com.yandex.ydb.ValueProtos.ValueOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.TypedValue)
}
// @@protoc_insertion_point(class_scope:Ydb.TypedValue)
private static final com.yandex.ydb.ValueProtos.TypedValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.ValueProtos.TypedValue();
}
public static com.yandex.ydb.ValueProtos.TypedValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TypedValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TypedValue(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.TypedValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ColumnOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Column)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of column
*
*
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of column
*
*
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
* @return Whether the type field is set.
*/
boolean hasType();
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
* @return The type.
*/
com.yandex.ydb.ValueProtos.Type getType();
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
com.yandex.ydb.ValueProtos.TypeOrBuilder getTypeOrBuilder();
}
/**
* Protobuf type {@code Ydb.Column}
*/
public static final class Column extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Column)
ColumnOrBuilder {
private static final long serialVersionUID = 0L;
// Use Column.newBuilder() to construct.
private Column(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Column() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Column();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Column(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
com.yandex.ydb.ValueProtos.Type.Builder subBuilder = null;
if (type_ != null) {
subBuilder = type_.toBuilder();
}
type_ = input.readMessage(com.yandex.ydb.ValueProtos.Type.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(type_);
type_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_Column_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_Column_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.Column.class, com.yandex.ydb.ValueProtos.Column.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Name of column
*
*
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of column
*
*
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 2;
private com.yandex.ydb.ValueProtos.Type type_;
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return type_ != null;
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
* @return The type.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.Type getType() {
return type_ == null ? com.yandex.ydb.ValueProtos.Type.getDefaultInstance() : type_;
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TypeOrBuilder getTypeOrBuilder() {
return getType();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (type_ != null) {
output.writeMessage(2, getType());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (type_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getType());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.ValueProtos.Column)) {
return super.equals(obj);
}
com.yandex.ydb.ValueProtos.Column other = (com.yandex.ydb.ValueProtos.Column) obj;
if (!getName()
.equals(other.getName())) return false;
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (!getType()
.equals(other.getType())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.ValueProtos.Column parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.Column parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.Column parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.Column parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.Column parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.Column parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.Column parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.Column parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.Column parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.Column parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.Column parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.Column parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.ValueProtos.Column prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Column}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Column)
com.yandex.ydb.ValueProtos.ColumnOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_Column_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_Column_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.Column.class, com.yandex.ydb.ValueProtos.Column.Builder.class);
}
// Construct using com.yandex.ydb.ValueProtos.Column.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
if (typeBuilder_ == null) {
type_ = null;
} else {
type_ = null;
typeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_Column_descriptor;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.Column getDefaultInstanceForType() {
return com.yandex.ydb.ValueProtos.Column.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.Column build() {
com.yandex.ydb.ValueProtos.Column result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.Column buildPartial() {
com.yandex.ydb.ValueProtos.Column result = new com.yandex.ydb.ValueProtos.Column(this);
result.name_ = name_;
if (typeBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = typeBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.ValueProtos.Column) {
return mergeFrom((com.yandex.ydb.ValueProtos.Column)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.ValueProtos.Column other) {
if (other == com.yandex.ydb.ValueProtos.Column.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.hasType()) {
mergeType(other.getType());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.ValueProtos.Column parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.ValueProtos.Column) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name of column
*
*
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of column
*
*
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of column
*
*
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of column
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of column
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private com.yandex.ydb.ValueProtos.Type type_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Type, com.yandex.ydb.ValueProtos.Type.Builder, com.yandex.ydb.ValueProtos.TypeOrBuilder> typeBuilder_;
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
* @return Whether the type field is set.
*/
public boolean hasType() {
return typeBuilder_ != null || type_ != null;
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
* @return The type.
*/
public com.yandex.ydb.ValueProtos.Type getType() {
if (typeBuilder_ == null) {
return type_ == null ? com.yandex.ydb.ValueProtos.Type.getDefaultInstance() : type_;
} else {
return typeBuilder_.getMessage();
}
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
public Builder setType(com.yandex.ydb.ValueProtos.Type value) {
if (typeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
typeBuilder_.setMessage(value);
}
return this;
}
/**
*