com.yandex.ydb.ValueProtos Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ydb-sdk-jdbc-uberjar Show documentation
Show all versions of ydb-sdk-jdbc-uberjar Show documentation
JDBC client implementation over Table client, single jar
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ydb/public/api/protos/ydb_value.proto
package com.yandex.ydb;
public final class ValueProtos {
private ValueProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface DecimalTypeOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.DecimalType)
com.google.protobuf.MessageOrBuilder {
/**
* uint32 precision = 1;
* @return The precision.
*/
int getPrecision();
/**
* uint32 scale = 2;
* @return The scale.
*/
int getScale();
}
/**
* Protobuf type {@code Ydb.DecimalType}
*/
public static final class DecimalType extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.DecimalType)
DecimalTypeOrBuilder {
private static final long serialVersionUID = 0L;
// Use DecimalType.newBuilder() to construct.
private DecimalType(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DecimalType() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DecimalType();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DecimalType(
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: {
precision_ = input.readUInt32();
break;
}
case 16: {
scale_ = input.readUInt32();
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_DecimalType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_DecimalType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.DecimalType.class, com.yandex.ydb.ValueProtos.DecimalType.Builder.class);
}
public static final int PRECISION_FIELD_NUMBER = 1;
private int precision_;
/**
* uint32 precision = 1;
* @return The precision.
*/
@java.lang.Override
public int getPrecision() {
return precision_;
}
public static final int SCALE_FIELD_NUMBER = 2;
private int scale_;
/**
* uint32 scale = 2;
* @return The scale.
*/
@java.lang.Override
public int getScale() {
return scale_;
}
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 (precision_ != 0) {
output.writeUInt32(1, precision_);
}
if (scale_ != 0) {
output.writeUInt32(2, scale_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (precision_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, precision_);
}
if (scale_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, scale_);
}
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.DecimalType)) {
return super.equals(obj);
}
com.yandex.ydb.ValueProtos.DecimalType other = (com.yandex.ydb.ValueProtos.DecimalType) obj;
if (getPrecision()
!= other.getPrecision()) return false;
if (getScale()
!= other.getScale()) 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) + PRECISION_FIELD_NUMBER;
hash = (53 * hash) + getPrecision();
hash = (37 * hash) + SCALE_FIELD_NUMBER;
hash = (53 * hash) + getScale();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.ValueProtos.DecimalType parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.DecimalType 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.DecimalType parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.DecimalType 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.DecimalType parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.DecimalType parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.DecimalType parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.DecimalType 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.DecimalType parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.DecimalType 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.DecimalType parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.DecimalType 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.DecimalType 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.DecimalType}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.DecimalType)
com.yandex.ydb.ValueProtos.DecimalTypeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_DecimalType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_DecimalType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.DecimalType.class, com.yandex.ydb.ValueProtos.DecimalType.Builder.class);
}
// Construct using com.yandex.ydb.ValueProtos.DecimalType.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();
precision_ = 0;
scale_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_DecimalType_descriptor;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.DecimalType getDefaultInstanceForType() {
return com.yandex.ydb.ValueProtos.DecimalType.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.DecimalType build() {
com.yandex.ydb.ValueProtos.DecimalType result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.DecimalType buildPartial() {
com.yandex.ydb.ValueProtos.DecimalType result = new com.yandex.ydb.ValueProtos.DecimalType(this);
result.precision_ = precision_;
result.scale_ = scale_;
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.DecimalType) {
return mergeFrom((com.yandex.ydb.ValueProtos.DecimalType)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.ValueProtos.DecimalType other) {
if (other == com.yandex.ydb.ValueProtos.DecimalType.getDefaultInstance()) return this;
if (other.getPrecision() != 0) {
setPrecision(other.getPrecision());
}
if (other.getScale() != 0) {
setScale(other.getScale());
}
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.DecimalType parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.ValueProtos.DecimalType) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int precision_ ;
/**
* uint32 precision = 1;
* @return The precision.
*/
@java.lang.Override
public int getPrecision() {
return precision_;
}
/**
* uint32 precision = 1;
* @param value The precision to set.
* @return This builder for chaining.
*/
public Builder setPrecision(int value) {
precision_ = value;
onChanged();
return this;
}
/**
* uint32 precision = 1;
* @return This builder for chaining.
*/
public Builder clearPrecision() {
precision_ = 0;
onChanged();
return this;
}
private int scale_ ;
/**
* uint32 scale = 2;
* @return The scale.
*/
@java.lang.Override
public int getScale() {
return scale_;
}
/**
* uint32 scale = 2;
* @param value The scale to set.
* @return This builder for chaining.
*/
public Builder setScale(int value) {
scale_ = value;
onChanged();
return this;
}
/**
* uint32 scale = 2;
* @return This builder for chaining.
*/
public Builder clearScale() {
scale_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.DecimalType)
}
// @@protoc_insertion_point(class_scope:Ydb.DecimalType)
private static final com.yandex.ydb.ValueProtos.DecimalType DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.ValueProtos.DecimalType();
}
public static com.yandex.ydb.ValueProtos.DecimalType getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DecimalType parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DecimalType(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.DecimalType getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OptionalTypeOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.OptionalType)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Type item = 1;
* @return Whether the item field is set.
*/
boolean hasItem();
/**
* .Ydb.Type item = 1;
* @return The item.
*/
com.yandex.ydb.ValueProtos.Type getItem();
/**
* .Ydb.Type item = 1;
*/
com.yandex.ydb.ValueProtos.TypeOrBuilder getItemOrBuilder();
}
/**
* Protobuf type {@code Ydb.OptionalType}
*/
public static final class OptionalType extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.OptionalType)
OptionalTypeOrBuilder {
private static final long serialVersionUID = 0L;
// Use OptionalType.newBuilder() to construct.
private OptionalType(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OptionalType() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OptionalType();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OptionalType(
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 (item_ != null) {
subBuilder = item_.toBuilder();
}
item_ = input.readMessage(com.yandex.ydb.ValueProtos.Type.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(item_);
item_ = 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_OptionalType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_OptionalType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.OptionalType.class, com.yandex.ydb.ValueProtos.OptionalType.Builder.class);
}
public static final int ITEM_FIELD_NUMBER = 1;
private com.yandex.ydb.ValueProtos.Type item_;
/**
* .Ydb.Type item = 1;
* @return Whether the item field is set.
*/
@java.lang.Override
public boolean hasItem() {
return item_ != null;
}
/**
* .Ydb.Type item = 1;
* @return The item.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.Type getItem() {
return item_ == null ? com.yandex.ydb.ValueProtos.Type.getDefaultInstance() : item_;
}
/**
* .Ydb.Type item = 1;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TypeOrBuilder getItemOrBuilder() {
return getItem();
}
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 (item_ != null) {
output.writeMessage(1, getItem());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (item_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getItem());
}
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.OptionalType)) {
return super.equals(obj);
}
com.yandex.ydb.ValueProtos.OptionalType other = (com.yandex.ydb.ValueProtos.OptionalType) obj;
if (hasItem() != other.hasItem()) return false;
if (hasItem()) {
if (!getItem()
.equals(other.getItem())) 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 (hasItem()) {
hash = (37 * hash) + ITEM_FIELD_NUMBER;
hash = (53 * hash) + getItem().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.ValueProtos.OptionalType parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.OptionalType 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.OptionalType parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.OptionalType 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.OptionalType parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.OptionalType parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.OptionalType parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.OptionalType 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.OptionalType parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.OptionalType 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.OptionalType parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.OptionalType 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.OptionalType 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.OptionalType}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.OptionalType)
com.yandex.ydb.ValueProtos.OptionalTypeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_OptionalType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_OptionalType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.OptionalType.class, com.yandex.ydb.ValueProtos.OptionalType.Builder.class);
}
// Construct using com.yandex.ydb.ValueProtos.OptionalType.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 (itemBuilder_ == null) {
item_ = null;
} else {
item_ = null;
itemBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_OptionalType_descriptor;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.OptionalType getDefaultInstanceForType() {
return com.yandex.ydb.ValueProtos.OptionalType.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.OptionalType build() {
com.yandex.ydb.ValueProtos.OptionalType result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.OptionalType buildPartial() {
com.yandex.ydb.ValueProtos.OptionalType result = new com.yandex.ydb.ValueProtos.OptionalType(this);
if (itemBuilder_ == null) {
result.item_ = item_;
} else {
result.item_ = itemBuilder_.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.OptionalType) {
return mergeFrom((com.yandex.ydb.ValueProtos.OptionalType)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.ValueProtos.OptionalType other) {
if (other == com.yandex.ydb.ValueProtos.OptionalType.getDefaultInstance()) return this;
if (other.hasItem()) {
mergeItem(other.getItem());
}
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.OptionalType parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.ValueProtos.OptionalType) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.ValueProtos.Type item_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Type, com.yandex.ydb.ValueProtos.Type.Builder, com.yandex.ydb.ValueProtos.TypeOrBuilder> itemBuilder_;
/**
* .Ydb.Type item = 1;
* @return Whether the item field is set.
*/
public boolean hasItem() {
return itemBuilder_ != null || item_ != null;
}
/**
* .Ydb.Type item = 1;
* @return The item.
*/
public com.yandex.ydb.ValueProtos.Type getItem() {
if (itemBuilder_ == null) {
return item_ == null ? com.yandex.ydb.ValueProtos.Type.getDefaultInstance() : item_;
} else {
return itemBuilder_.getMessage();
}
}
/**
* .Ydb.Type item = 1;
*/
public Builder setItem(com.yandex.ydb.ValueProtos.Type value) {
if (itemBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
item_ = value;
onChanged();
} else {
itemBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Type item = 1;
*/
public Builder setItem(
com.yandex.ydb.ValueProtos.Type.Builder builderForValue) {
if (itemBuilder_ == null) {
item_ = builderForValue.build();
onChanged();
} else {
itemBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Type item = 1;
*/
public Builder mergeItem(com.yandex.ydb.ValueProtos.Type value) {
if (itemBuilder_ == null) {
if (item_ != null) {
item_ =
com.yandex.ydb.ValueProtos.Type.newBuilder(item_).mergeFrom(value).buildPartial();
} else {
item_ = value;
}
onChanged();
} else {
itemBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Type item = 1;
*/
public Builder clearItem() {
if (itemBuilder_ == null) {
item_ = null;
onChanged();
} else {
item_ = null;
itemBuilder_ = null;
}
return this;
}
/**
* .Ydb.Type item = 1;
*/
public com.yandex.ydb.ValueProtos.Type.Builder getItemBuilder() {
onChanged();
return getItemFieldBuilder().getBuilder();
}
/**
* .Ydb.Type item = 1;
*/
public com.yandex.ydb.ValueProtos.TypeOrBuilder getItemOrBuilder() {
if (itemBuilder_ != null) {
return itemBuilder_.getMessageOrBuilder();
} else {
return item_ == null ?
com.yandex.ydb.ValueProtos.Type.getDefaultInstance() : item_;
}
}
/**
* .Ydb.Type item = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Type, com.yandex.ydb.ValueProtos.Type.Builder, com.yandex.ydb.ValueProtos.TypeOrBuilder>
getItemFieldBuilder() {
if (itemBuilder_ == null) {
itemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Type, com.yandex.ydb.ValueProtos.Type.Builder, com.yandex.ydb.ValueProtos.TypeOrBuilder>(
getItem(),
getParentForChildren(),
isClean());
item_ = null;
}
return itemBuilder_;
}
@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.OptionalType)
}
// @@protoc_insertion_point(class_scope:Ydb.OptionalType)
private static final com.yandex.ydb.ValueProtos.OptionalType DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.ValueProtos.OptionalType();
}
public static com.yandex.ydb.ValueProtos.OptionalType getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OptionalType parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OptionalType(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.OptionalType getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListTypeOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.ListType)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Type item = 1;
* @return Whether the item field is set.
*/
boolean hasItem();
/**
* .Ydb.Type item = 1;
* @return The item.
*/
com.yandex.ydb.ValueProtos.Type getItem();
/**
* .Ydb.Type item = 1;
*/
com.yandex.ydb.ValueProtos.TypeOrBuilder getItemOrBuilder();
}
/**
* Protobuf type {@code Ydb.ListType}
*/
public static final class ListType extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.ListType)
ListTypeOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListType.newBuilder() to construct.
private ListType(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListType() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListType();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListType(
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 (item_ != null) {
subBuilder = item_.toBuilder();
}
item_ = input.readMessage(com.yandex.ydb.ValueProtos.Type.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(item_);
item_ = 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_ListType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_ListType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.ListType.class, com.yandex.ydb.ValueProtos.ListType.Builder.class);
}
public static final int ITEM_FIELD_NUMBER = 1;
private com.yandex.ydb.ValueProtos.Type item_;
/**
* .Ydb.Type item = 1;
* @return Whether the item field is set.
*/
@java.lang.Override
public boolean hasItem() {
return item_ != null;
}
/**
* .Ydb.Type item = 1;
* @return The item.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.Type getItem() {
return item_ == null ? com.yandex.ydb.ValueProtos.Type.getDefaultInstance() : item_;
}
/**
* .Ydb.Type item = 1;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TypeOrBuilder getItemOrBuilder() {
return getItem();
}
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 (item_ != null) {
output.writeMessage(1, getItem());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (item_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getItem());
}
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.ListType)) {
return super.equals(obj);
}
com.yandex.ydb.ValueProtos.ListType other = (com.yandex.ydb.ValueProtos.ListType) obj;
if (hasItem() != other.hasItem()) return false;
if (hasItem()) {
if (!getItem()
.equals(other.getItem())) 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 (hasItem()) {
hash = (37 * hash) + ITEM_FIELD_NUMBER;
hash = (53 * hash) + getItem().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.ValueProtos.ListType parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.ListType 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.ListType parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.ListType 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.ListType parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.ListType parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.ListType parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.ListType 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.ListType parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.ListType 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.ListType parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.ListType 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.ListType 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.ListType}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.ListType)
com.yandex.ydb.ValueProtos.ListTypeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_ListType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_ListType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.ListType.class, com.yandex.ydb.ValueProtos.ListType.Builder.class);
}
// Construct using com.yandex.ydb.ValueProtos.ListType.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 (itemBuilder_ == null) {
item_ = null;
} else {
item_ = null;
itemBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_ListType_descriptor;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.ListType getDefaultInstanceForType() {
return com.yandex.ydb.ValueProtos.ListType.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.ListType build() {
com.yandex.ydb.ValueProtos.ListType result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.ListType buildPartial() {
com.yandex.ydb.ValueProtos.ListType result = new com.yandex.ydb.ValueProtos.ListType(this);
if (itemBuilder_ == null) {
result.item_ = item_;
} else {
result.item_ = itemBuilder_.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.ListType) {
return mergeFrom((com.yandex.ydb.ValueProtos.ListType)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.ValueProtos.ListType other) {
if (other == com.yandex.ydb.ValueProtos.ListType.getDefaultInstance()) return this;
if (other.hasItem()) {
mergeItem(other.getItem());
}
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.ListType parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.ValueProtos.ListType) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.ValueProtos.Type item_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Type, com.yandex.ydb.ValueProtos.Type.Builder, com.yandex.ydb.ValueProtos.TypeOrBuilder> itemBuilder_;
/**
* .Ydb.Type item = 1;
* @return Whether the item field is set.
*/
public boolean hasItem() {
return itemBuilder_ != null || item_ != null;
}
/**
* .Ydb.Type item = 1;
* @return The item.
*/
public com.yandex.ydb.ValueProtos.Type getItem() {
if (itemBuilder_ == null) {
return item_ == null ? com.yandex.ydb.ValueProtos.Type.getDefaultInstance() : item_;
} else {
return itemBuilder_.getMessage();
}
}
/**
* .Ydb.Type item = 1;
*/
public Builder setItem(com.yandex.ydb.ValueProtos.Type value) {
if (itemBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
item_ = value;
onChanged();
} else {
itemBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Type item = 1;
*/
public Builder setItem(
com.yandex.ydb.ValueProtos.Type.Builder builderForValue) {
if (itemBuilder_ == null) {
item_ = builderForValue.build();
onChanged();
} else {
itemBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Type item = 1;
*/
public Builder mergeItem(com.yandex.ydb.ValueProtos.Type value) {
if (itemBuilder_ == null) {
if (item_ != null) {
item_ =
com.yandex.ydb.ValueProtos.Type.newBuilder(item_).mergeFrom(value).buildPartial();
} else {
item_ = value;
}
onChanged();
} else {
itemBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Type item = 1;
*/
public Builder clearItem() {
if (itemBuilder_ == null) {
item_ = null;
onChanged();
} else {
item_ = null;
itemBuilder_ = null;
}
return this;
}
/**
* .Ydb.Type item = 1;
*/
public com.yandex.ydb.ValueProtos.Type.Builder getItemBuilder() {
onChanged();
return getItemFieldBuilder().getBuilder();
}
/**
* .Ydb.Type item = 1;
*/
public com.yandex.ydb.ValueProtos.TypeOrBuilder getItemOrBuilder() {
if (itemBuilder_ != null) {
return itemBuilder_.getMessageOrBuilder();
} else {
return item_ == null ?
com.yandex.ydb.ValueProtos.Type.getDefaultInstance() : item_;
}
}
/**
* .Ydb.Type item = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Type, com.yandex.ydb.ValueProtos.Type.Builder, com.yandex.ydb.ValueProtos.TypeOrBuilder>
getItemFieldBuilder() {
if (itemBuilder_ == null) {
itemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Type, com.yandex.ydb.ValueProtos.Type.Builder, com.yandex.ydb.ValueProtos.TypeOrBuilder>(
getItem(),
getParentForChildren(),
isClean());
item_ = null;
}
return itemBuilder_;
}
@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.ListType)
}
// @@protoc_insertion_point(class_scope:Ydb.ListType)
private static final com.yandex.ydb.ValueProtos.ListType DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.ValueProtos.ListType();
}
public static com.yandex.ydb.ValueProtos.ListType getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListType parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListType(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.ListType getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface VariantTypeOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.VariantType)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.TupleType tuple_items = 1;
* @return Whether the tupleItems field is set.
*/
boolean hasTupleItems();
/**
* .Ydb.TupleType tuple_items = 1;
* @return The tupleItems.
*/
com.yandex.ydb.ValueProtos.TupleType getTupleItems();
/**
* .Ydb.TupleType tuple_items = 1;
*/
com.yandex.ydb.ValueProtos.TupleTypeOrBuilder getTupleItemsOrBuilder();
/**
* .Ydb.StructType struct_items = 2;
* @return Whether the structItems field is set.
*/
boolean hasStructItems();
/**
* .Ydb.StructType struct_items = 2;
* @return The structItems.
*/
com.yandex.ydb.ValueProtos.StructType getStructItems();
/**
* .Ydb.StructType struct_items = 2;
*/
com.yandex.ydb.ValueProtos.StructTypeOrBuilder getStructItemsOrBuilder();
public com.yandex.ydb.ValueProtos.VariantType.TypeCase getTypeCase();
}
/**
* Protobuf type {@code Ydb.VariantType}
*/
public static final class VariantType extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.VariantType)
VariantTypeOrBuilder {
private static final long serialVersionUID = 0L;
// Use VariantType.newBuilder() to construct.
private VariantType(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VariantType() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new VariantType();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private VariantType(
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.TupleType.Builder subBuilder = null;
if (typeCase_ == 1) {
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_ = 1;
break;
}
case 18: {
com.yandex.ydb.ValueProtos.StructType.Builder subBuilder = null;
if (typeCase_ == 2) {
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_ = 2;
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_VariantType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_VariantType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.VariantType.class, com.yandex.ydb.ValueProtos.VariantType.Builder.class);
}
private int typeCase_ = 0;
private java.lang.Object type_;
public enum TypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
TUPLE_ITEMS(1),
STRUCT_ITEMS(2),
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 TUPLE_ITEMS;
case 2: return STRUCT_ITEMS;
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 TUPLE_ITEMS_FIELD_NUMBER = 1;
/**
* .Ydb.TupleType tuple_items = 1;
* @return Whether the tupleItems field is set.
*/
@java.lang.Override
public boolean hasTupleItems() {
return typeCase_ == 1;
}
/**
* .Ydb.TupleType tuple_items = 1;
* @return The tupleItems.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TupleType getTupleItems() {
if (typeCase_ == 1) {
return (com.yandex.ydb.ValueProtos.TupleType) type_;
}
return com.yandex.ydb.ValueProtos.TupleType.getDefaultInstance();
}
/**
* .Ydb.TupleType tuple_items = 1;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TupleTypeOrBuilder getTupleItemsOrBuilder() {
if (typeCase_ == 1) {
return (com.yandex.ydb.ValueProtos.TupleType) type_;
}
return com.yandex.ydb.ValueProtos.TupleType.getDefaultInstance();
}
public static final int STRUCT_ITEMS_FIELD_NUMBER = 2;
/**
* .Ydb.StructType struct_items = 2;
* @return Whether the structItems field is set.
*/
@java.lang.Override
public boolean hasStructItems() {
return typeCase_ == 2;
}
/**
* .Ydb.StructType struct_items = 2;
* @return The structItems.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.StructType getStructItems() {
if (typeCase_ == 2) {
return (com.yandex.ydb.ValueProtos.StructType) type_;
}
return com.yandex.ydb.ValueProtos.StructType.getDefaultInstance();
}
/**
* .Ydb.StructType struct_items = 2;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.StructTypeOrBuilder getStructItemsOrBuilder() {
if (typeCase_ == 2) {
return (com.yandex.ydb.ValueProtos.StructType) type_;
}
return com.yandex.ydb.ValueProtos.StructType.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (typeCase_ == 1) {
output.writeMessage(1, (com.yandex.ydb.ValueProtos.TupleType) type_);
}
if (typeCase_ == 2) {
output.writeMessage(2, (com.yandex.ydb.ValueProtos.StructType) 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
.computeMessageSize(1, (com.yandex.ydb.ValueProtos.TupleType) type_);
}
if (typeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.yandex.ydb.ValueProtos.StructType) 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.VariantType)) {
return super.equals(obj);
}
com.yandex.ydb.ValueProtos.VariantType other = (com.yandex.ydb.ValueProtos.VariantType) obj;
if (!getTypeCase().equals(other.getTypeCase())) return false;
switch (typeCase_) {
case 1:
if (!getTupleItems()
.equals(other.getTupleItems())) return false;
break;
case 2:
if (!getStructItems()
.equals(other.getStructItems())) 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) + TUPLE_ITEMS_FIELD_NUMBER;
hash = (53 * hash) + getTupleItems().hashCode();
break;
case 2:
hash = (37 * hash) + STRUCT_ITEMS_FIELD_NUMBER;
hash = (53 * hash) + getStructItems().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.ValueProtos.VariantType parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.VariantType 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.VariantType parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.VariantType 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.VariantType parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.VariantType parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.VariantType parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.VariantType 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.VariantType parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.VariantType 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.VariantType parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.VariantType 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.VariantType 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.VariantType}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.VariantType)
com.yandex.ydb.ValueProtos.VariantTypeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_VariantType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_VariantType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.VariantType.class, com.yandex.ydb.ValueProtos.VariantType.Builder.class);
}
// Construct using com.yandex.ydb.ValueProtos.VariantType.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_VariantType_descriptor;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.VariantType getDefaultInstanceForType() {
return com.yandex.ydb.ValueProtos.VariantType.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.VariantType build() {
com.yandex.ydb.ValueProtos.VariantType result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.VariantType buildPartial() {
com.yandex.ydb.ValueProtos.VariantType result = new com.yandex.ydb.ValueProtos.VariantType(this);
if (typeCase_ == 1) {
if (tupleItemsBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = tupleItemsBuilder_.build();
}
}
if (typeCase_ == 2) {
if (structItemsBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = structItemsBuilder_.build();
}
}
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.VariantType) {
return mergeFrom((com.yandex.ydb.ValueProtos.VariantType)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.ValueProtos.VariantType other) {
if (other == com.yandex.ydb.ValueProtos.VariantType.getDefaultInstance()) return this;
switch (other.getTypeCase()) {
case TUPLE_ITEMS: {
mergeTupleItems(other.getTupleItems());
break;
}
case STRUCT_ITEMS: {
mergeStructItems(other.getStructItems());
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.VariantType parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.ValueProtos.VariantType) 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;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.TupleType, com.yandex.ydb.ValueProtos.TupleType.Builder, com.yandex.ydb.ValueProtos.TupleTypeOrBuilder> tupleItemsBuilder_;
/**
* .Ydb.TupleType tuple_items = 1;
* @return Whether the tupleItems field is set.
*/
@java.lang.Override
public boolean hasTupleItems() {
return typeCase_ == 1;
}
/**
* .Ydb.TupleType tuple_items = 1;
* @return The tupleItems.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TupleType getTupleItems() {
if (tupleItemsBuilder_ == null) {
if (typeCase_ == 1) {
return (com.yandex.ydb.ValueProtos.TupleType) type_;
}
return com.yandex.ydb.ValueProtos.TupleType.getDefaultInstance();
} else {
if (typeCase_ == 1) {
return tupleItemsBuilder_.getMessage();
}
return com.yandex.ydb.ValueProtos.TupleType.getDefaultInstance();
}
}
/**
* .Ydb.TupleType tuple_items = 1;
*/
public Builder setTupleItems(com.yandex.ydb.ValueProtos.TupleType value) {
if (tupleItemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
tupleItemsBuilder_.setMessage(value);
}
typeCase_ = 1;
return this;
}
/**
* .Ydb.TupleType tuple_items = 1;
*/
public Builder setTupleItems(
com.yandex.ydb.ValueProtos.TupleType.Builder builderForValue) {
if (tupleItemsBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
tupleItemsBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 1;
return this;
}
/**
* .Ydb.TupleType tuple_items = 1;
*/
public Builder mergeTupleItems(com.yandex.ydb.ValueProtos.TupleType value) {
if (tupleItemsBuilder_ == null) {
if (typeCase_ == 1 &&
type_ != com.yandex.ydb.ValueProtos.TupleType.getDefaultInstance()) {
type_ = com.yandex.ydb.ValueProtos.TupleType.newBuilder((com.yandex.ydb.ValueProtos.TupleType) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 1) {
tupleItemsBuilder_.mergeFrom(value);
}
tupleItemsBuilder_.setMessage(value);
}
typeCase_ = 1;
return this;
}
/**
* .Ydb.TupleType tuple_items = 1;
*/
public Builder clearTupleItems() {
if (tupleItemsBuilder_ == null) {
if (typeCase_ == 1) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 1) {
typeCase_ = 0;
type_ = null;
}
tupleItemsBuilder_.clear();
}
return this;
}
/**
* .Ydb.TupleType tuple_items = 1;
*/
public com.yandex.ydb.ValueProtos.TupleType.Builder getTupleItemsBuilder() {
return getTupleItemsFieldBuilder().getBuilder();
}
/**
* .Ydb.TupleType tuple_items = 1;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TupleTypeOrBuilder getTupleItemsOrBuilder() {
if ((typeCase_ == 1) && (tupleItemsBuilder_ != null)) {
return tupleItemsBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 1) {
return (com.yandex.ydb.ValueProtos.TupleType) type_;
}
return com.yandex.ydb.ValueProtos.TupleType.getDefaultInstance();
}
}
/**
* .Ydb.TupleType tuple_items = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.TupleType, com.yandex.ydb.ValueProtos.TupleType.Builder, com.yandex.ydb.ValueProtos.TupleTypeOrBuilder>
getTupleItemsFieldBuilder() {
if (tupleItemsBuilder_ == null) {
if (!(typeCase_ == 1)) {
type_ = com.yandex.ydb.ValueProtos.TupleType.getDefaultInstance();
}
tupleItemsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.TupleType, com.yandex.ydb.ValueProtos.TupleType.Builder, com.yandex.ydb.ValueProtos.TupleTypeOrBuilder>(
(com.yandex.ydb.ValueProtos.TupleType) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 1;
onChanged();;
return tupleItemsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.StructType, com.yandex.ydb.ValueProtos.StructType.Builder, com.yandex.ydb.ValueProtos.StructTypeOrBuilder> structItemsBuilder_;
/**
* .Ydb.StructType struct_items = 2;
* @return Whether the structItems field is set.
*/
@java.lang.Override
public boolean hasStructItems() {
return typeCase_ == 2;
}
/**
* .Ydb.StructType struct_items = 2;
* @return The structItems.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.StructType getStructItems() {
if (structItemsBuilder_ == null) {
if (typeCase_ == 2) {
return (com.yandex.ydb.ValueProtos.StructType) type_;
}
return com.yandex.ydb.ValueProtos.StructType.getDefaultInstance();
} else {
if (typeCase_ == 2) {
return structItemsBuilder_.getMessage();
}
return com.yandex.ydb.ValueProtos.StructType.getDefaultInstance();
}
}
/**
* .Ydb.StructType struct_items = 2;
*/
public Builder setStructItems(com.yandex.ydb.ValueProtos.StructType value) {
if (structItemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
structItemsBuilder_.setMessage(value);
}
typeCase_ = 2;
return this;
}
/**
* .Ydb.StructType struct_items = 2;
*/
public Builder setStructItems(
com.yandex.ydb.ValueProtos.StructType.Builder builderForValue) {
if (structItemsBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
structItemsBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 2;
return this;
}
/**
* .Ydb.StructType struct_items = 2;
*/
public Builder mergeStructItems(com.yandex.ydb.ValueProtos.StructType value) {
if (structItemsBuilder_ == null) {
if (typeCase_ == 2 &&
type_ != com.yandex.ydb.ValueProtos.StructType.getDefaultInstance()) {
type_ = com.yandex.ydb.ValueProtos.StructType.newBuilder((com.yandex.ydb.ValueProtos.StructType) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 2) {
structItemsBuilder_.mergeFrom(value);
}
structItemsBuilder_.setMessage(value);
}
typeCase_ = 2;
return this;
}
/**
* .Ydb.StructType struct_items = 2;
*/
public Builder clearStructItems() {
if (structItemsBuilder_ == null) {
if (typeCase_ == 2) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 2) {
typeCase_ = 0;
type_ = null;
}
structItemsBuilder_.clear();
}
return this;
}
/**
* .Ydb.StructType struct_items = 2;
*/
public com.yandex.ydb.ValueProtos.StructType.Builder getStructItemsBuilder() {
return getStructItemsFieldBuilder().getBuilder();
}
/**
* .Ydb.StructType struct_items = 2;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.StructTypeOrBuilder getStructItemsOrBuilder() {
if ((typeCase_ == 2) && (structItemsBuilder_ != null)) {
return structItemsBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 2) {
return (com.yandex.ydb.ValueProtos.StructType) type_;
}
return com.yandex.ydb.ValueProtos.StructType.getDefaultInstance();
}
}
/**
* .Ydb.StructType struct_items = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.StructType, com.yandex.ydb.ValueProtos.StructType.Builder, com.yandex.ydb.ValueProtos.StructTypeOrBuilder>
getStructItemsFieldBuilder() {
if (structItemsBuilder_ == null) {
if (!(typeCase_ == 2)) {
type_ = com.yandex.ydb.ValueProtos.StructType.getDefaultInstance();
}
structItemsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.StructType, com.yandex.ydb.ValueProtos.StructType.Builder, com.yandex.ydb.ValueProtos.StructTypeOrBuilder>(
(com.yandex.ydb.ValueProtos.StructType) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 2;
onChanged();;
return structItemsBuilder_;
}
@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.VariantType)
}
// @@protoc_insertion_point(class_scope:Ydb.VariantType)
private static final com.yandex.ydb.ValueProtos.VariantType DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.ValueProtos.VariantType();
}
public static com.yandex.ydb.ValueProtos.VariantType getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VariantType parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new VariantType(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.VariantType getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TupleTypeOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.TupleType)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .Ydb.Type elements = 1;
*/
java.util.List
getElementsList();
/**
* repeated .Ydb.Type elements = 1;
*/
com.yandex.ydb.ValueProtos.Type getElements(int index);
/**
* repeated .Ydb.Type elements = 1;
*/
int getElementsCount();
/**
* repeated .Ydb.Type elements = 1;
*/
java.util.List extends com.yandex.ydb.ValueProtos.TypeOrBuilder>
getElementsOrBuilderList();
/**
* repeated .Ydb.Type elements = 1;
*/
com.yandex.ydb.ValueProtos.TypeOrBuilder getElementsOrBuilder(
int index);
}
/**
* Protobuf type {@code Ydb.TupleType}
*/
public static final class TupleType extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.TupleType)
TupleTypeOrBuilder {
private static final long serialVersionUID = 0L;
// Use TupleType.newBuilder() to construct.
private TupleType(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TupleType() {
elements_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TupleType();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TupleType(
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 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
elements_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
elements_.add(
input.readMessage(com.yandex.ydb.ValueProtos.Type.parser(), extensionRegistry));
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)) {
elements_ = java.util.Collections.unmodifiableList(elements_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_TupleType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_TupleType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.TupleType.class, com.yandex.ydb.ValueProtos.TupleType.Builder.class);
}
public static final int ELEMENTS_FIELD_NUMBER = 1;
private java.util.List elements_;
/**
* repeated .Ydb.Type elements = 1;
*/
@java.lang.Override
public java.util.List getElementsList() {
return elements_;
}
/**
* repeated .Ydb.Type elements = 1;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.ValueProtos.TypeOrBuilder>
getElementsOrBuilderList() {
return elements_;
}
/**
* repeated .Ydb.Type elements = 1;
*/
@java.lang.Override
public int getElementsCount() {
return elements_.size();
}
/**
* repeated .Ydb.Type elements = 1;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.Type getElements(int index) {
return elements_.get(index);
}
/**
* repeated .Ydb.Type elements = 1;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TypeOrBuilder getElementsOrBuilder(
int index) {
return elements_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < elements_.size(); i++) {
output.writeMessage(1, elements_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < elements_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, elements_.get(i));
}
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.TupleType)) {
return super.equals(obj);
}
com.yandex.ydb.ValueProtos.TupleType other = (com.yandex.ydb.ValueProtos.TupleType) obj;
if (!getElementsList()
.equals(other.getElementsList())) 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 (getElementsCount() > 0) {
hash = (37 * hash) + ELEMENTS_FIELD_NUMBER;
hash = (53 * hash) + getElementsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.ValueProtos.TupleType parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.TupleType 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.TupleType parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.TupleType 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.TupleType parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.TupleType parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.TupleType parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.TupleType 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.TupleType parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.TupleType 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.TupleType parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.TupleType 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.TupleType 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.TupleType}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.TupleType)
com.yandex.ydb.ValueProtos.TupleTypeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_TupleType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_TupleType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.TupleType.class, com.yandex.ydb.ValueProtos.TupleType.Builder.class);
}
// Construct using com.yandex.ydb.ValueProtos.TupleType.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getElementsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (elementsBuilder_ == null) {
elements_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
elementsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_TupleType_descriptor;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.TupleType getDefaultInstanceForType() {
return com.yandex.ydb.ValueProtos.TupleType.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.TupleType build() {
com.yandex.ydb.ValueProtos.TupleType result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.TupleType buildPartial() {
com.yandex.ydb.ValueProtos.TupleType result = new com.yandex.ydb.ValueProtos.TupleType(this);
int from_bitField0_ = bitField0_;
if (elementsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
elements_ = java.util.Collections.unmodifiableList(elements_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.elements_ = elements_;
} else {
result.elements_ = elementsBuilder_.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.TupleType) {
return mergeFrom((com.yandex.ydb.ValueProtos.TupleType)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.ValueProtos.TupleType other) {
if (other == com.yandex.ydb.ValueProtos.TupleType.getDefaultInstance()) return this;
if (elementsBuilder_ == null) {
if (!other.elements_.isEmpty()) {
if (elements_.isEmpty()) {
elements_ = other.elements_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureElementsIsMutable();
elements_.addAll(other.elements_);
}
onChanged();
}
} else {
if (!other.elements_.isEmpty()) {
if (elementsBuilder_.isEmpty()) {
elementsBuilder_.dispose();
elementsBuilder_ = null;
elements_ = other.elements_;
bitField0_ = (bitField0_ & ~0x00000001);
elementsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getElementsFieldBuilder() : null;
} else {
elementsBuilder_.addAllMessages(other.elements_);
}
}
}
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.TupleType parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.ValueProtos.TupleType) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List elements_ =
java.util.Collections.emptyList();
private void ensureElementsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
elements_ = new java.util.ArrayList(elements_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.Type, com.yandex.ydb.ValueProtos.Type.Builder, com.yandex.ydb.ValueProtos.TypeOrBuilder> elementsBuilder_;
/**
* repeated .Ydb.Type elements = 1;
*/
public java.util.List getElementsList() {
if (elementsBuilder_ == null) {
return java.util.Collections.unmodifiableList(elements_);
} else {
return elementsBuilder_.getMessageList();
}
}
/**
* repeated .Ydb.Type elements = 1;
*/
public int getElementsCount() {
if (elementsBuilder_ == null) {
return elements_.size();
} else {
return elementsBuilder_.getCount();
}
}
/**
* repeated .Ydb.Type elements = 1;
*/
public com.yandex.ydb.ValueProtos.Type getElements(int index) {
if (elementsBuilder_ == null) {
return elements_.get(index);
} else {
return elementsBuilder_.getMessage(index);
}
}
/**
* repeated .Ydb.Type elements = 1;
*/
public Builder setElements(
int index, com.yandex.ydb.ValueProtos.Type value) {
if (elementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureElementsIsMutable();
elements_.set(index, value);
onChanged();
} else {
elementsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Type elements = 1;
*/
public Builder setElements(
int index, com.yandex.ydb.ValueProtos.Type.Builder builderForValue) {
if (elementsBuilder_ == null) {
ensureElementsIsMutable();
elements_.set(index, builderForValue.build());
onChanged();
} else {
elementsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Type elements = 1;
*/
public Builder addElements(com.yandex.ydb.ValueProtos.Type value) {
if (elementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureElementsIsMutable();
elements_.add(value);
onChanged();
} else {
elementsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ydb.Type elements = 1;
*/
public Builder addElements(
int index, com.yandex.ydb.ValueProtos.Type value) {
if (elementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureElementsIsMutable();
elements_.add(index, value);
onChanged();
} else {
elementsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Type elements = 1;
*/
public Builder addElements(
com.yandex.ydb.ValueProtos.Type.Builder builderForValue) {
if (elementsBuilder_ == null) {
ensureElementsIsMutable();
elements_.add(builderForValue.build());
onChanged();
} else {
elementsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Type elements = 1;
*/
public Builder addElements(
int index, com.yandex.ydb.ValueProtos.Type.Builder builderForValue) {
if (elementsBuilder_ == null) {
ensureElementsIsMutable();
elements_.add(index, builderForValue.build());
onChanged();
} else {
elementsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Type elements = 1;
*/
public Builder addAllElements(
java.lang.Iterable extends com.yandex.ydb.ValueProtos.Type> values) {
if (elementsBuilder_ == null) {
ensureElementsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, elements_);
onChanged();
} else {
elementsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Ydb.Type elements = 1;
*/
public Builder clearElements() {
if (elementsBuilder_ == null) {
elements_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
elementsBuilder_.clear();
}
return this;
}
/**
* repeated .Ydb.Type elements = 1;
*/
public Builder removeElements(int index) {
if (elementsBuilder_ == null) {
ensureElementsIsMutable();
elements_.remove(index);
onChanged();
} else {
elementsBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ydb.Type elements = 1;
*/
public com.yandex.ydb.ValueProtos.Type.Builder getElementsBuilder(
int index) {
return getElementsFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Type elements = 1;
*/
public com.yandex.ydb.ValueProtos.TypeOrBuilder getElementsOrBuilder(
int index) {
if (elementsBuilder_ == null) {
return elements_.get(index); } else {
return elementsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ydb.Type elements = 1;
*/
public java.util.List extends com.yandex.ydb.ValueProtos.TypeOrBuilder>
getElementsOrBuilderList() {
if (elementsBuilder_ != null) {
return elementsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(elements_);
}
}
/**
* repeated .Ydb.Type elements = 1;
*/
public com.yandex.ydb.ValueProtos.Type.Builder addElementsBuilder() {
return getElementsFieldBuilder().addBuilder(
com.yandex.ydb.ValueProtos.Type.getDefaultInstance());
}
/**
* repeated .Ydb.Type elements = 1;
*/
public com.yandex.ydb.ValueProtos.Type.Builder addElementsBuilder(
int index) {
return getElementsFieldBuilder().addBuilder(
index, com.yandex.ydb.ValueProtos.Type.getDefaultInstance());
}
/**
* repeated .Ydb.Type elements = 1;
*/
public java.util.List
getElementsBuilderList() {
return getElementsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.Type, com.yandex.ydb.ValueProtos.Type.Builder, com.yandex.ydb.ValueProtos.TypeOrBuilder>
getElementsFieldBuilder() {
if (elementsBuilder_ == null) {
elementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.Type, com.yandex.ydb.ValueProtos.Type.Builder, com.yandex.ydb.ValueProtos.TypeOrBuilder>(
elements_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
elements_ = null;
}
return elementsBuilder_;
}
@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.TupleType)
}
// @@protoc_insertion_point(class_scope:Ydb.TupleType)
private static final com.yandex.ydb.ValueProtos.TupleType DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.ValueProtos.TupleType();
}
public static com.yandex.ydb.ValueProtos.TupleType getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TupleType parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TupleType(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.TupleType getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StructMemberOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.StructMember)
com.google.protobuf.MessageOrBuilder {
/**
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* .Ydb.Type type = 2;
* @return Whether the type field is set.
*/
boolean hasType();
/**
* .Ydb.Type type = 2;
* @return The type.
*/
com.yandex.ydb.ValueProtos.Type getType();
/**
* .Ydb.Type type = 2;
*/
com.yandex.ydb.ValueProtos.TypeOrBuilder getTypeOrBuilder();
}
/**
* Protobuf type {@code Ydb.StructMember}
*/
public static final class StructMember extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.StructMember)
StructMemberOrBuilder {
private static final long serialVersionUID = 0L;
// Use StructMember.newBuilder() to construct.
private StructMember(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StructMember() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StructMember();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StructMember(
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_StructMember_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_StructMember_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.StructMember.class, com.yandex.ydb.ValueProtos.StructMember.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* 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;
}
}
/**
* 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_;
/**
* .Ydb.Type type = 2;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return type_ != null;
}
/**
* .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_;
}
/**
* .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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
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.StructMember)) {
return super.equals(obj);
}
com.yandex.ydb.ValueProtos.StructMember other = (com.yandex.ydb.ValueProtos.StructMember) 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.StructMember parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.StructMember 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.StructMember parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.StructMember 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.StructMember parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.StructMember parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.StructMember parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.StructMember 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.StructMember parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.StructMember 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.StructMember parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.StructMember 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.StructMember 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.StructMember}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.StructMember)
com.yandex.ydb.ValueProtos.StructMemberOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_StructMember_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_StructMember_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.StructMember.class, com.yandex.ydb.ValueProtos.StructMember.Builder.class);
}
// Construct using com.yandex.ydb.ValueProtos.StructMember.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_StructMember_descriptor;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.StructMember getDefaultInstanceForType() {
return com.yandex.ydb.ValueProtos.StructMember.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.StructMember build() {
com.yandex.ydb.ValueProtos.StructMember result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.StructMember buildPartial() {
com.yandex.ydb.ValueProtos.StructMember result = new com.yandex.ydb.ValueProtos.StructMember(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.StructMember) {
return mergeFrom((com.yandex.ydb.ValueProtos.StructMember)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.ValueProtos.StructMember other) {
if (other == com.yandex.ydb.ValueProtos.StructMember.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.StructMember parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.ValueProtos.StructMember) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
* 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;
}
}
/**
* 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;
}
}
/**
* 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;
}
/**
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* 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_;
/**
* .Ydb.Type type = 2;
* @return Whether the type field is set.
*/
public boolean hasType() {
return typeBuilder_ != null || type_ != null;
}
/**
* .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();
}
}
/**
* .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;
}
/**
* .Ydb.Type type = 2;
*/
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 = 2;
*/
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 = 2;
*/
public Builder clearType() {
if (typeBuilder_ == null) {
type_ = null;
onChanged();
} else {
type_ = null;
typeBuilder_ = null;
}
return this;
}
/**
* .Ydb.Type type = 2;
*/
public com.yandex.ydb.ValueProtos.Type.Builder getTypeBuilder() {
onChanged();
return getTypeFieldBuilder().getBuilder();
}
/**
* .Ydb.Type type = 2;
*/
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 = 2;
*/
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_;
}
@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.StructMember)
}
// @@protoc_insertion_point(class_scope:Ydb.StructMember)
private static final com.yandex.ydb.ValueProtos.StructMember DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.ValueProtos.StructMember();
}
public static com.yandex.ydb.ValueProtos.StructMember getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StructMember parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StructMember(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.StructMember getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StructTypeOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.StructType)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .Ydb.StructMember members = 1;
*/
java.util.List
getMembersList();
/**
* repeated .Ydb.StructMember members = 1;
*/
com.yandex.ydb.ValueProtos.StructMember getMembers(int index);
/**
* repeated .Ydb.StructMember members = 1;
*/
int getMembersCount();
/**
* repeated .Ydb.StructMember members = 1;
*/
java.util.List extends com.yandex.ydb.ValueProtos.StructMemberOrBuilder>
getMembersOrBuilderList();
/**
* repeated .Ydb.StructMember members = 1;
*/
com.yandex.ydb.ValueProtos.StructMemberOrBuilder getMembersOrBuilder(
int index);
}
/**
* Protobuf type {@code Ydb.StructType}
*/
public static final class StructType extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.StructType)
StructTypeOrBuilder {
private static final long serialVersionUID = 0L;
// Use StructType.newBuilder() to construct.
private StructType(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StructType() {
members_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StructType();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StructType(
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 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
members_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
members_.add(
input.readMessage(com.yandex.ydb.ValueProtos.StructMember.parser(), extensionRegistry));
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)) {
members_ = java.util.Collections.unmodifiableList(members_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_StructType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_StructType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.StructType.class, com.yandex.ydb.ValueProtos.StructType.Builder.class);
}
public static final int MEMBERS_FIELD_NUMBER = 1;
private java.util.List members_;
/**
* repeated .Ydb.StructMember members = 1;
*/
@java.lang.Override
public java.util.List getMembersList() {
return members_;
}
/**
* repeated .Ydb.StructMember members = 1;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.ValueProtos.StructMemberOrBuilder>
getMembersOrBuilderList() {
return members_;
}
/**
* repeated .Ydb.StructMember members = 1;
*/
@java.lang.Override
public int getMembersCount() {
return members_.size();
}
/**
* repeated .Ydb.StructMember members = 1;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.StructMember getMembers(int index) {
return members_.get(index);
}
/**
* repeated .Ydb.StructMember members = 1;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.StructMemberOrBuilder getMembersOrBuilder(
int index) {
return members_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < members_.size(); i++) {
output.writeMessage(1, members_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < members_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, members_.get(i));
}
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.StructType)) {
return super.equals(obj);
}
com.yandex.ydb.ValueProtos.StructType other = (com.yandex.ydb.ValueProtos.StructType) obj;
if (!getMembersList()
.equals(other.getMembersList())) 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 (getMembersCount() > 0) {
hash = (37 * hash) + MEMBERS_FIELD_NUMBER;
hash = (53 * hash) + getMembersList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.ValueProtos.StructType parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.StructType 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.StructType parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.StructType 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.StructType parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.StructType parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.StructType parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.StructType 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.StructType parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.StructType 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.StructType parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.StructType 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.StructType 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.StructType}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.StructType)
com.yandex.ydb.ValueProtos.StructTypeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_StructType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_StructType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.StructType.class, com.yandex.ydb.ValueProtos.StructType.Builder.class);
}
// Construct using com.yandex.ydb.ValueProtos.StructType.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMembersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (membersBuilder_ == null) {
members_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
membersBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_StructType_descriptor;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.StructType getDefaultInstanceForType() {
return com.yandex.ydb.ValueProtos.StructType.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.StructType build() {
com.yandex.ydb.ValueProtos.StructType result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.StructType buildPartial() {
com.yandex.ydb.ValueProtos.StructType result = new com.yandex.ydb.ValueProtos.StructType(this);
int from_bitField0_ = bitField0_;
if (membersBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
members_ = java.util.Collections.unmodifiableList(members_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.members_ = members_;
} else {
result.members_ = membersBuilder_.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.StructType) {
return mergeFrom((com.yandex.ydb.ValueProtos.StructType)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.ValueProtos.StructType other) {
if (other == com.yandex.ydb.ValueProtos.StructType.getDefaultInstance()) return this;
if (membersBuilder_ == null) {
if (!other.members_.isEmpty()) {
if (members_.isEmpty()) {
members_ = other.members_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMembersIsMutable();
members_.addAll(other.members_);
}
onChanged();
}
} else {
if (!other.members_.isEmpty()) {
if (membersBuilder_.isEmpty()) {
membersBuilder_.dispose();
membersBuilder_ = null;
members_ = other.members_;
bitField0_ = (bitField0_ & ~0x00000001);
membersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMembersFieldBuilder() : null;
} else {
membersBuilder_.addAllMessages(other.members_);
}
}
}
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.StructType parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.ValueProtos.StructType) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List members_ =
java.util.Collections.emptyList();
private void ensureMembersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
members_ = new java.util.ArrayList(members_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.StructMember, com.yandex.ydb.ValueProtos.StructMember.Builder, com.yandex.ydb.ValueProtos.StructMemberOrBuilder> membersBuilder_;
/**
* repeated .Ydb.StructMember members = 1;
*/
public java.util.List getMembersList() {
if (membersBuilder_ == null) {
return java.util.Collections.unmodifiableList(members_);
} else {
return membersBuilder_.getMessageList();
}
}
/**
* repeated .Ydb.StructMember members = 1;
*/
public int getMembersCount() {
if (membersBuilder_ == null) {
return members_.size();
} else {
return membersBuilder_.getCount();
}
}
/**
* repeated .Ydb.StructMember members = 1;
*/
public com.yandex.ydb.ValueProtos.StructMember getMembers(int index) {
if (membersBuilder_ == null) {
return members_.get(index);
} else {
return membersBuilder_.getMessage(index);
}
}
/**
* repeated .Ydb.StructMember members = 1;
*/
public Builder setMembers(
int index, com.yandex.ydb.ValueProtos.StructMember value) {
if (membersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMembersIsMutable();
members_.set(index, value);
onChanged();
} else {
membersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.StructMember members = 1;
*/
public Builder setMembers(
int index, com.yandex.ydb.ValueProtos.StructMember.Builder builderForValue) {
if (membersBuilder_ == null) {
ensureMembersIsMutable();
members_.set(index, builderForValue.build());
onChanged();
} else {
membersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.StructMember members = 1;
*/
public Builder addMembers(com.yandex.ydb.ValueProtos.StructMember value) {
if (membersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMembersIsMutable();
members_.add(value);
onChanged();
} else {
membersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ydb.StructMember members = 1;
*/
public Builder addMembers(
int index, com.yandex.ydb.ValueProtos.StructMember value) {
if (membersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMembersIsMutable();
members_.add(index, value);
onChanged();
} else {
membersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.StructMember members = 1;
*/
public Builder addMembers(
com.yandex.ydb.ValueProtos.StructMember.Builder builderForValue) {
if (membersBuilder_ == null) {
ensureMembersIsMutable();
members_.add(builderForValue.build());
onChanged();
} else {
membersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.StructMember members = 1;
*/
public Builder addMembers(
int index, com.yandex.ydb.ValueProtos.StructMember.Builder builderForValue) {
if (membersBuilder_ == null) {
ensureMembersIsMutable();
members_.add(index, builderForValue.build());
onChanged();
} else {
membersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.StructMember members = 1;
*/
public Builder addAllMembers(
java.lang.Iterable extends com.yandex.ydb.ValueProtos.StructMember> values) {
if (membersBuilder_ == null) {
ensureMembersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, members_);
onChanged();
} else {
membersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Ydb.StructMember members = 1;
*/
public Builder clearMembers() {
if (membersBuilder_ == null) {
members_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
membersBuilder_.clear();
}
return this;
}
/**
* repeated .Ydb.StructMember members = 1;
*/
public Builder removeMembers(int index) {
if (membersBuilder_ == null) {
ensureMembersIsMutable();
members_.remove(index);
onChanged();
} else {
membersBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ydb.StructMember members = 1;
*/
public com.yandex.ydb.ValueProtos.StructMember.Builder getMembersBuilder(
int index) {
return getMembersFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.StructMember members = 1;
*/
public com.yandex.ydb.ValueProtos.StructMemberOrBuilder getMembersOrBuilder(
int index) {
if (membersBuilder_ == null) {
return members_.get(index); } else {
return membersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ydb.StructMember members = 1;
*/
public java.util.List extends com.yandex.ydb.ValueProtos.StructMemberOrBuilder>
getMembersOrBuilderList() {
if (membersBuilder_ != null) {
return membersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(members_);
}
}
/**
* repeated .Ydb.StructMember members = 1;
*/
public com.yandex.ydb.ValueProtos.StructMember.Builder addMembersBuilder() {
return getMembersFieldBuilder().addBuilder(
com.yandex.ydb.ValueProtos.StructMember.getDefaultInstance());
}
/**
* repeated .Ydb.StructMember members = 1;
*/
public com.yandex.ydb.ValueProtos.StructMember.Builder addMembersBuilder(
int index) {
return getMembersFieldBuilder().addBuilder(
index, com.yandex.ydb.ValueProtos.StructMember.getDefaultInstance());
}
/**
* repeated .Ydb.StructMember members = 1;
*/
public java.util.List
getMembersBuilderList() {
return getMembersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.StructMember, com.yandex.ydb.ValueProtos.StructMember.Builder, com.yandex.ydb.ValueProtos.StructMemberOrBuilder>
getMembersFieldBuilder() {
if (membersBuilder_ == null) {
membersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.StructMember, com.yandex.ydb.ValueProtos.StructMember.Builder, com.yandex.ydb.ValueProtos.StructMemberOrBuilder>(
members_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
members_ = null;
}
return membersBuilder_;
}
@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.StructType)
}
// @@protoc_insertion_point(class_scope:Ydb.StructType)
private static final com.yandex.ydb.ValueProtos.StructType DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.ValueProtos.StructType();
}
public static com.yandex.ydb.ValueProtos.StructType getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StructType parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StructType(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.StructType getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DictTypeOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.DictType)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Type key = 1;
* @return Whether the key field is set.
*/
boolean hasKey();
/**
* .Ydb.Type key = 1;
* @return The key.
*/
com.yandex.ydb.ValueProtos.Type getKey();
/**
* .Ydb.Type key = 1;
*/
com.yandex.ydb.ValueProtos.TypeOrBuilder getKeyOrBuilder();
/**
* .Ydb.Type payload = 2;
* @return Whether the payload field is set.
*/
boolean hasPayload();
/**
* .Ydb.Type payload = 2;
* @return The payload.
*/
com.yandex.ydb.ValueProtos.Type getPayload();
/**
* .Ydb.Type payload = 2;
*/
com.yandex.ydb.ValueProtos.TypeOrBuilder getPayloadOrBuilder();
}
/**
* Protobuf type {@code Ydb.DictType}
*/
public static final class DictType extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.DictType)
DictTypeOrBuilder {
private static final long serialVersionUID = 0L;
// Use DictType.newBuilder() to construct.
private DictType(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DictType() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DictType();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DictType(
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 (key_ != null) {
subBuilder = key_.toBuilder();
}
key_ = input.readMessage(com.yandex.ydb.ValueProtos.Type.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(key_);
key_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.yandex.ydb.ValueProtos.Type.Builder subBuilder = null;
if (payload_ != null) {
subBuilder = payload_.toBuilder();
}
payload_ = input.readMessage(com.yandex.ydb.ValueProtos.Type.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_DictType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_DictType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.DictType.class, com.yandex.ydb.ValueProtos.DictType.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
private com.yandex.ydb.ValueProtos.Type key_;
/**
* .Ydb.Type key = 1;
* @return Whether the key field is set.
*/
@java.lang.Override
public boolean hasKey() {
return key_ != null;
}
/**
* .Ydb.Type key = 1;
* @return The key.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.Type getKey() {
return key_ == null ? com.yandex.ydb.ValueProtos.Type.getDefaultInstance() : key_;
}
/**
* .Ydb.Type key = 1;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TypeOrBuilder getKeyOrBuilder() {
return getKey();
}
public static final int PAYLOAD_FIELD_NUMBER = 2;
private com.yandex.ydb.ValueProtos.Type payload_;
/**
* .Ydb.Type payload = 2;
* @return Whether the payload field is set.
*/
@java.lang.Override
public boolean hasPayload() {
return payload_ != null;
}
/**
* .Ydb.Type payload = 2;
* @return The payload.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.Type getPayload() {
return payload_ == null ? com.yandex.ydb.ValueProtos.Type.getDefaultInstance() : payload_;
}
/**
* .Ydb.Type payload = 2;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TypeOrBuilder 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.DictType)) {
return super.equals(obj);
}
com.yandex.ydb.ValueProtos.DictType other = (com.yandex.ydb.ValueProtos.DictType) 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.DictType parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.DictType 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.DictType parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.DictType 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.DictType parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.DictType parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.DictType parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.DictType 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.DictType parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.DictType 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.DictType parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.DictType 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.DictType 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.DictType}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.DictType)
com.yandex.ydb.ValueProtos.DictTypeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_DictType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_DictType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.DictType.class, com.yandex.ydb.ValueProtos.DictType.Builder.class);
}
// Construct using com.yandex.ydb.ValueProtos.DictType.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_DictType_descriptor;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.DictType getDefaultInstanceForType() {
return com.yandex.ydb.ValueProtos.DictType.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.DictType build() {
com.yandex.ydb.ValueProtos.DictType result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.DictType buildPartial() {
com.yandex.ydb.ValueProtos.DictType result = new com.yandex.ydb.ValueProtos.DictType(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.DictType) {
return mergeFrom((com.yandex.ydb.ValueProtos.DictType)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.ValueProtos.DictType other) {
if (other == com.yandex.ydb.ValueProtos.DictType.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.DictType parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.ValueProtos.DictType) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.ValueProtos.Type key_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Type, com.yandex.ydb.ValueProtos.Type.Builder, com.yandex.ydb.ValueProtos.TypeOrBuilder> keyBuilder_;
/**
* .Ydb.Type key = 1;
* @return Whether the key field is set.
*/
public boolean hasKey() {
return keyBuilder_ != null || key_ != null;
}
/**
* .Ydb.Type key = 1;
* @return The key.
*/
public com.yandex.ydb.ValueProtos.Type getKey() {
if (keyBuilder_ == null) {
return key_ == null ? com.yandex.ydb.ValueProtos.Type.getDefaultInstance() : key_;
} else {
return keyBuilder_.getMessage();
}
}
/**
* .Ydb.Type key = 1;
*/
public Builder setKey(com.yandex.ydb.ValueProtos.Type value) {
if (keyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
} else {
keyBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Type key = 1;
*/
public Builder setKey(
com.yandex.ydb.ValueProtos.Type.Builder builderForValue) {
if (keyBuilder_ == null) {
key_ = builderForValue.build();
onChanged();
} else {
keyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Type key = 1;
*/
public Builder mergeKey(com.yandex.ydb.ValueProtos.Type value) {
if (keyBuilder_ == null) {
if (key_ != null) {
key_ =
com.yandex.ydb.ValueProtos.Type.newBuilder(key_).mergeFrom(value).buildPartial();
} else {
key_ = value;
}
onChanged();
} else {
keyBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Type key = 1;
*/
public Builder clearKey() {
if (keyBuilder_ == null) {
key_ = null;
onChanged();
} else {
key_ = null;
keyBuilder_ = null;
}
return this;
}
/**
* .Ydb.Type key = 1;
*/
public com.yandex.ydb.ValueProtos.Type.Builder getKeyBuilder() {
onChanged();
return getKeyFieldBuilder().getBuilder();
}
/**
* .Ydb.Type key = 1;
*/
public com.yandex.ydb.ValueProtos.TypeOrBuilder getKeyOrBuilder() {
if (keyBuilder_ != null) {
return keyBuilder_.getMessageOrBuilder();
} else {
return key_ == null ?
com.yandex.ydb.ValueProtos.Type.getDefaultInstance() : key_;
}
}
/**
* .Ydb.Type key = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Type, com.yandex.ydb.ValueProtos.Type.Builder, com.yandex.ydb.ValueProtos.TypeOrBuilder>
getKeyFieldBuilder() {
if (keyBuilder_ == null) {
keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Type, com.yandex.ydb.ValueProtos.Type.Builder, com.yandex.ydb.ValueProtos.TypeOrBuilder>(
getKey(),
getParentForChildren(),
isClean());
key_ = null;
}
return keyBuilder_;
}
private com.yandex.ydb.ValueProtos.Type payload_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Type, com.yandex.ydb.ValueProtos.Type.Builder, com.yandex.ydb.ValueProtos.TypeOrBuilder> payloadBuilder_;
/**
* .Ydb.Type payload = 2;
* @return Whether the payload field is set.
*/
public boolean hasPayload() {
return payloadBuilder_ != null || payload_ != null;
}
/**
* .Ydb.Type payload = 2;
* @return The payload.
*/
public com.yandex.ydb.ValueProtos.Type getPayload() {
if (payloadBuilder_ == null) {
return payload_ == null ? com.yandex.ydb.ValueProtos.Type.getDefaultInstance() : payload_;
} else {
return payloadBuilder_.getMessage();
}
}
/**
* .Ydb.Type payload = 2;
*/
public Builder setPayload(com.yandex.ydb.ValueProtos.Type value) {
if (payloadBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
payload_ = value;
onChanged();
} else {
payloadBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Type payload = 2;
*/
public Builder setPayload(
com.yandex.ydb.ValueProtos.Type.Builder builderForValue) {
if (payloadBuilder_ == null) {
payload_ = builderForValue.build();
onChanged();
} else {
payloadBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Type payload = 2;
*/
public Builder mergePayload(com.yandex.ydb.ValueProtos.Type value) {
if (payloadBuilder_ == null) {
if (payload_ != null) {
payload_ =
com.yandex.ydb.ValueProtos.Type.newBuilder(payload_).mergeFrom(value).buildPartial();
} else {
payload_ = value;
}
onChanged();
} else {
payloadBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Type payload = 2;
*/
public Builder clearPayload() {
if (payloadBuilder_ == null) {
payload_ = null;
onChanged();
} else {
payload_ = null;
payloadBuilder_ = null;
}
return this;
}
/**
* .Ydb.Type payload = 2;
*/
public com.yandex.ydb.ValueProtos.Type.Builder getPayloadBuilder() {
onChanged();
return getPayloadFieldBuilder().getBuilder();
}
/**
* .Ydb.Type payload = 2;
*/
public com.yandex.ydb.ValueProtos.TypeOrBuilder getPayloadOrBuilder() {
if (payloadBuilder_ != null) {
return payloadBuilder_.getMessageOrBuilder();
} else {
return payload_ == null ?
com.yandex.ydb.ValueProtos.Type.getDefaultInstance() : payload_;
}
}
/**
* .Ydb.Type payload = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Type, com.yandex.ydb.ValueProtos.Type.Builder, com.yandex.ydb.ValueProtos.TypeOrBuilder>
getPayloadFieldBuilder() {
if (payloadBuilder_ == null) {
payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Type, com.yandex.ydb.ValueProtos.Type.Builder, com.yandex.ydb.ValueProtos.TypeOrBuilder>(
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.DictType)
}
// @@protoc_insertion_point(class_scope:Ydb.DictType)
private static final com.yandex.ydb.ValueProtos.DictType DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.ValueProtos.DictType();
}
public static com.yandex.ydb.ValueProtos.DictType getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DictType parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DictType(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.DictType getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaggedTypeOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.TaggedType)
com.google.protobuf.MessageOrBuilder {
/**
* string tag = 1;
* @return The tag.
*/
java.lang.String getTag();
/**
* string tag = 1;
* @return The bytes for tag.
*/
com.google.protobuf.ByteString
getTagBytes();
/**
* .Ydb.Type type = 2;
* @return Whether the type field is set.
*/
boolean hasType();
/**
* .Ydb.Type type = 2;
* @return The type.
*/
com.yandex.ydb.ValueProtos.Type getType();
/**
* .Ydb.Type type = 2;
*/
com.yandex.ydb.ValueProtos.TypeOrBuilder getTypeOrBuilder();
}
/**
* Protobuf type {@code Ydb.TaggedType}
*/
public static final class TaggedType extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.TaggedType)
TaggedTypeOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaggedType.newBuilder() to construct.
private TaggedType(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaggedType() {
tag_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaggedType();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TaggedType(
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();
tag_ = 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_TaggedType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_TaggedType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.TaggedType.class, com.yandex.ydb.ValueProtos.TaggedType.Builder.class);
}
public static final int TAG_FIELD_NUMBER = 1;
private volatile java.lang.Object tag_;
/**
* string tag = 1;
* @return The tag.
*/
@java.lang.Override
public java.lang.String getTag() {
java.lang.Object ref = tag_;
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();
tag_ = s;
return s;
}
}
/**
* string tag = 1;
* @return The bytes for tag.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTagBytes() {
java.lang.Object ref = tag_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tag_ = 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_;
/**
* .Ydb.Type type = 2;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return type_ != null;
}
/**
* .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_;
}
/**
* .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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tag_);
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tag_);
}
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.TaggedType)) {
return super.equals(obj);
}
com.yandex.ydb.ValueProtos.TaggedType other = (com.yandex.ydb.ValueProtos.TaggedType) obj;
if (!getTag()
.equals(other.getTag())) 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) + TAG_FIELD_NUMBER;
hash = (53 * hash) + getTag().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.TaggedType parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.TaggedType 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.TaggedType parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.TaggedType 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.TaggedType parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.TaggedType parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.TaggedType parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.TaggedType 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.TaggedType parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.TaggedType 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.TaggedType parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.TaggedType 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.TaggedType 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.TaggedType}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.TaggedType)
com.yandex.ydb.ValueProtos.TaggedTypeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_TaggedType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_TaggedType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.TaggedType.class, com.yandex.ydb.ValueProtos.TaggedType.Builder.class);
}
// Construct using com.yandex.ydb.ValueProtos.TaggedType.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();
tag_ = "";
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_TaggedType_descriptor;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.TaggedType getDefaultInstanceForType() {
return com.yandex.ydb.ValueProtos.TaggedType.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.TaggedType build() {
com.yandex.ydb.ValueProtos.TaggedType result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.TaggedType buildPartial() {
com.yandex.ydb.ValueProtos.TaggedType result = new com.yandex.ydb.ValueProtos.TaggedType(this);
result.tag_ = tag_;
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.TaggedType) {
return mergeFrom((com.yandex.ydb.ValueProtos.TaggedType)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.ValueProtos.TaggedType other) {
if (other == com.yandex.ydb.ValueProtos.TaggedType.getDefaultInstance()) return this;
if (!other.getTag().isEmpty()) {
tag_ = other.tag_;
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.TaggedType parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.ValueProtos.TaggedType) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object tag_ = "";
/**
* string tag = 1;
* @return The tag.
*/
public java.lang.String getTag() {
java.lang.Object ref = tag_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tag_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string tag = 1;
* @return The bytes for tag.
*/
public com.google.protobuf.ByteString
getTagBytes() {
java.lang.Object ref = tag_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tag_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string tag = 1;
* @param value The tag to set.
* @return This builder for chaining.
*/
public Builder setTag(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
tag_ = value;
onChanged();
return this;
}
/**
* string tag = 1;
* @return This builder for chaining.
*/
public Builder clearTag() {
tag_ = getDefaultInstance().getTag();
onChanged();
return this;
}
/**
* string tag = 1;
* @param value The bytes for tag to set.
* @return This builder for chaining.
*/
public Builder setTagBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
tag_ = 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_;
/**
* .Ydb.Type type = 2;
* @return Whether the type field is set.
*/
public boolean hasType() {
return typeBuilder_ != null || type_ != null;
}
/**
* .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();
}
}
/**
* .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;
}
/**
* .Ydb.Type type = 2;
*/
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 = 2;
*/
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 = 2;
*/
public Builder clearType() {
if (typeBuilder_ == null) {
type_ = null;
onChanged();
} else {
type_ = null;
typeBuilder_ = null;
}
return this;
}
/**
* .Ydb.Type type = 2;
*/
public com.yandex.ydb.ValueProtos.Type.Builder getTypeBuilder() {
onChanged();
return getTypeFieldBuilder().getBuilder();
}
/**
* .Ydb.Type type = 2;
*/
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 = 2;
*/
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_;
}
@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.TaggedType)
}
// @@protoc_insertion_point(class_scope:Ydb.TaggedType)
private static final com.yandex.ydb.ValueProtos.TaggedType DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.ValueProtos.TaggedType();
}
public static com.yandex.ydb.ValueProtos.TaggedType getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaggedType parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TaggedType(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.TaggedType getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PgTypeOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.PgType)
com.google.protobuf.MessageOrBuilder {
/**
*
* pg object id of the type
* full registry could be found here: https://github.com/postgres/postgres/blob/master/src/include/catalog/pg_type.dat
*
*
* uint32 oid = 1;
* @return The oid.
*/
int getOid();
/**
*
* advanced type details useful for pg wire format proxying
*
*
* int32 typlen = 2;
* @return The typlen.
*/
int getTyplen();
/**
*
* optional, set to 0 by default
*
*
* int32 typmod = 3;
* @return The typmod.
*/
int getTypmod();
}
/**
* Protobuf type {@code Ydb.PgType}
*/
public static final class PgType extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.PgType)
PgTypeOrBuilder {
private static final long serialVersionUID = 0L;
// Use PgType.newBuilder() to construct.
private PgType(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PgType() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PgType();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PgType(
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: {
oid_ = input.readUInt32();
break;
}
case 16: {
typlen_ = input.readInt32();
break;
}
case 24: {
typmod_ = input.readInt32();
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_PgType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_PgType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.PgType.class, com.yandex.ydb.ValueProtos.PgType.Builder.class);
}
public static final int OID_FIELD_NUMBER = 1;
private int oid_;
/**
*
* pg object id of the type
* full registry could be found here: https://github.com/postgres/postgres/blob/master/src/include/catalog/pg_type.dat
*
*
* uint32 oid = 1;
* @return The oid.
*/
@java.lang.Override
public int getOid() {
return oid_;
}
public static final int TYPLEN_FIELD_NUMBER = 2;
private int typlen_;
/**
*
* advanced type details useful for pg wire format proxying
*
*
* int32 typlen = 2;
* @return The typlen.
*/
@java.lang.Override
public int getTyplen() {
return typlen_;
}
public static final int TYPMOD_FIELD_NUMBER = 3;
private int typmod_;
/**
*
* optional, set to 0 by default
*
*
* int32 typmod = 3;
* @return The typmod.
*/
@java.lang.Override
public int getTypmod() {
return typmod_;
}
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 (oid_ != 0) {
output.writeUInt32(1, oid_);
}
if (typlen_ != 0) {
output.writeInt32(2, typlen_);
}
if (typmod_ != 0) {
output.writeInt32(3, typmod_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (oid_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, oid_);
}
if (typlen_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, typlen_);
}
if (typmod_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, typmod_);
}
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.PgType)) {
return super.equals(obj);
}
com.yandex.ydb.ValueProtos.PgType other = (com.yandex.ydb.ValueProtos.PgType) obj;
if (getOid()
!= other.getOid()) return false;
if (getTyplen()
!= other.getTyplen()) return false;
if (getTypmod()
!= other.getTypmod()) 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) + OID_FIELD_NUMBER;
hash = (53 * hash) + getOid();
hash = (37 * hash) + TYPLEN_FIELD_NUMBER;
hash = (53 * hash) + getTyplen();
hash = (37 * hash) + TYPMOD_FIELD_NUMBER;
hash = (53 * hash) + getTypmod();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.ValueProtos.PgType parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.PgType 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.PgType parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.PgType 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.PgType parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.PgType parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.PgType parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.PgType 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.PgType parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.PgType 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.PgType parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.PgType 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.PgType 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.PgType}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.PgType)
com.yandex.ydb.ValueProtos.PgTypeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_PgType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_PgType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.PgType.class, com.yandex.ydb.ValueProtos.PgType.Builder.class);
}
// Construct using com.yandex.ydb.ValueProtos.PgType.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();
oid_ = 0;
typlen_ = 0;
typmod_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_PgType_descriptor;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.PgType getDefaultInstanceForType() {
return com.yandex.ydb.ValueProtos.PgType.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.PgType build() {
com.yandex.ydb.ValueProtos.PgType result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.PgType buildPartial() {
com.yandex.ydb.ValueProtos.PgType result = new com.yandex.ydb.ValueProtos.PgType(this);
result.oid_ = oid_;
result.typlen_ = typlen_;
result.typmod_ = typmod_;
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.PgType) {
return mergeFrom((com.yandex.ydb.ValueProtos.PgType)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.ValueProtos.PgType other) {
if (other == com.yandex.ydb.ValueProtos.PgType.getDefaultInstance()) return this;
if (other.getOid() != 0) {
setOid(other.getOid());
}
if (other.getTyplen() != 0) {
setTyplen(other.getTyplen());
}
if (other.getTypmod() != 0) {
setTypmod(other.getTypmod());
}
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.PgType parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.ValueProtos.PgType) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int oid_ ;
/**
*
* pg object id of the type
* full registry could be found here: https://github.com/postgres/postgres/blob/master/src/include/catalog/pg_type.dat
*
*
* uint32 oid = 1;
* @return The oid.
*/
@java.lang.Override
public int getOid() {
return oid_;
}
/**
*
* pg object id of the type
* full registry could be found here: https://github.com/postgres/postgres/blob/master/src/include/catalog/pg_type.dat
*
*
* uint32 oid = 1;
* @param value The oid to set.
* @return This builder for chaining.
*/
public Builder setOid(int value) {
oid_ = value;
onChanged();
return this;
}
/**
*
* pg object id of the type
* full registry could be found here: https://github.com/postgres/postgres/blob/master/src/include/catalog/pg_type.dat
*
*
* uint32 oid = 1;
* @return This builder for chaining.
*/
public Builder clearOid() {
oid_ = 0;
onChanged();
return this;
}
private int typlen_ ;
/**
*
* advanced type details useful for pg wire format proxying
*
*
* int32 typlen = 2;
* @return The typlen.
*/
@java.lang.Override
public int getTyplen() {
return typlen_;
}
/**
*
* advanced type details useful for pg wire format proxying
*
*
* int32 typlen = 2;
* @param value The typlen to set.
* @return This builder for chaining.
*/
public Builder setTyplen(int value) {
typlen_ = value;
onChanged();
return this;
}
/**
*
* advanced type details useful for pg wire format proxying
*
*
* int32 typlen = 2;
* @return This builder for chaining.
*/
public Builder clearTyplen() {
typlen_ = 0;
onChanged();
return this;
}
private int typmod_ ;
/**
*
* optional, set to 0 by default
*
*
* int32 typmod = 3;
* @return The typmod.
*/
@java.lang.Override
public int getTypmod() {
return typmod_;
}
/**
*
* optional, set to 0 by default
*
*
* int32 typmod = 3;
* @param value The typmod to set.
* @return This builder for chaining.
*/
public Builder setTypmod(int value) {
typmod_ = value;
onChanged();
return this;
}
/**
*
* optional, set to 0 by default
*
*
* int32 typmod = 3;
* @return This builder for chaining.
*/
public Builder clearTypmod() {
typmod_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.PgType)
}
// @@protoc_insertion_point(class_scope:Ydb.PgType)
private static final com.yandex.ydb.ValueProtos.PgType DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.ValueProtos.PgType();
}
public static com.yandex.ydb.ValueProtos.PgType getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PgType parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PgType(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.PgType getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TypeOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Type)
com.google.protobuf.MessageOrBuilder {
/**
*
* Data types
*
*
* .Ydb.Type.PrimitiveTypeId type_id = 1;
* @return Whether the typeId field is set.
*/
boolean hasTypeId();
/**
*
* Data types
*
*
* .Ydb.Type.PrimitiveTypeId type_id = 1;
* @return The enum numeric value on the wire for typeId.
*/
int getTypeIdValue();
/**
*
* Data types
*
*
* .Ydb.Type.PrimitiveTypeId type_id = 1;
* @return The typeId.
*/
com.yandex.ydb.ValueProtos.Type.PrimitiveTypeId getTypeId();
/**
* .Ydb.DecimalType decimal_type = 2;
* @return Whether the decimalType field is set.
*/
boolean hasDecimalType();
/**
* .Ydb.DecimalType decimal_type = 2;
* @return The decimalType.
*/
com.yandex.ydb.ValueProtos.DecimalType getDecimalType();
/**
* .Ydb.DecimalType decimal_type = 2;
*/
com.yandex.ydb.ValueProtos.DecimalTypeOrBuilder getDecimalTypeOrBuilder();
/**
*
* Container types
*
*
* .Ydb.OptionalType optional_type = 101;
* @return Whether the optionalType field is set.
*/
boolean hasOptionalType();
/**
*
* Container types
*
*
* .Ydb.OptionalType optional_type = 101;
* @return The optionalType.
*/
com.yandex.ydb.ValueProtos.OptionalType getOptionalType();
/**
*
* Container types
*
*
* .Ydb.OptionalType optional_type = 101;
*/
com.yandex.ydb.ValueProtos.OptionalTypeOrBuilder getOptionalTypeOrBuilder();
/**
* .Ydb.ListType list_type = 102;
* @return Whether the listType field is set.
*/
boolean hasListType();
/**
* .Ydb.ListType list_type = 102;
* @return The listType.
*/
com.yandex.ydb.ValueProtos.ListType getListType();
/**
* .Ydb.ListType list_type = 102;
*/
com.yandex.ydb.ValueProtos.ListTypeOrBuilder getListTypeOrBuilder();
/**
* .Ydb.TupleType tuple_type = 103;
* @return Whether the tupleType field is set.
*/
boolean hasTupleType();
/**
* .Ydb.TupleType tuple_type = 103;
* @return The tupleType.
*/
com.yandex.ydb.ValueProtos.TupleType getTupleType();
/**
* .Ydb.TupleType tuple_type = 103;
*/
com.yandex.ydb.ValueProtos.TupleTypeOrBuilder getTupleTypeOrBuilder();
/**
* .Ydb.StructType struct_type = 104;
* @return Whether the structType field is set.
*/
boolean hasStructType();
/**
* .Ydb.StructType struct_type = 104;
* @return The structType.
*/
com.yandex.ydb.ValueProtos.StructType getStructType();
/**
* .Ydb.StructType struct_type = 104;
*/
com.yandex.ydb.ValueProtos.StructTypeOrBuilder getStructTypeOrBuilder();
/**
* .Ydb.DictType dict_type = 105;
* @return Whether the dictType field is set.
*/
boolean hasDictType();
/**
* .Ydb.DictType dict_type = 105;
* @return The dictType.
*/
com.yandex.ydb.ValueProtos.DictType getDictType();
/**
* .Ydb.DictType dict_type = 105;
*/
com.yandex.ydb.ValueProtos.DictTypeOrBuilder getDictTypeOrBuilder();
/**
* .Ydb.VariantType variant_type = 106;
* @return Whether the variantType field is set.
*/
boolean hasVariantType();
/**
* .Ydb.VariantType variant_type = 106;
* @return The variantType.
*/
com.yandex.ydb.ValueProtos.VariantType getVariantType();
/**
* .Ydb.VariantType variant_type = 106;
*/
com.yandex.ydb.ValueProtos.VariantTypeOrBuilder getVariantTypeOrBuilder();
/**
* .Ydb.TaggedType tagged_type = 107;
* @return Whether the taggedType field is set.
*/
boolean hasTaggedType();
/**
* .Ydb.TaggedType tagged_type = 107;
* @return The taggedType.
*/
com.yandex.ydb.ValueProtos.TaggedType getTaggedType();
/**
* .Ydb.TaggedType tagged_type = 107;
*/
com.yandex.ydb.ValueProtos.TaggedTypeOrBuilder getTaggedTypeOrBuilder();
/**
*
* Special types
*
*
* .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();
/**
* .Ydb.PgType pg_type = 205;
* @return Whether the pgType field is set.
*/
boolean hasPgType();
/**
* .Ydb.PgType pg_type = 205;
* @return The pgType.
*/
com.yandex.ydb.ValueProtos.PgType getPgType();
/**
* .Ydb.PgType pg_type = 205;
*/
com.yandex.ydb.ValueProtos.PgTypeOrBuilder getPgTypeOrBuilder();
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;
}
case 1642: {
com.yandex.ydb.ValueProtos.PgType.Builder subBuilder = null;
if (typeCase_ == 205) {
subBuilder = ((com.yandex.ydb.ValueProtos.PgType) type_).toBuilder();
}
type_ =
input.readMessage(com.yandex.ydb.ValueProtos.PgType.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.ValueProtos.PgType) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 205;
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),
PG_TYPE(205),
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 205: return PG_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;
}
public static final int PG_TYPE_FIELD_NUMBER = 205;
/**
* .Ydb.PgType pg_type = 205;
* @return Whether the pgType field is set.
*/
@java.lang.Override
public boolean hasPgType() {
return typeCase_ == 205;
}
/**
* .Ydb.PgType pg_type = 205;
* @return The pgType.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.PgType getPgType() {
if (typeCase_ == 205) {
return (com.yandex.ydb.ValueProtos.PgType) type_;
}
return com.yandex.ydb.ValueProtos.PgType.getDefaultInstance();
}
/**
* .Ydb.PgType pg_type = 205;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.PgTypeOrBuilder getPgTypeOrBuilder() {
if (typeCase_ == 205) {
return (com.yandex.ydb.ValueProtos.PgType) type_;
}
return com.yandex.ydb.ValueProtos.PgType.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (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_));
}
if (typeCase_ == 205) {
output.writeMessage(205, (com.yandex.ydb.ValueProtos.PgType) 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_));
}
if (typeCase_ == 205) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(205, (com.yandex.ydb.ValueProtos.PgType) 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 205:
if (!getPgType()
.equals(other.getPgType())) 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 205:
hash = (37 * hash) + PG_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getPgType().hashCode();
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_;
}
if (typeCase_ == 205) {
if (pgTypeBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = pgTypeBuilder_.build();
}
}
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 PG_TYPE: {
mergePgType(other.getPgType());
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;
}
/**
*
* Data types
*
*
* .Ydb.Type.PrimitiveTypeId type_id = 1;
* @return This builder for chaining.
*/
public Builder clearTypeId() {
if (typeCase_ == 1) {
typeCase_ = 0;
type_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.DecimalType, com.yandex.ydb.ValueProtos.DecimalType.Builder, com.yandex.ydb.ValueProtos.DecimalTypeOrBuilder> decimalTypeBuilder_;
/**
* .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 (decimalTypeBuilder_ == null) {
if (typeCase_ == 2) {
return (com.yandex.ydb.ValueProtos.DecimalType) type_;
}
return com.yandex.ydb.ValueProtos.DecimalType.getDefaultInstance();
} else {
if (typeCase_ == 2) {
return decimalTypeBuilder_.getMessage();
}
return com.yandex.ydb.ValueProtos.DecimalType.getDefaultInstance();
}
}
/**
* .Ydb.DecimalType decimal_type = 2;
*/
public Builder setDecimalType(com.yandex.ydb.ValueProtos.DecimalType value) {
if (decimalTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
decimalTypeBuilder_.setMessage(value);
}
typeCase_ = 2;
return this;
}
/**
* .Ydb.DecimalType decimal_type = 2;
*/
public Builder setDecimalType(
com.yandex.ydb.ValueProtos.DecimalType.Builder builderForValue) {
if (decimalTypeBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
decimalTypeBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 2;
return this;
}
/**
* .Ydb.DecimalType decimal_type = 2;
*/
public Builder mergeDecimalType(com.yandex.ydb.ValueProtos.DecimalType value) {
if (decimalTypeBuilder_ == null) {
if (typeCase_ == 2 &&
type_ != com.yandex.ydb.ValueProtos.DecimalType.getDefaultInstance()) {
type_ = com.yandex.ydb.ValueProtos.DecimalType.newBuilder((com.yandex.ydb.ValueProtos.DecimalType) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 2) {
decimalTypeBuilder_.mergeFrom(value);
}
decimalTypeBuilder_.setMessage(value);
}
typeCase_ = 2;
return this;
}
/**
* .Ydb.DecimalType decimal_type = 2;
*/
public Builder clearDecimalType() {
if (decimalTypeBuilder_ == null) {
if (typeCase_ == 2) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 2) {
typeCase_ = 0;
type_ = null;
}
decimalTypeBuilder_.clear();
}
return this;
}
/**
* .Ydb.DecimalType decimal_type = 2;
*/
public com.yandex.ydb.ValueProtos.DecimalType.Builder getDecimalTypeBuilder() {
return getDecimalTypeFieldBuilder().getBuilder();
}
/**
* .Ydb.DecimalType decimal_type = 2;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.DecimalTypeOrBuilder getDecimalTypeOrBuilder() {
if ((typeCase_ == 2) && (decimalTypeBuilder_ != null)) {
return decimalTypeBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 2) {
return (com.yandex.ydb.ValueProtos.DecimalType) type_;
}
return com.yandex.ydb.ValueProtos.DecimalType.getDefaultInstance();
}
}
/**
* .Ydb.DecimalType decimal_type = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.DecimalType, com.yandex.ydb.ValueProtos.DecimalType.Builder, com.yandex.ydb.ValueProtos.DecimalTypeOrBuilder>
getDecimalTypeFieldBuilder() {
if (decimalTypeBuilder_ == null) {
if (!(typeCase_ == 2)) {
type_ = com.yandex.ydb.ValueProtos.DecimalType.getDefaultInstance();
}
decimalTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.DecimalType, com.yandex.ydb.ValueProtos.DecimalType.Builder, com.yandex.ydb.ValueProtos.DecimalTypeOrBuilder>(
(com.yandex.ydb.ValueProtos.DecimalType) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 2;
onChanged();;
return decimalTypeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.OptionalType, com.yandex.ydb.ValueProtos.OptionalType.Builder, com.yandex.ydb.ValueProtos.OptionalTypeOrBuilder> optionalTypeBuilder_;
/**
*
* 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 (optionalTypeBuilder_ == null) {
if (typeCase_ == 101) {
return (com.yandex.ydb.ValueProtos.OptionalType) type_;
}
return com.yandex.ydb.ValueProtos.OptionalType.getDefaultInstance();
} else {
if (typeCase_ == 101) {
return optionalTypeBuilder_.getMessage();
}
return com.yandex.ydb.ValueProtos.OptionalType.getDefaultInstance();
}
}
/**
*
* Container types
*
*
* .Ydb.OptionalType optional_type = 101;
*/
public Builder setOptionalType(com.yandex.ydb.ValueProtos.OptionalType value) {
if (optionalTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
optionalTypeBuilder_.setMessage(value);
}
typeCase_ = 101;
return this;
}
/**
*
* Container types
*
*
* .Ydb.OptionalType optional_type = 101;
*/
public Builder setOptionalType(
com.yandex.ydb.ValueProtos.OptionalType.Builder builderForValue) {
if (optionalTypeBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
optionalTypeBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 101;
return this;
}
/**
*
* Container types
*
*
* .Ydb.OptionalType optional_type = 101;
*/
public Builder mergeOptionalType(com.yandex.ydb.ValueProtos.OptionalType value) {
if (optionalTypeBuilder_ == null) {
if (typeCase_ == 101 &&
type_ != com.yandex.ydb.ValueProtos.OptionalType.getDefaultInstance()) {
type_ = com.yandex.ydb.ValueProtos.OptionalType.newBuilder((com.yandex.ydb.ValueProtos.OptionalType) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 101) {
optionalTypeBuilder_.mergeFrom(value);
}
optionalTypeBuilder_.setMessage(value);
}
typeCase_ = 101;
return this;
}
/**
*
* Container types
*
*
* .Ydb.OptionalType optional_type = 101;
*/
public Builder clearOptionalType() {
if (optionalTypeBuilder_ == null) {
if (typeCase_ == 101) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 101) {
typeCase_ = 0;
type_ = null;
}
optionalTypeBuilder_.clear();
}
return this;
}
/**
*
* Container types
*
*
* .Ydb.OptionalType optional_type = 101;
*/
public com.yandex.ydb.ValueProtos.OptionalType.Builder getOptionalTypeBuilder() {
return getOptionalTypeFieldBuilder().getBuilder();
}
/**
*
* Container types
*
*
* .Ydb.OptionalType optional_type = 101;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.OptionalTypeOrBuilder getOptionalTypeOrBuilder() {
if ((typeCase_ == 101) && (optionalTypeBuilder_ != null)) {
return optionalTypeBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 101) {
return (com.yandex.ydb.ValueProtos.OptionalType) type_;
}
return com.yandex.ydb.ValueProtos.OptionalType.getDefaultInstance();
}
}
/**
*
* Container types
*
*
* .Ydb.OptionalType optional_type = 101;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.OptionalType, com.yandex.ydb.ValueProtos.OptionalType.Builder, com.yandex.ydb.ValueProtos.OptionalTypeOrBuilder>
getOptionalTypeFieldBuilder() {
if (optionalTypeBuilder_ == null) {
if (!(typeCase_ == 101)) {
type_ = com.yandex.ydb.ValueProtos.OptionalType.getDefaultInstance();
}
optionalTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.OptionalType, com.yandex.ydb.ValueProtos.OptionalType.Builder, com.yandex.ydb.ValueProtos.OptionalTypeOrBuilder>(
(com.yandex.ydb.ValueProtos.OptionalType) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 101;
onChanged();;
return optionalTypeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.ListType, com.yandex.ydb.ValueProtos.ListType.Builder, com.yandex.ydb.ValueProtos.ListTypeOrBuilder> listTypeBuilder_;
/**
* .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 (listTypeBuilder_ == null) {
if (typeCase_ == 102) {
return (com.yandex.ydb.ValueProtos.ListType) type_;
}
return com.yandex.ydb.ValueProtos.ListType.getDefaultInstance();
} else {
if (typeCase_ == 102) {
return listTypeBuilder_.getMessage();
}
return com.yandex.ydb.ValueProtos.ListType.getDefaultInstance();
}
}
/**
* .Ydb.ListType list_type = 102;
*/
public Builder setListType(com.yandex.ydb.ValueProtos.ListType value) {
if (listTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
listTypeBuilder_.setMessage(value);
}
typeCase_ = 102;
return this;
}
/**
* .Ydb.ListType list_type = 102;
*/
public Builder setListType(
com.yandex.ydb.ValueProtos.ListType.Builder builderForValue) {
if (listTypeBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
listTypeBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 102;
return this;
}
/**
* .Ydb.ListType list_type = 102;
*/
public Builder mergeListType(com.yandex.ydb.ValueProtos.ListType value) {
if (listTypeBuilder_ == null) {
if (typeCase_ == 102 &&
type_ != com.yandex.ydb.ValueProtos.ListType.getDefaultInstance()) {
type_ = com.yandex.ydb.ValueProtos.ListType.newBuilder((com.yandex.ydb.ValueProtos.ListType) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 102) {
listTypeBuilder_.mergeFrom(value);
}
listTypeBuilder_.setMessage(value);
}
typeCase_ = 102;
return this;
}
/**
* .Ydb.ListType list_type = 102;
*/
public Builder clearListType() {
if (listTypeBuilder_ == null) {
if (typeCase_ == 102) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 102) {
typeCase_ = 0;
type_ = null;
}
listTypeBuilder_.clear();
}
return this;
}
/**
* .Ydb.ListType list_type = 102;
*/
public com.yandex.ydb.ValueProtos.ListType.Builder getListTypeBuilder() {
return getListTypeFieldBuilder().getBuilder();
}
/**
* .Ydb.ListType list_type = 102;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.ListTypeOrBuilder getListTypeOrBuilder() {
if ((typeCase_ == 102) && (listTypeBuilder_ != null)) {
return listTypeBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 102) {
return (com.yandex.ydb.ValueProtos.ListType) type_;
}
return com.yandex.ydb.ValueProtos.ListType.getDefaultInstance();
}
}
/**
* .Ydb.ListType list_type = 102;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.ListType, com.yandex.ydb.ValueProtos.ListType.Builder, com.yandex.ydb.ValueProtos.ListTypeOrBuilder>
getListTypeFieldBuilder() {
if (listTypeBuilder_ == null) {
if (!(typeCase_ == 102)) {
type_ = com.yandex.ydb.ValueProtos.ListType.getDefaultInstance();
}
listTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.ListType, com.yandex.ydb.ValueProtos.ListType.Builder, com.yandex.ydb.ValueProtos.ListTypeOrBuilder>(
(com.yandex.ydb.ValueProtos.ListType) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 102;
onChanged();;
return listTypeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.TupleType, com.yandex.ydb.ValueProtos.TupleType.Builder, com.yandex.ydb.ValueProtos.TupleTypeOrBuilder> tupleTypeBuilder_;
/**
* .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 (tupleTypeBuilder_ == null) {
if (typeCase_ == 103) {
return (com.yandex.ydb.ValueProtos.TupleType) type_;
}
return com.yandex.ydb.ValueProtos.TupleType.getDefaultInstance();
} else {
if (typeCase_ == 103) {
return tupleTypeBuilder_.getMessage();
}
return com.yandex.ydb.ValueProtos.TupleType.getDefaultInstance();
}
}
/**
* .Ydb.TupleType tuple_type = 103;
*/
public Builder setTupleType(com.yandex.ydb.ValueProtos.TupleType value) {
if (tupleTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
tupleTypeBuilder_.setMessage(value);
}
typeCase_ = 103;
return this;
}
/**
* .Ydb.TupleType tuple_type = 103;
*/
public Builder setTupleType(
com.yandex.ydb.ValueProtos.TupleType.Builder builderForValue) {
if (tupleTypeBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
tupleTypeBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 103;
return this;
}
/**
* .Ydb.TupleType tuple_type = 103;
*/
public Builder mergeTupleType(com.yandex.ydb.ValueProtos.TupleType value) {
if (tupleTypeBuilder_ == null) {
if (typeCase_ == 103 &&
type_ != com.yandex.ydb.ValueProtos.TupleType.getDefaultInstance()) {
type_ = com.yandex.ydb.ValueProtos.TupleType.newBuilder((com.yandex.ydb.ValueProtos.TupleType) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 103) {
tupleTypeBuilder_.mergeFrom(value);
}
tupleTypeBuilder_.setMessage(value);
}
typeCase_ = 103;
return this;
}
/**
* .Ydb.TupleType tuple_type = 103;
*/
public Builder clearTupleType() {
if (tupleTypeBuilder_ == null) {
if (typeCase_ == 103) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 103) {
typeCase_ = 0;
type_ = null;
}
tupleTypeBuilder_.clear();
}
return this;
}
/**
* .Ydb.TupleType tuple_type = 103;
*/
public com.yandex.ydb.ValueProtos.TupleType.Builder getTupleTypeBuilder() {
return getTupleTypeFieldBuilder().getBuilder();
}
/**
* .Ydb.TupleType tuple_type = 103;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TupleTypeOrBuilder getTupleTypeOrBuilder() {
if ((typeCase_ == 103) && (tupleTypeBuilder_ != null)) {
return tupleTypeBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 103) {
return (com.yandex.ydb.ValueProtos.TupleType) type_;
}
return com.yandex.ydb.ValueProtos.TupleType.getDefaultInstance();
}
}
/**
* .Ydb.TupleType tuple_type = 103;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.TupleType, com.yandex.ydb.ValueProtos.TupleType.Builder, com.yandex.ydb.ValueProtos.TupleTypeOrBuilder>
getTupleTypeFieldBuilder() {
if (tupleTypeBuilder_ == null) {
if (!(typeCase_ == 103)) {
type_ = com.yandex.ydb.ValueProtos.TupleType.getDefaultInstance();
}
tupleTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.TupleType, com.yandex.ydb.ValueProtos.TupleType.Builder, com.yandex.ydb.ValueProtos.TupleTypeOrBuilder>(
(com.yandex.ydb.ValueProtos.TupleType) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 103;
onChanged();;
return tupleTypeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.StructType, com.yandex.ydb.ValueProtos.StructType.Builder, com.yandex.ydb.ValueProtos.StructTypeOrBuilder> structTypeBuilder_;
/**
* .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 (structTypeBuilder_ == null) {
if (typeCase_ == 104) {
return (com.yandex.ydb.ValueProtos.StructType) type_;
}
return com.yandex.ydb.ValueProtos.StructType.getDefaultInstance();
} else {
if (typeCase_ == 104) {
return structTypeBuilder_.getMessage();
}
return com.yandex.ydb.ValueProtos.StructType.getDefaultInstance();
}
}
/**
* .Ydb.StructType struct_type = 104;
*/
public Builder setStructType(com.yandex.ydb.ValueProtos.StructType value) {
if (structTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
structTypeBuilder_.setMessage(value);
}
typeCase_ = 104;
return this;
}
/**
* .Ydb.StructType struct_type = 104;
*/
public Builder setStructType(
com.yandex.ydb.ValueProtos.StructType.Builder builderForValue) {
if (structTypeBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
structTypeBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 104;
return this;
}
/**
* .Ydb.StructType struct_type = 104;
*/
public Builder mergeStructType(com.yandex.ydb.ValueProtos.StructType value) {
if (structTypeBuilder_ == null) {
if (typeCase_ == 104 &&
type_ != com.yandex.ydb.ValueProtos.StructType.getDefaultInstance()) {
type_ = com.yandex.ydb.ValueProtos.StructType.newBuilder((com.yandex.ydb.ValueProtos.StructType) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 104) {
structTypeBuilder_.mergeFrom(value);
}
structTypeBuilder_.setMessage(value);
}
typeCase_ = 104;
return this;
}
/**
* .Ydb.StructType struct_type = 104;
*/
public Builder clearStructType() {
if (structTypeBuilder_ == null) {
if (typeCase_ == 104) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 104) {
typeCase_ = 0;
type_ = null;
}
structTypeBuilder_.clear();
}
return this;
}
/**
* .Ydb.StructType struct_type = 104;
*/
public com.yandex.ydb.ValueProtos.StructType.Builder getStructTypeBuilder() {
return getStructTypeFieldBuilder().getBuilder();
}
/**
* .Ydb.StructType struct_type = 104;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.StructTypeOrBuilder getStructTypeOrBuilder() {
if ((typeCase_ == 104) && (structTypeBuilder_ != null)) {
return structTypeBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 104) {
return (com.yandex.ydb.ValueProtos.StructType) type_;
}
return com.yandex.ydb.ValueProtos.StructType.getDefaultInstance();
}
}
/**
* .Ydb.StructType struct_type = 104;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.StructType, com.yandex.ydb.ValueProtos.StructType.Builder, com.yandex.ydb.ValueProtos.StructTypeOrBuilder>
getStructTypeFieldBuilder() {
if (structTypeBuilder_ == null) {
if (!(typeCase_ == 104)) {
type_ = com.yandex.ydb.ValueProtos.StructType.getDefaultInstance();
}
structTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.StructType, com.yandex.ydb.ValueProtos.StructType.Builder, com.yandex.ydb.ValueProtos.StructTypeOrBuilder>(
(com.yandex.ydb.ValueProtos.StructType) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 104;
onChanged();;
return structTypeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.DictType, com.yandex.ydb.ValueProtos.DictType.Builder, com.yandex.ydb.ValueProtos.DictTypeOrBuilder> dictTypeBuilder_;
/**
* .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 (dictTypeBuilder_ == null) {
if (typeCase_ == 105) {
return (com.yandex.ydb.ValueProtos.DictType) type_;
}
return com.yandex.ydb.ValueProtos.DictType.getDefaultInstance();
} else {
if (typeCase_ == 105) {
return dictTypeBuilder_.getMessage();
}
return com.yandex.ydb.ValueProtos.DictType.getDefaultInstance();
}
}
/**
* .Ydb.DictType dict_type = 105;
*/
public Builder setDictType(com.yandex.ydb.ValueProtos.DictType value) {
if (dictTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
dictTypeBuilder_.setMessage(value);
}
typeCase_ = 105;
return this;
}
/**
* .Ydb.DictType dict_type = 105;
*/
public Builder setDictType(
com.yandex.ydb.ValueProtos.DictType.Builder builderForValue) {
if (dictTypeBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
dictTypeBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 105;
return this;
}
/**
* .Ydb.DictType dict_type = 105;
*/
public Builder mergeDictType(com.yandex.ydb.ValueProtos.DictType value) {
if (dictTypeBuilder_ == null) {
if (typeCase_ == 105 &&
type_ != com.yandex.ydb.ValueProtos.DictType.getDefaultInstance()) {
type_ = com.yandex.ydb.ValueProtos.DictType.newBuilder((com.yandex.ydb.ValueProtos.DictType) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 105) {
dictTypeBuilder_.mergeFrom(value);
}
dictTypeBuilder_.setMessage(value);
}
typeCase_ = 105;
return this;
}
/**
* .Ydb.DictType dict_type = 105;
*/
public Builder clearDictType() {
if (dictTypeBuilder_ == null) {
if (typeCase_ == 105) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 105) {
typeCase_ = 0;
type_ = null;
}
dictTypeBuilder_.clear();
}
return this;
}
/**
* .Ydb.DictType dict_type = 105;
*/
public com.yandex.ydb.ValueProtos.DictType.Builder getDictTypeBuilder() {
return getDictTypeFieldBuilder().getBuilder();
}
/**
* .Ydb.DictType dict_type = 105;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.DictTypeOrBuilder getDictTypeOrBuilder() {
if ((typeCase_ == 105) && (dictTypeBuilder_ != null)) {
return dictTypeBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 105) {
return (com.yandex.ydb.ValueProtos.DictType) type_;
}
return com.yandex.ydb.ValueProtos.DictType.getDefaultInstance();
}
}
/**
* .Ydb.DictType dict_type = 105;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.DictType, com.yandex.ydb.ValueProtos.DictType.Builder, com.yandex.ydb.ValueProtos.DictTypeOrBuilder>
getDictTypeFieldBuilder() {
if (dictTypeBuilder_ == null) {
if (!(typeCase_ == 105)) {
type_ = com.yandex.ydb.ValueProtos.DictType.getDefaultInstance();
}
dictTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.DictType, com.yandex.ydb.ValueProtos.DictType.Builder, com.yandex.ydb.ValueProtos.DictTypeOrBuilder>(
(com.yandex.ydb.ValueProtos.DictType) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 105;
onChanged();;
return dictTypeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.VariantType, com.yandex.ydb.ValueProtos.VariantType.Builder, com.yandex.ydb.ValueProtos.VariantTypeOrBuilder> variantTypeBuilder_;
/**
* .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 (variantTypeBuilder_ == null) {
if (typeCase_ == 106) {
return (com.yandex.ydb.ValueProtos.VariantType) type_;
}
return com.yandex.ydb.ValueProtos.VariantType.getDefaultInstance();
} else {
if (typeCase_ == 106) {
return variantTypeBuilder_.getMessage();
}
return com.yandex.ydb.ValueProtos.VariantType.getDefaultInstance();
}
}
/**
* .Ydb.VariantType variant_type = 106;
*/
public Builder setVariantType(com.yandex.ydb.ValueProtos.VariantType value) {
if (variantTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
variantTypeBuilder_.setMessage(value);
}
typeCase_ = 106;
return this;
}
/**
* .Ydb.VariantType variant_type = 106;
*/
public Builder setVariantType(
com.yandex.ydb.ValueProtos.VariantType.Builder builderForValue) {
if (variantTypeBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
variantTypeBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 106;
return this;
}
/**
* .Ydb.VariantType variant_type = 106;
*/
public Builder mergeVariantType(com.yandex.ydb.ValueProtos.VariantType value) {
if (variantTypeBuilder_ == null) {
if (typeCase_ == 106 &&
type_ != com.yandex.ydb.ValueProtos.VariantType.getDefaultInstance()) {
type_ = com.yandex.ydb.ValueProtos.VariantType.newBuilder((com.yandex.ydb.ValueProtos.VariantType) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 106) {
variantTypeBuilder_.mergeFrom(value);
}
variantTypeBuilder_.setMessage(value);
}
typeCase_ = 106;
return this;
}
/**
* .Ydb.VariantType variant_type = 106;
*/
public Builder clearVariantType() {
if (variantTypeBuilder_ == null) {
if (typeCase_ == 106) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 106) {
typeCase_ = 0;
type_ = null;
}
variantTypeBuilder_.clear();
}
return this;
}
/**
* .Ydb.VariantType variant_type = 106;
*/
public com.yandex.ydb.ValueProtos.VariantType.Builder getVariantTypeBuilder() {
return getVariantTypeFieldBuilder().getBuilder();
}
/**
* .Ydb.VariantType variant_type = 106;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.VariantTypeOrBuilder getVariantTypeOrBuilder() {
if ((typeCase_ == 106) && (variantTypeBuilder_ != null)) {
return variantTypeBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 106) {
return (com.yandex.ydb.ValueProtos.VariantType) type_;
}
return com.yandex.ydb.ValueProtos.VariantType.getDefaultInstance();
}
}
/**
* .Ydb.VariantType variant_type = 106;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.VariantType, com.yandex.ydb.ValueProtos.VariantType.Builder, com.yandex.ydb.ValueProtos.VariantTypeOrBuilder>
getVariantTypeFieldBuilder() {
if (variantTypeBuilder_ == null) {
if (!(typeCase_ == 106)) {
type_ = com.yandex.ydb.ValueProtos.VariantType.getDefaultInstance();
}
variantTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.VariantType, com.yandex.ydb.ValueProtos.VariantType.Builder, com.yandex.ydb.ValueProtos.VariantTypeOrBuilder>(
(com.yandex.ydb.ValueProtos.VariantType) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 106;
onChanged();;
return variantTypeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.TaggedType, com.yandex.ydb.ValueProtos.TaggedType.Builder, com.yandex.ydb.ValueProtos.TaggedTypeOrBuilder> taggedTypeBuilder_;
/**
* .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 (taggedTypeBuilder_ == null) {
if (typeCase_ == 107) {
return (com.yandex.ydb.ValueProtos.TaggedType) type_;
}
return com.yandex.ydb.ValueProtos.TaggedType.getDefaultInstance();
} else {
if (typeCase_ == 107) {
return taggedTypeBuilder_.getMessage();
}
return com.yandex.ydb.ValueProtos.TaggedType.getDefaultInstance();
}
}
/**
* .Ydb.TaggedType tagged_type = 107;
*/
public Builder setTaggedType(com.yandex.ydb.ValueProtos.TaggedType value) {
if (taggedTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
taggedTypeBuilder_.setMessage(value);
}
typeCase_ = 107;
return this;
}
/**
* .Ydb.TaggedType tagged_type = 107;
*/
public Builder setTaggedType(
com.yandex.ydb.ValueProtos.TaggedType.Builder builderForValue) {
if (taggedTypeBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
taggedTypeBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 107;
return this;
}
/**
* .Ydb.TaggedType tagged_type = 107;
*/
public Builder mergeTaggedType(com.yandex.ydb.ValueProtos.TaggedType value) {
if (taggedTypeBuilder_ == null) {
if (typeCase_ == 107 &&
type_ != com.yandex.ydb.ValueProtos.TaggedType.getDefaultInstance()) {
type_ = com.yandex.ydb.ValueProtos.TaggedType.newBuilder((com.yandex.ydb.ValueProtos.TaggedType) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 107) {
taggedTypeBuilder_.mergeFrom(value);
}
taggedTypeBuilder_.setMessage(value);
}
typeCase_ = 107;
return this;
}
/**
* .Ydb.TaggedType tagged_type = 107;
*/
public Builder clearTaggedType() {
if (taggedTypeBuilder_ == null) {
if (typeCase_ == 107) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 107) {
typeCase_ = 0;
type_ = null;
}
taggedTypeBuilder_.clear();
}
return this;
}
/**
* .Ydb.TaggedType tagged_type = 107;
*/
public com.yandex.ydb.ValueProtos.TaggedType.Builder getTaggedTypeBuilder() {
return getTaggedTypeFieldBuilder().getBuilder();
}
/**
* .Ydb.TaggedType tagged_type = 107;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TaggedTypeOrBuilder getTaggedTypeOrBuilder() {
if ((typeCase_ == 107) && (taggedTypeBuilder_ != null)) {
return taggedTypeBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 107) {
return (com.yandex.ydb.ValueProtos.TaggedType) type_;
}
return com.yandex.ydb.ValueProtos.TaggedType.getDefaultInstance();
}
}
/**
* .Ydb.TaggedType tagged_type = 107;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.TaggedType, com.yandex.ydb.ValueProtos.TaggedType.Builder, com.yandex.ydb.ValueProtos.TaggedTypeOrBuilder>
getTaggedTypeFieldBuilder() {
if (taggedTypeBuilder_ == null) {
if (!(typeCase_ == 107)) {
type_ = com.yandex.ydb.ValueProtos.TaggedType.getDefaultInstance();
}
taggedTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.TaggedType, com.yandex.ydb.ValueProtos.TaggedType.Builder, com.yandex.ydb.ValueProtos.TaggedTypeOrBuilder>(
(com.yandex.ydb.ValueProtos.TaggedType) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 107;
onChanged();;
return taggedTypeBuilder_;
}
/**
*
* Special types
*
*
* .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;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.PgType, com.yandex.ydb.ValueProtos.PgType.Builder, com.yandex.ydb.ValueProtos.PgTypeOrBuilder> pgTypeBuilder_;
/**
* .Ydb.PgType pg_type = 205;
* @return Whether the pgType field is set.
*/
@java.lang.Override
public boolean hasPgType() {
return typeCase_ == 205;
}
/**
* .Ydb.PgType pg_type = 205;
* @return The pgType.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.PgType getPgType() {
if (pgTypeBuilder_ == null) {
if (typeCase_ == 205) {
return (com.yandex.ydb.ValueProtos.PgType) type_;
}
return com.yandex.ydb.ValueProtos.PgType.getDefaultInstance();
} else {
if (typeCase_ == 205) {
return pgTypeBuilder_.getMessage();
}
return com.yandex.ydb.ValueProtos.PgType.getDefaultInstance();
}
}
/**
* .Ydb.PgType pg_type = 205;
*/
public Builder setPgType(com.yandex.ydb.ValueProtos.PgType value) {
if (pgTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
pgTypeBuilder_.setMessage(value);
}
typeCase_ = 205;
return this;
}
/**
* .Ydb.PgType pg_type = 205;
*/
public Builder setPgType(
com.yandex.ydb.ValueProtos.PgType.Builder builderForValue) {
if (pgTypeBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
pgTypeBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 205;
return this;
}
/**
* .Ydb.PgType pg_type = 205;
*/
public Builder mergePgType(com.yandex.ydb.ValueProtos.PgType value) {
if (pgTypeBuilder_ == null) {
if (typeCase_ == 205 &&
type_ != com.yandex.ydb.ValueProtos.PgType.getDefaultInstance()) {
type_ = com.yandex.ydb.ValueProtos.PgType.newBuilder((com.yandex.ydb.ValueProtos.PgType) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 205) {
pgTypeBuilder_.mergeFrom(value);
}
pgTypeBuilder_.setMessage(value);
}
typeCase_ = 205;
return this;
}
/**
* .Ydb.PgType pg_type = 205;
*/
public Builder clearPgType() {
if (pgTypeBuilder_ == null) {
if (typeCase_ == 205) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 205) {
typeCase_ = 0;
type_ = null;
}
pgTypeBuilder_.clear();
}
return this;
}
/**
* .Ydb.PgType pg_type = 205;
*/
public com.yandex.ydb.ValueProtos.PgType.Builder getPgTypeBuilder() {
return getPgTypeFieldBuilder().getBuilder();
}
/**
* .Ydb.PgType pg_type = 205;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.PgTypeOrBuilder getPgTypeOrBuilder() {
if ((typeCase_ == 205) && (pgTypeBuilder_ != null)) {
return pgTypeBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 205) {
return (com.yandex.ydb.ValueProtos.PgType) type_;
}
return com.yandex.ydb.ValueProtos.PgType.getDefaultInstance();
}
}
/**
* .Ydb.PgType pg_type = 205;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.PgType, com.yandex.ydb.ValueProtos.PgType.Builder, com.yandex.ydb.ValueProtos.PgTypeOrBuilder>
getPgTypeFieldBuilder() {
if (pgTypeBuilder_ == null) {
if (!(typeCase_ == 205)) {
type_ = com.yandex.ydb.ValueProtos.PgType.getDefaultInstance();
}
pgTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.PgType, com.yandex.ydb.ValueProtos.PgType.Builder, com.yandex.ydb.ValueProtos.PgTypeOrBuilder>(
(com.yandex.ydb.ValueProtos.PgType) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 205;
onChanged();;
return pgTypeBuilder_;
}
@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();
/**
*
* Set if current TValue is terminal Null
*
*
* .google.protobuf.NullValue null_flag_value = 10;
* @return The nullFlagValue.
*/
com.google.protobuf.NullValue getNullFlagValue();
/**
*
* Represents nested TValue for Optional<Optional<T>>(Null), or Variant<T> types
*
*
* .Ydb.Value nested_value = 11;
* @return Whether the nestedValue field is set.
*/
boolean hasNestedValue();
/**
*
* Represents nested TValue for Optional<Optional<T>>(Null), or Variant<T> types
*
*
* .Ydb.Value nested_value = 11;
* @return The nestedValue.
*/
com.yandex.ydb.ValueProtos.Value getNestedValue();
/**
*
* Represents nested TValue for Optional<Optional<T>>(Null), or Variant<T> types
*
*
* .Ydb.Value nested_value = 11;
*/
com.yandex.ydb.ValueProtos.ValueOrBuilder getNestedValueOrBuilder();
/**
* fixed64 low_128 = 15;
* @return Whether the low128 field is set.
*/
boolean hasLow128();
/**
* fixed64 low_128 = 15;
* @return The low128.
*/
long getLow128();
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
java.util.List
getItemsList();
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
com.yandex.ydb.ValueProtos.Value getItems(int index);
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
int getItemsCount();
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
java.util.List extends com.yandex.ydb.ValueProtos.ValueOrBuilder>
getItemsOrBuilderList();
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
com.yandex.ydb.ValueProtos.ValueOrBuilder getItemsOrBuilder(
int index);
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
java.util.List
getPairsList();
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
com.yandex.ydb.ValueProtos.ValuePair getPairs(int index);
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
int getPairsCount();
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
java.util.List extends com.yandex.ydb.ValueProtos.ValuePairOrBuilder>
getPairsOrBuilderList();
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
com.yandex.ydb.ValueProtos.ValuePairOrBuilder getPairsOrBuilder(
int index);
/**
*
* Used for Variant type
*
*
* 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: {
value_ = input.readBool();
valueCase_ = 1;
break;
}
case 21: {
value_ = input.readSFixed32();
valueCase_ = 2;
break;
}
case 29: {
value_ = input.readFixed32();
valueCase_ = 3;
break;
}
case 33: {
value_ = input.readSFixed64();
valueCase_ = 4;
break;
}
case 41: {
value_ = input.readFixed64();
valueCase_ = 5;
break;
}
case 53: {
value_ = input.readFloat();
valueCase_ = 6;
break;
}
case 57: {
value_ = input.readDouble();
valueCase_ = 7;
break;
}
case 66: {
value_ = input.readBytes();
valueCase_ = 8;
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: {
value_ = input.readFixed64();
valueCase_ = 15;
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_;
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
@java.lang.Override
public java.util.List getItemsList() {
return items_;
}
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.ValueProtos.ValueOrBuilder>
getItemsOrBuilderList() {
return items_;
}
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
@java.lang.Override
public int getItemsCount() {
return items_.size();
}
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.Value getItems(int index) {
return items_.get(index);
}
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.ValueOrBuilder getItemsOrBuilder(
int index) {
return items_.get(index);
}
public static final int PAIRS_FIELD_NUMBER = 13;
private java.util.List pairs_;
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
@java.lang.Override
public java.util.List getPairsList() {
return pairs_;
}
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.ValueProtos.ValuePairOrBuilder>
getPairsOrBuilderList() {
return pairs_;
}
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
@java.lang.Override
public int getPairsCount() {
return pairs_.size();
}
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.ValuePair getPairs(int index) {
return pairs_.get(index);
}
/**
*
* Used for Dict type
*
*
* 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;
}
/**
*
* Set if current TValue is terminal Null
*
*
* .google.protobuf.NullValue null_flag_value = 10;
* @return This builder for chaining.
*/
public Builder clearNullFlagValue() {
if (valueCase_ == 10) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Value, com.yandex.ydb.ValueProtos.Value.Builder, com.yandex.ydb.ValueProtos.ValueOrBuilder> nestedValueBuilder_;
/**
*
* 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 (nestedValueBuilder_ == null) {
if (valueCase_ == 11) {
return (com.yandex.ydb.ValueProtos.Value) value_;
}
return com.yandex.ydb.ValueProtos.Value.getDefaultInstance();
} else {
if (valueCase_ == 11) {
return nestedValueBuilder_.getMessage();
}
return com.yandex.ydb.ValueProtos.Value.getDefaultInstance();
}
}
/**
*
* Represents nested TValue for Optional<Optional<T>>(Null), or Variant<T> types
*
*
* .Ydb.Value nested_value = 11;
*/
public Builder setNestedValue(com.yandex.ydb.ValueProtos.Value value) {
if (nestedValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
nestedValueBuilder_.setMessage(value);
}
valueCase_ = 11;
return this;
}
/**
*
* Represents nested TValue for Optional<Optional<T>>(Null), or Variant<T> types
*
*
* .Ydb.Value nested_value = 11;
*/
public Builder setNestedValue(
com.yandex.ydb.ValueProtos.Value.Builder builderForValue) {
if (nestedValueBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
nestedValueBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 11;
return this;
}
/**
*
* Represents nested TValue for Optional<Optional<T>>(Null), or Variant<T> types
*
*
* .Ydb.Value nested_value = 11;
*/
public Builder mergeNestedValue(com.yandex.ydb.ValueProtos.Value value) {
if (nestedValueBuilder_ == null) {
if (valueCase_ == 11 &&
value_ != com.yandex.ydb.ValueProtos.Value.getDefaultInstance()) {
value_ = com.yandex.ydb.ValueProtos.Value.newBuilder((com.yandex.ydb.ValueProtos.Value) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 11) {
nestedValueBuilder_.mergeFrom(value);
}
nestedValueBuilder_.setMessage(value);
}
valueCase_ = 11;
return this;
}
/**
*
* Represents nested TValue for Optional<Optional<T>>(Null), or Variant<T> types
*
*
* .Ydb.Value nested_value = 11;
*/
public Builder clearNestedValue() {
if (nestedValueBuilder_ == null) {
if (valueCase_ == 11) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 11) {
valueCase_ = 0;
value_ = null;
}
nestedValueBuilder_.clear();
}
return this;
}
/**
*
* Represents nested TValue for Optional<Optional<T>>(Null), or Variant<T> types
*
*
* .Ydb.Value nested_value = 11;
*/
public com.yandex.ydb.ValueProtos.Value.Builder getNestedValueBuilder() {
return getNestedValueFieldBuilder().getBuilder();
}
/**
*
* 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) && (nestedValueBuilder_ != null)) {
return nestedValueBuilder_.getMessageOrBuilder();
} else {
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;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Value, com.yandex.ydb.ValueProtos.Value.Builder, com.yandex.ydb.ValueProtos.ValueOrBuilder>
getNestedValueFieldBuilder() {
if (nestedValueBuilder_ == null) {
if (!(valueCase_ == 11)) {
value_ = com.yandex.ydb.ValueProtos.Value.getDefaultInstance();
}
nestedValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Value, com.yandex.ydb.ValueProtos.Value.Builder, com.yandex.ydb.ValueProtos.ValueOrBuilder>(
(com.yandex.ydb.ValueProtos.Value) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 11;
onChanged();;
return nestedValueBuilder_;
}
/**
* fixed64 low_128 = 15;
* @return Whether the low128 field is set.
*/
public boolean hasLow128() {
return valueCase_ == 15;
}
/**
* fixed64 low_128 = 15;
* @return The low128.
*/
public long getLow128() {
if (valueCase_ == 15) {
return (java.lang.Long) value_;
}
return 0L;
}
/**
* fixed64 low_128 = 15;
* @param value The low128 to set.
* @return This builder for chaining.
*/
public Builder setLow128(long value) {
valueCase_ = 15;
value_ = value;
onChanged();
return this;
}
/**
* fixed64 low_128 = 15;
* @return This builder for chaining.
*/
public Builder clearLow128() {
if (valueCase_ == 15) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
private java.util.List items_ =
java.util.Collections.emptyList();
private void ensureItemsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
items_ = new java.util.ArrayList(items_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.Value, com.yandex.ydb.ValueProtos.Value.Builder, com.yandex.ydb.ValueProtos.ValueOrBuilder> itemsBuilder_;
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
public java.util.List getItemsList() {
if (itemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(items_);
} else {
return itemsBuilder_.getMessageList();
}
}
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
public int getItemsCount() {
if (itemsBuilder_ == null) {
return items_.size();
} else {
return itemsBuilder_.getCount();
}
}
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
public com.yandex.ydb.ValueProtos.Value getItems(int index) {
if (itemsBuilder_ == null) {
return items_.get(index);
} else {
return itemsBuilder_.getMessage(index);
}
}
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
public Builder setItems(
int index, com.yandex.ydb.ValueProtos.Value value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.set(index, value);
onChanged();
} else {
itemsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
public Builder setItems(
int index, com.yandex.ydb.ValueProtos.Value.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.set(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
public Builder addItems(com.yandex.ydb.ValueProtos.Value value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(value);
onChanged();
} else {
itemsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
public Builder addItems(
int index, com.yandex.ydb.ValueProtos.Value value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(index, value);
onChanged();
} else {
itemsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
public Builder addItems(
com.yandex.ydb.ValueProtos.Value.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
public Builder addItems(
int index, com.yandex.ydb.ValueProtos.Value.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
public Builder addAllItems(
java.lang.Iterable extends com.yandex.ydb.ValueProtos.Value> values) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, items_);
onChanged();
} else {
itemsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
public Builder clearItems() {
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
itemsBuilder_.clear();
}
return this;
}
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
public Builder removeItems(int index) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.remove(index);
onChanged();
} else {
itemsBuilder_.remove(index);
}
return this;
}
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
public com.yandex.ydb.ValueProtos.Value.Builder getItemsBuilder(
int index) {
return getItemsFieldBuilder().getBuilder(index);
}
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
public com.yandex.ydb.ValueProtos.ValueOrBuilder getItemsOrBuilder(
int index) {
if (itemsBuilder_ == null) {
return items_.get(index); } else {
return itemsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
public java.util.List extends com.yandex.ydb.ValueProtos.ValueOrBuilder>
getItemsOrBuilderList() {
if (itemsBuilder_ != null) {
return itemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(items_);
}
}
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
public com.yandex.ydb.ValueProtos.Value.Builder addItemsBuilder() {
return getItemsFieldBuilder().addBuilder(
com.yandex.ydb.ValueProtos.Value.getDefaultInstance());
}
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
public com.yandex.ydb.ValueProtos.Value.Builder addItemsBuilder(
int index) {
return getItemsFieldBuilder().addBuilder(
index, com.yandex.ydb.ValueProtos.Value.getDefaultInstance());
}
/**
*
* Used for List, Tuple, Struct types
*
*
* repeated .Ydb.Value items = 12;
*/
public java.util.List
getItemsBuilderList() {
return getItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.Value, com.yandex.ydb.ValueProtos.Value.Builder, com.yandex.ydb.ValueProtos.ValueOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.Value, com.yandex.ydb.ValueProtos.Value.Builder, com.yandex.ydb.ValueProtos.ValueOrBuilder>(
items_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
items_ = null;
}
return itemsBuilder_;
}
private java.util.List pairs_ =
java.util.Collections.emptyList();
private void ensurePairsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
pairs_ = new java.util.ArrayList(pairs_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.ValuePair, com.yandex.ydb.ValueProtos.ValuePair.Builder, com.yandex.ydb.ValueProtos.ValuePairOrBuilder> pairsBuilder_;
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
public java.util.List getPairsList() {
if (pairsBuilder_ == null) {
return java.util.Collections.unmodifiableList(pairs_);
} else {
return pairsBuilder_.getMessageList();
}
}
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
public int getPairsCount() {
if (pairsBuilder_ == null) {
return pairs_.size();
} else {
return pairsBuilder_.getCount();
}
}
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
public com.yandex.ydb.ValueProtos.ValuePair getPairs(int index) {
if (pairsBuilder_ == null) {
return pairs_.get(index);
} else {
return pairsBuilder_.getMessage(index);
}
}
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
public Builder setPairs(
int index, com.yandex.ydb.ValueProtos.ValuePair value) {
if (pairsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePairsIsMutable();
pairs_.set(index, value);
onChanged();
} else {
pairsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
public Builder setPairs(
int index, com.yandex.ydb.ValueProtos.ValuePair.Builder builderForValue) {
if (pairsBuilder_ == null) {
ensurePairsIsMutable();
pairs_.set(index, builderForValue.build());
onChanged();
} else {
pairsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
public Builder addPairs(com.yandex.ydb.ValueProtos.ValuePair value) {
if (pairsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePairsIsMutable();
pairs_.add(value);
onChanged();
} else {
pairsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
public Builder addPairs(
int index, com.yandex.ydb.ValueProtos.ValuePair value) {
if (pairsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePairsIsMutable();
pairs_.add(index, value);
onChanged();
} else {
pairsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
public Builder addPairs(
com.yandex.ydb.ValueProtos.ValuePair.Builder builderForValue) {
if (pairsBuilder_ == null) {
ensurePairsIsMutable();
pairs_.add(builderForValue.build());
onChanged();
} else {
pairsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
public Builder addPairs(
int index, com.yandex.ydb.ValueProtos.ValuePair.Builder builderForValue) {
if (pairsBuilder_ == null) {
ensurePairsIsMutable();
pairs_.add(index, builderForValue.build());
onChanged();
} else {
pairsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
public Builder addAllPairs(
java.lang.Iterable extends com.yandex.ydb.ValueProtos.ValuePair> values) {
if (pairsBuilder_ == null) {
ensurePairsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, pairs_);
onChanged();
} else {
pairsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
public Builder clearPairs() {
if (pairsBuilder_ == null) {
pairs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
pairsBuilder_.clear();
}
return this;
}
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
public Builder removePairs(int index) {
if (pairsBuilder_ == null) {
ensurePairsIsMutable();
pairs_.remove(index);
onChanged();
} else {
pairsBuilder_.remove(index);
}
return this;
}
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
public com.yandex.ydb.ValueProtos.ValuePair.Builder getPairsBuilder(
int index) {
return getPairsFieldBuilder().getBuilder(index);
}
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
public com.yandex.ydb.ValueProtos.ValuePairOrBuilder getPairsOrBuilder(
int index) {
if (pairsBuilder_ == null) {
return pairs_.get(index); } else {
return pairsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
public java.util.List extends com.yandex.ydb.ValueProtos.ValuePairOrBuilder>
getPairsOrBuilderList() {
if (pairsBuilder_ != null) {
return pairsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(pairs_);
}
}
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
public com.yandex.ydb.ValueProtos.ValuePair.Builder addPairsBuilder() {
return getPairsFieldBuilder().addBuilder(
com.yandex.ydb.ValueProtos.ValuePair.getDefaultInstance());
}
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
public com.yandex.ydb.ValueProtos.ValuePair.Builder addPairsBuilder(
int index) {
return getPairsFieldBuilder().addBuilder(
index, com.yandex.ydb.ValueProtos.ValuePair.getDefaultInstance());
}
/**
*
* Used for Dict type
*
*
* repeated .Ydb.ValuePair pairs = 13;
*/
public java.util.List
getPairsBuilderList() {
return getPairsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.ValuePair, com.yandex.ydb.ValueProtos.ValuePair.Builder, com.yandex.ydb.ValueProtos.ValuePairOrBuilder>
getPairsFieldBuilder() {
if (pairsBuilder_ == null) {
pairsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.ValuePair, com.yandex.ydb.ValueProtos.ValuePair.Builder, com.yandex.ydb.ValueProtos.ValuePairOrBuilder>(
pairs_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
pairs_ = null;
}
return pairsBuilder_;
}
private int variantIndex_ ;
/**
*
* Used for Variant type
*
*
* 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
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;
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
public Builder setType(
com.yandex.ydb.ValueProtos.Type.Builder builderForValue) {
if (typeBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
typeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
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;
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
public Builder clearType() {
if (typeBuilder_ == null) {
type_ = null;
onChanged();
} else {
type_ = null;
typeBuilder_ = null;
}
return this;
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
public com.yandex.ydb.ValueProtos.Type.Builder getTypeBuilder() {
onChanged();
return getTypeFieldBuilder().getBuilder();
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
public com.yandex.ydb.ValueProtos.TypeOrBuilder getTypeOrBuilder() {
if (typeBuilder_ != null) {
return typeBuilder_.getMessageOrBuilder();
} else {
return type_ == null ?
com.yandex.ydb.ValueProtos.Type.getDefaultInstance() : type_;
}
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
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_;
}
@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.Column)
}
// @@protoc_insertion_point(class_scope:Ydb.Column)
private static final com.yandex.ydb.ValueProtos.Column DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.ValueProtos.Column();
}
public static com.yandex.ydb.ValueProtos.Column getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Column parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Column(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.Column getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResultSetOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.ResultSet)
com.google.protobuf.MessageOrBuilder {
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
java.util.List
getColumnsList();
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
com.yandex.ydb.ValueProtos.Column getColumns(int index);
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
int getColumnsCount();
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
java.util.List extends com.yandex.ydb.ValueProtos.ColumnOrBuilder>
getColumnsOrBuilderList();
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
com.yandex.ydb.ValueProtos.ColumnOrBuilder getColumnsOrBuilder(
int index);
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
java.util.List
getRowsList();
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
com.yandex.ydb.ValueProtos.Value getRows(int index);
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
int getRowsCount();
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
java.util.List extends com.yandex.ydb.ValueProtos.ValueOrBuilder>
getRowsOrBuilderList();
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
com.yandex.ydb.ValueProtos.ValueOrBuilder getRowsOrBuilder(
int index);
/**
*
* Flag indicates the result was truncated
*
*
* bool truncated = 3;
* @return The truncated.
*/
boolean getTruncated();
}
/**
*
* Represents table-like structure with ordered set of rows and columns
*
*
* Protobuf type {@code Ydb.ResultSet}
*/
public static final class ResultSet extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.ResultSet)
ResultSetOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResultSet.newBuilder() to construct.
private ResultSet(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResultSet() {
columns_ = java.util.Collections.emptyList();
rows_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResultSet();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResultSet(
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 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
columns_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
columns_.add(
input.readMessage(com.yandex.ydb.ValueProtos.Column.parser(), extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
rows_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
rows_.add(
input.readMessage(com.yandex.ydb.ValueProtos.Value.parser(), extensionRegistry));
break;
}
case 24: {
truncated_ = input.readBool();
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)) {
columns_ = java.util.Collections.unmodifiableList(columns_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
rows_ = java.util.Collections.unmodifiableList(rows_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_ResultSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_ResultSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.ResultSet.class, com.yandex.ydb.ValueProtos.ResultSet.Builder.class);
}
public static final int COLUMNS_FIELD_NUMBER = 1;
private java.util.List columns_;
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
@java.lang.Override
public java.util.List getColumnsList() {
return columns_;
}
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.ValueProtos.ColumnOrBuilder>
getColumnsOrBuilderList() {
return columns_;
}
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
@java.lang.Override
public int getColumnsCount() {
return columns_.size();
}
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.Column getColumns(int index) {
return columns_.get(index);
}
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.ColumnOrBuilder getColumnsOrBuilder(
int index) {
return columns_.get(index);
}
public static final int ROWS_FIELD_NUMBER = 2;
private java.util.List rows_;
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
@java.lang.Override
public java.util.List getRowsList() {
return rows_;
}
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.ValueProtos.ValueOrBuilder>
getRowsOrBuilderList() {
return rows_;
}
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
@java.lang.Override
public int getRowsCount() {
return rows_.size();
}
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.Value getRows(int index) {
return rows_.get(index);
}
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.ValueOrBuilder getRowsOrBuilder(
int index) {
return rows_.get(index);
}
public static final int TRUNCATED_FIELD_NUMBER = 3;
private boolean truncated_;
/**
*
* Flag indicates the result was truncated
*
*
* bool truncated = 3;
* @return The truncated.
*/
@java.lang.Override
public boolean getTruncated() {
return truncated_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < columns_.size(); i++) {
output.writeMessage(1, columns_.get(i));
}
for (int i = 0; i < rows_.size(); i++) {
output.writeMessage(2, rows_.get(i));
}
if (truncated_ != false) {
output.writeBool(3, truncated_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < columns_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, columns_.get(i));
}
for (int i = 0; i < rows_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, rows_.get(i));
}
if (truncated_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, truncated_);
}
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.ResultSet)) {
return super.equals(obj);
}
com.yandex.ydb.ValueProtos.ResultSet other = (com.yandex.ydb.ValueProtos.ResultSet) obj;
if (!getColumnsList()
.equals(other.getColumnsList())) return false;
if (!getRowsList()
.equals(other.getRowsList())) return false;
if (getTruncated()
!= other.getTruncated()) 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 (getColumnsCount() > 0) {
hash = (37 * hash) + COLUMNS_FIELD_NUMBER;
hash = (53 * hash) + getColumnsList().hashCode();
}
if (getRowsCount() > 0) {
hash = (37 * hash) + ROWS_FIELD_NUMBER;
hash = (53 * hash) + getRowsList().hashCode();
}
hash = (37 * hash) + TRUNCATED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getTruncated());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.ValueProtos.ResultSet parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.ResultSet 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.ResultSet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.ResultSet 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.ResultSet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.ValueProtos.ResultSet parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.ValueProtos.ResultSet parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.ResultSet 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.ResultSet parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.ResultSet 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.ResultSet parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.ValueProtos.ResultSet 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.ResultSet 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;
}
/**
*
* Represents table-like structure with ordered set of rows and columns
*
*
* Protobuf type {@code Ydb.ResultSet}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.ResultSet)
com.yandex.ydb.ValueProtos.ResultSetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_ResultSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_ResultSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.ValueProtos.ResultSet.class, com.yandex.ydb.ValueProtos.ResultSet.Builder.class);
}
// Construct using com.yandex.ydb.ValueProtos.ResultSet.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getColumnsFieldBuilder();
getRowsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (columnsBuilder_ == null) {
columns_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
columnsBuilder_.clear();
}
if (rowsBuilder_ == null) {
rows_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
rowsBuilder_.clear();
}
truncated_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.ValueProtos.internal_static_Ydb_ResultSet_descriptor;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.ResultSet getDefaultInstanceForType() {
return com.yandex.ydb.ValueProtos.ResultSet.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.ResultSet build() {
com.yandex.ydb.ValueProtos.ResultSet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.ValueProtos.ResultSet buildPartial() {
com.yandex.ydb.ValueProtos.ResultSet result = new com.yandex.ydb.ValueProtos.ResultSet(this);
int from_bitField0_ = bitField0_;
if (columnsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
columns_ = java.util.Collections.unmodifiableList(columns_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.columns_ = columns_;
} else {
result.columns_ = columnsBuilder_.build();
}
if (rowsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
rows_ = java.util.Collections.unmodifiableList(rows_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.rows_ = rows_;
} else {
result.rows_ = rowsBuilder_.build();
}
result.truncated_ = truncated_;
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.ResultSet) {
return mergeFrom((com.yandex.ydb.ValueProtos.ResultSet)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.ValueProtos.ResultSet other) {
if (other == com.yandex.ydb.ValueProtos.ResultSet.getDefaultInstance()) return this;
if (columnsBuilder_ == null) {
if (!other.columns_.isEmpty()) {
if (columns_.isEmpty()) {
columns_ = other.columns_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureColumnsIsMutable();
columns_.addAll(other.columns_);
}
onChanged();
}
} else {
if (!other.columns_.isEmpty()) {
if (columnsBuilder_.isEmpty()) {
columnsBuilder_.dispose();
columnsBuilder_ = null;
columns_ = other.columns_;
bitField0_ = (bitField0_ & ~0x00000001);
columnsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getColumnsFieldBuilder() : null;
} else {
columnsBuilder_.addAllMessages(other.columns_);
}
}
}
if (rowsBuilder_ == null) {
if (!other.rows_.isEmpty()) {
if (rows_.isEmpty()) {
rows_ = other.rows_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRowsIsMutable();
rows_.addAll(other.rows_);
}
onChanged();
}
} else {
if (!other.rows_.isEmpty()) {
if (rowsBuilder_.isEmpty()) {
rowsBuilder_.dispose();
rowsBuilder_ = null;
rows_ = other.rows_;
bitField0_ = (bitField0_ & ~0x00000002);
rowsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRowsFieldBuilder() : null;
} else {
rowsBuilder_.addAllMessages(other.rows_);
}
}
}
if (other.getTruncated() != false) {
setTruncated(other.getTruncated());
}
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.ResultSet parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.ValueProtos.ResultSet) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List columns_ =
java.util.Collections.emptyList();
private void ensureColumnsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
columns_ = new java.util.ArrayList(columns_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.Column, com.yandex.ydb.ValueProtos.Column.Builder, com.yandex.ydb.ValueProtos.ColumnOrBuilder> columnsBuilder_;
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
public java.util.List getColumnsList() {
if (columnsBuilder_ == null) {
return java.util.Collections.unmodifiableList(columns_);
} else {
return columnsBuilder_.getMessageList();
}
}
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
public int getColumnsCount() {
if (columnsBuilder_ == null) {
return columns_.size();
} else {
return columnsBuilder_.getCount();
}
}
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
public com.yandex.ydb.ValueProtos.Column getColumns(int index) {
if (columnsBuilder_ == null) {
return columns_.get(index);
} else {
return columnsBuilder_.getMessage(index);
}
}
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
public Builder setColumns(
int index, com.yandex.ydb.ValueProtos.Column value) {
if (columnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnsIsMutable();
columns_.set(index, value);
onChanged();
} else {
columnsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
public Builder setColumns(
int index, com.yandex.ydb.ValueProtos.Column.Builder builderForValue) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.set(index, builderForValue.build());
onChanged();
} else {
columnsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
public Builder addColumns(com.yandex.ydb.ValueProtos.Column value) {
if (columnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnsIsMutable();
columns_.add(value);
onChanged();
} else {
columnsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
public Builder addColumns(
int index, com.yandex.ydb.ValueProtos.Column value) {
if (columnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnsIsMutable();
columns_.add(index, value);
onChanged();
} else {
columnsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
public Builder addColumns(
com.yandex.ydb.ValueProtos.Column.Builder builderForValue) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.add(builderForValue.build());
onChanged();
} else {
columnsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
public Builder addColumns(
int index, com.yandex.ydb.ValueProtos.Column.Builder builderForValue) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.add(index, builderForValue.build());
onChanged();
} else {
columnsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
public Builder addAllColumns(
java.lang.Iterable extends com.yandex.ydb.ValueProtos.Column> values) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, columns_);
onChanged();
} else {
columnsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
public Builder clearColumns() {
if (columnsBuilder_ == null) {
columns_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
columnsBuilder_.clear();
}
return this;
}
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
public Builder removeColumns(int index) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.remove(index);
onChanged();
} else {
columnsBuilder_.remove(index);
}
return this;
}
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
public com.yandex.ydb.ValueProtos.Column.Builder getColumnsBuilder(
int index) {
return getColumnsFieldBuilder().getBuilder(index);
}
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
public com.yandex.ydb.ValueProtos.ColumnOrBuilder getColumnsOrBuilder(
int index) {
if (columnsBuilder_ == null) {
return columns_.get(index); } else {
return columnsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
public java.util.List extends com.yandex.ydb.ValueProtos.ColumnOrBuilder>
getColumnsOrBuilderList() {
if (columnsBuilder_ != null) {
return columnsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(columns_);
}
}
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
public com.yandex.ydb.ValueProtos.Column.Builder addColumnsBuilder() {
return getColumnsFieldBuilder().addBuilder(
com.yandex.ydb.ValueProtos.Column.getDefaultInstance());
}
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
public com.yandex.ydb.ValueProtos.Column.Builder addColumnsBuilder(
int index) {
return getColumnsFieldBuilder().addBuilder(
index, com.yandex.ydb.ValueProtos.Column.getDefaultInstance());
}
/**
*
* Metadata of columns
*
*
* repeated .Ydb.Column columns = 1;
*/
public java.util.List
getColumnsBuilderList() {
return getColumnsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.Column, com.yandex.ydb.ValueProtos.Column.Builder, com.yandex.ydb.ValueProtos.ColumnOrBuilder>
getColumnsFieldBuilder() {
if (columnsBuilder_ == null) {
columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.Column, com.yandex.ydb.ValueProtos.Column.Builder, com.yandex.ydb.ValueProtos.ColumnOrBuilder>(
columns_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
columns_ = null;
}
return columnsBuilder_;
}
private java.util.List rows_ =
java.util.Collections.emptyList();
private void ensureRowsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
rows_ = new java.util.ArrayList(rows_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.Value, com.yandex.ydb.ValueProtos.Value.Builder, com.yandex.ydb.ValueProtos.ValueOrBuilder> rowsBuilder_;
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
public java.util.List getRowsList() {
if (rowsBuilder_ == null) {
return java.util.Collections.unmodifiableList(rows_);
} else {
return rowsBuilder_.getMessageList();
}
}
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
public int getRowsCount() {
if (rowsBuilder_ == null) {
return rows_.size();
} else {
return rowsBuilder_.getCount();
}
}
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
public com.yandex.ydb.ValueProtos.Value getRows(int index) {
if (rowsBuilder_ == null) {
return rows_.get(index);
} else {
return rowsBuilder_.getMessage(index);
}
}
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
public Builder setRows(
int index, com.yandex.ydb.ValueProtos.Value value) {
if (rowsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRowsIsMutable();
rows_.set(index, value);
onChanged();
} else {
rowsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
public Builder setRows(
int index, com.yandex.ydb.ValueProtos.Value.Builder builderForValue) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.set(index, builderForValue.build());
onChanged();
} else {
rowsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
public Builder addRows(com.yandex.ydb.ValueProtos.Value value) {
if (rowsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRowsIsMutable();
rows_.add(value);
onChanged();
} else {
rowsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
public Builder addRows(
int index, com.yandex.ydb.ValueProtos.Value value) {
if (rowsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRowsIsMutable();
rows_.add(index, value);
onChanged();
} else {
rowsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
public Builder addRows(
com.yandex.ydb.ValueProtos.Value.Builder builderForValue) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.add(builderForValue.build());
onChanged();
} else {
rowsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
public Builder addRows(
int index, com.yandex.ydb.ValueProtos.Value.Builder builderForValue) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.add(index, builderForValue.build());
onChanged();
} else {
rowsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
public Builder addAllRows(
java.lang.Iterable extends com.yandex.ydb.ValueProtos.Value> values) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, rows_);
onChanged();
} else {
rowsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
public Builder clearRows() {
if (rowsBuilder_ == null) {
rows_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
rowsBuilder_.clear();
}
return this;
}
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
public Builder removeRows(int index) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.remove(index);
onChanged();
} else {
rowsBuilder_.remove(index);
}
return this;
}
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
public com.yandex.ydb.ValueProtos.Value.Builder getRowsBuilder(
int index) {
return getRowsFieldBuilder().getBuilder(index);
}
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
public com.yandex.ydb.ValueProtos.ValueOrBuilder getRowsOrBuilder(
int index) {
if (rowsBuilder_ == null) {
return rows_.get(index); } else {
return rowsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
public java.util.List extends com.yandex.ydb.ValueProtos.ValueOrBuilder>
getRowsOrBuilderList() {
if (rowsBuilder_ != null) {
return rowsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(rows_);
}
}
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
public com.yandex.ydb.ValueProtos.Value.Builder addRowsBuilder() {
return getRowsFieldBuilder().addBuilder(
com.yandex.ydb.ValueProtos.Value.getDefaultInstance());
}
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
public com.yandex.ydb.ValueProtos.Value.Builder addRowsBuilder(
int index) {
return getRowsFieldBuilder().addBuilder(
index, com.yandex.ydb.ValueProtos.Value.getDefaultInstance());
}
/**
*
* Rows of table
*
*
* repeated .Ydb.Value rows = 2;
*/
public java.util.List
getRowsBuilderList() {
return getRowsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.Value, com.yandex.ydb.ValueProtos.Value.Builder, com.yandex.ydb.ValueProtos.ValueOrBuilder>
getRowsFieldBuilder() {
if (rowsBuilder_ == null) {
rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.Value, com.yandex.ydb.ValueProtos.Value.Builder, com.yandex.ydb.ValueProtos.ValueOrBuilder>(
rows_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
rows_ = null;
}
return rowsBuilder_;
}
private boolean truncated_ ;
/**
*
* Flag indicates the result was truncated
*
*
* bool truncated = 3;
* @return The truncated.
*/
@java.lang.Override
public boolean getTruncated() {
return truncated_;
}
/**
*
* Flag indicates the result was truncated
*
*
* bool truncated = 3;
* @param value The truncated to set.
* @return This builder for chaining.
*/
public Builder setTruncated(boolean value) {
truncated_ = value;
onChanged();
return this;
}
/**
*
* Flag indicates the result was truncated
*
*
* bool truncated = 3;
* @return This builder for chaining.
*/
public Builder clearTruncated() {
truncated_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.ResultSet)
}
// @@protoc_insertion_point(class_scope:Ydb.ResultSet)
private static final com.yandex.ydb.ValueProtos.ResultSet DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.ValueProtos.ResultSet();
}
public static com.yandex.ydb.ValueProtos.ResultSet getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResultSet parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResultSet(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.ResultSet getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_DecimalType_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_DecimalType_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_OptionalType_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_OptionalType_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_ListType_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_ListType_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_VariantType_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_VariantType_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_TupleType_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_TupleType_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_StructMember_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_StructMember_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_StructType_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_StructType_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_DictType_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_DictType_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_TaggedType_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_TaggedType_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_PgType_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_PgType_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Type_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Type_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_ValuePair_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_ValuePair_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Value_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Value_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_TypedValue_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_TypedValue_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Column_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Column_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_ResultSet_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_ResultSet_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n%ydb/public/api/protos/ydb_value.proto\022" +
"\003Ydb\032\034google/protobuf/struct.proto\"/\n\013De" +
"cimalType\022\021\n\tprecision\030\001 \001(\r\022\r\n\005scale\030\002 " +
"\001(\r\"\'\n\014OptionalType\022\027\n\004item\030\001 \001(\0132\t.Ydb." +
"Type\"#\n\010ListType\022\027\n\004item\030\001 \001(\0132\t.Ydb.Typ" +
"e\"e\n\013VariantType\022%\n\013tuple_items\030\001 \001(\0132\016." +
"Ydb.TupleTypeH\000\022\'\n\014struct_items\030\002 \001(\0132\017." +
"Ydb.StructTypeH\000B\006\n\004type\"(\n\tTupleType\022\033\n" +
"\010elements\030\001 \003(\0132\t.Ydb.Type\"5\n\014StructMemb" +
"er\022\014\n\004name\030\001 \001(\t\022\027\n\004type\030\002 \001(\0132\t.Ydb.Typ" +
"e\"0\n\nStructType\022\"\n\007members\030\001 \003(\0132\021.Ydb.S" +
"tructMember\">\n\010DictType\022\026\n\003key\030\001 \001(\0132\t.Y" +
"db.Type\022\032\n\007payload\030\002 \001(\0132\t.Ydb.Type\"2\n\nT" +
"aggedType\022\013\n\003tag\030\001 \001(\t\022\027\n\004type\030\002 \001(\0132\t.Y" +
"db.Type\"5\n\006PgType\022\013\n\003oid\030\001 \001(\r\022\016\n\006typlen" +
"\030\002 \001(\005\022\016\n\006typmod\030\003 \001(\005\"\342\007\n\004Type\022,\n\007type_" +
"id\030\001 \001(\0162\031.Ydb.Type.PrimitiveTypeIdH\000\022(\n" +
"\014decimal_type\030\002 \001(\0132\020.Ydb.DecimalTypeH\000\022" +
"*\n\roptional_type\030e \001(\0132\021.Ydb.OptionalTyp" +
"eH\000\022\"\n\tlist_type\030f \001(\0132\r.Ydb.ListTypeH\000\022" +
"$\n\ntuple_type\030g \001(\0132\016.Ydb.TupleTypeH\000\022&\n" +
"\013struct_type\030h \001(\0132\017.Ydb.StructTypeH\000\022\"\n" +
"\tdict_type\030i \001(\0132\r.Ydb.DictTypeH\000\022(\n\014var" +
"iant_type\030j \001(\0132\020.Ydb.VariantTypeH\000\022&\n\013t" +
"agged_type\030k \001(\0132\017.Ydb.TaggedTypeH\000\0220\n\tv" +
"oid_type\030\311\001 \001(\0162\032.google.protobuf.NullVa" +
"lueH\000\0220\n\tnull_type\030\312\001 \001(\0162\032.google.proto" +
"buf.NullValueH\000\0226\n\017empty_list_type\030\313\001 \001(" +
"\0162\032.google.protobuf.NullValueH\000\0226\n\017empty" +
"_dict_type\030\314\001 \001(\0162\032.google.protobuf.Null" +
"ValueH\000\022\037\n\007pg_type\030\315\001 \001(\0132\013.Ydb.PgTypeH\000" +
"\"\360\002\n\017PrimitiveTypeId\022!\n\035PRIMITIVE_TYPE_I" +
"D_UNSPECIFIED\020\000\022\010\n\004BOOL\020\006\022\010\n\004INT8\020\007\022\t\n\005U" +
"INT8\020\005\022\t\n\005INT16\020\010\022\n\n\006UINT16\020\t\022\t\n\005INT32\020\001" +
"\022\n\n\006UINT32\020\002\022\t\n\005INT64\020\003\022\n\n\006UINT64\020\004\022\t\n\005F" +
"LOAT\020!\022\n\n\006DOUBLE\020 \022\010\n\004DATE\0200\022\014\n\010DATETIME" +
"\0201\022\r\n\tTIMESTAMP\0202\022\014\n\010INTERVAL\0203\022\013\n\007TZ_DA" +
"TE\0204\022\017\n\013TZ_DATETIME\0205\022\020\n\014TZ_TIMESTAMP\0206\022" +
"\013\n\006STRING\020\201 \022\t\n\004UTF8\020\200$\022\t\n\004YSON\020\201$\022\t\n\004JS" +
"ON\020\202$\022\t\n\004UUID\020\203$\022\022\n\rJSON_DOCUMENT\020\204$\022\r\n\010" +
"DYNUMBER\020\202&B\006\n\004type\"A\n\tValuePair\022\027\n\003key\030" +
"\001 \001(\0132\n.Ydb.Value\022\033\n\007payload\030\002 \001(\0132\n.Ydb" +
".Value\"\261\003\n\005Value\022\024\n\nbool_value\030\001 \001(\010H\000\022\025" +
"\n\013int32_value\030\002 \001(\017H\000\022\026\n\014uint32_value\030\003 " +
"\001(\007H\000\022\025\n\013int64_value\030\004 \001(\020H\000\022\026\n\014uint64_v" +
"alue\030\005 \001(\006H\000\022\025\n\013float_value\030\006 \001(\002H\000\022\026\n\014d" +
"ouble_value\030\007 \001(\001H\000\022\025\n\013bytes_value\030\010 \001(\014" +
"H\000\022\024\n\ntext_value\030\t \001(\tH\000\0225\n\017null_flag_va" +
"lue\030\n \001(\0162\032.google.protobuf.NullValueH\000\022" +
"\"\n\014nested_value\030\013 \001(\0132\n.Ydb.ValueH\000\022\021\n\007l" +
"ow_128\030\017 \001(\006H\000\022\031\n\005items\030\014 \003(\0132\n.Ydb.Valu" +
"e\022\035\n\005pairs\030\r \003(\0132\016.Ydb.ValuePair\022\025\n\rvari" +
"ant_index\030\016 \001(\r\022\020\n\010high_128\030\020 \001(\006B\007\n\005val" +
"ue\"@\n\nTypedValue\022\027\n\004type\030\001 \001(\0132\t.Ydb.Typ" +
"e\022\031\n\005value\030\002 \001(\0132\n.Ydb.Value\"/\n\006Column\022\014" +
"\n\004name\030\001 \001(\t\022\027\n\004type\030\002 \001(\0132\t.Ydb.Type\"V\n" +
"\tResultSet\022\034\n\007columns\030\001 \003(\0132\013.Ydb.Column" +
"\022\030\n\004rows\030\002 \003(\0132\n.Ydb.Value\022\021\n\ttruncated\030" +
"\003 \001(\010B \n\016com.yandex.ydbB\013ValueProtos\370\001\001b" +
"\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.StructProto.getDescriptor(),
});
internal_static_Ydb_DecimalType_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_Ydb_DecimalType_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_DecimalType_descriptor,
new java.lang.String[] { "Precision", "Scale", });
internal_static_Ydb_OptionalType_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_Ydb_OptionalType_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_OptionalType_descriptor,
new java.lang.String[] { "Item", });
internal_static_Ydb_ListType_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_Ydb_ListType_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_ListType_descriptor,
new java.lang.String[] { "Item", });
internal_static_Ydb_VariantType_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_Ydb_VariantType_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_VariantType_descriptor,
new java.lang.String[] { "TupleItems", "StructItems", "Type", });
internal_static_Ydb_TupleType_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_Ydb_TupleType_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_TupleType_descriptor,
new java.lang.String[] { "Elements", });
internal_static_Ydb_StructMember_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_Ydb_StructMember_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_StructMember_descriptor,
new java.lang.String[] { "Name", "Type", });
internal_static_Ydb_StructType_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_Ydb_StructType_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_StructType_descriptor,
new java.lang.String[] { "Members", });
internal_static_Ydb_DictType_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_Ydb_DictType_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_DictType_descriptor,
new java.lang.String[] { "Key", "Payload", });
internal_static_Ydb_TaggedType_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_Ydb_TaggedType_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_TaggedType_descriptor,
new java.lang.String[] { "Tag", "Type", });
internal_static_Ydb_PgType_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_Ydb_PgType_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_PgType_descriptor,
new java.lang.String[] { "Oid", "Typlen", "Typmod", });
internal_static_Ydb_Type_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_Ydb_Type_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Type_descriptor,
new java.lang.String[] { "TypeId", "DecimalType", "OptionalType", "ListType", "TupleType", "StructType", "DictType", "VariantType", "TaggedType", "VoidType", "NullType", "EmptyListType", "EmptyDictType", "PgType", "Type", });
internal_static_Ydb_ValuePair_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_Ydb_ValuePair_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_ValuePair_descriptor,
new java.lang.String[] { "Key", "Payload", });
internal_static_Ydb_Value_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_Ydb_Value_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Value_descriptor,
new java.lang.String[] { "BoolValue", "Int32Value", "Uint32Value", "Int64Value", "Uint64Value", "FloatValue", "DoubleValue", "BytesValue", "TextValue", "NullFlagValue", "NestedValue", "Low128", "Items", "Pairs", "VariantIndex", "High128", "Value", });
internal_static_Ydb_TypedValue_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_Ydb_TypedValue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_TypedValue_descriptor,
new java.lang.String[] { "Type", "Value", });
internal_static_Ydb_Column_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_Ydb_Column_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Column_descriptor,
new java.lang.String[] { "Name", "Type", });
internal_static_Ydb_ResultSet_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_Ydb_ResultSet_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_ResultSet_descriptor,
new java.lang.String[] { "Columns", "Rows", "Truncated", });
com.google.protobuf.StructProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}