Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.stargate.proto.QueryOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: query.proto
package io.stargate.proto;
public final class QueryOuterClass {
private QueryOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
*
* The consistency level used to execute a request.
*
*
* Protobuf enum {@code stargate.Consistency}
*/
public enum Consistency
implements com.google.protobuf.ProtocolMessageEnum {
/**
* ANY = 0;
*/
ANY(0),
/**
* ONE = 1;
*/
ONE(1),
/**
* TWO = 2;
*/
TWO(2),
/**
* THREE = 3;
*/
THREE(3),
/**
* QUORUM = 4;
*/
QUORUM(4),
/**
* ALL = 5;
*/
ALL(5),
/**
* LOCAL_QUORUM = 6;
*/
LOCAL_QUORUM(6),
/**
* EACH_QUORUM = 7;
*/
EACH_QUORUM(7),
/**
* SERIAL = 8;
*/
SERIAL(8),
/**
* LOCAL_SERIAL = 9;
*/
LOCAL_SERIAL(9),
/**
* LOCAL_ONE = 10;
*/
LOCAL_ONE(10),
UNRECOGNIZED(-1),
;
/**
* ANY = 0;
*/
public static final int ANY_VALUE = 0;
/**
* ONE = 1;
*/
public static final int ONE_VALUE = 1;
/**
* TWO = 2;
*/
public static final int TWO_VALUE = 2;
/**
* THREE = 3;
*/
public static final int THREE_VALUE = 3;
/**
* QUORUM = 4;
*/
public static final int QUORUM_VALUE = 4;
/**
* ALL = 5;
*/
public static final int ALL_VALUE = 5;
/**
* LOCAL_QUORUM = 6;
*/
public static final int LOCAL_QUORUM_VALUE = 6;
/**
* EACH_QUORUM = 7;
*/
public static final int EACH_QUORUM_VALUE = 7;
/**
* SERIAL = 8;
*/
public static final int SERIAL_VALUE = 8;
/**
* LOCAL_SERIAL = 9;
*/
public static final int LOCAL_SERIAL_VALUE = 9;
/**
* LOCAL_ONE = 10;
*/
public static final int LOCAL_ONE_VALUE = 10;
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 Consistency 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 Consistency forNumber(int value) {
switch (value) {
case 0: return ANY;
case 1: return ONE;
case 2: return TWO;
case 3: return THREE;
case 4: return QUORUM;
case 5: return ALL;
case 6: return LOCAL_QUORUM;
case 7: return EACH_QUORUM;
case 8: return SERIAL;
case 9: return LOCAL_SERIAL;
case 10: return LOCAL_ONE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Consistency> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Consistency findValueByNumber(int number) {
return Consistency.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 io.stargate.proto.QueryOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final Consistency[] VALUES = values();
public static Consistency 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 Consistency(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:stargate.Consistency)
}
public interface ConsistencyValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.ConsistencyValue)
com.google.protobuf.MessageOrBuilder {
/**
* .stargate.Consistency value = 1;
* @return The enum numeric value on the wire for value.
*/
int getValueValue();
/**
* .stargate.Consistency value = 1;
* @return The value.
*/
io.stargate.proto.QueryOuterClass.Consistency getValue();
}
/**
*
* A wrapper message for Consistency, for cases where the consistency level can be unset.
*
*
* Protobuf type {@code stargate.ConsistencyValue}
*/
public static final class ConsistencyValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.ConsistencyValue)
ConsistencyValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConsistencyValue.newBuilder() to construct.
private ConsistencyValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConsistencyValue() {
value_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConsistencyValue();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConsistencyValue(
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();
value_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_ConsistencyValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_ConsistencyValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.ConsistencyValue.class, io.stargate.proto.QueryOuterClass.ConsistencyValue.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
private int value_;
/**
* .stargate.Consistency value = 1;
* @return The enum numeric value on the wire for value.
*/
@java.lang.Override public int getValueValue() {
return value_;
}
/**
* .stargate.Consistency value = 1;
* @return The value.
*/
@java.lang.Override public io.stargate.proto.QueryOuterClass.Consistency getValue() {
@SuppressWarnings("deprecation")
io.stargate.proto.QueryOuterClass.Consistency result = io.stargate.proto.QueryOuterClass.Consistency.valueOf(value_);
return result == null ? io.stargate.proto.QueryOuterClass.Consistency.UNRECOGNIZED : result;
}
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 (value_ != io.stargate.proto.QueryOuterClass.Consistency.ANY.getNumber()) {
output.writeEnum(1, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (value_ != io.stargate.proto.QueryOuterClass.Consistency.ANY.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, value_);
}
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 io.stargate.proto.QueryOuterClass.ConsistencyValue)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.ConsistencyValue other = (io.stargate.proto.QueryOuterClass.ConsistencyValue) obj;
if (value_ != other.value_) 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) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + value_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.ConsistencyValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.ConsistencyValue parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.ConsistencyValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.ConsistencyValue parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.ConsistencyValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.ConsistencyValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.ConsistencyValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.ConsistencyValue 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 io.stargate.proto.QueryOuterClass.ConsistencyValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.ConsistencyValue 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 io.stargate.proto.QueryOuterClass.ConsistencyValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.ConsistencyValue 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(io.stargate.proto.QueryOuterClass.ConsistencyValue 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;
}
/**
*
* A wrapper message for Consistency, for cases where the consistency level can be unset.
*
*
* Protobuf type {@code stargate.ConsistencyValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.ConsistencyValue)
io.stargate.proto.QueryOuterClass.ConsistencyValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_ConsistencyValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_ConsistencyValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.ConsistencyValue.class, io.stargate.proto.QueryOuterClass.ConsistencyValue.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.ConsistencyValue.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();
value_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_ConsistencyValue_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ConsistencyValue getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.ConsistencyValue.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ConsistencyValue build() {
io.stargate.proto.QueryOuterClass.ConsistencyValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ConsistencyValue buildPartial() {
io.stargate.proto.QueryOuterClass.ConsistencyValue result = new io.stargate.proto.QueryOuterClass.ConsistencyValue(this);
result.value_ = value_;
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 io.stargate.proto.QueryOuterClass.ConsistencyValue) {
return mergeFrom((io.stargate.proto.QueryOuterClass.ConsistencyValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.ConsistencyValue other) {
if (other == io.stargate.proto.QueryOuterClass.ConsistencyValue.getDefaultInstance()) return this;
if (other.value_ != 0) {
setValueValue(other.getValueValue());
}
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 {
io.stargate.proto.QueryOuterClass.ConsistencyValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.ConsistencyValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int value_ = 0;
/**
* .stargate.Consistency value = 1;
* @return The enum numeric value on the wire for value.
*/
@java.lang.Override public int getValueValue() {
return value_;
}
/**
* .stargate.Consistency value = 1;
* @param value The enum numeric value on the wire for value to set.
* @return This builder for chaining.
*/
public Builder setValueValue(int value) {
value_ = value;
onChanged();
return this;
}
/**
* .stargate.Consistency value = 1;
* @return The value.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Consistency getValue() {
@SuppressWarnings("deprecation")
io.stargate.proto.QueryOuterClass.Consistency result = io.stargate.proto.QueryOuterClass.Consistency.valueOf(value_);
return result == null ? io.stargate.proto.QueryOuterClass.Consistency.UNRECOGNIZED : result;
}
/**
* .stargate.Consistency value = 1;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(io.stargate.proto.QueryOuterClass.Consistency value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value.getNumber();
onChanged();
return this;
}
/**
* .stargate.Consistency value = 1;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = 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:stargate.ConsistencyValue)
}
// @@protoc_insertion_point(class_scope:stargate.ConsistencyValue)
private static final io.stargate.proto.QueryOuterClass.ConsistencyValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.ConsistencyValue();
}
public static io.stargate.proto.QueryOuterClass.ConsistencyValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConsistencyValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConsistencyValue(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 io.stargate.proto.QueryOuterClass.ConsistencyValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CollectionOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.Collection)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .stargate.Value elements = 1;
*/
java.util.List
getElementsList();
/**
* repeated .stargate.Value elements = 1;
*/
io.stargate.proto.QueryOuterClass.Value getElements(int index);
/**
* repeated .stargate.Value elements = 1;
*/
int getElementsCount();
/**
* repeated .stargate.Value elements = 1;
*/
java.util.List extends io.stargate.proto.QueryOuterClass.ValueOrBuilder>
getElementsOrBuilderList();
/**
* repeated .stargate.Value elements = 1;
*/
io.stargate.proto.QueryOuterClass.ValueOrBuilder getElementsOrBuilder(
int index);
}
/**
*
* A CQL value for a collection type.
* For lists, sets and tuples, this contains the collection elements.
* For maps, this contains the key and values in order (e.g. key1, value1, key2, value2...)
*
*
* Protobuf type {@code stargate.Collection}
*/
public static final class Collection extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.Collection)
CollectionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Collection.newBuilder() to construct.
private Collection(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Collection() {
elements_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Collection();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Collection(
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(io.stargate.proto.QueryOuterClass.Value.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 io.stargate.proto.QueryOuterClass.internal_static_stargate_Collection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Collection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Collection.class, io.stargate.proto.QueryOuterClass.Collection.Builder.class);
}
public static final int ELEMENTS_FIELD_NUMBER = 1;
private java.util.List elements_;
/**
* repeated .stargate.Value elements = 1;
*/
@java.lang.Override
public java.util.List getElementsList() {
return elements_;
}
/**
* repeated .stargate.Value elements = 1;
*/
@java.lang.Override
public java.util.List extends io.stargate.proto.QueryOuterClass.ValueOrBuilder>
getElementsOrBuilderList() {
return elements_;
}
/**
* repeated .stargate.Value elements = 1;
*/
@java.lang.Override
public int getElementsCount() {
return elements_.size();
}
/**
* repeated .stargate.Value elements = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value getElements(int index) {
return elements_.get(index);
}
/**
* repeated .stargate.Value elements = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ValueOrBuilder 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 io.stargate.proto.QueryOuterClass.Collection)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.Collection other = (io.stargate.proto.QueryOuterClass.Collection) 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 io.stargate.proto.QueryOuterClass.Collection parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Collection parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Collection parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Collection parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Collection parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Collection parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Collection parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Collection 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 io.stargate.proto.QueryOuterClass.Collection parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Collection 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 io.stargate.proto.QueryOuterClass.Collection parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Collection 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(io.stargate.proto.QueryOuterClass.Collection 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;
}
/**
*
* A CQL value for a collection type.
* For lists, sets and tuples, this contains the collection elements.
* For maps, this contains the key and values in order (e.g. key1, value1, key2, value2...)
*
*
* Protobuf type {@code stargate.Collection}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.Collection)
io.stargate.proto.QueryOuterClass.CollectionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Collection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Collection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Collection.class, io.stargate.proto.QueryOuterClass.Collection.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.Collection.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 io.stargate.proto.QueryOuterClass.internal_static_stargate_Collection_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Collection getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.Collection.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Collection build() {
io.stargate.proto.QueryOuterClass.Collection result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Collection buildPartial() {
io.stargate.proto.QueryOuterClass.Collection result = new io.stargate.proto.QueryOuterClass.Collection(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 io.stargate.proto.QueryOuterClass.Collection) {
return mergeFrom((io.stargate.proto.QueryOuterClass.Collection)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.Collection other) {
if (other == io.stargate.proto.QueryOuterClass.Collection.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 {
io.stargate.proto.QueryOuterClass.Collection parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.Collection) 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<
io.stargate.proto.QueryOuterClass.Value, io.stargate.proto.QueryOuterClass.Value.Builder, io.stargate.proto.QueryOuterClass.ValueOrBuilder> elementsBuilder_;
/**
* repeated .stargate.Value elements = 1;
*/
public java.util.List getElementsList() {
if (elementsBuilder_ == null) {
return java.util.Collections.unmodifiableList(elements_);
} else {
return elementsBuilder_.getMessageList();
}
}
/**
* repeated .stargate.Value elements = 1;
*/
public int getElementsCount() {
if (elementsBuilder_ == null) {
return elements_.size();
} else {
return elementsBuilder_.getCount();
}
}
/**
* repeated .stargate.Value elements = 1;
*/
public io.stargate.proto.QueryOuterClass.Value getElements(int index) {
if (elementsBuilder_ == null) {
return elements_.get(index);
} else {
return elementsBuilder_.getMessage(index);
}
}
/**
* repeated .stargate.Value elements = 1;
*/
public Builder setElements(
int index, io.stargate.proto.QueryOuterClass.Value value) {
if (elementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureElementsIsMutable();
elements_.set(index, value);
onChanged();
} else {
elementsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .stargate.Value elements = 1;
*/
public Builder setElements(
int index, io.stargate.proto.QueryOuterClass.Value.Builder builderForValue) {
if (elementsBuilder_ == null) {
ensureElementsIsMutable();
elements_.set(index, builderForValue.build());
onChanged();
} else {
elementsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .stargate.Value elements = 1;
*/
public Builder addElements(io.stargate.proto.QueryOuterClass.Value value) {
if (elementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureElementsIsMutable();
elements_.add(value);
onChanged();
} else {
elementsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .stargate.Value elements = 1;
*/
public Builder addElements(
int index, io.stargate.proto.QueryOuterClass.Value value) {
if (elementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureElementsIsMutable();
elements_.add(index, value);
onChanged();
} else {
elementsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .stargate.Value elements = 1;
*/
public Builder addElements(
io.stargate.proto.QueryOuterClass.Value.Builder builderForValue) {
if (elementsBuilder_ == null) {
ensureElementsIsMutable();
elements_.add(builderForValue.build());
onChanged();
} else {
elementsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .stargate.Value elements = 1;
*/
public Builder addElements(
int index, io.stargate.proto.QueryOuterClass.Value.Builder builderForValue) {
if (elementsBuilder_ == null) {
ensureElementsIsMutable();
elements_.add(index, builderForValue.build());
onChanged();
} else {
elementsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .stargate.Value elements = 1;
*/
public Builder addAllElements(
java.lang.Iterable extends io.stargate.proto.QueryOuterClass.Value> values) {
if (elementsBuilder_ == null) {
ensureElementsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, elements_);
onChanged();
} else {
elementsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .stargate.Value elements = 1;
*/
public Builder clearElements() {
if (elementsBuilder_ == null) {
elements_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
elementsBuilder_.clear();
}
return this;
}
/**
* repeated .stargate.Value elements = 1;
*/
public Builder removeElements(int index) {
if (elementsBuilder_ == null) {
ensureElementsIsMutable();
elements_.remove(index);
onChanged();
} else {
elementsBuilder_.remove(index);
}
return this;
}
/**
* repeated .stargate.Value elements = 1;
*/
public io.stargate.proto.QueryOuterClass.Value.Builder getElementsBuilder(
int index) {
return getElementsFieldBuilder().getBuilder(index);
}
/**
* repeated .stargate.Value elements = 1;
*/
public io.stargate.proto.QueryOuterClass.ValueOrBuilder getElementsOrBuilder(
int index) {
if (elementsBuilder_ == null) {
return elements_.get(index); } else {
return elementsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .stargate.Value elements = 1;
*/
public java.util.List extends io.stargate.proto.QueryOuterClass.ValueOrBuilder>
getElementsOrBuilderList() {
if (elementsBuilder_ != null) {
return elementsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(elements_);
}
}
/**
* repeated .stargate.Value elements = 1;
*/
public io.stargate.proto.QueryOuterClass.Value.Builder addElementsBuilder() {
return getElementsFieldBuilder().addBuilder(
io.stargate.proto.QueryOuterClass.Value.getDefaultInstance());
}
/**
* repeated .stargate.Value elements = 1;
*/
public io.stargate.proto.QueryOuterClass.Value.Builder addElementsBuilder(
int index) {
return getElementsFieldBuilder().addBuilder(
index, io.stargate.proto.QueryOuterClass.Value.getDefaultInstance());
}
/**
* repeated .stargate.Value elements = 1;
*/
public java.util.List
getElementsBuilderList() {
return getElementsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Value, io.stargate.proto.QueryOuterClass.Value.Builder, io.stargate.proto.QueryOuterClass.ValueOrBuilder>
getElementsFieldBuilder() {
if (elementsBuilder_ == null) {
elementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Value, io.stargate.proto.QueryOuterClass.Value.Builder, io.stargate.proto.QueryOuterClass.ValueOrBuilder>(
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:stargate.Collection)
}
// @@protoc_insertion_point(class_scope:stargate.Collection)
private static final io.stargate.proto.QueryOuterClass.Collection DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.Collection();
}
public static io.stargate.proto.QueryOuterClass.Collection getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Collection parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Collection(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 io.stargate.proto.QueryOuterClass.Collection getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UdtValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.UdtValue)
com.google.protobuf.MessageOrBuilder {
/**
* map<string, .stargate.Value> fields = 1;
*/
int getFieldsCount();
/**
* map<string, .stargate.Value> fields = 1;
*/
boolean containsFields(
java.lang.String key);
/**
* Use {@link #getFieldsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getFields();
/**
* map<string, .stargate.Value> fields = 1;
*/
java.util.Map
getFieldsMap();
/**
* map<string, .stargate.Value> fields = 1;
*/
io.stargate.proto.QueryOuterClass.Value getFieldsOrDefault(
java.lang.String key,
io.stargate.proto.QueryOuterClass.Value defaultValue);
/**
* map<string, .stargate.Value> fields = 1;
*/
io.stargate.proto.QueryOuterClass.Value getFieldsOrThrow(
java.lang.String key);
}
/**
*
* A value for a CQL user-defined type.
*
*
* Protobuf type {@code stargate.UdtValue}
*/
public static final class UdtValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.UdtValue)
UdtValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use UdtValue.newBuilder() to construct.
private UdtValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UdtValue() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UdtValue();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UdtValue(
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)) {
fields_ = com.google.protobuf.MapField.newMapField(
FieldsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
fields__ = input.readMessage(
FieldsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
fields_.getMutableMap().put(
fields__.getKey(), fields__.getValue());
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 io.stargate.proto.QueryOuterClass.internal_static_stargate_UdtValue_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetFields();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_UdtValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.UdtValue.class, io.stargate.proto.QueryOuterClass.UdtValue.Builder.class);
}
public static final int FIELDS_FIELD_NUMBER = 1;
private static final class FieldsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, io.stargate.proto.QueryOuterClass.Value> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
io.stargate.proto.QueryOuterClass.internal_static_stargate_UdtValue_FieldsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
io.stargate.proto.QueryOuterClass.Value.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, io.stargate.proto.QueryOuterClass.Value> fields_;
private com.google.protobuf.MapField
internalGetFields() {
if (fields_ == null) {
return com.google.protobuf.MapField.emptyMapField(
FieldsDefaultEntryHolder.defaultEntry);
}
return fields_;
}
public int getFieldsCount() {
return internalGetFields().getMap().size();
}
/**
* map<string, .stargate.Value> fields = 1;
*/
@java.lang.Override
public boolean containsFields(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetFields().getMap().containsKey(key);
}
/**
* Use {@link #getFieldsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getFields() {
return getFieldsMap();
}
/**
* map<string, .stargate.Value> fields = 1;
*/
@java.lang.Override
public java.util.Map getFieldsMap() {
return internalGetFields().getMap();
}
/**
* map<string, .stargate.Value> fields = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value getFieldsOrDefault(
java.lang.String key,
io.stargate.proto.QueryOuterClass.Value defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetFields().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .stargate.Value> fields = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value getFieldsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetFields().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 {
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetFields(),
FieldsDefaultEntryHolder.defaultEntry,
1);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetFields().getMap().entrySet()) {
com.google.protobuf.MapEntry
fields__ = FieldsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, fields__);
}
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 io.stargate.proto.QueryOuterClass.UdtValue)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.UdtValue other = (io.stargate.proto.QueryOuterClass.UdtValue) obj;
if (!internalGetFields().equals(
other.internalGetFields())) 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 (!internalGetFields().getMap().isEmpty()) {
hash = (37 * hash) + FIELDS_FIELD_NUMBER;
hash = (53 * hash) + internalGetFields().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.UdtValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.UdtValue parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.UdtValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.UdtValue parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.UdtValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.UdtValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.UdtValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.UdtValue 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 io.stargate.proto.QueryOuterClass.UdtValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.UdtValue 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 io.stargate.proto.QueryOuterClass.UdtValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.UdtValue 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(io.stargate.proto.QueryOuterClass.UdtValue 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;
}
/**
*
* A value for a CQL user-defined type.
*
*
* Protobuf type {@code stargate.UdtValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.UdtValue)
io.stargate.proto.QueryOuterClass.UdtValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_UdtValue_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetFields();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableFields();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_UdtValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.UdtValue.class, io.stargate.proto.QueryOuterClass.UdtValue.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.UdtValue.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();
internalGetMutableFields().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_UdtValue_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.UdtValue getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.UdtValue.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.UdtValue build() {
io.stargate.proto.QueryOuterClass.UdtValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.UdtValue buildPartial() {
io.stargate.proto.QueryOuterClass.UdtValue result = new io.stargate.proto.QueryOuterClass.UdtValue(this);
int from_bitField0_ = bitField0_;
result.fields_ = internalGetFields();
result.fields_.makeImmutable();
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 io.stargate.proto.QueryOuterClass.UdtValue) {
return mergeFrom((io.stargate.proto.QueryOuterClass.UdtValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.UdtValue other) {
if (other == io.stargate.proto.QueryOuterClass.UdtValue.getDefaultInstance()) return this;
internalGetMutableFields().mergeFrom(
other.internalGetFields());
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 {
io.stargate.proto.QueryOuterClass.UdtValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.UdtValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.MapField<
java.lang.String, io.stargate.proto.QueryOuterClass.Value> fields_;
private com.google.protobuf.MapField
internalGetFields() {
if (fields_ == null) {
return com.google.protobuf.MapField.emptyMapField(
FieldsDefaultEntryHolder.defaultEntry);
}
return fields_;
}
private com.google.protobuf.MapField
internalGetMutableFields() {
onChanged();;
if (fields_ == null) {
fields_ = com.google.protobuf.MapField.newMapField(
FieldsDefaultEntryHolder.defaultEntry);
}
if (!fields_.isMutable()) {
fields_ = fields_.copy();
}
return fields_;
}
public int getFieldsCount() {
return internalGetFields().getMap().size();
}
/**
* map<string, .stargate.Value> fields = 1;
*/
@java.lang.Override
public boolean containsFields(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetFields().getMap().containsKey(key);
}
/**
* Use {@link #getFieldsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getFields() {
return getFieldsMap();
}
/**
* map<string, .stargate.Value> fields = 1;
*/
@java.lang.Override
public java.util.Map getFieldsMap() {
return internalGetFields().getMap();
}
/**
* map<string, .stargate.Value> fields = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value getFieldsOrDefault(
java.lang.String key,
io.stargate.proto.QueryOuterClass.Value defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetFields().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .stargate.Value> fields = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value getFieldsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetFields().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearFields() {
internalGetMutableFields().getMutableMap()
.clear();
return this;
}
/**
* map<string, .stargate.Value> fields = 1;
*/
public Builder removeFields(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableFields().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableFields() {
return internalGetMutableFields().getMutableMap();
}
/**
* map<string, .stargate.Value> fields = 1;
*/
public Builder putFields(
java.lang.String key,
io.stargate.proto.QueryOuterClass.Value value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableFields().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, .stargate.Value> fields = 1;
*/
public Builder putAllFields(
java.util.Map values) {
internalGetMutableFields().getMutableMap()
.putAll(values);
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:stargate.UdtValue)
}
// @@protoc_insertion_point(class_scope:stargate.UdtValue)
private static final io.stargate.proto.QueryOuterClass.UdtValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.UdtValue();
}
public static io.stargate.proto.QueryOuterClass.UdtValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UdtValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UdtValue(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 io.stargate.proto.QueryOuterClass.UdtValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UuidOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.Uuid)
com.google.protobuf.MessageOrBuilder {
/**
* bytes value = 1;
* @return The value.
*/
com.google.protobuf.ByteString getValue();
}
/**
*
* A 128-bit (16-byte) UUID type encoded using big-endian byte order. For example, the UUID
* "00112233-4455-6677-8899-aabbccddeeff" would be store as the bytes:
* | 0x00 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88 0x99 0xAA 0xBB 0xCC 0xDD 0xEE 0xFF |
* | MSB LSB |
*
*
* Protobuf type {@code stargate.Uuid}
*/
public static final class Uuid extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.Uuid)
UuidOrBuilder {
private static final long serialVersionUID = 0L;
// Use Uuid.newBuilder() to construct.
private Uuid(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Uuid() {
value_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Uuid();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Uuid(
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: {
value_ = input.readBytes();
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 io.stargate.proto.QueryOuterClass.internal_static_stargate_Uuid_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Uuid_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Uuid.class, io.stargate.proto.QueryOuterClass.Uuid.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString value_;
/**
* bytes value = 1;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!value_.isEmpty()) {
output.writeBytes(1, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, value_);
}
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 io.stargate.proto.QueryOuterClass.Uuid)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.Uuid other = (io.stargate.proto.QueryOuterClass.Uuid) obj;
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();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.Uuid parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Uuid parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Uuid parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Uuid parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Uuid parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Uuid parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Uuid parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Uuid 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 io.stargate.proto.QueryOuterClass.Uuid parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Uuid 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 io.stargate.proto.QueryOuterClass.Uuid parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Uuid 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(io.stargate.proto.QueryOuterClass.Uuid 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;
}
/**
*
* A 128-bit (16-byte) UUID type encoded using big-endian byte order. For example, the UUID
* "00112233-4455-6677-8899-aabbccddeeff" would be store as the bytes:
* | 0x00 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88 0x99 0xAA 0xBB 0xCC 0xDD 0xEE 0xFF |
* | MSB LSB |
*
*
* Protobuf type {@code stargate.Uuid}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.Uuid)
io.stargate.proto.QueryOuterClass.UuidOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Uuid_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Uuid_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Uuid.class, io.stargate.proto.QueryOuterClass.Uuid.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.Uuid.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();
value_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Uuid_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Uuid getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.Uuid.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Uuid build() {
io.stargate.proto.QueryOuterClass.Uuid result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Uuid buildPartial() {
io.stargate.proto.QueryOuterClass.Uuid result = new io.stargate.proto.QueryOuterClass.Uuid(this);
result.value_ = value_;
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 io.stargate.proto.QueryOuterClass.Uuid) {
return mergeFrom((io.stargate.proto.QueryOuterClass.Uuid)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.Uuid other) {
if (other == io.stargate.proto.QueryOuterClass.Uuid.getDefaultInstance()) return this;
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(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 {
io.stargate.proto.QueryOuterClass.Uuid parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.Uuid) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes value = 1;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
* bytes value = 1;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
* bytes value = 1;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
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:stargate.Uuid)
}
// @@protoc_insertion_point(class_scope:stargate.Uuid)
private static final io.stargate.proto.QueryOuterClass.Uuid DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.Uuid();
}
public static io.stargate.proto.QueryOuterClass.Uuid getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Uuid parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Uuid(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 io.stargate.proto.QueryOuterClass.Uuid getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface InetOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.Inet)
com.google.protobuf.MessageOrBuilder {
/**
* bytes value = 1;
* @return The value.
*/
com.google.protobuf.ByteString getValue();
}
/**
*
* Either an IPv4 or IPv6 address stored as either 4 or 16 bytes, respectively. The addresses are
* encoded using big-endian byte order.
*
*
* Protobuf type {@code stargate.Inet}
*/
public static final class Inet extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.Inet)
InetOrBuilder {
private static final long serialVersionUID = 0L;
// Use Inet.newBuilder() to construct.
private Inet(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Inet() {
value_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Inet();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Inet(
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: {
value_ = input.readBytes();
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 io.stargate.proto.QueryOuterClass.internal_static_stargate_Inet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Inet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Inet.class, io.stargate.proto.QueryOuterClass.Inet.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString value_;
/**
* bytes value = 1;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!value_.isEmpty()) {
output.writeBytes(1, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, value_);
}
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 io.stargate.proto.QueryOuterClass.Inet)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.Inet other = (io.stargate.proto.QueryOuterClass.Inet) obj;
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();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.Inet parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Inet parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Inet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Inet parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Inet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Inet parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Inet parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Inet 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 io.stargate.proto.QueryOuterClass.Inet parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Inet 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 io.stargate.proto.QueryOuterClass.Inet parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Inet 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(io.stargate.proto.QueryOuterClass.Inet 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;
}
/**
*
* Either an IPv4 or IPv6 address stored as either 4 or 16 bytes, respectively. The addresses are
* encoded using big-endian byte order.
*
*
* Protobuf type {@code stargate.Inet}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.Inet)
io.stargate.proto.QueryOuterClass.InetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Inet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Inet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Inet.class, io.stargate.proto.QueryOuterClass.Inet.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.Inet.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();
value_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Inet_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Inet getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.Inet.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Inet build() {
io.stargate.proto.QueryOuterClass.Inet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Inet buildPartial() {
io.stargate.proto.QueryOuterClass.Inet result = new io.stargate.proto.QueryOuterClass.Inet(this);
result.value_ = value_;
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 io.stargate.proto.QueryOuterClass.Inet) {
return mergeFrom((io.stargate.proto.QueryOuterClass.Inet)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.Inet other) {
if (other == io.stargate.proto.QueryOuterClass.Inet.getDefaultInstance()) return this;
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(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 {
io.stargate.proto.QueryOuterClass.Inet parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.Inet) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes value = 1;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
* bytes value = 1;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
* bytes value = 1;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
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:stargate.Inet)
}
// @@protoc_insertion_point(class_scope:stargate.Inet)
private static final io.stargate.proto.QueryOuterClass.Inet DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.Inet();
}
public static io.stargate.proto.QueryOuterClass.Inet getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Inet parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Inet(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 io.stargate.proto.QueryOuterClass.Inet getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface VarintOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.Varint)
com.google.protobuf.MessageOrBuilder {
/**
* bytes value = 1;
* @return The value.
*/
com.google.protobuf.ByteString getValue();
}
/**
* Protobuf type {@code stargate.Varint}
*/
public static final class Varint extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.Varint)
VarintOrBuilder {
private static final long serialVersionUID = 0L;
// Use Varint.newBuilder() to construct.
private Varint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Varint() {
value_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Varint();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Varint(
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: {
value_ = input.readBytes();
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 io.stargate.proto.QueryOuterClass.internal_static_stargate_Varint_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Varint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Varint.class, io.stargate.proto.QueryOuterClass.Varint.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString value_;
/**
* bytes value = 1;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!value_.isEmpty()) {
output.writeBytes(1, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, value_);
}
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 io.stargate.proto.QueryOuterClass.Varint)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.Varint other = (io.stargate.proto.QueryOuterClass.Varint) obj;
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();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.Varint parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Varint parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Varint parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Varint parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Varint parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Varint parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Varint parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Varint 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 io.stargate.proto.QueryOuterClass.Varint parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Varint 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 io.stargate.proto.QueryOuterClass.Varint parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Varint 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(io.stargate.proto.QueryOuterClass.Varint 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 stargate.Varint}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.Varint)
io.stargate.proto.QueryOuterClass.VarintOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Varint_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Varint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Varint.class, io.stargate.proto.QueryOuterClass.Varint.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.Varint.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();
value_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Varint_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Varint getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.Varint.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Varint build() {
io.stargate.proto.QueryOuterClass.Varint result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Varint buildPartial() {
io.stargate.proto.QueryOuterClass.Varint result = new io.stargate.proto.QueryOuterClass.Varint(this);
result.value_ = value_;
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 io.stargate.proto.QueryOuterClass.Varint) {
return mergeFrom((io.stargate.proto.QueryOuterClass.Varint)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.Varint other) {
if (other == io.stargate.proto.QueryOuterClass.Varint.getDefaultInstance()) return this;
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(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 {
io.stargate.proto.QueryOuterClass.Varint parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.Varint) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes value = 1;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
* bytes value = 1;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
* bytes value = 1;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
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:stargate.Varint)
}
// @@protoc_insertion_point(class_scope:stargate.Varint)
private static final io.stargate.proto.QueryOuterClass.Varint DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.Varint();
}
public static io.stargate.proto.QueryOuterClass.Varint getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Varint parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Varint(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 io.stargate.proto.QueryOuterClass.Varint getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DecimalOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.Decimal)
com.google.protobuf.MessageOrBuilder {
/**
* uint32 scale = 1;
* @return The scale.
*/
int getScale();
/**
* bytes value = 3;
* @return The value.
*/
com.google.protobuf.ByteString getValue();
}
/**
* Protobuf type {@code stargate.Decimal}
*/
public static final class Decimal extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.Decimal)
DecimalOrBuilder {
private static final long serialVersionUID = 0L;
// Use Decimal.newBuilder() to construct.
private Decimal(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Decimal() {
value_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Decimal();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Decimal(
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: {
scale_ = input.readUInt32();
break;
}
case 26: {
value_ = input.readBytes();
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 io.stargate.proto.QueryOuterClass.internal_static_stargate_Decimal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Decimal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Decimal.class, io.stargate.proto.QueryOuterClass.Decimal.Builder.class);
}
public static final int SCALE_FIELD_NUMBER = 1;
private int scale_;
/**
* uint32 scale = 1;
* @return The scale.
*/
@java.lang.Override
public int getScale() {
return scale_;
}
public static final int VALUE_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString value_;
/**
* bytes value = 3;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (scale_ != 0) {
output.writeUInt32(1, scale_);
}
if (!value_.isEmpty()) {
output.writeBytes(3, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (scale_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, scale_);
}
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, value_);
}
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 io.stargate.proto.QueryOuterClass.Decimal)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.Decimal other = (io.stargate.proto.QueryOuterClass.Decimal) obj;
if (getScale()
!= other.getScale()) return false;
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();
hash = (37 * hash) + SCALE_FIELD_NUMBER;
hash = (53 * hash) + getScale();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.Decimal parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Decimal parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Decimal parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Decimal parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Decimal parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Decimal parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Decimal parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Decimal 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 io.stargate.proto.QueryOuterClass.Decimal parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Decimal 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 io.stargate.proto.QueryOuterClass.Decimal parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Decimal 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(io.stargate.proto.QueryOuterClass.Decimal 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 stargate.Decimal}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.Decimal)
io.stargate.proto.QueryOuterClass.DecimalOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Decimal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Decimal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Decimal.class, io.stargate.proto.QueryOuterClass.Decimal.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.Decimal.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();
scale_ = 0;
value_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Decimal_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Decimal getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.Decimal.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Decimal build() {
io.stargate.proto.QueryOuterClass.Decimal result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Decimal buildPartial() {
io.stargate.proto.QueryOuterClass.Decimal result = new io.stargate.proto.QueryOuterClass.Decimal(this);
result.scale_ = scale_;
result.value_ = value_;
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 io.stargate.proto.QueryOuterClass.Decimal) {
return mergeFrom((io.stargate.proto.QueryOuterClass.Decimal)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.Decimal other) {
if (other == io.stargate.proto.QueryOuterClass.Decimal.getDefaultInstance()) return this;
if (other.getScale() != 0) {
setScale(other.getScale());
}
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(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 {
io.stargate.proto.QueryOuterClass.Decimal parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.Decimal) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int scale_ ;
/**
* uint32 scale = 1;
* @return The scale.
*/
@java.lang.Override
public int getScale() {
return scale_;
}
/**
* uint32 scale = 1;
* @param value The scale to set.
* @return This builder for chaining.
*/
public Builder setScale(int value) {
scale_ = value;
onChanged();
return this;
}
/**
* uint32 scale = 1;
* @return This builder for chaining.
*/
public Builder clearScale() {
scale_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes value = 3;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
* bytes value = 3;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
* bytes value = 3;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
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:stargate.Decimal)
}
// @@protoc_insertion_point(class_scope:stargate.Decimal)
private static final io.stargate.proto.QueryOuterClass.Decimal DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.Decimal();
}
public static io.stargate.proto.QueryOuterClass.Decimal getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Decimal parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Decimal(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 io.stargate.proto.QueryOuterClass.Decimal getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DurationOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.Duration)
com.google.protobuf.MessageOrBuilder {
/**
* sint32 months = 1;
* @return The months.
*/
int getMonths();
/**
* sint32 days = 2;
* @return The days.
*/
int getDays();
/**
* sint64 nanos = 3;
* @return The nanos.
*/
long getNanos();
}
/**
* Protobuf type {@code stargate.Duration}
*/
public static final class Duration extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.Duration)
DurationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Duration.newBuilder() to construct.
private Duration(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Duration() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Duration();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Duration(
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: {
months_ = input.readSInt32();
break;
}
case 16: {
days_ = input.readSInt32();
break;
}
case 24: {
nanos_ = input.readSInt64();
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 io.stargate.proto.QueryOuterClass.internal_static_stargate_Duration_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Duration_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Duration.class, io.stargate.proto.QueryOuterClass.Duration.Builder.class);
}
public static final int MONTHS_FIELD_NUMBER = 1;
private int months_;
/**
* sint32 months = 1;
* @return The months.
*/
@java.lang.Override
public int getMonths() {
return months_;
}
public static final int DAYS_FIELD_NUMBER = 2;
private int days_;
/**
* sint32 days = 2;
* @return The days.
*/
@java.lang.Override
public int getDays() {
return days_;
}
public static final int NANOS_FIELD_NUMBER = 3;
private long nanos_;
/**
* sint64 nanos = 3;
* @return The nanos.
*/
@java.lang.Override
public long getNanos() {
return nanos_;
}
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 (months_ != 0) {
output.writeSInt32(1, months_);
}
if (days_ != 0) {
output.writeSInt32(2, days_);
}
if (nanos_ != 0L) {
output.writeSInt64(3, nanos_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (months_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(1, months_);
}
if (days_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(2, days_);
}
if (nanos_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(3, nanos_);
}
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 io.stargate.proto.QueryOuterClass.Duration)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.Duration other = (io.stargate.proto.QueryOuterClass.Duration) obj;
if (getMonths()
!= other.getMonths()) return false;
if (getDays()
!= other.getDays()) return false;
if (getNanos()
!= other.getNanos()) 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) + MONTHS_FIELD_NUMBER;
hash = (53 * hash) + getMonths();
hash = (37 * hash) + DAYS_FIELD_NUMBER;
hash = (53 * hash) + getDays();
hash = (37 * hash) + NANOS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNanos());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.Duration parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Duration parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Duration parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Duration parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Duration parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Duration parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Duration parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Duration 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 io.stargate.proto.QueryOuterClass.Duration parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Duration 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 io.stargate.proto.QueryOuterClass.Duration parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Duration 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(io.stargate.proto.QueryOuterClass.Duration 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 stargate.Duration}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.Duration)
io.stargate.proto.QueryOuterClass.DurationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Duration_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Duration_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Duration.class, io.stargate.proto.QueryOuterClass.Duration.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.Duration.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();
months_ = 0;
days_ = 0;
nanos_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Duration_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Duration getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.Duration.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Duration build() {
io.stargate.proto.QueryOuterClass.Duration result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Duration buildPartial() {
io.stargate.proto.QueryOuterClass.Duration result = new io.stargate.proto.QueryOuterClass.Duration(this);
result.months_ = months_;
result.days_ = days_;
result.nanos_ = nanos_;
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 io.stargate.proto.QueryOuterClass.Duration) {
return mergeFrom((io.stargate.proto.QueryOuterClass.Duration)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.Duration other) {
if (other == io.stargate.proto.QueryOuterClass.Duration.getDefaultInstance()) return this;
if (other.getMonths() != 0) {
setMonths(other.getMonths());
}
if (other.getDays() != 0) {
setDays(other.getDays());
}
if (other.getNanos() != 0L) {
setNanos(other.getNanos());
}
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 {
io.stargate.proto.QueryOuterClass.Duration parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.Duration) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int months_ ;
/**
* sint32 months = 1;
* @return The months.
*/
@java.lang.Override
public int getMonths() {
return months_;
}
/**
* sint32 months = 1;
* @param value The months to set.
* @return This builder for chaining.
*/
public Builder setMonths(int value) {
months_ = value;
onChanged();
return this;
}
/**
* sint32 months = 1;
* @return This builder for chaining.
*/
public Builder clearMonths() {
months_ = 0;
onChanged();
return this;
}
private int days_ ;
/**
* sint32 days = 2;
* @return The days.
*/
@java.lang.Override
public int getDays() {
return days_;
}
/**
* sint32 days = 2;
* @param value The days to set.
* @return This builder for chaining.
*/
public Builder setDays(int value) {
days_ = value;
onChanged();
return this;
}
/**
* sint32 days = 2;
* @return This builder for chaining.
*/
public Builder clearDays() {
days_ = 0;
onChanged();
return this;
}
private long nanos_ ;
/**
* sint64 nanos = 3;
* @return The nanos.
*/
@java.lang.Override
public long getNanos() {
return nanos_;
}
/**
* sint64 nanos = 3;
* @param value The nanos to set.
* @return This builder for chaining.
*/
public Builder setNanos(long value) {
nanos_ = value;
onChanged();
return this;
}
/**
* sint64 nanos = 3;
* @return This builder for chaining.
*/
public Builder clearNanos() {
nanos_ = 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:stargate.Duration)
}
// @@protoc_insertion_point(class_scope:stargate.Duration)
private static final io.stargate.proto.QueryOuterClass.Duration DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.Duration();
}
public static io.stargate.proto.QueryOuterClass.Duration getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Duration parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Duration(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 io.stargate.proto.QueryOuterClass.Duration getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.Value)
com.google.protobuf.MessageOrBuilder {
/**
*
* The CQL value NULL.
*
*
* .stargate.Value.Null null = 1;
* @return Whether the null field is set.
*/
boolean hasNull();
/**
*
* The CQL value NULL.
*
*
* .stargate.Value.Null null = 1;
* @return The null.
*/
io.stargate.proto.QueryOuterClass.Value.Null getNull();
/**
*
* The CQL value NULL.
*
*
* .stargate.Value.Null null = 1;
*/
io.stargate.proto.QueryOuterClass.Value.NullOrBuilder getNullOrBuilder();
/**
*
* An unset value.
* This can only be used for bind values in requests.
*
*
* .stargate.Value.Unset unset = 2;
* @return Whether the unset field is set.
*/
boolean hasUnset();
/**
*
* An unset value.
* This can only be used for bind values in requests.
*
*
* .stargate.Value.Unset unset = 2;
* @return The unset.
*/
io.stargate.proto.QueryOuterClass.Value.Unset getUnset();
/**
*
* An unset value.
* This can only be used for bind values in requests.
*
*
* .stargate.Value.Unset unset = 2;
*/
io.stargate.proto.QueryOuterClass.Value.UnsetOrBuilder getUnsetOrBuilder();
/**
*
* CQL types: tinyint, smallint, int, bigint, counter, timestamp
*
*
* sint64 int = 3;
* @return Whether the int field is set.
*/
boolean hasInt();
/**
*
* CQL types: tinyint, smallint, int, bigint, counter, timestamp
*
*
* sint64 int = 3;
* @return The int.
*/
long getInt();
/**
*
* CQL types: float
*
*
* float float = 4;
* @return Whether the float field is set.
*/
boolean hasFloat();
/**
*
* CQL types: float
*
*
* float float = 4;
* @return The float.
*/
float getFloat();
/**
*
* CQL types: double
*
*
* double double = 5;
* @return Whether the double field is set.
*/
boolean hasDouble();
/**
*
* CQL types: double
*
*
* double double = 5;
* @return The double.
*/
double getDouble();
/**
*
* CQL types: boolean
*
*
* bool boolean = 6;
* @return Whether the boolean field is set.
*/
boolean hasBoolean();
/**
*
* CQL types: boolean
*
*
* bool boolean = 6;
* @return The boolean.
*/
boolean getBoolean();
/**
*
* CQL types: ascii, varchar, text
*
*
* string string = 7;
* @return Whether the string field is set.
*/
boolean hasString();
/**
*
* CQL types: ascii, varchar, text
*
*
* string string = 7;
* @return The string.
*/
java.lang.String getString();
/**
*
* CQL types: ascii, varchar, text
*
*
* string string = 7;
* @return The bytes for string.
*/
com.google.protobuf.ByteString
getStringBytes();
/**
*
* CQL types: blob, custom
*
*
* bytes bytes = 8;
* @return Whether the bytes field is set.
*/
boolean hasBytes();
/**
*
* CQL types: blob, custom
*
*
* bytes bytes = 8;
* @return The bytes.
*/
com.google.protobuf.ByteString getBytes();
/**
*
* CQL types: inet
*
*
* .stargate.Inet inet = 9;
* @return Whether the inet field is set.
*/
boolean hasInet();
/**
*
* CQL types: inet
*
*
* .stargate.Inet inet = 9;
* @return The inet.
*/
io.stargate.proto.QueryOuterClass.Inet getInet();
/**
*
* CQL types: inet
*
*
* .stargate.Inet inet = 9;
*/
io.stargate.proto.QueryOuterClass.InetOrBuilder getInetOrBuilder();
/**
*
* CQL types: uuid, timeuuid
*
*
* .stargate.Uuid uuid = 10;
* @return Whether the uuid field is set.
*/
boolean hasUuid();
/**
*
* CQL types: uuid, timeuuid
*
*
* .stargate.Uuid uuid = 10;
* @return The uuid.
*/
io.stargate.proto.QueryOuterClass.Uuid getUuid();
/**
*
* CQL types: uuid, timeuuid
*
*
* .stargate.Uuid uuid = 10;
*/
io.stargate.proto.QueryOuterClass.UuidOrBuilder getUuidOrBuilder();
/**
*
* CQL types: date
* An unsigned integer representing days with Unix epoch (January, 1 1970) at 2^31.
* Examples:
* 0: -5877641-06-23
* 2^31: 1970-1-1
* 2^32: 5881580-07-11
*
*
* uint32 date = 11;
* @return Whether the date field is set.
*/
boolean hasDate();
/**
*
* CQL types: date
* An unsigned integer representing days with Unix epoch (January, 1 1970) at 2^31.
* Examples:
* 0: -5877641-06-23
* 2^31: 1970-1-1
* 2^32: 5881580-07-11
*
*
* uint32 date = 11;
* @return The date.
*/
int getDate();
/**
*
* CQL types: time
* An unsigned integer representing the number of nanoseconds since midnight. Valid values are
* in the range 0 to 86399999999999 (inclusive).
*
*
* uint64 time = 12;
* @return Whether the time field is set.
*/
boolean hasTime();
/**
*
* CQL types: time
* An unsigned integer representing the number of nanoseconds since midnight. Valid values are
* in the range 0 to 86399999999999 (inclusive).
*
*
* uint64 time = 12;
* @return The time.
*/
long getTime();
/**
*
* CQL types: duration
*
*
* .stargate.Duration duration = 17;
* @return Whether the duration field is set.
*/
boolean hasDuration();
/**
*
* CQL types: duration
*
*
* .stargate.Duration duration = 17;
* @return The duration.
*/
io.stargate.proto.QueryOuterClass.Duration getDuration();
/**
*
* CQL types: duration
*
*
* .stargate.Duration duration = 17;
*/
io.stargate.proto.QueryOuterClass.DurationOrBuilder getDurationOrBuilder();
/**
*
* CQL types: list, set, map, tuple
*
*
* .stargate.Collection collection = 13;
* @return Whether the collection field is set.
*/
boolean hasCollection();
/**
*
* CQL types: list, set, map, tuple
*
*
* .stargate.Collection collection = 13;
* @return The collection.
*/
io.stargate.proto.QueryOuterClass.Collection getCollection();
/**
*
* CQL types: list, set, map, tuple
*
*
* .stargate.Collection collection = 13;
*/
io.stargate.proto.QueryOuterClass.CollectionOrBuilder getCollectionOrBuilder();
/**
*
* CQL types: user defined types
*
*
* .stargate.UdtValue udt = 14;
* @return Whether the udt field is set.
*/
boolean hasUdt();
/**
*
* CQL types: user defined types
*
*
* .stargate.UdtValue udt = 14;
* @return The udt.
*/
io.stargate.proto.QueryOuterClass.UdtValue getUdt();
/**
*
* CQL types: user defined types
*
*
* .stargate.UdtValue udt = 14;
*/
io.stargate.proto.QueryOuterClass.UdtValueOrBuilder getUdtOrBuilder();
/**
*
* CQL types: varint
*
*
* .stargate.Varint varint = 15;
* @return Whether the varint field is set.
*/
boolean hasVarint();
/**
*
* CQL types: varint
*
*
* .stargate.Varint varint = 15;
* @return The varint.
*/
io.stargate.proto.QueryOuterClass.Varint getVarint();
/**
*
* CQL types: varint
*
*
* .stargate.Varint varint = 15;
*/
io.stargate.proto.QueryOuterClass.VarintOrBuilder getVarintOrBuilder();
/**
*
* CQL types: decimal
*
*
* .stargate.Decimal decimal = 16;
* @return Whether the decimal field is set.
*/
boolean hasDecimal();
/**
*
* CQL types: decimal
*
*
* .stargate.Decimal decimal = 16;
* @return The decimal.
*/
io.stargate.proto.QueryOuterClass.Decimal getDecimal();
/**
*
* CQL types: decimal
*
*
* .stargate.Decimal decimal = 16;
*/
io.stargate.proto.QueryOuterClass.DecimalOrBuilder getDecimalOrBuilder();
public io.stargate.proto.QueryOuterClass.Value.InnerCase getInnerCase();
}
/**
*
* A CQL value. This is used both in requests to bind parameterized query strings, and in responses
* to represent the result data.
*
*
* Protobuf type {@code stargate.Value}
*/
public static final class Value extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.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() {
}
@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();
}
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: {
io.stargate.proto.QueryOuterClass.Value.Null.Builder subBuilder = null;
if (innerCase_ == 1) {
subBuilder = ((io.stargate.proto.QueryOuterClass.Value.Null) inner_).toBuilder();
}
inner_ =
input.readMessage(io.stargate.proto.QueryOuterClass.Value.Null.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.stargate.proto.QueryOuterClass.Value.Null) inner_);
inner_ = subBuilder.buildPartial();
}
innerCase_ = 1;
break;
}
case 18: {
io.stargate.proto.QueryOuterClass.Value.Unset.Builder subBuilder = null;
if (innerCase_ == 2) {
subBuilder = ((io.stargate.proto.QueryOuterClass.Value.Unset) inner_).toBuilder();
}
inner_ =
input.readMessage(io.stargate.proto.QueryOuterClass.Value.Unset.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.stargate.proto.QueryOuterClass.Value.Unset) inner_);
inner_ = subBuilder.buildPartial();
}
innerCase_ = 2;
break;
}
case 24: {
innerCase_ = 3;
inner_ = input.readSInt64();
break;
}
case 37: {
innerCase_ = 4;
inner_ = input.readFloat();
break;
}
case 41: {
innerCase_ = 5;
inner_ = input.readDouble();
break;
}
case 48: {
innerCase_ = 6;
inner_ = input.readBool();
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
innerCase_ = 7;
inner_ = s;
break;
}
case 66: {
innerCase_ = 8;
inner_ = input.readBytes();
break;
}
case 74: {
io.stargate.proto.QueryOuterClass.Inet.Builder subBuilder = null;
if (innerCase_ == 9) {
subBuilder = ((io.stargate.proto.QueryOuterClass.Inet) inner_).toBuilder();
}
inner_ =
input.readMessage(io.stargate.proto.QueryOuterClass.Inet.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.stargate.proto.QueryOuterClass.Inet) inner_);
inner_ = subBuilder.buildPartial();
}
innerCase_ = 9;
break;
}
case 82: {
io.stargate.proto.QueryOuterClass.Uuid.Builder subBuilder = null;
if (innerCase_ == 10) {
subBuilder = ((io.stargate.proto.QueryOuterClass.Uuid) inner_).toBuilder();
}
inner_ =
input.readMessage(io.stargate.proto.QueryOuterClass.Uuid.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.stargate.proto.QueryOuterClass.Uuid) inner_);
inner_ = subBuilder.buildPartial();
}
innerCase_ = 10;
break;
}
case 88: {
innerCase_ = 11;
inner_ = input.readUInt32();
break;
}
case 96: {
innerCase_ = 12;
inner_ = input.readUInt64();
break;
}
case 106: {
io.stargate.proto.QueryOuterClass.Collection.Builder subBuilder = null;
if (innerCase_ == 13) {
subBuilder = ((io.stargate.proto.QueryOuterClass.Collection) inner_).toBuilder();
}
inner_ =
input.readMessage(io.stargate.proto.QueryOuterClass.Collection.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.stargate.proto.QueryOuterClass.Collection) inner_);
inner_ = subBuilder.buildPartial();
}
innerCase_ = 13;
break;
}
case 114: {
io.stargate.proto.QueryOuterClass.UdtValue.Builder subBuilder = null;
if (innerCase_ == 14) {
subBuilder = ((io.stargate.proto.QueryOuterClass.UdtValue) inner_).toBuilder();
}
inner_ =
input.readMessage(io.stargate.proto.QueryOuterClass.UdtValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.stargate.proto.QueryOuterClass.UdtValue) inner_);
inner_ = subBuilder.buildPartial();
}
innerCase_ = 14;
break;
}
case 122: {
io.stargate.proto.QueryOuterClass.Varint.Builder subBuilder = null;
if (innerCase_ == 15) {
subBuilder = ((io.stargate.proto.QueryOuterClass.Varint) inner_).toBuilder();
}
inner_ =
input.readMessage(io.stargate.proto.QueryOuterClass.Varint.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.stargate.proto.QueryOuterClass.Varint) inner_);
inner_ = subBuilder.buildPartial();
}
innerCase_ = 15;
break;
}
case 130: {
io.stargate.proto.QueryOuterClass.Decimal.Builder subBuilder = null;
if (innerCase_ == 16) {
subBuilder = ((io.stargate.proto.QueryOuterClass.Decimal) inner_).toBuilder();
}
inner_ =
input.readMessage(io.stargate.proto.QueryOuterClass.Decimal.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.stargate.proto.QueryOuterClass.Decimal) inner_);
inner_ = subBuilder.buildPartial();
}
innerCase_ = 16;
break;
}
case 138: {
io.stargate.proto.QueryOuterClass.Duration.Builder subBuilder = null;
if (innerCase_ == 17) {
subBuilder = ((io.stargate.proto.QueryOuterClass.Duration) inner_).toBuilder();
}
inner_ =
input.readMessage(io.stargate.proto.QueryOuterClass.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.stargate.proto.QueryOuterClass.Duration) inner_);
inner_ = subBuilder.buildPartial();
}
innerCase_ = 17;
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 io.stargate.proto.QueryOuterClass.internal_static_stargate_Value_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Value_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Value.class, io.stargate.proto.QueryOuterClass.Value.Builder.class);
}
public interface NullOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.Value.Null)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code stargate.Value.Null}
*/
public static final class Null extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.Value.Null)
NullOrBuilder {
private static final long serialVersionUID = 0L;
// Use Null.newBuilder() to construct.
private Null(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Null() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Null();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Null(
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;
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 io.stargate.proto.QueryOuterClass.internal_static_stargate_Value_Null_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Value_Null_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Value.Null.class, io.stargate.proto.QueryOuterClass.Value.Null.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 io.stargate.proto.QueryOuterClass.Value.Null)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.Value.Null other = (io.stargate.proto.QueryOuterClass.Value.Null) obj;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.Value.Null parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Value.Null parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Value.Null parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Value.Null parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Value.Null parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Value.Null parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Value.Null parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Value.Null 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 io.stargate.proto.QueryOuterClass.Value.Null parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Value.Null 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 io.stargate.proto.QueryOuterClass.Value.Null parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Value.Null 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(io.stargate.proto.QueryOuterClass.Value.Null 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 stargate.Value.Null}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.Value.Null)
io.stargate.proto.QueryOuterClass.Value.NullOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Value_Null_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Value_Null_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Value.Null.class, io.stargate.proto.QueryOuterClass.Value.Null.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.Value.Null.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Value_Null_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value.Null getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.Value.Null.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value.Null build() {
io.stargate.proto.QueryOuterClass.Value.Null result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value.Null buildPartial() {
io.stargate.proto.QueryOuterClass.Value.Null result = new io.stargate.proto.QueryOuterClass.Value.Null(this);
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 io.stargate.proto.QueryOuterClass.Value.Null) {
return mergeFrom((io.stargate.proto.QueryOuterClass.Value.Null)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.Value.Null other) {
if (other == io.stargate.proto.QueryOuterClass.Value.Null.getDefaultInstance()) return this;
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 {
io.stargate.proto.QueryOuterClass.Value.Null parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.Value.Null) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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:stargate.Value.Null)
}
// @@protoc_insertion_point(class_scope:stargate.Value.Null)
private static final io.stargate.proto.QueryOuterClass.Value.Null DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.Value.Null();
}
public static io.stargate.proto.QueryOuterClass.Value.Null getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Null parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Null(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 io.stargate.proto.QueryOuterClass.Value.Null getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UnsetOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.Value.Unset)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code stargate.Value.Unset}
*/
public static final class Unset extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.Value.Unset)
UnsetOrBuilder {
private static final long serialVersionUID = 0L;
// Use Unset.newBuilder() to construct.
private Unset(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Unset() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Unset();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Unset(
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;
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 io.stargate.proto.QueryOuterClass.internal_static_stargate_Value_Unset_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Value_Unset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Value.Unset.class, io.stargate.proto.QueryOuterClass.Value.Unset.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 io.stargate.proto.QueryOuterClass.Value.Unset)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.Value.Unset other = (io.stargate.proto.QueryOuterClass.Value.Unset) obj;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.Value.Unset parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Value.Unset parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Value.Unset parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Value.Unset parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Value.Unset parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Value.Unset parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Value.Unset parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Value.Unset 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 io.stargate.proto.QueryOuterClass.Value.Unset parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Value.Unset 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 io.stargate.proto.QueryOuterClass.Value.Unset parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Value.Unset 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(io.stargate.proto.QueryOuterClass.Value.Unset 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 stargate.Value.Unset}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.Value.Unset)
io.stargate.proto.QueryOuterClass.Value.UnsetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Value_Unset_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Value_Unset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Value.Unset.class, io.stargate.proto.QueryOuterClass.Value.Unset.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.Value.Unset.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Value_Unset_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value.Unset getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.Value.Unset.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value.Unset build() {
io.stargate.proto.QueryOuterClass.Value.Unset result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value.Unset buildPartial() {
io.stargate.proto.QueryOuterClass.Value.Unset result = new io.stargate.proto.QueryOuterClass.Value.Unset(this);
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 io.stargate.proto.QueryOuterClass.Value.Unset) {
return mergeFrom((io.stargate.proto.QueryOuterClass.Value.Unset)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.Value.Unset other) {
if (other == io.stargate.proto.QueryOuterClass.Value.Unset.getDefaultInstance()) return this;
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 {
io.stargate.proto.QueryOuterClass.Value.Unset parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.Value.Unset) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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:stargate.Value.Unset)
}
// @@protoc_insertion_point(class_scope:stargate.Value.Unset)
private static final io.stargate.proto.QueryOuterClass.Value.Unset DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.Value.Unset();
}
public static io.stargate.proto.QueryOuterClass.Value.Unset getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Unset parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Unset(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 io.stargate.proto.QueryOuterClass.Value.Unset getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int innerCase_ = 0;
private java.lang.Object inner_;
public enum InnerCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
NULL(1),
UNSET(2),
INT(3),
FLOAT(4),
DOUBLE(5),
BOOLEAN(6),
STRING(7),
BYTES(8),
INET(9),
UUID(10),
DATE(11),
TIME(12),
DURATION(17),
COLLECTION(13),
UDT(14),
VARINT(15),
DECIMAL(16),
INNER_NOT_SET(0);
private final int value;
private InnerCase(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 InnerCase valueOf(int value) {
return forNumber(value);
}
public static InnerCase forNumber(int value) {
switch (value) {
case 1: return NULL;
case 2: return UNSET;
case 3: return INT;
case 4: return FLOAT;
case 5: return DOUBLE;
case 6: return BOOLEAN;
case 7: return STRING;
case 8: return BYTES;
case 9: return INET;
case 10: return UUID;
case 11: return DATE;
case 12: return TIME;
case 17: return DURATION;
case 13: return COLLECTION;
case 14: return UDT;
case 15: return VARINT;
case 16: return DECIMAL;
case 0: return INNER_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public InnerCase
getInnerCase() {
return InnerCase.forNumber(
innerCase_);
}
public static final int NULL_FIELD_NUMBER = 1;
/**
*
* The CQL value NULL.
*
*
* .stargate.Value.Null null = 1;
* @return Whether the null field is set.
*/
@java.lang.Override
public boolean hasNull() {
return innerCase_ == 1;
}
/**
*
* The CQL value NULL.
*
*
* .stargate.Value.Null null = 1;
* @return The null.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value.Null getNull() {
if (innerCase_ == 1) {
return (io.stargate.proto.QueryOuterClass.Value.Null) inner_;
}
return io.stargate.proto.QueryOuterClass.Value.Null.getDefaultInstance();
}
/**
*
* The CQL value NULL.
*
*
* .stargate.Value.Null null = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value.NullOrBuilder getNullOrBuilder() {
if (innerCase_ == 1) {
return (io.stargate.proto.QueryOuterClass.Value.Null) inner_;
}
return io.stargate.proto.QueryOuterClass.Value.Null.getDefaultInstance();
}
public static final int UNSET_FIELD_NUMBER = 2;
/**
*
* An unset value.
* This can only be used for bind values in requests.
*
*
* .stargate.Value.Unset unset = 2;
* @return Whether the unset field is set.
*/
@java.lang.Override
public boolean hasUnset() {
return innerCase_ == 2;
}
/**
*
* An unset value.
* This can only be used for bind values in requests.
*
*
* .stargate.Value.Unset unset = 2;
* @return The unset.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value.Unset getUnset() {
if (innerCase_ == 2) {
return (io.stargate.proto.QueryOuterClass.Value.Unset) inner_;
}
return io.stargate.proto.QueryOuterClass.Value.Unset.getDefaultInstance();
}
/**
*
* An unset value.
* This can only be used for bind values in requests.
*
*
* .stargate.Value.Unset unset = 2;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value.UnsetOrBuilder getUnsetOrBuilder() {
if (innerCase_ == 2) {
return (io.stargate.proto.QueryOuterClass.Value.Unset) inner_;
}
return io.stargate.proto.QueryOuterClass.Value.Unset.getDefaultInstance();
}
public static final int INT_FIELD_NUMBER = 3;
/**
*
* CQL types: tinyint, smallint, int, bigint, counter, timestamp
*
*
* sint64 int = 3;
* @return Whether the int field is set.
*/
@java.lang.Override
public boolean hasInt() {
return innerCase_ == 3;
}
/**
*
* CQL types: tinyint, smallint, int, bigint, counter, timestamp
*
*
* sint64 int = 3;
* @return The int.
*/
@java.lang.Override
public long getInt() {
if (innerCase_ == 3) {
return (java.lang.Long) inner_;
}
return 0L;
}
public static final int FLOAT_FIELD_NUMBER = 4;
/**
*
* CQL types: float
*
*
* float float = 4;
* @return Whether the float field is set.
*/
@java.lang.Override
public boolean hasFloat() {
return innerCase_ == 4;
}
/**
*
* CQL types: float
*
*
* float float = 4;
* @return The float.
*/
@java.lang.Override
public float getFloat() {
if (innerCase_ == 4) {
return (java.lang.Float) inner_;
}
return 0F;
}
public static final int DOUBLE_FIELD_NUMBER = 5;
/**
*
* CQL types: double
*
*
* double double = 5;
* @return Whether the double field is set.
*/
@java.lang.Override
public boolean hasDouble() {
return innerCase_ == 5;
}
/**
*
* CQL types: double
*
*
* double double = 5;
* @return The double.
*/
@java.lang.Override
public double getDouble() {
if (innerCase_ == 5) {
return (java.lang.Double) inner_;
}
return 0D;
}
public static final int BOOLEAN_FIELD_NUMBER = 6;
/**
*
* CQL types: boolean
*
*
* bool boolean = 6;
* @return Whether the boolean field is set.
*/
@java.lang.Override
public boolean hasBoolean() {
return innerCase_ == 6;
}
/**
*
* CQL types: boolean
*
*
* bool boolean = 6;
* @return The boolean.
*/
@java.lang.Override
public boolean getBoolean() {
if (innerCase_ == 6) {
return (java.lang.Boolean) inner_;
}
return false;
}
public static final int STRING_FIELD_NUMBER = 7;
/**
*
* CQL types: ascii, varchar, text
*
*
* string string = 7;
* @return Whether the string field is set.
*/
public boolean hasString() {
return innerCase_ == 7;
}
/**
*
* CQL types: ascii, varchar, text
*
*
* string string = 7;
* @return The string.
*/
public java.lang.String getString() {
java.lang.Object ref = "";
if (innerCase_ == 7) {
ref = inner_;
}
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 (innerCase_ == 7) {
inner_ = s;
}
return s;
}
}
/**
*
* CQL types: ascii, varchar, text
*
*
* string string = 7;
* @return The bytes for string.
*/
public com.google.protobuf.ByteString
getStringBytes() {
java.lang.Object ref = "";
if (innerCase_ == 7) {
ref = inner_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (innerCase_ == 7) {
inner_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BYTES_FIELD_NUMBER = 8;
/**
*
* CQL types: blob, custom
*
*
* bytes bytes = 8;
* @return Whether the bytes field is set.
*/
@java.lang.Override
public boolean hasBytes() {
return innerCase_ == 8;
}
/**
*
* CQL types: blob, custom
*
*
* bytes bytes = 8;
* @return The bytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBytes() {
if (innerCase_ == 8) {
return (com.google.protobuf.ByteString) inner_;
}
return com.google.protobuf.ByteString.EMPTY;
}
public static final int INET_FIELD_NUMBER = 9;
/**
*
* CQL types: inet
*
*
* .stargate.Inet inet = 9;
* @return Whether the inet field is set.
*/
@java.lang.Override
public boolean hasInet() {
return innerCase_ == 9;
}
/**
*
* CQL types: inet
*
*
* .stargate.Inet inet = 9;
* @return The inet.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Inet getInet() {
if (innerCase_ == 9) {
return (io.stargate.proto.QueryOuterClass.Inet) inner_;
}
return io.stargate.proto.QueryOuterClass.Inet.getDefaultInstance();
}
/**
*
* CQL types: inet
*
*
* .stargate.Inet inet = 9;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.InetOrBuilder getInetOrBuilder() {
if (innerCase_ == 9) {
return (io.stargate.proto.QueryOuterClass.Inet) inner_;
}
return io.stargate.proto.QueryOuterClass.Inet.getDefaultInstance();
}
public static final int UUID_FIELD_NUMBER = 10;
/**
*
* CQL types: uuid, timeuuid
*
*
* .stargate.Uuid uuid = 10;
* @return Whether the uuid field is set.
*/
@java.lang.Override
public boolean hasUuid() {
return innerCase_ == 10;
}
/**
*
* CQL types: uuid, timeuuid
*
*
* .stargate.Uuid uuid = 10;
* @return The uuid.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Uuid getUuid() {
if (innerCase_ == 10) {
return (io.stargate.proto.QueryOuterClass.Uuid) inner_;
}
return io.stargate.proto.QueryOuterClass.Uuid.getDefaultInstance();
}
/**
*
* CQL types: uuid, timeuuid
*
*
* .stargate.Uuid uuid = 10;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.UuidOrBuilder getUuidOrBuilder() {
if (innerCase_ == 10) {
return (io.stargate.proto.QueryOuterClass.Uuid) inner_;
}
return io.stargate.proto.QueryOuterClass.Uuid.getDefaultInstance();
}
public static final int DATE_FIELD_NUMBER = 11;
/**
*
* CQL types: date
* An unsigned integer representing days with Unix epoch (January, 1 1970) at 2^31.
* Examples:
* 0: -5877641-06-23
* 2^31: 1970-1-1
* 2^32: 5881580-07-11
*
*
* uint32 date = 11;
* @return Whether the date field is set.
*/
@java.lang.Override
public boolean hasDate() {
return innerCase_ == 11;
}
/**
*
* CQL types: date
* An unsigned integer representing days with Unix epoch (January, 1 1970) at 2^31.
* Examples:
* 0: -5877641-06-23
* 2^31: 1970-1-1
* 2^32: 5881580-07-11
*
*
* uint32 date = 11;
* @return The date.
*/
@java.lang.Override
public int getDate() {
if (innerCase_ == 11) {
return (java.lang.Integer) inner_;
}
return 0;
}
public static final int TIME_FIELD_NUMBER = 12;
/**
*
* CQL types: time
* An unsigned integer representing the number of nanoseconds since midnight. Valid values are
* in the range 0 to 86399999999999 (inclusive).
*
*
* uint64 time = 12;
* @return Whether the time field is set.
*/
@java.lang.Override
public boolean hasTime() {
return innerCase_ == 12;
}
/**
*
* CQL types: time
* An unsigned integer representing the number of nanoseconds since midnight. Valid values are
* in the range 0 to 86399999999999 (inclusive).
*
*
* uint64 time = 12;
* @return The time.
*/
@java.lang.Override
public long getTime() {
if (innerCase_ == 12) {
return (java.lang.Long) inner_;
}
return 0L;
}
public static final int DURATION_FIELD_NUMBER = 17;
/**
*
* CQL types: duration
*
*
* .stargate.Duration duration = 17;
* @return Whether the duration field is set.
*/
@java.lang.Override
public boolean hasDuration() {
return innerCase_ == 17;
}
/**
*
* CQL types: duration
*
*
* .stargate.Duration duration = 17;
* @return The duration.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Duration getDuration() {
if (innerCase_ == 17) {
return (io.stargate.proto.QueryOuterClass.Duration) inner_;
}
return io.stargate.proto.QueryOuterClass.Duration.getDefaultInstance();
}
/**
*
* CQL types: duration
*
*
* .stargate.Duration duration = 17;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.DurationOrBuilder getDurationOrBuilder() {
if (innerCase_ == 17) {
return (io.stargate.proto.QueryOuterClass.Duration) inner_;
}
return io.stargate.proto.QueryOuterClass.Duration.getDefaultInstance();
}
public static final int COLLECTION_FIELD_NUMBER = 13;
/**
*
* CQL types: list, set, map, tuple
*
*
* .stargate.Collection collection = 13;
* @return Whether the collection field is set.
*/
@java.lang.Override
public boolean hasCollection() {
return innerCase_ == 13;
}
/**
*
* CQL types: list, set, map, tuple
*
*
* .stargate.Collection collection = 13;
* @return The collection.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Collection getCollection() {
if (innerCase_ == 13) {
return (io.stargate.proto.QueryOuterClass.Collection) inner_;
}
return io.stargate.proto.QueryOuterClass.Collection.getDefaultInstance();
}
/**
*
* CQL types: list, set, map, tuple
*
*
* .stargate.Collection collection = 13;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.CollectionOrBuilder getCollectionOrBuilder() {
if (innerCase_ == 13) {
return (io.stargate.proto.QueryOuterClass.Collection) inner_;
}
return io.stargate.proto.QueryOuterClass.Collection.getDefaultInstance();
}
public static final int UDT_FIELD_NUMBER = 14;
/**
*
* CQL types: user defined types
*
*
* .stargate.UdtValue udt = 14;
* @return Whether the udt field is set.
*/
@java.lang.Override
public boolean hasUdt() {
return innerCase_ == 14;
}
/**
*
* CQL types: user defined types
*
*
* .stargate.UdtValue udt = 14;
* @return The udt.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.UdtValue getUdt() {
if (innerCase_ == 14) {
return (io.stargate.proto.QueryOuterClass.UdtValue) inner_;
}
return io.stargate.proto.QueryOuterClass.UdtValue.getDefaultInstance();
}
/**
*
* CQL types: user defined types
*
*
* .stargate.UdtValue udt = 14;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.UdtValueOrBuilder getUdtOrBuilder() {
if (innerCase_ == 14) {
return (io.stargate.proto.QueryOuterClass.UdtValue) inner_;
}
return io.stargate.proto.QueryOuterClass.UdtValue.getDefaultInstance();
}
public static final int VARINT_FIELD_NUMBER = 15;
/**
*
* CQL types: varint
*
*
* .stargate.Varint varint = 15;
* @return Whether the varint field is set.
*/
@java.lang.Override
public boolean hasVarint() {
return innerCase_ == 15;
}
/**
*
* CQL types: varint
*
*
* .stargate.Varint varint = 15;
* @return The varint.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Varint getVarint() {
if (innerCase_ == 15) {
return (io.stargate.proto.QueryOuterClass.Varint) inner_;
}
return io.stargate.proto.QueryOuterClass.Varint.getDefaultInstance();
}
/**
*
* CQL types: varint
*
*
* .stargate.Varint varint = 15;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.VarintOrBuilder getVarintOrBuilder() {
if (innerCase_ == 15) {
return (io.stargate.proto.QueryOuterClass.Varint) inner_;
}
return io.stargate.proto.QueryOuterClass.Varint.getDefaultInstance();
}
public static final int DECIMAL_FIELD_NUMBER = 16;
/**
*
* CQL types: decimal
*
*
* .stargate.Decimal decimal = 16;
* @return Whether the decimal field is set.
*/
@java.lang.Override
public boolean hasDecimal() {
return innerCase_ == 16;
}
/**
*
* CQL types: decimal
*
*
* .stargate.Decimal decimal = 16;
* @return The decimal.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Decimal getDecimal() {
if (innerCase_ == 16) {
return (io.stargate.proto.QueryOuterClass.Decimal) inner_;
}
return io.stargate.proto.QueryOuterClass.Decimal.getDefaultInstance();
}
/**
*
* CQL types: decimal
*
*
* .stargate.Decimal decimal = 16;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.DecimalOrBuilder getDecimalOrBuilder() {
if (innerCase_ == 16) {
return (io.stargate.proto.QueryOuterClass.Decimal) inner_;
}
return io.stargate.proto.QueryOuterClass.Decimal.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 (innerCase_ == 1) {
output.writeMessage(1, (io.stargate.proto.QueryOuterClass.Value.Null) inner_);
}
if (innerCase_ == 2) {
output.writeMessage(2, (io.stargate.proto.QueryOuterClass.Value.Unset) inner_);
}
if (innerCase_ == 3) {
output.writeSInt64(
3, (long)((java.lang.Long) inner_));
}
if (innerCase_ == 4) {
output.writeFloat(
4, (float)((java.lang.Float) inner_));
}
if (innerCase_ == 5) {
output.writeDouble(
5, (double)((java.lang.Double) inner_));
}
if (innerCase_ == 6) {
output.writeBool(
6, (boolean)((java.lang.Boolean) inner_));
}
if (innerCase_ == 7) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, inner_);
}
if (innerCase_ == 8) {
output.writeBytes(
8, (com.google.protobuf.ByteString) inner_);
}
if (innerCase_ == 9) {
output.writeMessage(9, (io.stargate.proto.QueryOuterClass.Inet) inner_);
}
if (innerCase_ == 10) {
output.writeMessage(10, (io.stargate.proto.QueryOuterClass.Uuid) inner_);
}
if (innerCase_ == 11) {
output.writeUInt32(
11, (int)((java.lang.Integer) inner_));
}
if (innerCase_ == 12) {
output.writeUInt64(
12, (long)((java.lang.Long) inner_));
}
if (innerCase_ == 13) {
output.writeMessage(13, (io.stargate.proto.QueryOuterClass.Collection) inner_);
}
if (innerCase_ == 14) {
output.writeMessage(14, (io.stargate.proto.QueryOuterClass.UdtValue) inner_);
}
if (innerCase_ == 15) {
output.writeMessage(15, (io.stargate.proto.QueryOuterClass.Varint) inner_);
}
if (innerCase_ == 16) {
output.writeMessage(16, (io.stargate.proto.QueryOuterClass.Decimal) inner_);
}
if (innerCase_ == 17) {
output.writeMessage(17, (io.stargate.proto.QueryOuterClass.Duration) inner_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (innerCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.stargate.proto.QueryOuterClass.Value.Null) inner_);
}
if (innerCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.stargate.proto.QueryOuterClass.Value.Unset) inner_);
}
if (innerCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(
3, (long)((java.lang.Long) inner_));
}
if (innerCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(
4, (float)((java.lang.Float) inner_));
}
if (innerCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(
5, (double)((java.lang.Double) inner_));
}
if (innerCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
6, (boolean)((java.lang.Boolean) inner_));
}
if (innerCase_ == 7) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, inner_);
}
if (innerCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(
8, (com.google.protobuf.ByteString) inner_);
}
if (innerCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (io.stargate.proto.QueryOuterClass.Inet) inner_);
}
if (innerCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (io.stargate.proto.QueryOuterClass.Uuid) inner_);
}
if (innerCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(
11, (int)((java.lang.Integer) inner_));
}
if (innerCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(
12, (long)((java.lang.Long) inner_));
}
if (innerCase_ == 13) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, (io.stargate.proto.QueryOuterClass.Collection) inner_);
}
if (innerCase_ == 14) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, (io.stargate.proto.QueryOuterClass.UdtValue) inner_);
}
if (innerCase_ == 15) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, (io.stargate.proto.QueryOuterClass.Varint) inner_);
}
if (innerCase_ == 16) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, (io.stargate.proto.QueryOuterClass.Decimal) inner_);
}
if (innerCase_ == 17) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, (io.stargate.proto.QueryOuterClass.Duration) inner_);
}
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 io.stargate.proto.QueryOuterClass.Value)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.Value other = (io.stargate.proto.QueryOuterClass.Value) obj;
if (!getInnerCase().equals(other.getInnerCase())) return false;
switch (innerCase_) {
case 1:
if (!getNull()
.equals(other.getNull())) return false;
break;
case 2:
if (!getUnset()
.equals(other.getUnset())) return false;
break;
case 3:
if (getInt()
!= other.getInt()) return false;
break;
case 4:
if (java.lang.Float.floatToIntBits(getFloat())
!= java.lang.Float.floatToIntBits(
other.getFloat())) return false;
break;
case 5:
if (java.lang.Double.doubleToLongBits(getDouble())
!= java.lang.Double.doubleToLongBits(
other.getDouble())) return false;
break;
case 6:
if (getBoolean()
!= other.getBoolean()) return false;
break;
case 7:
if (!getString()
.equals(other.getString())) return false;
break;
case 8:
if (!getBytes()
.equals(other.getBytes())) return false;
break;
case 9:
if (!getInet()
.equals(other.getInet())) return false;
break;
case 10:
if (!getUuid()
.equals(other.getUuid())) return false;
break;
case 11:
if (getDate()
!= other.getDate()) return false;
break;
case 12:
if (getTime()
!= other.getTime()) return false;
break;
case 17:
if (!getDuration()
.equals(other.getDuration())) return false;
break;
case 13:
if (!getCollection()
.equals(other.getCollection())) return false;
break;
case 14:
if (!getUdt()
.equals(other.getUdt())) return false;
break;
case 15:
if (!getVarint()
.equals(other.getVarint())) return false;
break;
case 16:
if (!getDecimal()
.equals(other.getDecimal())) 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 (innerCase_) {
case 1:
hash = (37 * hash) + NULL_FIELD_NUMBER;
hash = (53 * hash) + getNull().hashCode();
break;
case 2:
hash = (37 * hash) + UNSET_FIELD_NUMBER;
hash = (53 * hash) + getUnset().hashCode();
break;
case 3:
hash = (37 * hash) + INT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInt());
break;
case 4:
hash = (37 * hash) + FLOAT_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getFloat());
break;
case 5:
hash = (37 * hash) + DOUBLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDouble()));
break;
case 6:
hash = (37 * hash) + BOOLEAN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getBoolean());
break;
case 7:
hash = (37 * hash) + STRING_FIELD_NUMBER;
hash = (53 * hash) + getString().hashCode();
break;
case 8:
hash = (37 * hash) + BYTES_FIELD_NUMBER;
hash = (53 * hash) + getBytes().hashCode();
break;
case 9:
hash = (37 * hash) + INET_FIELD_NUMBER;
hash = (53 * hash) + getInet().hashCode();
break;
case 10:
hash = (37 * hash) + UUID_FIELD_NUMBER;
hash = (53 * hash) + getUuid().hashCode();
break;
case 11:
hash = (37 * hash) + DATE_FIELD_NUMBER;
hash = (53 * hash) + getDate();
break;
case 12:
hash = (37 * hash) + TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTime());
break;
case 17:
hash = (37 * hash) + DURATION_FIELD_NUMBER;
hash = (53 * hash) + getDuration().hashCode();
break;
case 13:
hash = (37 * hash) + COLLECTION_FIELD_NUMBER;
hash = (53 * hash) + getCollection().hashCode();
break;
case 14:
hash = (37 * hash) + UDT_FIELD_NUMBER;
hash = (53 * hash) + getUdt().hashCode();
break;
case 15:
hash = (37 * hash) + VARINT_FIELD_NUMBER;
hash = (53 * hash) + getVarint().hashCode();
break;
case 16:
hash = (37 * hash) + DECIMAL_FIELD_NUMBER;
hash = (53 * hash) + getDecimal().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.Value parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Value parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Value parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Value parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Value parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Value parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Value parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.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 io.stargate.proto.QueryOuterClass.Value parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.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 io.stargate.proto.QueryOuterClass.Value parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.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(io.stargate.proto.QueryOuterClass.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;
}
/**
*
* A CQL value. This is used both in requests to bind parameterized query strings, and in responses
* to represent the result data.
*
*
* Protobuf type {@code stargate.Value}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.Value)
io.stargate.proto.QueryOuterClass.ValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Value_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Value_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Value.class, io.stargate.proto.QueryOuterClass.Value.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
innerCase_ = 0;
inner_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Value_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.Value.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value build() {
io.stargate.proto.QueryOuterClass.Value result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value buildPartial() {
io.stargate.proto.QueryOuterClass.Value result = new io.stargate.proto.QueryOuterClass.Value(this);
if (innerCase_ == 1) {
if (nullBuilder_ == null) {
result.inner_ = inner_;
} else {
result.inner_ = nullBuilder_.build();
}
}
if (innerCase_ == 2) {
if (unsetBuilder_ == null) {
result.inner_ = inner_;
} else {
result.inner_ = unsetBuilder_.build();
}
}
if (innerCase_ == 3) {
result.inner_ = inner_;
}
if (innerCase_ == 4) {
result.inner_ = inner_;
}
if (innerCase_ == 5) {
result.inner_ = inner_;
}
if (innerCase_ == 6) {
result.inner_ = inner_;
}
if (innerCase_ == 7) {
result.inner_ = inner_;
}
if (innerCase_ == 8) {
result.inner_ = inner_;
}
if (innerCase_ == 9) {
if (inetBuilder_ == null) {
result.inner_ = inner_;
} else {
result.inner_ = inetBuilder_.build();
}
}
if (innerCase_ == 10) {
if (uuidBuilder_ == null) {
result.inner_ = inner_;
} else {
result.inner_ = uuidBuilder_.build();
}
}
if (innerCase_ == 11) {
result.inner_ = inner_;
}
if (innerCase_ == 12) {
result.inner_ = inner_;
}
if (innerCase_ == 17) {
if (durationBuilder_ == null) {
result.inner_ = inner_;
} else {
result.inner_ = durationBuilder_.build();
}
}
if (innerCase_ == 13) {
if (collectionBuilder_ == null) {
result.inner_ = inner_;
} else {
result.inner_ = collectionBuilder_.build();
}
}
if (innerCase_ == 14) {
if (udtBuilder_ == null) {
result.inner_ = inner_;
} else {
result.inner_ = udtBuilder_.build();
}
}
if (innerCase_ == 15) {
if (varintBuilder_ == null) {
result.inner_ = inner_;
} else {
result.inner_ = varintBuilder_.build();
}
}
if (innerCase_ == 16) {
if (decimalBuilder_ == null) {
result.inner_ = inner_;
} else {
result.inner_ = decimalBuilder_.build();
}
}
result.innerCase_ = innerCase_;
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 io.stargate.proto.QueryOuterClass.Value) {
return mergeFrom((io.stargate.proto.QueryOuterClass.Value)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.Value other) {
if (other == io.stargate.proto.QueryOuterClass.Value.getDefaultInstance()) return this;
switch (other.getInnerCase()) {
case NULL: {
mergeNull(other.getNull());
break;
}
case UNSET: {
mergeUnset(other.getUnset());
break;
}
case INT: {
setInt(other.getInt());
break;
}
case FLOAT: {
setFloat(other.getFloat());
break;
}
case DOUBLE: {
setDouble(other.getDouble());
break;
}
case BOOLEAN: {
setBoolean(other.getBoolean());
break;
}
case STRING: {
innerCase_ = 7;
inner_ = other.inner_;
onChanged();
break;
}
case BYTES: {
setBytes(other.getBytes());
break;
}
case INET: {
mergeInet(other.getInet());
break;
}
case UUID: {
mergeUuid(other.getUuid());
break;
}
case DATE: {
setDate(other.getDate());
break;
}
case TIME: {
setTime(other.getTime());
break;
}
case DURATION: {
mergeDuration(other.getDuration());
break;
}
case COLLECTION: {
mergeCollection(other.getCollection());
break;
}
case UDT: {
mergeUdt(other.getUdt());
break;
}
case VARINT: {
mergeVarint(other.getVarint());
break;
}
case DECIMAL: {
mergeDecimal(other.getDecimal());
break;
}
case INNER_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 {
io.stargate.proto.QueryOuterClass.Value parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.Value) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int innerCase_ = 0;
private java.lang.Object inner_;
public InnerCase
getInnerCase() {
return InnerCase.forNumber(
innerCase_);
}
public Builder clearInner() {
innerCase_ = 0;
inner_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Value.Null, io.stargate.proto.QueryOuterClass.Value.Null.Builder, io.stargate.proto.QueryOuterClass.Value.NullOrBuilder> nullBuilder_;
/**
*
* The CQL value NULL.
*
*
* .stargate.Value.Null null = 1;
* @return Whether the null field is set.
*/
@java.lang.Override
public boolean hasNull() {
return innerCase_ == 1;
}
/**
*
* The CQL value NULL.
*
*
* .stargate.Value.Null null = 1;
* @return The null.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value.Null getNull() {
if (nullBuilder_ == null) {
if (innerCase_ == 1) {
return (io.stargate.proto.QueryOuterClass.Value.Null) inner_;
}
return io.stargate.proto.QueryOuterClass.Value.Null.getDefaultInstance();
} else {
if (innerCase_ == 1) {
return nullBuilder_.getMessage();
}
return io.stargate.proto.QueryOuterClass.Value.Null.getDefaultInstance();
}
}
/**
*
* The CQL value NULL.
*
*
* .stargate.Value.Null null = 1;
*/
public Builder setNull(io.stargate.proto.QueryOuterClass.Value.Null value) {
if (nullBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
inner_ = value;
onChanged();
} else {
nullBuilder_.setMessage(value);
}
innerCase_ = 1;
return this;
}
/**
*
* The CQL value NULL.
*
*
* .stargate.Value.Null null = 1;
*/
public Builder setNull(
io.stargate.proto.QueryOuterClass.Value.Null.Builder builderForValue) {
if (nullBuilder_ == null) {
inner_ = builderForValue.build();
onChanged();
} else {
nullBuilder_.setMessage(builderForValue.build());
}
innerCase_ = 1;
return this;
}
/**
*
* The CQL value NULL.
*
*
* .stargate.Value.Null null = 1;
*/
public Builder mergeNull(io.stargate.proto.QueryOuterClass.Value.Null value) {
if (nullBuilder_ == null) {
if (innerCase_ == 1 &&
inner_ != io.stargate.proto.QueryOuterClass.Value.Null.getDefaultInstance()) {
inner_ = io.stargate.proto.QueryOuterClass.Value.Null.newBuilder((io.stargate.proto.QueryOuterClass.Value.Null) inner_)
.mergeFrom(value).buildPartial();
} else {
inner_ = value;
}
onChanged();
} else {
if (innerCase_ == 1) {
nullBuilder_.mergeFrom(value);
}
nullBuilder_.setMessage(value);
}
innerCase_ = 1;
return this;
}
/**
*
* The CQL value NULL.
*
*
* .stargate.Value.Null null = 1;
*/
public Builder clearNull() {
if (nullBuilder_ == null) {
if (innerCase_ == 1) {
innerCase_ = 0;
inner_ = null;
onChanged();
}
} else {
if (innerCase_ == 1) {
innerCase_ = 0;
inner_ = null;
}
nullBuilder_.clear();
}
return this;
}
/**
*
* The CQL value NULL.
*
*
* .stargate.Value.Null null = 1;
*/
public io.stargate.proto.QueryOuterClass.Value.Null.Builder getNullBuilder() {
return getNullFieldBuilder().getBuilder();
}
/**
*
* The CQL value NULL.
*
*
* .stargate.Value.Null null = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value.NullOrBuilder getNullOrBuilder() {
if ((innerCase_ == 1) && (nullBuilder_ != null)) {
return nullBuilder_.getMessageOrBuilder();
} else {
if (innerCase_ == 1) {
return (io.stargate.proto.QueryOuterClass.Value.Null) inner_;
}
return io.stargate.proto.QueryOuterClass.Value.Null.getDefaultInstance();
}
}
/**
*
* The CQL value NULL.
*
*
* .stargate.Value.Null null = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Value.Null, io.stargate.proto.QueryOuterClass.Value.Null.Builder, io.stargate.proto.QueryOuterClass.Value.NullOrBuilder>
getNullFieldBuilder() {
if (nullBuilder_ == null) {
if (!(innerCase_ == 1)) {
inner_ = io.stargate.proto.QueryOuterClass.Value.Null.getDefaultInstance();
}
nullBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Value.Null, io.stargate.proto.QueryOuterClass.Value.Null.Builder, io.stargate.proto.QueryOuterClass.Value.NullOrBuilder>(
(io.stargate.proto.QueryOuterClass.Value.Null) inner_,
getParentForChildren(),
isClean());
inner_ = null;
}
innerCase_ = 1;
onChanged();;
return nullBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Value.Unset, io.stargate.proto.QueryOuterClass.Value.Unset.Builder, io.stargate.proto.QueryOuterClass.Value.UnsetOrBuilder> unsetBuilder_;
/**
*
* An unset value.
* This can only be used for bind values in requests.
*
*
* .stargate.Value.Unset unset = 2;
* @return Whether the unset field is set.
*/
@java.lang.Override
public boolean hasUnset() {
return innerCase_ == 2;
}
/**
*
* An unset value.
* This can only be used for bind values in requests.
*
*
* .stargate.Value.Unset unset = 2;
* @return The unset.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value.Unset getUnset() {
if (unsetBuilder_ == null) {
if (innerCase_ == 2) {
return (io.stargate.proto.QueryOuterClass.Value.Unset) inner_;
}
return io.stargate.proto.QueryOuterClass.Value.Unset.getDefaultInstance();
} else {
if (innerCase_ == 2) {
return unsetBuilder_.getMessage();
}
return io.stargate.proto.QueryOuterClass.Value.Unset.getDefaultInstance();
}
}
/**
*
* An unset value.
* This can only be used for bind values in requests.
*
*
* .stargate.Value.Unset unset = 2;
*/
public Builder setUnset(io.stargate.proto.QueryOuterClass.Value.Unset value) {
if (unsetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
inner_ = value;
onChanged();
} else {
unsetBuilder_.setMessage(value);
}
innerCase_ = 2;
return this;
}
/**
*
* An unset value.
* This can only be used for bind values in requests.
*
*
* .stargate.Value.Unset unset = 2;
*/
public Builder setUnset(
io.stargate.proto.QueryOuterClass.Value.Unset.Builder builderForValue) {
if (unsetBuilder_ == null) {
inner_ = builderForValue.build();
onChanged();
} else {
unsetBuilder_.setMessage(builderForValue.build());
}
innerCase_ = 2;
return this;
}
/**
*
* An unset value.
* This can only be used for bind values in requests.
*
*
* .stargate.Value.Unset unset = 2;
*/
public Builder mergeUnset(io.stargate.proto.QueryOuterClass.Value.Unset value) {
if (unsetBuilder_ == null) {
if (innerCase_ == 2 &&
inner_ != io.stargate.proto.QueryOuterClass.Value.Unset.getDefaultInstance()) {
inner_ = io.stargate.proto.QueryOuterClass.Value.Unset.newBuilder((io.stargate.proto.QueryOuterClass.Value.Unset) inner_)
.mergeFrom(value).buildPartial();
} else {
inner_ = value;
}
onChanged();
} else {
if (innerCase_ == 2) {
unsetBuilder_.mergeFrom(value);
}
unsetBuilder_.setMessage(value);
}
innerCase_ = 2;
return this;
}
/**
*
* An unset value.
* This can only be used for bind values in requests.
*
*
* .stargate.Value.Unset unset = 2;
*/
public Builder clearUnset() {
if (unsetBuilder_ == null) {
if (innerCase_ == 2) {
innerCase_ = 0;
inner_ = null;
onChanged();
}
} else {
if (innerCase_ == 2) {
innerCase_ = 0;
inner_ = null;
}
unsetBuilder_.clear();
}
return this;
}
/**
*
* An unset value.
* This can only be used for bind values in requests.
*
*
* .stargate.Value.Unset unset = 2;
*/
public io.stargate.proto.QueryOuterClass.Value.Unset.Builder getUnsetBuilder() {
return getUnsetFieldBuilder().getBuilder();
}
/**
*
* An unset value.
* This can only be used for bind values in requests.
*
*
* .stargate.Value.Unset unset = 2;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value.UnsetOrBuilder getUnsetOrBuilder() {
if ((innerCase_ == 2) && (unsetBuilder_ != null)) {
return unsetBuilder_.getMessageOrBuilder();
} else {
if (innerCase_ == 2) {
return (io.stargate.proto.QueryOuterClass.Value.Unset) inner_;
}
return io.stargate.proto.QueryOuterClass.Value.Unset.getDefaultInstance();
}
}
/**
*
* An unset value.
* This can only be used for bind values in requests.
*
*
* .stargate.Value.Unset unset = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Value.Unset, io.stargate.proto.QueryOuterClass.Value.Unset.Builder, io.stargate.proto.QueryOuterClass.Value.UnsetOrBuilder>
getUnsetFieldBuilder() {
if (unsetBuilder_ == null) {
if (!(innerCase_ == 2)) {
inner_ = io.stargate.proto.QueryOuterClass.Value.Unset.getDefaultInstance();
}
unsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Value.Unset, io.stargate.proto.QueryOuterClass.Value.Unset.Builder, io.stargate.proto.QueryOuterClass.Value.UnsetOrBuilder>(
(io.stargate.proto.QueryOuterClass.Value.Unset) inner_,
getParentForChildren(),
isClean());
inner_ = null;
}
innerCase_ = 2;
onChanged();;
return unsetBuilder_;
}
/**
*
* CQL types: tinyint, smallint, int, bigint, counter, timestamp
*
*
* sint64 int = 3;
* @return Whether the int field is set.
*/
public boolean hasInt() {
return innerCase_ == 3;
}
/**
*
* CQL types: tinyint, smallint, int, bigint, counter, timestamp
*
*
* sint64 int = 3;
* @return The int.
*/
public long getInt() {
if (innerCase_ == 3) {
return (java.lang.Long) inner_;
}
return 0L;
}
/**
*
* CQL types: tinyint, smallint, int, bigint, counter, timestamp
*
*
* sint64 int = 3;
* @param value The int to set.
* @return This builder for chaining.
*/
public Builder setInt(long value) {
innerCase_ = 3;
inner_ = value;
onChanged();
return this;
}
/**
*
* CQL types: tinyint, smallint, int, bigint, counter, timestamp
*
*
* sint64 int = 3;
* @return This builder for chaining.
*/
public Builder clearInt() {
if (innerCase_ == 3) {
innerCase_ = 0;
inner_ = null;
onChanged();
}
return this;
}
/**
*
* CQL types: float
*
*
* float float = 4;
* @return Whether the float field is set.
*/
public boolean hasFloat() {
return innerCase_ == 4;
}
/**
*
* CQL types: float
*
*
* float float = 4;
* @return The float.
*/
public float getFloat() {
if (innerCase_ == 4) {
return (java.lang.Float) inner_;
}
return 0F;
}
/**
*
* CQL types: float
*
*
* float float = 4;
* @param value The float to set.
* @return This builder for chaining.
*/
public Builder setFloat(float value) {
innerCase_ = 4;
inner_ = value;
onChanged();
return this;
}
/**
*
* CQL types: float
*
*
* float float = 4;
* @return This builder for chaining.
*/
public Builder clearFloat() {
if (innerCase_ == 4) {
innerCase_ = 0;
inner_ = null;
onChanged();
}
return this;
}
/**
*
* CQL types: double
*
*
* double double = 5;
* @return Whether the double field is set.
*/
public boolean hasDouble() {
return innerCase_ == 5;
}
/**
*
* CQL types: double
*
*
* double double = 5;
* @return The double.
*/
public double getDouble() {
if (innerCase_ == 5) {
return (java.lang.Double) inner_;
}
return 0D;
}
/**
*
* CQL types: double
*
*
* double double = 5;
* @param value The double to set.
* @return This builder for chaining.
*/
public Builder setDouble(double value) {
innerCase_ = 5;
inner_ = value;
onChanged();
return this;
}
/**
*
* CQL types: double
*
*
* double double = 5;
* @return This builder for chaining.
*/
public Builder clearDouble() {
if (innerCase_ == 5) {
innerCase_ = 0;
inner_ = null;
onChanged();
}
return this;
}
/**
*
* CQL types: boolean
*
*
* bool boolean = 6;
* @return Whether the boolean field is set.
*/
public boolean hasBoolean() {
return innerCase_ == 6;
}
/**
*
* CQL types: boolean
*
*
* bool boolean = 6;
* @return The boolean.
*/
public boolean getBoolean() {
if (innerCase_ == 6) {
return (java.lang.Boolean) inner_;
}
return false;
}
/**
*
* CQL types: boolean
*
*
* bool boolean = 6;
* @param value The boolean to set.
* @return This builder for chaining.
*/
public Builder setBoolean(boolean value) {
innerCase_ = 6;
inner_ = value;
onChanged();
return this;
}
/**
*
* CQL types: boolean
*
*
* bool boolean = 6;
* @return This builder for chaining.
*/
public Builder clearBoolean() {
if (innerCase_ == 6) {
innerCase_ = 0;
inner_ = null;
onChanged();
}
return this;
}
/**
*
* CQL types: ascii, varchar, text
*
*
* string string = 7;
* @return Whether the string field is set.
*/
@java.lang.Override
public boolean hasString() {
return innerCase_ == 7;
}
/**
*
* CQL types: ascii, varchar, text
*
*
* string string = 7;
* @return The string.
*/
@java.lang.Override
public java.lang.String getString() {
java.lang.Object ref = "";
if (innerCase_ == 7) {
ref = inner_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (innerCase_ == 7) {
inner_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* CQL types: ascii, varchar, text
*
*
* string string = 7;
* @return The bytes for string.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStringBytes() {
java.lang.Object ref = "";
if (innerCase_ == 7) {
ref = inner_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (innerCase_ == 7) {
inner_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* CQL types: ascii, varchar, text
*
*
* string string = 7;
* @param value The string to set.
* @return This builder for chaining.
*/
public Builder setString(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
innerCase_ = 7;
inner_ = value;
onChanged();
return this;
}
/**
*
* CQL types: ascii, varchar, text
*
*
* string string = 7;
* @return This builder for chaining.
*/
public Builder clearString() {
if (innerCase_ == 7) {
innerCase_ = 0;
inner_ = null;
onChanged();
}
return this;
}
/**
*
* CQL types: ascii, varchar, text
*
*
* string string = 7;
* @param value The bytes for string to set.
* @return This builder for chaining.
*/
public Builder setStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
innerCase_ = 7;
inner_ = value;
onChanged();
return this;
}
/**
*
* CQL types: blob, custom
*
*
* bytes bytes = 8;
* @return Whether the bytes field is set.
*/
public boolean hasBytes() {
return innerCase_ == 8;
}
/**
*
* CQL types: blob, custom
*
*
* bytes bytes = 8;
* @return The bytes.
*/
public com.google.protobuf.ByteString getBytes() {
if (innerCase_ == 8) {
return (com.google.protobuf.ByteString) inner_;
}
return com.google.protobuf.ByteString.EMPTY;
}
/**
*
* CQL types: blob, custom
*
*
* bytes bytes = 8;
* @param value The bytes to set.
* @return This builder for chaining.
*/
public Builder setBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
innerCase_ = 8;
inner_ = value;
onChanged();
return this;
}
/**
*
* CQL types: blob, custom
*
*
* bytes bytes = 8;
* @return This builder for chaining.
*/
public Builder clearBytes() {
if (innerCase_ == 8) {
innerCase_ = 0;
inner_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Inet, io.stargate.proto.QueryOuterClass.Inet.Builder, io.stargate.proto.QueryOuterClass.InetOrBuilder> inetBuilder_;
/**
*
* CQL types: inet
*
*
* .stargate.Inet inet = 9;
* @return Whether the inet field is set.
*/
@java.lang.Override
public boolean hasInet() {
return innerCase_ == 9;
}
/**
*
* CQL types: inet
*
*
* .stargate.Inet inet = 9;
* @return The inet.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Inet getInet() {
if (inetBuilder_ == null) {
if (innerCase_ == 9) {
return (io.stargate.proto.QueryOuterClass.Inet) inner_;
}
return io.stargate.proto.QueryOuterClass.Inet.getDefaultInstance();
} else {
if (innerCase_ == 9) {
return inetBuilder_.getMessage();
}
return io.stargate.proto.QueryOuterClass.Inet.getDefaultInstance();
}
}
/**
*
* CQL types: inet
*
*
* .stargate.Inet inet = 9;
*/
public Builder setInet(io.stargate.proto.QueryOuterClass.Inet value) {
if (inetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
inner_ = value;
onChanged();
} else {
inetBuilder_.setMessage(value);
}
innerCase_ = 9;
return this;
}
/**
*
* CQL types: inet
*
*
* .stargate.Inet inet = 9;
*/
public Builder setInet(
io.stargate.proto.QueryOuterClass.Inet.Builder builderForValue) {
if (inetBuilder_ == null) {
inner_ = builderForValue.build();
onChanged();
} else {
inetBuilder_.setMessage(builderForValue.build());
}
innerCase_ = 9;
return this;
}
/**
*
* CQL types: inet
*
*
* .stargate.Inet inet = 9;
*/
public Builder mergeInet(io.stargate.proto.QueryOuterClass.Inet value) {
if (inetBuilder_ == null) {
if (innerCase_ == 9 &&
inner_ != io.stargate.proto.QueryOuterClass.Inet.getDefaultInstance()) {
inner_ = io.stargate.proto.QueryOuterClass.Inet.newBuilder((io.stargate.proto.QueryOuterClass.Inet) inner_)
.mergeFrom(value).buildPartial();
} else {
inner_ = value;
}
onChanged();
} else {
if (innerCase_ == 9) {
inetBuilder_.mergeFrom(value);
}
inetBuilder_.setMessage(value);
}
innerCase_ = 9;
return this;
}
/**
*
* CQL types: inet
*
*
* .stargate.Inet inet = 9;
*/
public Builder clearInet() {
if (inetBuilder_ == null) {
if (innerCase_ == 9) {
innerCase_ = 0;
inner_ = null;
onChanged();
}
} else {
if (innerCase_ == 9) {
innerCase_ = 0;
inner_ = null;
}
inetBuilder_.clear();
}
return this;
}
/**
*
* CQL types: inet
*
*
* .stargate.Inet inet = 9;
*/
public io.stargate.proto.QueryOuterClass.Inet.Builder getInetBuilder() {
return getInetFieldBuilder().getBuilder();
}
/**
*
* CQL types: inet
*
*
* .stargate.Inet inet = 9;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.InetOrBuilder getInetOrBuilder() {
if ((innerCase_ == 9) && (inetBuilder_ != null)) {
return inetBuilder_.getMessageOrBuilder();
} else {
if (innerCase_ == 9) {
return (io.stargate.proto.QueryOuterClass.Inet) inner_;
}
return io.stargate.proto.QueryOuterClass.Inet.getDefaultInstance();
}
}
/**
*
* CQL types: inet
*
*
* .stargate.Inet inet = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Inet, io.stargate.proto.QueryOuterClass.Inet.Builder, io.stargate.proto.QueryOuterClass.InetOrBuilder>
getInetFieldBuilder() {
if (inetBuilder_ == null) {
if (!(innerCase_ == 9)) {
inner_ = io.stargate.proto.QueryOuterClass.Inet.getDefaultInstance();
}
inetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Inet, io.stargate.proto.QueryOuterClass.Inet.Builder, io.stargate.proto.QueryOuterClass.InetOrBuilder>(
(io.stargate.proto.QueryOuterClass.Inet) inner_,
getParentForChildren(),
isClean());
inner_ = null;
}
innerCase_ = 9;
onChanged();;
return inetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Uuid, io.stargate.proto.QueryOuterClass.Uuid.Builder, io.stargate.proto.QueryOuterClass.UuidOrBuilder> uuidBuilder_;
/**
*
* CQL types: uuid, timeuuid
*
*
* .stargate.Uuid uuid = 10;
* @return Whether the uuid field is set.
*/
@java.lang.Override
public boolean hasUuid() {
return innerCase_ == 10;
}
/**
*
* CQL types: uuid, timeuuid
*
*
* .stargate.Uuid uuid = 10;
* @return The uuid.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Uuid getUuid() {
if (uuidBuilder_ == null) {
if (innerCase_ == 10) {
return (io.stargate.proto.QueryOuterClass.Uuid) inner_;
}
return io.stargate.proto.QueryOuterClass.Uuid.getDefaultInstance();
} else {
if (innerCase_ == 10) {
return uuidBuilder_.getMessage();
}
return io.stargate.proto.QueryOuterClass.Uuid.getDefaultInstance();
}
}
/**
*
* CQL types: uuid, timeuuid
*
*
* .stargate.Uuid uuid = 10;
*/
public Builder setUuid(io.stargate.proto.QueryOuterClass.Uuid value) {
if (uuidBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
inner_ = value;
onChanged();
} else {
uuidBuilder_.setMessage(value);
}
innerCase_ = 10;
return this;
}
/**
*
* CQL types: uuid, timeuuid
*
*
* .stargate.Uuid uuid = 10;
*/
public Builder setUuid(
io.stargate.proto.QueryOuterClass.Uuid.Builder builderForValue) {
if (uuidBuilder_ == null) {
inner_ = builderForValue.build();
onChanged();
} else {
uuidBuilder_.setMessage(builderForValue.build());
}
innerCase_ = 10;
return this;
}
/**
*
* CQL types: uuid, timeuuid
*
*
* .stargate.Uuid uuid = 10;
*/
public Builder mergeUuid(io.stargate.proto.QueryOuterClass.Uuid value) {
if (uuidBuilder_ == null) {
if (innerCase_ == 10 &&
inner_ != io.stargate.proto.QueryOuterClass.Uuid.getDefaultInstance()) {
inner_ = io.stargate.proto.QueryOuterClass.Uuid.newBuilder((io.stargate.proto.QueryOuterClass.Uuid) inner_)
.mergeFrom(value).buildPartial();
} else {
inner_ = value;
}
onChanged();
} else {
if (innerCase_ == 10) {
uuidBuilder_.mergeFrom(value);
}
uuidBuilder_.setMessage(value);
}
innerCase_ = 10;
return this;
}
/**
*
* CQL types: uuid, timeuuid
*
*
* .stargate.Uuid uuid = 10;
*/
public Builder clearUuid() {
if (uuidBuilder_ == null) {
if (innerCase_ == 10) {
innerCase_ = 0;
inner_ = null;
onChanged();
}
} else {
if (innerCase_ == 10) {
innerCase_ = 0;
inner_ = null;
}
uuidBuilder_.clear();
}
return this;
}
/**
*
* CQL types: uuid, timeuuid
*
*
* .stargate.Uuid uuid = 10;
*/
public io.stargate.proto.QueryOuterClass.Uuid.Builder getUuidBuilder() {
return getUuidFieldBuilder().getBuilder();
}
/**
*
* CQL types: uuid, timeuuid
*
*
* .stargate.Uuid uuid = 10;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.UuidOrBuilder getUuidOrBuilder() {
if ((innerCase_ == 10) && (uuidBuilder_ != null)) {
return uuidBuilder_.getMessageOrBuilder();
} else {
if (innerCase_ == 10) {
return (io.stargate.proto.QueryOuterClass.Uuid) inner_;
}
return io.stargate.proto.QueryOuterClass.Uuid.getDefaultInstance();
}
}
/**
*
* CQL types: uuid, timeuuid
*
*
* .stargate.Uuid uuid = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Uuid, io.stargate.proto.QueryOuterClass.Uuid.Builder, io.stargate.proto.QueryOuterClass.UuidOrBuilder>
getUuidFieldBuilder() {
if (uuidBuilder_ == null) {
if (!(innerCase_ == 10)) {
inner_ = io.stargate.proto.QueryOuterClass.Uuid.getDefaultInstance();
}
uuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Uuid, io.stargate.proto.QueryOuterClass.Uuid.Builder, io.stargate.proto.QueryOuterClass.UuidOrBuilder>(
(io.stargate.proto.QueryOuterClass.Uuid) inner_,
getParentForChildren(),
isClean());
inner_ = null;
}
innerCase_ = 10;
onChanged();;
return uuidBuilder_;
}
/**
*
* CQL types: date
* An unsigned integer representing days with Unix epoch (January, 1 1970) at 2^31.
* Examples:
* 0: -5877641-06-23
* 2^31: 1970-1-1
* 2^32: 5881580-07-11
*
*
* uint32 date = 11;
* @return Whether the date field is set.
*/
public boolean hasDate() {
return innerCase_ == 11;
}
/**
*
* CQL types: date
* An unsigned integer representing days with Unix epoch (January, 1 1970) at 2^31.
* Examples:
* 0: -5877641-06-23
* 2^31: 1970-1-1
* 2^32: 5881580-07-11
*
*
* uint32 date = 11;
* @return The date.
*/
public int getDate() {
if (innerCase_ == 11) {
return (java.lang.Integer) inner_;
}
return 0;
}
/**
*
* CQL types: date
* An unsigned integer representing days with Unix epoch (January, 1 1970) at 2^31.
* Examples:
* 0: -5877641-06-23
* 2^31: 1970-1-1
* 2^32: 5881580-07-11
*
*
* uint32 date = 11;
* @param value The date to set.
* @return This builder for chaining.
*/
public Builder setDate(int value) {
innerCase_ = 11;
inner_ = value;
onChanged();
return this;
}
/**
*
* CQL types: date
* An unsigned integer representing days with Unix epoch (January, 1 1970) at 2^31.
* Examples:
* 0: -5877641-06-23
* 2^31: 1970-1-1
* 2^32: 5881580-07-11
*
*
* uint32 date = 11;
* @return This builder for chaining.
*/
public Builder clearDate() {
if (innerCase_ == 11) {
innerCase_ = 0;
inner_ = null;
onChanged();
}
return this;
}
/**
*
* CQL types: time
* An unsigned integer representing the number of nanoseconds since midnight. Valid values are
* in the range 0 to 86399999999999 (inclusive).
*
*
* uint64 time = 12;
* @return Whether the time field is set.
*/
public boolean hasTime() {
return innerCase_ == 12;
}
/**
*
* CQL types: time
* An unsigned integer representing the number of nanoseconds since midnight. Valid values are
* in the range 0 to 86399999999999 (inclusive).
*
*
* uint64 time = 12;
* @return The time.
*/
public long getTime() {
if (innerCase_ == 12) {
return (java.lang.Long) inner_;
}
return 0L;
}
/**
*
* CQL types: time
* An unsigned integer representing the number of nanoseconds since midnight. Valid values are
* in the range 0 to 86399999999999 (inclusive).
*
*
* uint64 time = 12;
* @param value The time to set.
* @return This builder for chaining.
*/
public Builder setTime(long value) {
innerCase_ = 12;
inner_ = value;
onChanged();
return this;
}
/**
*
* CQL types: time
* An unsigned integer representing the number of nanoseconds since midnight. Valid values are
* in the range 0 to 86399999999999 (inclusive).
*
*
* uint64 time = 12;
* @return This builder for chaining.
*/
public Builder clearTime() {
if (innerCase_ == 12) {
innerCase_ = 0;
inner_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Duration, io.stargate.proto.QueryOuterClass.Duration.Builder, io.stargate.proto.QueryOuterClass.DurationOrBuilder> durationBuilder_;
/**
*
* CQL types: duration
*
*
* .stargate.Duration duration = 17;
* @return Whether the duration field is set.
*/
@java.lang.Override
public boolean hasDuration() {
return innerCase_ == 17;
}
/**
*
* CQL types: duration
*
*
* .stargate.Duration duration = 17;
* @return The duration.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Duration getDuration() {
if (durationBuilder_ == null) {
if (innerCase_ == 17) {
return (io.stargate.proto.QueryOuterClass.Duration) inner_;
}
return io.stargate.proto.QueryOuterClass.Duration.getDefaultInstance();
} else {
if (innerCase_ == 17) {
return durationBuilder_.getMessage();
}
return io.stargate.proto.QueryOuterClass.Duration.getDefaultInstance();
}
}
/**
*
* CQL types: duration
*
*
* .stargate.Duration duration = 17;
*/
public Builder setDuration(io.stargate.proto.QueryOuterClass.Duration value) {
if (durationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
inner_ = value;
onChanged();
} else {
durationBuilder_.setMessage(value);
}
innerCase_ = 17;
return this;
}
/**
*
* CQL types: duration
*
*
* .stargate.Duration duration = 17;
*/
public Builder setDuration(
io.stargate.proto.QueryOuterClass.Duration.Builder builderForValue) {
if (durationBuilder_ == null) {
inner_ = builderForValue.build();
onChanged();
} else {
durationBuilder_.setMessage(builderForValue.build());
}
innerCase_ = 17;
return this;
}
/**
*
* CQL types: duration
*
*
* .stargate.Duration duration = 17;
*/
public Builder mergeDuration(io.stargate.proto.QueryOuterClass.Duration value) {
if (durationBuilder_ == null) {
if (innerCase_ == 17 &&
inner_ != io.stargate.proto.QueryOuterClass.Duration.getDefaultInstance()) {
inner_ = io.stargate.proto.QueryOuterClass.Duration.newBuilder((io.stargate.proto.QueryOuterClass.Duration) inner_)
.mergeFrom(value).buildPartial();
} else {
inner_ = value;
}
onChanged();
} else {
if (innerCase_ == 17) {
durationBuilder_.mergeFrom(value);
}
durationBuilder_.setMessage(value);
}
innerCase_ = 17;
return this;
}
/**
*
* CQL types: duration
*
*
* .stargate.Duration duration = 17;
*/
public Builder clearDuration() {
if (durationBuilder_ == null) {
if (innerCase_ == 17) {
innerCase_ = 0;
inner_ = null;
onChanged();
}
} else {
if (innerCase_ == 17) {
innerCase_ = 0;
inner_ = null;
}
durationBuilder_.clear();
}
return this;
}
/**
*
* CQL types: duration
*
*
* .stargate.Duration duration = 17;
*/
public io.stargate.proto.QueryOuterClass.Duration.Builder getDurationBuilder() {
return getDurationFieldBuilder().getBuilder();
}
/**
*
* CQL types: duration
*
*
* .stargate.Duration duration = 17;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.DurationOrBuilder getDurationOrBuilder() {
if ((innerCase_ == 17) && (durationBuilder_ != null)) {
return durationBuilder_.getMessageOrBuilder();
} else {
if (innerCase_ == 17) {
return (io.stargate.proto.QueryOuterClass.Duration) inner_;
}
return io.stargate.proto.QueryOuterClass.Duration.getDefaultInstance();
}
}
/**
*
* CQL types: duration
*
*
* .stargate.Duration duration = 17;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Duration, io.stargate.proto.QueryOuterClass.Duration.Builder, io.stargate.proto.QueryOuterClass.DurationOrBuilder>
getDurationFieldBuilder() {
if (durationBuilder_ == null) {
if (!(innerCase_ == 17)) {
inner_ = io.stargate.proto.QueryOuterClass.Duration.getDefaultInstance();
}
durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Duration, io.stargate.proto.QueryOuterClass.Duration.Builder, io.stargate.proto.QueryOuterClass.DurationOrBuilder>(
(io.stargate.proto.QueryOuterClass.Duration) inner_,
getParentForChildren(),
isClean());
inner_ = null;
}
innerCase_ = 17;
onChanged();;
return durationBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Collection, io.stargate.proto.QueryOuterClass.Collection.Builder, io.stargate.proto.QueryOuterClass.CollectionOrBuilder> collectionBuilder_;
/**
*
* CQL types: list, set, map, tuple
*
*
* .stargate.Collection collection = 13;
* @return Whether the collection field is set.
*/
@java.lang.Override
public boolean hasCollection() {
return innerCase_ == 13;
}
/**
*
* CQL types: list, set, map, tuple
*
*
* .stargate.Collection collection = 13;
* @return The collection.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Collection getCollection() {
if (collectionBuilder_ == null) {
if (innerCase_ == 13) {
return (io.stargate.proto.QueryOuterClass.Collection) inner_;
}
return io.stargate.proto.QueryOuterClass.Collection.getDefaultInstance();
} else {
if (innerCase_ == 13) {
return collectionBuilder_.getMessage();
}
return io.stargate.proto.QueryOuterClass.Collection.getDefaultInstance();
}
}
/**
*
* CQL types: list, set, map, tuple
*
*
* .stargate.Collection collection = 13;
*/
public Builder setCollection(io.stargate.proto.QueryOuterClass.Collection value) {
if (collectionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
inner_ = value;
onChanged();
} else {
collectionBuilder_.setMessage(value);
}
innerCase_ = 13;
return this;
}
/**
*
* CQL types: list, set, map, tuple
*
*
* .stargate.Collection collection = 13;
*/
public Builder setCollection(
io.stargate.proto.QueryOuterClass.Collection.Builder builderForValue) {
if (collectionBuilder_ == null) {
inner_ = builderForValue.build();
onChanged();
} else {
collectionBuilder_.setMessage(builderForValue.build());
}
innerCase_ = 13;
return this;
}
/**
*
* CQL types: list, set, map, tuple
*
*
* .stargate.Collection collection = 13;
*/
public Builder mergeCollection(io.stargate.proto.QueryOuterClass.Collection value) {
if (collectionBuilder_ == null) {
if (innerCase_ == 13 &&
inner_ != io.stargate.proto.QueryOuterClass.Collection.getDefaultInstance()) {
inner_ = io.stargate.proto.QueryOuterClass.Collection.newBuilder((io.stargate.proto.QueryOuterClass.Collection) inner_)
.mergeFrom(value).buildPartial();
} else {
inner_ = value;
}
onChanged();
} else {
if (innerCase_ == 13) {
collectionBuilder_.mergeFrom(value);
}
collectionBuilder_.setMessage(value);
}
innerCase_ = 13;
return this;
}
/**
*
* CQL types: list, set, map, tuple
*
*
* .stargate.Collection collection = 13;
*/
public Builder clearCollection() {
if (collectionBuilder_ == null) {
if (innerCase_ == 13) {
innerCase_ = 0;
inner_ = null;
onChanged();
}
} else {
if (innerCase_ == 13) {
innerCase_ = 0;
inner_ = null;
}
collectionBuilder_.clear();
}
return this;
}
/**
*
* CQL types: list, set, map, tuple
*
*
* .stargate.Collection collection = 13;
*/
public io.stargate.proto.QueryOuterClass.Collection.Builder getCollectionBuilder() {
return getCollectionFieldBuilder().getBuilder();
}
/**
*
* CQL types: list, set, map, tuple
*
*
* .stargate.Collection collection = 13;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.CollectionOrBuilder getCollectionOrBuilder() {
if ((innerCase_ == 13) && (collectionBuilder_ != null)) {
return collectionBuilder_.getMessageOrBuilder();
} else {
if (innerCase_ == 13) {
return (io.stargate.proto.QueryOuterClass.Collection) inner_;
}
return io.stargate.proto.QueryOuterClass.Collection.getDefaultInstance();
}
}
/**
*
* CQL types: list, set, map, tuple
*
*
* .stargate.Collection collection = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Collection, io.stargate.proto.QueryOuterClass.Collection.Builder, io.stargate.proto.QueryOuterClass.CollectionOrBuilder>
getCollectionFieldBuilder() {
if (collectionBuilder_ == null) {
if (!(innerCase_ == 13)) {
inner_ = io.stargate.proto.QueryOuterClass.Collection.getDefaultInstance();
}
collectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Collection, io.stargate.proto.QueryOuterClass.Collection.Builder, io.stargate.proto.QueryOuterClass.CollectionOrBuilder>(
(io.stargate.proto.QueryOuterClass.Collection) inner_,
getParentForChildren(),
isClean());
inner_ = null;
}
innerCase_ = 13;
onChanged();;
return collectionBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.UdtValue, io.stargate.proto.QueryOuterClass.UdtValue.Builder, io.stargate.proto.QueryOuterClass.UdtValueOrBuilder> udtBuilder_;
/**
*
* CQL types: user defined types
*
*
* .stargate.UdtValue udt = 14;
* @return Whether the udt field is set.
*/
@java.lang.Override
public boolean hasUdt() {
return innerCase_ == 14;
}
/**
*
* CQL types: user defined types
*
*
* .stargate.UdtValue udt = 14;
* @return The udt.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.UdtValue getUdt() {
if (udtBuilder_ == null) {
if (innerCase_ == 14) {
return (io.stargate.proto.QueryOuterClass.UdtValue) inner_;
}
return io.stargate.proto.QueryOuterClass.UdtValue.getDefaultInstance();
} else {
if (innerCase_ == 14) {
return udtBuilder_.getMessage();
}
return io.stargate.proto.QueryOuterClass.UdtValue.getDefaultInstance();
}
}
/**
*
* CQL types: user defined types
*
*
* .stargate.UdtValue udt = 14;
*/
public Builder setUdt(io.stargate.proto.QueryOuterClass.UdtValue value) {
if (udtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
inner_ = value;
onChanged();
} else {
udtBuilder_.setMessage(value);
}
innerCase_ = 14;
return this;
}
/**
*
* CQL types: user defined types
*
*
* .stargate.UdtValue udt = 14;
*/
public Builder setUdt(
io.stargate.proto.QueryOuterClass.UdtValue.Builder builderForValue) {
if (udtBuilder_ == null) {
inner_ = builderForValue.build();
onChanged();
} else {
udtBuilder_.setMessage(builderForValue.build());
}
innerCase_ = 14;
return this;
}
/**
*
* CQL types: user defined types
*
*
* .stargate.UdtValue udt = 14;
*/
public Builder mergeUdt(io.stargate.proto.QueryOuterClass.UdtValue value) {
if (udtBuilder_ == null) {
if (innerCase_ == 14 &&
inner_ != io.stargate.proto.QueryOuterClass.UdtValue.getDefaultInstance()) {
inner_ = io.stargate.proto.QueryOuterClass.UdtValue.newBuilder((io.stargate.proto.QueryOuterClass.UdtValue) inner_)
.mergeFrom(value).buildPartial();
} else {
inner_ = value;
}
onChanged();
} else {
if (innerCase_ == 14) {
udtBuilder_.mergeFrom(value);
}
udtBuilder_.setMessage(value);
}
innerCase_ = 14;
return this;
}
/**
*
* CQL types: user defined types
*
*
* .stargate.UdtValue udt = 14;
*/
public Builder clearUdt() {
if (udtBuilder_ == null) {
if (innerCase_ == 14) {
innerCase_ = 0;
inner_ = null;
onChanged();
}
} else {
if (innerCase_ == 14) {
innerCase_ = 0;
inner_ = null;
}
udtBuilder_.clear();
}
return this;
}
/**
*
* CQL types: user defined types
*
*
* .stargate.UdtValue udt = 14;
*/
public io.stargate.proto.QueryOuterClass.UdtValue.Builder getUdtBuilder() {
return getUdtFieldBuilder().getBuilder();
}
/**
*
* CQL types: user defined types
*
*
* .stargate.UdtValue udt = 14;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.UdtValueOrBuilder getUdtOrBuilder() {
if ((innerCase_ == 14) && (udtBuilder_ != null)) {
return udtBuilder_.getMessageOrBuilder();
} else {
if (innerCase_ == 14) {
return (io.stargate.proto.QueryOuterClass.UdtValue) inner_;
}
return io.stargate.proto.QueryOuterClass.UdtValue.getDefaultInstance();
}
}
/**
*
* CQL types: user defined types
*
*
* .stargate.UdtValue udt = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.UdtValue, io.stargate.proto.QueryOuterClass.UdtValue.Builder, io.stargate.proto.QueryOuterClass.UdtValueOrBuilder>
getUdtFieldBuilder() {
if (udtBuilder_ == null) {
if (!(innerCase_ == 14)) {
inner_ = io.stargate.proto.QueryOuterClass.UdtValue.getDefaultInstance();
}
udtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.UdtValue, io.stargate.proto.QueryOuterClass.UdtValue.Builder, io.stargate.proto.QueryOuterClass.UdtValueOrBuilder>(
(io.stargate.proto.QueryOuterClass.UdtValue) inner_,
getParentForChildren(),
isClean());
inner_ = null;
}
innerCase_ = 14;
onChanged();;
return udtBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Varint, io.stargate.proto.QueryOuterClass.Varint.Builder, io.stargate.proto.QueryOuterClass.VarintOrBuilder> varintBuilder_;
/**
*
* CQL types: varint
*
*
* .stargate.Varint varint = 15;
* @return Whether the varint field is set.
*/
@java.lang.Override
public boolean hasVarint() {
return innerCase_ == 15;
}
/**
*
* CQL types: varint
*
*
* .stargate.Varint varint = 15;
* @return The varint.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Varint getVarint() {
if (varintBuilder_ == null) {
if (innerCase_ == 15) {
return (io.stargate.proto.QueryOuterClass.Varint) inner_;
}
return io.stargate.proto.QueryOuterClass.Varint.getDefaultInstance();
} else {
if (innerCase_ == 15) {
return varintBuilder_.getMessage();
}
return io.stargate.proto.QueryOuterClass.Varint.getDefaultInstance();
}
}
/**
*
* CQL types: varint
*
*
* .stargate.Varint varint = 15;
*/
public Builder setVarint(io.stargate.proto.QueryOuterClass.Varint value) {
if (varintBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
inner_ = value;
onChanged();
} else {
varintBuilder_.setMessage(value);
}
innerCase_ = 15;
return this;
}
/**
*
* CQL types: varint
*
*
* .stargate.Varint varint = 15;
*/
public Builder setVarint(
io.stargate.proto.QueryOuterClass.Varint.Builder builderForValue) {
if (varintBuilder_ == null) {
inner_ = builderForValue.build();
onChanged();
} else {
varintBuilder_.setMessage(builderForValue.build());
}
innerCase_ = 15;
return this;
}
/**
*
* CQL types: varint
*
*
* .stargate.Varint varint = 15;
*/
public Builder mergeVarint(io.stargate.proto.QueryOuterClass.Varint value) {
if (varintBuilder_ == null) {
if (innerCase_ == 15 &&
inner_ != io.stargate.proto.QueryOuterClass.Varint.getDefaultInstance()) {
inner_ = io.stargate.proto.QueryOuterClass.Varint.newBuilder((io.stargate.proto.QueryOuterClass.Varint) inner_)
.mergeFrom(value).buildPartial();
} else {
inner_ = value;
}
onChanged();
} else {
if (innerCase_ == 15) {
varintBuilder_.mergeFrom(value);
}
varintBuilder_.setMessage(value);
}
innerCase_ = 15;
return this;
}
/**
*
* CQL types: varint
*
*
* .stargate.Varint varint = 15;
*/
public Builder clearVarint() {
if (varintBuilder_ == null) {
if (innerCase_ == 15) {
innerCase_ = 0;
inner_ = null;
onChanged();
}
} else {
if (innerCase_ == 15) {
innerCase_ = 0;
inner_ = null;
}
varintBuilder_.clear();
}
return this;
}
/**
*
* CQL types: varint
*
*
* .stargate.Varint varint = 15;
*/
public io.stargate.proto.QueryOuterClass.Varint.Builder getVarintBuilder() {
return getVarintFieldBuilder().getBuilder();
}
/**
*
* CQL types: varint
*
*
* .stargate.Varint varint = 15;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.VarintOrBuilder getVarintOrBuilder() {
if ((innerCase_ == 15) && (varintBuilder_ != null)) {
return varintBuilder_.getMessageOrBuilder();
} else {
if (innerCase_ == 15) {
return (io.stargate.proto.QueryOuterClass.Varint) inner_;
}
return io.stargate.proto.QueryOuterClass.Varint.getDefaultInstance();
}
}
/**
*
* CQL types: varint
*
*
* .stargate.Varint varint = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Varint, io.stargate.proto.QueryOuterClass.Varint.Builder, io.stargate.proto.QueryOuterClass.VarintOrBuilder>
getVarintFieldBuilder() {
if (varintBuilder_ == null) {
if (!(innerCase_ == 15)) {
inner_ = io.stargate.proto.QueryOuterClass.Varint.getDefaultInstance();
}
varintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Varint, io.stargate.proto.QueryOuterClass.Varint.Builder, io.stargate.proto.QueryOuterClass.VarintOrBuilder>(
(io.stargate.proto.QueryOuterClass.Varint) inner_,
getParentForChildren(),
isClean());
inner_ = null;
}
innerCase_ = 15;
onChanged();;
return varintBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Decimal, io.stargate.proto.QueryOuterClass.Decimal.Builder, io.stargate.proto.QueryOuterClass.DecimalOrBuilder> decimalBuilder_;
/**
*
* CQL types: decimal
*
*
* .stargate.Decimal decimal = 16;
* @return Whether the decimal field is set.
*/
@java.lang.Override
public boolean hasDecimal() {
return innerCase_ == 16;
}
/**
*
* CQL types: decimal
*
*
* .stargate.Decimal decimal = 16;
* @return The decimal.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Decimal getDecimal() {
if (decimalBuilder_ == null) {
if (innerCase_ == 16) {
return (io.stargate.proto.QueryOuterClass.Decimal) inner_;
}
return io.stargate.proto.QueryOuterClass.Decimal.getDefaultInstance();
} else {
if (innerCase_ == 16) {
return decimalBuilder_.getMessage();
}
return io.stargate.proto.QueryOuterClass.Decimal.getDefaultInstance();
}
}
/**
*
* CQL types: decimal
*
*
* .stargate.Decimal decimal = 16;
*/
public Builder setDecimal(io.stargate.proto.QueryOuterClass.Decimal value) {
if (decimalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
inner_ = value;
onChanged();
} else {
decimalBuilder_.setMessage(value);
}
innerCase_ = 16;
return this;
}
/**
*
* CQL types: decimal
*
*
* .stargate.Decimal decimal = 16;
*/
public Builder setDecimal(
io.stargate.proto.QueryOuterClass.Decimal.Builder builderForValue) {
if (decimalBuilder_ == null) {
inner_ = builderForValue.build();
onChanged();
} else {
decimalBuilder_.setMessage(builderForValue.build());
}
innerCase_ = 16;
return this;
}
/**
*
* CQL types: decimal
*
*
* .stargate.Decimal decimal = 16;
*/
public Builder mergeDecimal(io.stargate.proto.QueryOuterClass.Decimal value) {
if (decimalBuilder_ == null) {
if (innerCase_ == 16 &&
inner_ != io.stargate.proto.QueryOuterClass.Decimal.getDefaultInstance()) {
inner_ = io.stargate.proto.QueryOuterClass.Decimal.newBuilder((io.stargate.proto.QueryOuterClass.Decimal) inner_)
.mergeFrom(value).buildPartial();
} else {
inner_ = value;
}
onChanged();
} else {
if (innerCase_ == 16) {
decimalBuilder_.mergeFrom(value);
}
decimalBuilder_.setMessage(value);
}
innerCase_ = 16;
return this;
}
/**
*
* CQL types: decimal
*
*
* .stargate.Decimal decimal = 16;
*/
public Builder clearDecimal() {
if (decimalBuilder_ == null) {
if (innerCase_ == 16) {
innerCase_ = 0;
inner_ = null;
onChanged();
}
} else {
if (innerCase_ == 16) {
innerCase_ = 0;
inner_ = null;
}
decimalBuilder_.clear();
}
return this;
}
/**
*
* CQL types: decimal
*
*
* .stargate.Decimal decimal = 16;
*/
public io.stargate.proto.QueryOuterClass.Decimal.Builder getDecimalBuilder() {
return getDecimalFieldBuilder().getBuilder();
}
/**
*
* CQL types: decimal
*
*
* .stargate.Decimal decimal = 16;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.DecimalOrBuilder getDecimalOrBuilder() {
if ((innerCase_ == 16) && (decimalBuilder_ != null)) {
return decimalBuilder_.getMessageOrBuilder();
} else {
if (innerCase_ == 16) {
return (io.stargate.proto.QueryOuterClass.Decimal) inner_;
}
return io.stargate.proto.QueryOuterClass.Decimal.getDefaultInstance();
}
}
/**
*
* CQL types: decimal
*
*
* .stargate.Decimal decimal = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Decimal, io.stargate.proto.QueryOuterClass.Decimal.Builder, io.stargate.proto.QueryOuterClass.DecimalOrBuilder>
getDecimalFieldBuilder() {
if (decimalBuilder_ == null) {
if (!(innerCase_ == 16)) {
inner_ = io.stargate.proto.QueryOuterClass.Decimal.getDefaultInstance();
}
decimalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Decimal, io.stargate.proto.QueryOuterClass.Decimal.Builder, io.stargate.proto.QueryOuterClass.DecimalOrBuilder>(
(io.stargate.proto.QueryOuterClass.Decimal) inner_,
getParentForChildren(),
isClean());
inner_ = null;
}
innerCase_ = 16;
onChanged();;
return decimalBuilder_;
}
@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:stargate.Value)
}
// @@protoc_insertion_point(class_scope:stargate.Value)
private static final io.stargate.proto.QueryOuterClass.Value DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.Value();
}
public static io.stargate.proto.QueryOuterClass.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 io.stargate.proto.QueryOuterClass.Value getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.Query)
com.google.protobuf.MessageOrBuilder {
/**
*
* The query string. It can contain anonymous placeholders identified by a question mark (?), or
* named placeholders prefixed by a column (:name).
*
*
* string cql = 1;
* @return The cql.
*/
java.lang.String getCql();
/**
*
* The query string. It can contain anonymous placeholders identified by a question mark (?), or
* named placeholders prefixed by a column (:name).
*
*
* string cql = 1;
* @return The bytes for cql.
*/
com.google.protobuf.ByteString
getCqlBytes();
/**
*
* The values to fill the placeholders in the query string.
*
*
* .stargate.Values values = 2;
* @return Whether the values field is set.
*/
boolean hasValues();
/**
*
* The values to fill the placeholders in the query string.
*
*
* .stargate.Values values = 2;
* @return The values.
*/
io.stargate.proto.QueryOuterClass.Values getValues();
/**
*
* The values to fill the placeholders in the query string.
*
*
* .stargate.Values values = 2;
*/
io.stargate.proto.QueryOuterClass.ValuesOrBuilder getValuesOrBuilder();
/**
*
* The execution parameters for the query.
*
*
* .stargate.QueryParameters parameters = 3;
* @return Whether the parameters field is set.
*/
boolean hasParameters();
/**
*
* The execution parameters for the query.
*
*
* .stargate.QueryParameters parameters = 3;
* @return The parameters.
*/
io.stargate.proto.QueryOuterClass.QueryParameters getParameters();
/**
*
* The execution parameters for the query.
*
*
* .stargate.QueryParameters parameters = 3;
*/
io.stargate.proto.QueryOuterClass.QueryParametersOrBuilder getParametersOrBuilder();
}
/**
*
* A single CQL query.
*
*
* Protobuf type {@code stargate.Query}
*/
public static final class Query extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.Query)
QueryOrBuilder {
private static final long serialVersionUID = 0L;
// Use Query.newBuilder() to construct.
private Query(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Query() {
cql_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Query();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Query(
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();
cql_ = s;
break;
}
case 18: {
io.stargate.proto.QueryOuterClass.Values.Builder subBuilder = null;
if (values_ != null) {
subBuilder = values_.toBuilder();
}
values_ = input.readMessage(io.stargate.proto.QueryOuterClass.Values.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(values_);
values_ = subBuilder.buildPartial();
}
break;
}
case 26: {
io.stargate.proto.QueryOuterClass.QueryParameters.Builder subBuilder = null;
if (parameters_ != null) {
subBuilder = parameters_.toBuilder();
}
parameters_ = input.readMessage(io.stargate.proto.QueryOuterClass.QueryParameters.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(parameters_);
parameters_ = 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 io.stargate.proto.QueryOuterClass.internal_static_stargate_Query_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Query_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Query.class, io.stargate.proto.QueryOuterClass.Query.Builder.class);
}
public static final int CQL_FIELD_NUMBER = 1;
private volatile java.lang.Object cql_;
/**
*
* The query string. It can contain anonymous placeholders identified by a question mark (?), or
* named placeholders prefixed by a column (:name).
*
*
* string cql = 1;
* @return The cql.
*/
@java.lang.Override
public java.lang.String getCql() {
java.lang.Object ref = cql_;
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();
cql_ = s;
return s;
}
}
/**
*
* The query string. It can contain anonymous placeholders identified by a question mark (?), or
* named placeholders prefixed by a column (:name).
*
*
* string cql = 1;
* @return The bytes for cql.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCqlBytes() {
java.lang.Object ref = cql_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cql_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUES_FIELD_NUMBER = 2;
private io.stargate.proto.QueryOuterClass.Values values_;
/**
*
* The values to fill the placeholders in the query string.
*
*
* .stargate.Values values = 2;
* @return Whether the values field is set.
*/
@java.lang.Override
public boolean hasValues() {
return values_ != null;
}
/**
*
* The values to fill the placeholders in the query string.
*
*
* .stargate.Values values = 2;
* @return The values.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Values getValues() {
return values_ == null ? io.stargate.proto.QueryOuterClass.Values.getDefaultInstance() : values_;
}
/**
*
* The values to fill the placeholders in the query string.
*
*
* .stargate.Values values = 2;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ValuesOrBuilder getValuesOrBuilder() {
return getValues();
}
public static final int PARAMETERS_FIELD_NUMBER = 3;
private io.stargate.proto.QueryOuterClass.QueryParameters parameters_;
/**
*
* The execution parameters for the query.
*
*
* .stargate.QueryParameters parameters = 3;
* @return Whether the parameters field is set.
*/
@java.lang.Override
public boolean hasParameters() {
return parameters_ != null;
}
/**
*
* The execution parameters for the query.
*
*
* .stargate.QueryParameters parameters = 3;
* @return The parameters.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.QueryParameters getParameters() {
return parameters_ == null ? io.stargate.proto.QueryOuterClass.QueryParameters.getDefaultInstance() : parameters_;
}
/**
*
* The execution parameters for the query.
*
*
* .stargate.QueryParameters parameters = 3;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.QueryParametersOrBuilder getParametersOrBuilder() {
return getParameters();
}
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(cql_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cql_);
}
if (values_ != null) {
output.writeMessage(2, getValues());
}
if (parameters_ != null) {
output.writeMessage(3, getParameters());
}
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(cql_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cql_);
}
if (values_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getValues());
}
if (parameters_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getParameters());
}
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 io.stargate.proto.QueryOuterClass.Query)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.Query other = (io.stargate.proto.QueryOuterClass.Query) obj;
if (!getCql()
.equals(other.getCql())) return false;
if (hasValues() != other.hasValues()) return false;
if (hasValues()) {
if (!getValues()
.equals(other.getValues())) return false;
}
if (hasParameters() != other.hasParameters()) return false;
if (hasParameters()) {
if (!getParameters()
.equals(other.getParameters())) 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) + CQL_FIELD_NUMBER;
hash = (53 * hash) + getCql().hashCode();
if (hasValues()) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValues().hashCode();
}
if (hasParameters()) {
hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getParameters().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.Query parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Query parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Query parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Query parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Query parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Query parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Query parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Query 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 io.stargate.proto.QueryOuterClass.Query parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Query 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 io.stargate.proto.QueryOuterClass.Query parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Query 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(io.stargate.proto.QueryOuterClass.Query 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;
}
/**
*
* A single CQL query.
*
*
* Protobuf type {@code stargate.Query}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.Query)
io.stargate.proto.QueryOuterClass.QueryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Query_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Query_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Query.class, io.stargate.proto.QueryOuterClass.Query.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.Query.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();
cql_ = "";
if (valuesBuilder_ == null) {
values_ = null;
} else {
values_ = null;
valuesBuilder_ = null;
}
if (parametersBuilder_ == null) {
parameters_ = null;
} else {
parameters_ = null;
parametersBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Query_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Query getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.Query.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Query build() {
io.stargate.proto.QueryOuterClass.Query result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Query buildPartial() {
io.stargate.proto.QueryOuterClass.Query result = new io.stargate.proto.QueryOuterClass.Query(this);
result.cql_ = cql_;
if (valuesBuilder_ == null) {
result.values_ = values_;
} else {
result.values_ = valuesBuilder_.build();
}
if (parametersBuilder_ == null) {
result.parameters_ = parameters_;
} else {
result.parameters_ = parametersBuilder_.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 io.stargate.proto.QueryOuterClass.Query) {
return mergeFrom((io.stargate.proto.QueryOuterClass.Query)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.Query other) {
if (other == io.stargate.proto.QueryOuterClass.Query.getDefaultInstance()) return this;
if (!other.getCql().isEmpty()) {
cql_ = other.cql_;
onChanged();
}
if (other.hasValues()) {
mergeValues(other.getValues());
}
if (other.hasParameters()) {
mergeParameters(other.getParameters());
}
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 {
io.stargate.proto.QueryOuterClass.Query parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.Query) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object cql_ = "";
/**
*
* The query string. It can contain anonymous placeholders identified by a question mark (?), or
* named placeholders prefixed by a column (:name).
*
*
* string cql = 1;
* @return The cql.
*/
public java.lang.String getCql() {
java.lang.Object ref = cql_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cql_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The query string. It can contain anonymous placeholders identified by a question mark (?), or
* named placeholders prefixed by a column (:name).
*
*
* string cql = 1;
* @return The bytes for cql.
*/
public com.google.protobuf.ByteString
getCqlBytes() {
java.lang.Object ref = cql_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cql_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The query string. It can contain anonymous placeholders identified by a question mark (?), or
* named placeholders prefixed by a column (:name).
*
*
* string cql = 1;
* @param value The cql to set.
* @return This builder for chaining.
*/
public Builder setCql(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
cql_ = value;
onChanged();
return this;
}
/**
*
* The query string. It can contain anonymous placeholders identified by a question mark (?), or
* named placeholders prefixed by a column (:name).
*
*
* string cql = 1;
* @return This builder for chaining.
*/
public Builder clearCql() {
cql_ = getDefaultInstance().getCql();
onChanged();
return this;
}
/**
*
* The query string. It can contain anonymous placeholders identified by a question mark (?), or
* named placeholders prefixed by a column (:name).
*
*
* string cql = 1;
* @param value The bytes for cql to set.
* @return This builder for chaining.
*/
public Builder setCqlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
cql_ = value;
onChanged();
return this;
}
private io.stargate.proto.QueryOuterClass.Values values_;
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Values, io.stargate.proto.QueryOuterClass.Values.Builder, io.stargate.proto.QueryOuterClass.ValuesOrBuilder> valuesBuilder_;
/**
*
* The values to fill the placeholders in the query string.
*
*
* .stargate.Values values = 2;
* @return Whether the values field is set.
*/
public boolean hasValues() {
return valuesBuilder_ != null || values_ != null;
}
/**
*
* The values to fill the placeholders in the query string.
*
*
* .stargate.Values values = 2;
* @return The values.
*/
public io.stargate.proto.QueryOuterClass.Values getValues() {
if (valuesBuilder_ == null) {
return values_ == null ? io.stargate.proto.QueryOuterClass.Values.getDefaultInstance() : values_;
} else {
return valuesBuilder_.getMessage();
}
}
/**
*
* The values to fill the placeholders in the query string.
*
*
* .stargate.Values values = 2;
*/
public Builder setValues(io.stargate.proto.QueryOuterClass.Values value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
values_ = value;
onChanged();
} else {
valuesBuilder_.setMessage(value);
}
return this;
}
/**
*
* The values to fill the placeholders in the query string.
*
*
* .stargate.Values values = 2;
*/
public Builder setValues(
io.stargate.proto.QueryOuterClass.Values.Builder builderForValue) {
if (valuesBuilder_ == null) {
values_ = builderForValue.build();
onChanged();
} else {
valuesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The values to fill the placeholders in the query string.
*
*
* .stargate.Values values = 2;
*/
public Builder mergeValues(io.stargate.proto.QueryOuterClass.Values value) {
if (valuesBuilder_ == null) {
if (values_ != null) {
values_ =
io.stargate.proto.QueryOuterClass.Values.newBuilder(values_).mergeFrom(value).buildPartial();
} else {
values_ = value;
}
onChanged();
} else {
valuesBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The values to fill the placeholders in the query string.
*
*
* .stargate.Values values = 2;
*/
public Builder clearValues() {
if (valuesBuilder_ == null) {
values_ = null;
onChanged();
} else {
values_ = null;
valuesBuilder_ = null;
}
return this;
}
/**
*
* The values to fill the placeholders in the query string.
*
*
* .stargate.Values values = 2;
*/
public io.stargate.proto.QueryOuterClass.Values.Builder getValuesBuilder() {
onChanged();
return getValuesFieldBuilder().getBuilder();
}
/**
*
* The values to fill the placeholders in the query string.
*
*
* .stargate.Values values = 2;
*/
public io.stargate.proto.QueryOuterClass.ValuesOrBuilder getValuesOrBuilder() {
if (valuesBuilder_ != null) {
return valuesBuilder_.getMessageOrBuilder();
} else {
return values_ == null ?
io.stargate.proto.QueryOuterClass.Values.getDefaultInstance() : values_;
}
}
/**
*
* The values to fill the placeholders in the query string.
*
*
* .stargate.Values values = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Values, io.stargate.proto.QueryOuterClass.Values.Builder, io.stargate.proto.QueryOuterClass.ValuesOrBuilder>
getValuesFieldBuilder() {
if (valuesBuilder_ == null) {
valuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Values, io.stargate.proto.QueryOuterClass.Values.Builder, io.stargate.proto.QueryOuterClass.ValuesOrBuilder>(
getValues(),
getParentForChildren(),
isClean());
values_ = null;
}
return valuesBuilder_;
}
private io.stargate.proto.QueryOuterClass.QueryParameters parameters_;
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.QueryParameters, io.stargate.proto.QueryOuterClass.QueryParameters.Builder, io.stargate.proto.QueryOuterClass.QueryParametersOrBuilder> parametersBuilder_;
/**
*
* The execution parameters for the query.
*
*
* .stargate.QueryParameters parameters = 3;
* @return Whether the parameters field is set.
*/
public boolean hasParameters() {
return parametersBuilder_ != null || parameters_ != null;
}
/**
*
* The execution parameters for the query.
*
*
* .stargate.QueryParameters parameters = 3;
* @return The parameters.
*/
public io.stargate.proto.QueryOuterClass.QueryParameters getParameters() {
if (parametersBuilder_ == null) {
return parameters_ == null ? io.stargate.proto.QueryOuterClass.QueryParameters.getDefaultInstance() : parameters_;
} else {
return parametersBuilder_.getMessage();
}
}
/**
*
* The execution parameters for the query.
*
*
* .stargate.QueryParameters parameters = 3;
*/
public Builder setParameters(io.stargate.proto.QueryOuterClass.QueryParameters value) {
if (parametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
parameters_ = value;
onChanged();
} else {
parametersBuilder_.setMessage(value);
}
return this;
}
/**
*
* The execution parameters for the query.
*
*
* .stargate.QueryParameters parameters = 3;
*/
public Builder setParameters(
io.stargate.proto.QueryOuterClass.QueryParameters.Builder builderForValue) {
if (parametersBuilder_ == null) {
parameters_ = builderForValue.build();
onChanged();
} else {
parametersBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The execution parameters for the query.
*
*
* .stargate.QueryParameters parameters = 3;
*/
public Builder mergeParameters(io.stargate.proto.QueryOuterClass.QueryParameters value) {
if (parametersBuilder_ == null) {
if (parameters_ != null) {
parameters_ =
io.stargate.proto.QueryOuterClass.QueryParameters.newBuilder(parameters_).mergeFrom(value).buildPartial();
} else {
parameters_ = value;
}
onChanged();
} else {
parametersBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The execution parameters for the query.
*
*
* .stargate.QueryParameters parameters = 3;
*/
public Builder clearParameters() {
if (parametersBuilder_ == null) {
parameters_ = null;
onChanged();
} else {
parameters_ = null;
parametersBuilder_ = null;
}
return this;
}
/**
*
* The execution parameters for the query.
*
*
* .stargate.QueryParameters parameters = 3;
*/
public io.stargate.proto.QueryOuterClass.QueryParameters.Builder getParametersBuilder() {
onChanged();
return getParametersFieldBuilder().getBuilder();
}
/**
*
* The execution parameters for the query.
*
*
* .stargate.QueryParameters parameters = 3;
*/
public io.stargate.proto.QueryOuterClass.QueryParametersOrBuilder getParametersOrBuilder() {
if (parametersBuilder_ != null) {
return parametersBuilder_.getMessageOrBuilder();
} else {
return parameters_ == null ?
io.stargate.proto.QueryOuterClass.QueryParameters.getDefaultInstance() : parameters_;
}
}
/**
*
* The execution parameters for the query.
*
*
* .stargate.QueryParameters parameters = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.QueryParameters, io.stargate.proto.QueryOuterClass.QueryParameters.Builder, io.stargate.proto.QueryOuterClass.QueryParametersOrBuilder>
getParametersFieldBuilder() {
if (parametersBuilder_ == null) {
parametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.QueryParameters, io.stargate.proto.QueryOuterClass.QueryParameters.Builder, io.stargate.proto.QueryOuterClass.QueryParametersOrBuilder>(
getParameters(),
getParentForChildren(),
isClean());
parameters_ = null;
}
return parametersBuilder_;
}
@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:stargate.Query)
}
// @@protoc_insertion_point(class_scope:stargate.Query)
private static final io.stargate.proto.QueryOuterClass.Query DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.Query();
}
public static io.stargate.proto.QueryOuterClass.Query getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Query parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Query(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 io.stargate.proto.QueryOuterClass.Query getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValuesOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.Values)
com.google.protobuf.MessageOrBuilder {
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
java.util.List
getValuesList();
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
io.stargate.proto.QueryOuterClass.Value getValues(int index);
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
int getValuesCount();
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
java.util.List extends io.stargate.proto.QueryOuterClass.ValueOrBuilder>
getValuesOrBuilderList();
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
io.stargate.proto.QueryOuterClass.ValueOrBuilder getValuesOrBuilder(
int index);
/**
*
* The value names, if the query uses named placeholders.
*
*
* repeated string value_names = 2;
* @return A list containing the valueNames.
*/
java.util.List
getValueNamesList();
/**
*
* The value names, if the query uses named placeholders.
*
*
* repeated string value_names = 2;
* @return The count of valueNames.
*/
int getValueNamesCount();
/**
*
* The value names, if the query uses named placeholders.
*
*
* repeated string value_names = 2;
* @param index The index of the element to return.
* @return The valueNames at the given index.
*/
java.lang.String getValueNames(int index);
/**
*
* The value names, if the query uses named placeholders.
*
*
* repeated string value_names = 2;
* @param index The index of the value to return.
* @return The bytes of the valueNames at the given index.
*/
com.google.protobuf.ByteString
getValueNamesBytes(int index);
}
/**
*
* The values to bind to the placeholders in a query.
*
*
* Protobuf type {@code stargate.Values}
*/
public static final class Values extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.Values)
ValuesOrBuilder {
private static final long serialVersionUID = 0L;
// Use Values.newBuilder() to construct.
private Values(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Values() {
values_ = java.util.Collections.emptyList();
valueNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Values();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Values(
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)) {
values_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
values_.add(
input.readMessage(io.stargate.proto.QueryOuterClass.Value.parser(), extensionRegistry));
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
valueNames_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
valueNames_.add(s);
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)) {
values_ = java.util.Collections.unmodifiableList(values_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
valueNames_ = valueNames_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Values_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Values_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Values.class, io.stargate.proto.QueryOuterClass.Values.Builder.class);
}
public static final int VALUES_FIELD_NUMBER = 1;
private java.util.List values_;
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
@java.lang.Override
public java.util.List getValuesList() {
return values_;
}
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
@java.lang.Override
public java.util.List extends io.stargate.proto.QueryOuterClass.ValueOrBuilder>
getValuesOrBuilderList() {
return values_;
}
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
@java.lang.Override
public int getValuesCount() {
return values_.size();
}
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Value getValues(int index) {
return values_.get(index);
}
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ValueOrBuilder getValuesOrBuilder(
int index) {
return values_.get(index);
}
public static final int VALUE_NAMES_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList valueNames_;
/**
*
* The value names, if the query uses named placeholders.
*
*
* repeated string value_names = 2;
* @return A list containing the valueNames.
*/
public com.google.protobuf.ProtocolStringList
getValueNamesList() {
return valueNames_;
}
/**
*
* The value names, if the query uses named placeholders.
*
*
* repeated string value_names = 2;
* @return The count of valueNames.
*/
public int getValueNamesCount() {
return valueNames_.size();
}
/**
*
* The value names, if the query uses named placeholders.
*
*
* repeated string value_names = 2;
* @param index The index of the element to return.
* @return The valueNames at the given index.
*/
public java.lang.String getValueNames(int index) {
return valueNames_.get(index);
}
/**
*
* The value names, if the query uses named placeholders.
*
*
* repeated string value_names = 2;
* @param index The index of the value to return.
* @return The bytes of the valueNames at the given index.
*/
public com.google.protobuf.ByteString
getValueNamesBytes(int index) {
return valueNames_.getByteString(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 < values_.size(); i++) {
output.writeMessage(1, values_.get(i));
}
for (int i = 0; i < valueNames_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, valueNames_.getRaw(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 < values_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, values_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < valueNames_.size(); i++) {
dataSize += computeStringSizeNoTag(valueNames_.getRaw(i));
}
size += dataSize;
size += 1 * getValueNamesList().size();
}
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 io.stargate.proto.QueryOuterClass.Values)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.Values other = (io.stargate.proto.QueryOuterClass.Values) obj;
if (!getValuesList()
.equals(other.getValuesList())) return false;
if (!getValueNamesList()
.equals(other.getValueNamesList())) 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 (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
if (getValueNamesCount() > 0) {
hash = (37 * hash) + VALUE_NAMES_FIELD_NUMBER;
hash = (53 * hash) + getValueNamesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.Values parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Values parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Values parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Values parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Values parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Values parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Values parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Values 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 io.stargate.proto.QueryOuterClass.Values parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Values 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 io.stargate.proto.QueryOuterClass.Values parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Values 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(io.stargate.proto.QueryOuterClass.Values 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;
}
/**
*
* The values to bind to the placeholders in a query.
*
*
* Protobuf type {@code stargate.Values}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.Values)
io.stargate.proto.QueryOuterClass.ValuesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Values_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Values_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Values.class, io.stargate.proto.QueryOuterClass.Values.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.Values.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValuesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (valuesBuilder_ == null) {
values_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
valuesBuilder_.clear();
}
valueNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Values_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Values getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.Values.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Values build() {
io.stargate.proto.QueryOuterClass.Values result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Values buildPartial() {
io.stargate.proto.QueryOuterClass.Values result = new io.stargate.proto.QueryOuterClass.Values(this);
int from_bitField0_ = bitField0_;
if (valuesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
values_ = java.util.Collections.unmodifiableList(values_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.values_ = values_;
} else {
result.values_ = valuesBuilder_.build();
}
if (((bitField0_ & 0x00000002) != 0)) {
valueNames_ = valueNames_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.valueNames_ = valueNames_;
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 io.stargate.proto.QueryOuterClass.Values) {
return mergeFrom((io.stargate.proto.QueryOuterClass.Values)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.Values other) {
if (other == io.stargate.proto.QueryOuterClass.Values.getDefaultInstance()) return this;
if (valuesBuilder_ == null) {
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
} else {
if (!other.values_.isEmpty()) {
if (valuesBuilder_.isEmpty()) {
valuesBuilder_.dispose();
valuesBuilder_ = null;
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
valuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getValuesFieldBuilder() : null;
} else {
valuesBuilder_.addAllMessages(other.values_);
}
}
}
if (!other.valueNames_.isEmpty()) {
if (valueNames_.isEmpty()) {
valueNames_ = other.valueNames_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureValueNamesIsMutable();
valueNames_.addAll(other.valueNames_);
}
onChanged();
}
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 {
io.stargate.proto.QueryOuterClass.Values parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.Values) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List values_ =
java.util.Collections.emptyList();
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
values_ = new java.util.ArrayList(values_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Value, io.stargate.proto.QueryOuterClass.Value.Builder, io.stargate.proto.QueryOuterClass.ValueOrBuilder> valuesBuilder_;
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
public java.util.List getValuesList() {
if (valuesBuilder_ == null) {
return java.util.Collections.unmodifiableList(values_);
} else {
return valuesBuilder_.getMessageList();
}
}
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
public int getValuesCount() {
if (valuesBuilder_ == null) {
return values_.size();
} else {
return valuesBuilder_.getCount();
}
}
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
public io.stargate.proto.QueryOuterClass.Value getValues(int index) {
if (valuesBuilder_ == null) {
return values_.get(index);
} else {
return valuesBuilder_.getMessage(index);
}
}
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
public Builder setValues(
int index, io.stargate.proto.QueryOuterClass.Value value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.set(index, value);
onChanged();
} else {
valuesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
public Builder setValues(
int index, io.stargate.proto.QueryOuterClass.Value.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.set(index, builderForValue.build());
onChanged();
} else {
valuesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
public Builder addValues(io.stargate.proto.QueryOuterClass.Value value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(value);
onChanged();
} else {
valuesBuilder_.addMessage(value);
}
return this;
}
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
public Builder addValues(
int index, io.stargate.proto.QueryOuterClass.Value value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(index, value);
onChanged();
} else {
valuesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
public Builder addValues(
io.stargate.proto.QueryOuterClass.Value.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(builderForValue.build());
onChanged();
} else {
valuesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
public Builder addValues(
int index, io.stargate.proto.QueryOuterClass.Value.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(index, builderForValue.build());
onChanged();
} else {
valuesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
public Builder addAllValues(
java.lang.Iterable extends io.stargate.proto.QueryOuterClass.Value> values) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
} else {
valuesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
public Builder clearValues() {
if (valuesBuilder_ == null) {
values_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
valuesBuilder_.clear();
}
return this;
}
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
public Builder removeValues(int index) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.remove(index);
onChanged();
} else {
valuesBuilder_.remove(index);
}
return this;
}
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
public io.stargate.proto.QueryOuterClass.Value.Builder getValuesBuilder(
int index) {
return getValuesFieldBuilder().getBuilder(index);
}
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
public io.stargate.proto.QueryOuterClass.ValueOrBuilder getValuesOrBuilder(
int index) {
if (valuesBuilder_ == null) {
return values_.get(index); } else {
return valuesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
public java.util.List extends io.stargate.proto.QueryOuterClass.ValueOrBuilder>
getValuesOrBuilderList() {
if (valuesBuilder_ != null) {
return valuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(values_);
}
}
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
public io.stargate.proto.QueryOuterClass.Value.Builder addValuesBuilder() {
return getValuesFieldBuilder().addBuilder(
io.stargate.proto.QueryOuterClass.Value.getDefaultInstance());
}
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
public io.stargate.proto.QueryOuterClass.Value.Builder addValuesBuilder(
int index) {
return getValuesFieldBuilder().addBuilder(
index, io.stargate.proto.QueryOuterClass.Value.getDefaultInstance());
}
/**
*
* The values.
*
*
* repeated .stargate.Value values = 1;
*/
public java.util.List
getValuesBuilderList() {
return getValuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Value, io.stargate.proto.QueryOuterClass.Value.Builder, io.stargate.proto.QueryOuterClass.ValueOrBuilder>
getValuesFieldBuilder() {
if (valuesBuilder_ == null) {
valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Value, io.stargate.proto.QueryOuterClass.Value.Builder, io.stargate.proto.QueryOuterClass.ValueOrBuilder>(
values_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
values_ = null;
}
return valuesBuilder_;
}
private com.google.protobuf.LazyStringList valueNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureValueNamesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
valueNames_ = new com.google.protobuf.LazyStringArrayList(valueNames_);
bitField0_ |= 0x00000002;
}
}
/**
*
* The value names, if the query uses named placeholders.
*
*
* repeated string value_names = 2;
* @return A list containing the valueNames.
*/
public com.google.protobuf.ProtocolStringList
getValueNamesList() {
return valueNames_.getUnmodifiableView();
}
/**
*
* The value names, if the query uses named placeholders.
*
*
* repeated string value_names = 2;
* @return The count of valueNames.
*/
public int getValueNamesCount() {
return valueNames_.size();
}
/**
*
* The value names, if the query uses named placeholders.
*
*
* repeated string value_names = 2;
* @param index The index of the element to return.
* @return The valueNames at the given index.
*/
public java.lang.String getValueNames(int index) {
return valueNames_.get(index);
}
/**
*
* The value names, if the query uses named placeholders.
*
*
* repeated string value_names = 2;
* @param index The index of the value to return.
* @return The bytes of the valueNames at the given index.
*/
public com.google.protobuf.ByteString
getValueNamesBytes(int index) {
return valueNames_.getByteString(index);
}
/**
*
* The value names, if the query uses named placeholders.
*
*
* repeated string value_names = 2;
* @param index The index to set the value at.
* @param value The valueNames to set.
* @return This builder for chaining.
*/
public Builder setValueNames(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureValueNamesIsMutable();
valueNames_.set(index, value);
onChanged();
return this;
}
/**
*
* The value names, if the query uses named placeholders.
*
*
* repeated string value_names = 2;
* @param value The valueNames to add.
* @return This builder for chaining.
*/
public Builder addValueNames(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureValueNamesIsMutable();
valueNames_.add(value);
onChanged();
return this;
}
/**
*
* The value names, if the query uses named placeholders.
*
*
* repeated string value_names = 2;
* @param values The valueNames to add.
* @return This builder for chaining.
*/
public Builder addAllValueNames(
java.lang.Iterable values) {
ensureValueNamesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, valueNames_);
onChanged();
return this;
}
/**
*
* The value names, if the query uses named placeholders.
*
*
* repeated string value_names = 2;
* @return This builder for chaining.
*/
public Builder clearValueNames() {
valueNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The value names, if the query uses named placeholders.
*
*
* repeated string value_names = 2;
* @param value The bytes of the valueNames to add.
* @return This builder for chaining.
*/
public Builder addValueNamesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureValueNamesIsMutable();
valueNames_.add(value);
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:stargate.Values)
}
// @@protoc_insertion_point(class_scope:stargate.Values)
private static final io.stargate.proto.QueryOuterClass.Values DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.Values();
}
public static io.stargate.proto.QueryOuterClass.Values getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Values parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Values(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 io.stargate.proto.QueryOuterClass.Values getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryParametersOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.QueryParameters)
com.google.protobuf.MessageOrBuilder {
/**
*
* The keyspace to use when schema element names in the query (tables, UDTs, functions) are not
* fully qualified.
*
*
* .google.protobuf.StringValue keyspace = 1;
* @return Whether the keyspace field is set.
*/
boolean hasKeyspace();
/**
*
* The keyspace to use when schema element names in the query (tables, UDTs, functions) are not
* fully qualified.
*
*
* .google.protobuf.StringValue keyspace = 1;
* @return The keyspace.
*/
com.google.protobuf.StringValue getKeyspace();
/**
*
* The keyspace to use when schema element names in the query (tables, UDTs, functions) are not
* fully qualified.
*
*
* .google.protobuf.StringValue keyspace = 1;
*/
com.google.protobuf.StringValueOrBuilder getKeyspaceOrBuilder();
/**
*
* The consistency level.
* If unset, it defaults to LOCAL_QUORUM.
*
*
* .stargate.ConsistencyValue consistency = 2;
* @return Whether the consistency field is set.
*/
boolean hasConsistency();
/**
*
* The consistency level.
* If unset, it defaults to LOCAL_QUORUM.
*
*
* .stargate.ConsistencyValue consistency = 2;
* @return The consistency.
*/
io.stargate.proto.QueryOuterClass.ConsistencyValue getConsistency();
/**
*
* The consistency level.
* If unset, it defaults to LOCAL_QUORUM.
*
*
* .stargate.ConsistencyValue consistency = 2;
*/
io.stargate.proto.QueryOuterClass.ConsistencyValueOrBuilder getConsistencyOrBuilder();
/**
*
* The maximum number of rows that will be returned in the response. If there are more results,
* the response will contain a paging state, and additional queries will be needed to retrieve
* subsequent pages.
* Note that this is only a suggestion, the server reserves the right to return slightly smaller
* or bigger pages.
* If unset, it defaults to 100.
*
*
* .google.protobuf.Int32Value page_size = 3;
* @return Whether the pageSize field is set.
*/
boolean hasPageSize();
/**
*
* The maximum number of rows that will be returned in the response. If there are more results,
* the response will contain a paging state, and additional queries will be needed to retrieve
* subsequent pages.
* Note that this is only a suggestion, the server reserves the right to return slightly smaller
* or bigger pages.
* If unset, it defaults to 100.
*
*
* .google.protobuf.Int32Value page_size = 3;
* @return The pageSize.
*/
com.google.protobuf.Int32Value getPageSize();
/**
*
* The maximum number of rows that will be returned in the response. If there are more results,
* the response will contain a paging state, and additional queries will be needed to retrieve
* subsequent pages.
* Note that this is only a suggestion, the server reserves the right to return slightly smaller
* or bigger pages.
* If unset, it defaults to 100.
*
*
* .google.protobuf.Int32Value page_size = 3;
*/
com.google.protobuf.Int32ValueOrBuilder getPageSizeOrBuilder();
/**
*
* A paging state that indicates where to resume iteration in the result set. This is used to
* retrieve the next page of data when the number of results exceeds the page size.
* This should be filled with the value returned by the previous response (see
* ResultSet.paging_state). It is an opaque binary string that is only intended to be collected,
* stored and reused; any attempt to modify its contents or reuse it with a different statement
* will yield unpredictable results.
*
*
* .google.protobuf.BytesValue paging_state = 4;
* @return Whether the pagingState field is set.
*/
boolean hasPagingState();
/**
*
* A paging state that indicates where to resume iteration in the result set. This is used to
* retrieve the next page of data when the number of results exceeds the page size.
* This should be filled with the value returned by the previous response (see
* ResultSet.paging_state). It is an opaque binary string that is only intended to be collected,
* stored and reused; any attempt to modify its contents or reuse it with a different statement
* will yield unpredictable results.
*
*
* .google.protobuf.BytesValue paging_state = 4;
* @return The pagingState.
*/
com.google.protobuf.BytesValue getPagingState();
/**
*
* A paging state that indicates where to resume iteration in the result set. This is used to
* retrieve the next page of data when the number of results exceeds the page size.
* This should be filled with the value returned by the previous response (see
* ResultSet.paging_state). It is an opaque binary string that is only intended to be collected,
* stored and reused; any attempt to modify its contents or reuse it with a different statement
* will yield unpredictable results.
*
*
* .google.protobuf.BytesValue paging_state = 4;
*/
com.google.protobuf.BytesValueOrBuilder getPagingStateOrBuilder();
/**
*
* Whether the server should collect tracing information about the execution of the query.
* If this is set, then a Traces message will be included in the Response message.
*
*
* bool tracing = 5;
* @return The tracing.
*/
boolean getTracing();
/**
*
* Whether to omit ResultSet.columns in the response.
* This can be used to optimize response size when the client already knows that information (for
* example when fetching multiple pages for the same query).
*
*
* bool skip_metadata = 6;
* @return The skipMetadata.
*/
boolean getSkipMetadata();
/**
*
* The query timestamp (in microseconds). This is used to order mutations on the server.
* If unset, the server will assign one based on the time it received the query.
*
*
* .google.protobuf.Int64Value timestamp = 7;
* @return Whether the timestamp field is set.
*/
boolean hasTimestamp();
/**
*
* The query timestamp (in microseconds). This is used to order mutations on the server.
* If unset, the server will assign one based on the time it received the query.
*
*
* .google.protobuf.Int64Value timestamp = 7;
* @return The timestamp.
*/
com.google.protobuf.Int64Value getTimestamp();
/**
*
* The query timestamp (in microseconds). This is used to order mutations on the server.
* If unset, the server will assign one based on the time it received the query.
*
*
* .google.protobuf.Int64Value timestamp = 7;
*/
com.google.protobuf.Int64ValueOrBuilder getTimestampOrBuilder();
/**
*
* The serial consistency level (if the query is a lightweight transaction).
* If unset, it defaults to SERIAL.
*
*
* .stargate.ConsistencyValue serial_consistency = 8;
* @return Whether the serialConsistency field is set.
*/
boolean hasSerialConsistency();
/**
*
* The serial consistency level (if the query is a lightweight transaction).
* If unset, it defaults to SERIAL.
*
*
* .stargate.ConsistencyValue serial_consistency = 8;
* @return The serialConsistency.
*/
io.stargate.proto.QueryOuterClass.ConsistencyValue getSerialConsistency();
/**
*
* The serial consistency level (if the query is a lightweight transaction).
* If unset, it defaults to SERIAL.
*
*
* .stargate.ConsistencyValue serial_consistency = 8;
*/
io.stargate.proto.QueryOuterClass.ConsistencyValueOrBuilder getSerialConsistencyOrBuilder();
/**
*
* Forces the current time for the query (for testing purposes).
* This affects TTL cell liveness in read queries and local deletion time for tombstones and TTL
* cells in update requests.
*
*
* .google.protobuf.Int32Value now_in_seconds = 9;
* @return Whether the nowInSeconds field is set.
*/
boolean hasNowInSeconds();
/**
*
* Forces the current time for the query (for testing purposes).
* This affects TTL cell liveness in read queries and local deletion time for tombstones and TTL
* cells in update requests.
*
*
* .google.protobuf.Int32Value now_in_seconds = 9;
* @return The nowInSeconds.
*/
com.google.protobuf.Int32Value getNowInSeconds();
/**
*
* Forces the current time for the query (for testing purposes).
* This affects TTL cell liveness in read queries and local deletion time for tombstones and TTL
* cells in update requests.
*
*
* .google.protobuf.Int32Value now_in_seconds = 9;
*/
com.google.protobuf.Int32ValueOrBuilder getNowInSecondsOrBuilder();
/**
*
* The consistency level to use to retrieve the query trace (if tracing is set).
* If unset, it defaults to ONE.
*
*
* .stargate.ConsistencyValue tracing_consistency = 10;
* @return Whether the tracingConsistency field is set.
*/
boolean hasTracingConsistency();
/**
*
* The consistency level to use to retrieve the query trace (if tracing is set).
* If unset, it defaults to ONE.
*
*
* .stargate.ConsistencyValue tracing_consistency = 10;
* @return The tracingConsistency.
*/
io.stargate.proto.QueryOuterClass.ConsistencyValue getTracingConsistency();
/**
*
* The consistency level to use to retrieve the query trace (if tracing is set).
* If unset, it defaults to ONE.
*
*
* .stargate.ConsistencyValue tracing_consistency = 10;
*/
io.stargate.proto.QueryOuterClass.ConsistencyValueOrBuilder getTracingConsistencyOrBuilder();
}
/**
*
* The execution parameters for a Query message.
*
*
* Protobuf type {@code stargate.QueryParameters}
*/
public static final class QueryParameters extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.QueryParameters)
QueryParametersOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryParameters.newBuilder() to construct.
private QueryParameters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryParameters() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryParameters();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryParameters(
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.google.protobuf.StringValue.Builder subBuilder = null;
if (keyspace_ != null) {
subBuilder = keyspace_.toBuilder();
}
keyspace_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(keyspace_);
keyspace_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.stargate.proto.QueryOuterClass.ConsistencyValue.Builder subBuilder = null;
if (consistency_ != null) {
subBuilder = consistency_.toBuilder();
}
consistency_ = input.readMessage(io.stargate.proto.QueryOuterClass.ConsistencyValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(consistency_);
consistency_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.google.protobuf.Int32Value.Builder subBuilder = null;
if (pageSize_ != null) {
subBuilder = pageSize_.toBuilder();
}
pageSize_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pageSize_);
pageSize_ = subBuilder.buildPartial();
}
break;
}
case 34: {
com.google.protobuf.BytesValue.Builder subBuilder = null;
if (pagingState_ != null) {
subBuilder = pagingState_.toBuilder();
}
pagingState_ = input.readMessage(com.google.protobuf.BytesValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pagingState_);
pagingState_ = subBuilder.buildPartial();
}
break;
}
case 40: {
tracing_ = input.readBool();
break;
}
case 48: {
skipMetadata_ = input.readBool();
break;
}
case 58: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (timestamp_ != null) {
subBuilder = timestamp_.toBuilder();
}
timestamp_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(timestamp_);
timestamp_ = subBuilder.buildPartial();
}
break;
}
case 66: {
io.stargate.proto.QueryOuterClass.ConsistencyValue.Builder subBuilder = null;
if (serialConsistency_ != null) {
subBuilder = serialConsistency_.toBuilder();
}
serialConsistency_ = input.readMessage(io.stargate.proto.QueryOuterClass.ConsistencyValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(serialConsistency_);
serialConsistency_ = subBuilder.buildPartial();
}
break;
}
case 74: {
com.google.protobuf.Int32Value.Builder subBuilder = null;
if (nowInSeconds_ != null) {
subBuilder = nowInSeconds_.toBuilder();
}
nowInSeconds_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nowInSeconds_);
nowInSeconds_ = subBuilder.buildPartial();
}
break;
}
case 82: {
io.stargate.proto.QueryOuterClass.ConsistencyValue.Builder subBuilder = null;
if (tracingConsistency_ != null) {
subBuilder = tracingConsistency_.toBuilder();
}
tracingConsistency_ = input.readMessage(io.stargate.proto.QueryOuterClass.ConsistencyValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tracingConsistency_);
tracingConsistency_ = 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 io.stargate.proto.QueryOuterClass.internal_static_stargate_QueryParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_QueryParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.QueryParameters.class, io.stargate.proto.QueryOuterClass.QueryParameters.Builder.class);
}
public static final int KEYSPACE_FIELD_NUMBER = 1;
private com.google.protobuf.StringValue keyspace_;
/**
*
* The keyspace to use when schema element names in the query (tables, UDTs, functions) are not
* fully qualified.
*
*
* .google.protobuf.StringValue keyspace = 1;
* @return Whether the keyspace field is set.
*/
@java.lang.Override
public boolean hasKeyspace() {
return keyspace_ != null;
}
/**
*
* The keyspace to use when schema element names in the query (tables, UDTs, functions) are not
* fully qualified.
*
*
* .google.protobuf.StringValue keyspace = 1;
* @return The keyspace.
*/
@java.lang.Override
public com.google.protobuf.StringValue getKeyspace() {
return keyspace_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : keyspace_;
}
/**
*
* The keyspace to use when schema element names in the query (tables, UDTs, functions) are not
* fully qualified.
*
*
* .google.protobuf.StringValue keyspace = 1;
*/
@java.lang.Override
public com.google.protobuf.StringValueOrBuilder getKeyspaceOrBuilder() {
return getKeyspace();
}
public static final int CONSISTENCY_FIELD_NUMBER = 2;
private io.stargate.proto.QueryOuterClass.ConsistencyValue consistency_;
/**
*
* The consistency level.
* If unset, it defaults to LOCAL_QUORUM.
*
*
* .stargate.ConsistencyValue consistency = 2;
* @return Whether the consistency field is set.
*/
@java.lang.Override
public boolean hasConsistency() {
return consistency_ != null;
}
/**
*
* The consistency level.
* If unset, it defaults to LOCAL_QUORUM.
*
*
* .stargate.ConsistencyValue consistency = 2;
* @return The consistency.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ConsistencyValue getConsistency() {
return consistency_ == null ? io.stargate.proto.QueryOuterClass.ConsistencyValue.getDefaultInstance() : consistency_;
}
/**
*
* The consistency level.
* If unset, it defaults to LOCAL_QUORUM.
*
*
* .stargate.ConsistencyValue consistency = 2;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ConsistencyValueOrBuilder getConsistencyOrBuilder() {
return getConsistency();
}
public static final int PAGE_SIZE_FIELD_NUMBER = 3;
private com.google.protobuf.Int32Value pageSize_;
/**
*
* The maximum number of rows that will be returned in the response. If there are more results,
* the response will contain a paging state, and additional queries will be needed to retrieve
* subsequent pages.
* Note that this is only a suggestion, the server reserves the right to return slightly smaller
* or bigger pages.
* If unset, it defaults to 100.
*
*
* .google.protobuf.Int32Value page_size = 3;
* @return Whether the pageSize field is set.
*/
@java.lang.Override
public boolean hasPageSize() {
return pageSize_ != null;
}
/**
*
* The maximum number of rows that will be returned in the response. If there are more results,
* the response will contain a paging state, and additional queries will be needed to retrieve
* subsequent pages.
* Note that this is only a suggestion, the server reserves the right to return slightly smaller
* or bigger pages.
* If unset, it defaults to 100.
*
*
* .google.protobuf.Int32Value page_size = 3;
* @return The pageSize.
*/
@java.lang.Override
public com.google.protobuf.Int32Value getPageSize() {
return pageSize_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : pageSize_;
}
/**
*
* The maximum number of rows that will be returned in the response. If there are more results,
* the response will contain a paging state, and additional queries will be needed to retrieve
* subsequent pages.
* Note that this is only a suggestion, the server reserves the right to return slightly smaller
* or bigger pages.
* If unset, it defaults to 100.
*
*
* .google.protobuf.Int32Value page_size = 3;
*/
@java.lang.Override
public com.google.protobuf.Int32ValueOrBuilder getPageSizeOrBuilder() {
return getPageSize();
}
public static final int PAGING_STATE_FIELD_NUMBER = 4;
private com.google.protobuf.BytesValue pagingState_;
/**
*
* A paging state that indicates where to resume iteration in the result set. This is used to
* retrieve the next page of data when the number of results exceeds the page size.
* This should be filled with the value returned by the previous response (see
* ResultSet.paging_state). It is an opaque binary string that is only intended to be collected,
* stored and reused; any attempt to modify its contents or reuse it with a different statement
* will yield unpredictable results.
*
*
* .google.protobuf.BytesValue paging_state = 4;
* @return Whether the pagingState field is set.
*/
@java.lang.Override
public boolean hasPagingState() {
return pagingState_ != null;
}
/**
*
* A paging state that indicates where to resume iteration in the result set. This is used to
* retrieve the next page of data when the number of results exceeds the page size.
* This should be filled with the value returned by the previous response (see
* ResultSet.paging_state). It is an opaque binary string that is only intended to be collected,
* stored and reused; any attempt to modify its contents or reuse it with a different statement
* will yield unpredictable results.
*
*
* .google.protobuf.BytesValue paging_state = 4;
* @return The pagingState.
*/
@java.lang.Override
public com.google.protobuf.BytesValue getPagingState() {
return pagingState_ == null ? com.google.protobuf.BytesValue.getDefaultInstance() : pagingState_;
}
/**
*
* A paging state that indicates where to resume iteration in the result set. This is used to
* retrieve the next page of data when the number of results exceeds the page size.
* This should be filled with the value returned by the previous response (see
* ResultSet.paging_state). It is an opaque binary string that is only intended to be collected,
* stored and reused; any attempt to modify its contents or reuse it with a different statement
* will yield unpredictable results.
*
*
* .google.protobuf.BytesValue paging_state = 4;
*/
@java.lang.Override
public com.google.protobuf.BytesValueOrBuilder getPagingStateOrBuilder() {
return getPagingState();
}
public static final int TRACING_FIELD_NUMBER = 5;
private boolean tracing_;
/**
*
* Whether the server should collect tracing information about the execution of the query.
* If this is set, then a Traces message will be included in the Response message.
*
*
* bool tracing = 5;
* @return The tracing.
*/
@java.lang.Override
public boolean getTracing() {
return tracing_;
}
public static final int SKIP_METADATA_FIELD_NUMBER = 6;
private boolean skipMetadata_;
/**
*
* Whether to omit ResultSet.columns in the response.
* This can be used to optimize response size when the client already knows that information (for
* example when fetching multiple pages for the same query).
*
*
* bool skip_metadata = 6;
* @return The skipMetadata.
*/
@java.lang.Override
public boolean getSkipMetadata() {
return skipMetadata_;
}
public static final int TIMESTAMP_FIELD_NUMBER = 7;
private com.google.protobuf.Int64Value timestamp_;
/**
*
* The query timestamp (in microseconds). This is used to order mutations on the server.
* If unset, the server will assign one based on the time it received the query.
*
*
* .google.protobuf.Int64Value timestamp = 7;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return timestamp_ != null;
}
/**
*
* The query timestamp (in microseconds). This is used to order mutations on the server.
* If unset, the server will assign one based on the time it received the query.
*
*
* .google.protobuf.Int64Value timestamp = 7;
* @return The timestamp.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getTimestamp() {
return timestamp_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : timestamp_;
}
/**
*
* The query timestamp (in microseconds). This is used to order mutations on the server.
* If unset, the server will assign one based on the time it received the query.
*
*
* .google.protobuf.Int64Value timestamp = 7;
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getTimestampOrBuilder() {
return getTimestamp();
}
public static final int SERIAL_CONSISTENCY_FIELD_NUMBER = 8;
private io.stargate.proto.QueryOuterClass.ConsistencyValue serialConsistency_;
/**
*
* The serial consistency level (if the query is a lightweight transaction).
* If unset, it defaults to SERIAL.
*
*
* .stargate.ConsistencyValue serial_consistency = 8;
* @return Whether the serialConsistency field is set.
*/
@java.lang.Override
public boolean hasSerialConsistency() {
return serialConsistency_ != null;
}
/**
*
* The serial consistency level (if the query is a lightweight transaction).
* If unset, it defaults to SERIAL.
*
*
* .stargate.ConsistencyValue serial_consistency = 8;
* @return The serialConsistency.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ConsistencyValue getSerialConsistency() {
return serialConsistency_ == null ? io.stargate.proto.QueryOuterClass.ConsistencyValue.getDefaultInstance() : serialConsistency_;
}
/**
*
* The serial consistency level (if the query is a lightweight transaction).
* If unset, it defaults to SERIAL.
*
*
* .stargate.ConsistencyValue serial_consistency = 8;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ConsistencyValueOrBuilder getSerialConsistencyOrBuilder() {
return getSerialConsistency();
}
public static final int NOW_IN_SECONDS_FIELD_NUMBER = 9;
private com.google.protobuf.Int32Value nowInSeconds_;
/**
*
* Forces the current time for the query (for testing purposes).
* This affects TTL cell liveness in read queries and local deletion time for tombstones and TTL
* cells in update requests.
*
*
* .google.protobuf.Int32Value now_in_seconds = 9;
* @return Whether the nowInSeconds field is set.
*/
@java.lang.Override
public boolean hasNowInSeconds() {
return nowInSeconds_ != null;
}
/**
*
* Forces the current time for the query (for testing purposes).
* This affects TTL cell liveness in read queries and local deletion time for tombstones and TTL
* cells in update requests.
*
*
* .google.protobuf.Int32Value now_in_seconds = 9;
* @return The nowInSeconds.
*/
@java.lang.Override
public com.google.protobuf.Int32Value getNowInSeconds() {
return nowInSeconds_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : nowInSeconds_;
}
/**
*
* Forces the current time for the query (for testing purposes).
* This affects TTL cell liveness in read queries and local deletion time for tombstones and TTL
* cells in update requests.
*
*
* .google.protobuf.Int32Value now_in_seconds = 9;
*/
@java.lang.Override
public com.google.protobuf.Int32ValueOrBuilder getNowInSecondsOrBuilder() {
return getNowInSeconds();
}
public static final int TRACING_CONSISTENCY_FIELD_NUMBER = 10;
private io.stargate.proto.QueryOuterClass.ConsistencyValue tracingConsistency_;
/**
*
* The consistency level to use to retrieve the query trace (if tracing is set).
* If unset, it defaults to ONE.
*
*
* .stargate.ConsistencyValue tracing_consistency = 10;
* @return Whether the tracingConsistency field is set.
*/
@java.lang.Override
public boolean hasTracingConsistency() {
return tracingConsistency_ != null;
}
/**
*
* The consistency level to use to retrieve the query trace (if tracing is set).
* If unset, it defaults to ONE.
*
*
* .stargate.ConsistencyValue tracing_consistency = 10;
* @return The tracingConsistency.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ConsistencyValue getTracingConsistency() {
return tracingConsistency_ == null ? io.stargate.proto.QueryOuterClass.ConsistencyValue.getDefaultInstance() : tracingConsistency_;
}
/**
*
* The consistency level to use to retrieve the query trace (if tracing is set).
* If unset, it defaults to ONE.
*
*
* .stargate.ConsistencyValue tracing_consistency = 10;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ConsistencyValueOrBuilder getTracingConsistencyOrBuilder() {
return getTracingConsistency();
}
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 (keyspace_ != null) {
output.writeMessage(1, getKeyspace());
}
if (consistency_ != null) {
output.writeMessage(2, getConsistency());
}
if (pageSize_ != null) {
output.writeMessage(3, getPageSize());
}
if (pagingState_ != null) {
output.writeMessage(4, getPagingState());
}
if (tracing_ != false) {
output.writeBool(5, tracing_);
}
if (skipMetadata_ != false) {
output.writeBool(6, skipMetadata_);
}
if (timestamp_ != null) {
output.writeMessage(7, getTimestamp());
}
if (serialConsistency_ != null) {
output.writeMessage(8, getSerialConsistency());
}
if (nowInSeconds_ != null) {
output.writeMessage(9, getNowInSeconds());
}
if (tracingConsistency_ != null) {
output.writeMessage(10, getTracingConsistency());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (keyspace_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getKeyspace());
}
if (consistency_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getConsistency());
}
if (pageSize_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPageSize());
}
if (pagingState_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getPagingState());
}
if (tracing_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, tracing_);
}
if (skipMetadata_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, skipMetadata_);
}
if (timestamp_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getTimestamp());
}
if (serialConsistency_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getSerialConsistency());
}
if (nowInSeconds_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getNowInSeconds());
}
if (tracingConsistency_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getTracingConsistency());
}
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 io.stargate.proto.QueryOuterClass.QueryParameters)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.QueryParameters other = (io.stargate.proto.QueryOuterClass.QueryParameters) obj;
if (hasKeyspace() != other.hasKeyspace()) return false;
if (hasKeyspace()) {
if (!getKeyspace()
.equals(other.getKeyspace())) return false;
}
if (hasConsistency() != other.hasConsistency()) return false;
if (hasConsistency()) {
if (!getConsistency()
.equals(other.getConsistency())) return false;
}
if (hasPageSize() != other.hasPageSize()) return false;
if (hasPageSize()) {
if (!getPageSize()
.equals(other.getPageSize())) return false;
}
if (hasPagingState() != other.hasPagingState()) return false;
if (hasPagingState()) {
if (!getPagingState()
.equals(other.getPagingState())) return false;
}
if (getTracing()
!= other.getTracing()) return false;
if (getSkipMetadata()
!= other.getSkipMetadata()) return false;
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (!getTimestamp()
.equals(other.getTimestamp())) return false;
}
if (hasSerialConsistency() != other.hasSerialConsistency()) return false;
if (hasSerialConsistency()) {
if (!getSerialConsistency()
.equals(other.getSerialConsistency())) return false;
}
if (hasNowInSeconds() != other.hasNowInSeconds()) return false;
if (hasNowInSeconds()) {
if (!getNowInSeconds()
.equals(other.getNowInSeconds())) return false;
}
if (hasTracingConsistency() != other.hasTracingConsistency()) return false;
if (hasTracingConsistency()) {
if (!getTracingConsistency()
.equals(other.getTracingConsistency())) 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 (hasKeyspace()) {
hash = (37 * hash) + KEYSPACE_FIELD_NUMBER;
hash = (53 * hash) + getKeyspace().hashCode();
}
if (hasConsistency()) {
hash = (37 * hash) + CONSISTENCY_FIELD_NUMBER;
hash = (53 * hash) + getConsistency().hashCode();
}
if (hasPageSize()) {
hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + getPageSize().hashCode();
}
if (hasPagingState()) {
hash = (37 * hash) + PAGING_STATE_FIELD_NUMBER;
hash = (53 * hash) + getPagingState().hashCode();
}
hash = (37 * hash) + TRACING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getTracing());
hash = (37 * hash) + SKIP_METADATA_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSkipMetadata());
if (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp().hashCode();
}
if (hasSerialConsistency()) {
hash = (37 * hash) + SERIAL_CONSISTENCY_FIELD_NUMBER;
hash = (53 * hash) + getSerialConsistency().hashCode();
}
if (hasNowInSeconds()) {
hash = (37 * hash) + NOW_IN_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + getNowInSeconds().hashCode();
}
if (hasTracingConsistency()) {
hash = (37 * hash) + TRACING_CONSISTENCY_FIELD_NUMBER;
hash = (53 * hash) + getTracingConsistency().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.QueryParameters parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.QueryParameters parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.QueryParameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.QueryParameters parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.QueryParameters parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.QueryParameters parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.QueryParameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.QueryParameters 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 io.stargate.proto.QueryOuterClass.QueryParameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.QueryParameters 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 io.stargate.proto.QueryOuterClass.QueryParameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.QueryParameters 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(io.stargate.proto.QueryOuterClass.QueryParameters 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;
}
/**
*
* The execution parameters for a Query message.
*
*
* Protobuf type {@code stargate.QueryParameters}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.QueryParameters)
io.stargate.proto.QueryOuterClass.QueryParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_QueryParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_QueryParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.QueryParameters.class, io.stargate.proto.QueryOuterClass.QueryParameters.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.QueryParameters.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 (keyspaceBuilder_ == null) {
keyspace_ = null;
} else {
keyspace_ = null;
keyspaceBuilder_ = null;
}
if (consistencyBuilder_ == null) {
consistency_ = null;
} else {
consistency_ = null;
consistencyBuilder_ = null;
}
if (pageSizeBuilder_ == null) {
pageSize_ = null;
} else {
pageSize_ = null;
pageSizeBuilder_ = null;
}
if (pagingStateBuilder_ == null) {
pagingState_ = null;
} else {
pagingState_ = null;
pagingStateBuilder_ = null;
}
tracing_ = false;
skipMetadata_ = false;
if (timestampBuilder_ == null) {
timestamp_ = null;
} else {
timestamp_ = null;
timestampBuilder_ = null;
}
if (serialConsistencyBuilder_ == null) {
serialConsistency_ = null;
} else {
serialConsistency_ = null;
serialConsistencyBuilder_ = null;
}
if (nowInSecondsBuilder_ == null) {
nowInSeconds_ = null;
} else {
nowInSeconds_ = null;
nowInSecondsBuilder_ = null;
}
if (tracingConsistencyBuilder_ == null) {
tracingConsistency_ = null;
} else {
tracingConsistency_ = null;
tracingConsistencyBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_QueryParameters_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.QueryParameters getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.QueryParameters.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.QueryParameters build() {
io.stargate.proto.QueryOuterClass.QueryParameters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.QueryParameters buildPartial() {
io.stargate.proto.QueryOuterClass.QueryParameters result = new io.stargate.proto.QueryOuterClass.QueryParameters(this);
if (keyspaceBuilder_ == null) {
result.keyspace_ = keyspace_;
} else {
result.keyspace_ = keyspaceBuilder_.build();
}
if (consistencyBuilder_ == null) {
result.consistency_ = consistency_;
} else {
result.consistency_ = consistencyBuilder_.build();
}
if (pageSizeBuilder_ == null) {
result.pageSize_ = pageSize_;
} else {
result.pageSize_ = pageSizeBuilder_.build();
}
if (pagingStateBuilder_ == null) {
result.pagingState_ = pagingState_;
} else {
result.pagingState_ = pagingStateBuilder_.build();
}
result.tracing_ = tracing_;
result.skipMetadata_ = skipMetadata_;
if (timestampBuilder_ == null) {
result.timestamp_ = timestamp_;
} else {
result.timestamp_ = timestampBuilder_.build();
}
if (serialConsistencyBuilder_ == null) {
result.serialConsistency_ = serialConsistency_;
} else {
result.serialConsistency_ = serialConsistencyBuilder_.build();
}
if (nowInSecondsBuilder_ == null) {
result.nowInSeconds_ = nowInSeconds_;
} else {
result.nowInSeconds_ = nowInSecondsBuilder_.build();
}
if (tracingConsistencyBuilder_ == null) {
result.tracingConsistency_ = tracingConsistency_;
} else {
result.tracingConsistency_ = tracingConsistencyBuilder_.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 io.stargate.proto.QueryOuterClass.QueryParameters) {
return mergeFrom((io.stargate.proto.QueryOuterClass.QueryParameters)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.QueryParameters other) {
if (other == io.stargate.proto.QueryOuterClass.QueryParameters.getDefaultInstance()) return this;
if (other.hasKeyspace()) {
mergeKeyspace(other.getKeyspace());
}
if (other.hasConsistency()) {
mergeConsistency(other.getConsistency());
}
if (other.hasPageSize()) {
mergePageSize(other.getPageSize());
}
if (other.hasPagingState()) {
mergePagingState(other.getPagingState());
}
if (other.getTracing() != false) {
setTracing(other.getTracing());
}
if (other.getSkipMetadata() != false) {
setSkipMetadata(other.getSkipMetadata());
}
if (other.hasTimestamp()) {
mergeTimestamp(other.getTimestamp());
}
if (other.hasSerialConsistency()) {
mergeSerialConsistency(other.getSerialConsistency());
}
if (other.hasNowInSeconds()) {
mergeNowInSeconds(other.getNowInSeconds());
}
if (other.hasTracingConsistency()) {
mergeTracingConsistency(other.getTracingConsistency());
}
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 {
io.stargate.proto.QueryOuterClass.QueryParameters parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.QueryParameters) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.StringValue keyspace_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> keyspaceBuilder_;
/**
*
* The keyspace to use when schema element names in the query (tables, UDTs, functions) are not
* fully qualified.
*
*
* .google.protobuf.StringValue keyspace = 1;
* @return Whether the keyspace field is set.
*/
public boolean hasKeyspace() {
return keyspaceBuilder_ != null || keyspace_ != null;
}
/**
*
* The keyspace to use when schema element names in the query (tables, UDTs, functions) are not
* fully qualified.
*
*
* .google.protobuf.StringValue keyspace = 1;
* @return The keyspace.
*/
public com.google.protobuf.StringValue getKeyspace() {
if (keyspaceBuilder_ == null) {
return keyspace_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : keyspace_;
} else {
return keyspaceBuilder_.getMessage();
}
}
/**
*
* The keyspace to use when schema element names in the query (tables, UDTs, functions) are not
* fully qualified.
*
*
* .google.protobuf.StringValue keyspace = 1;
*/
public Builder setKeyspace(com.google.protobuf.StringValue value) {
if (keyspaceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
keyspace_ = value;
onChanged();
} else {
keyspaceBuilder_.setMessage(value);
}
return this;
}
/**
*
* The keyspace to use when schema element names in the query (tables, UDTs, functions) are not
* fully qualified.
*
*
* .google.protobuf.StringValue keyspace = 1;
*/
public Builder setKeyspace(
com.google.protobuf.StringValue.Builder builderForValue) {
if (keyspaceBuilder_ == null) {
keyspace_ = builderForValue.build();
onChanged();
} else {
keyspaceBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The keyspace to use when schema element names in the query (tables, UDTs, functions) are not
* fully qualified.
*
*
* .google.protobuf.StringValue keyspace = 1;
*/
public Builder mergeKeyspace(com.google.protobuf.StringValue value) {
if (keyspaceBuilder_ == null) {
if (keyspace_ != null) {
keyspace_ =
com.google.protobuf.StringValue.newBuilder(keyspace_).mergeFrom(value).buildPartial();
} else {
keyspace_ = value;
}
onChanged();
} else {
keyspaceBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The keyspace to use when schema element names in the query (tables, UDTs, functions) are not
* fully qualified.
*
*
* .google.protobuf.StringValue keyspace = 1;
*/
public Builder clearKeyspace() {
if (keyspaceBuilder_ == null) {
keyspace_ = null;
onChanged();
} else {
keyspace_ = null;
keyspaceBuilder_ = null;
}
return this;
}
/**
*
* The keyspace to use when schema element names in the query (tables, UDTs, functions) are not
* fully qualified.
*
*
* .google.protobuf.StringValue keyspace = 1;
*/
public com.google.protobuf.StringValue.Builder getKeyspaceBuilder() {
onChanged();
return getKeyspaceFieldBuilder().getBuilder();
}
/**
*
* The keyspace to use when schema element names in the query (tables, UDTs, functions) are not
* fully qualified.
*
*
* .google.protobuf.StringValue keyspace = 1;
*/
public com.google.protobuf.StringValueOrBuilder getKeyspaceOrBuilder() {
if (keyspaceBuilder_ != null) {
return keyspaceBuilder_.getMessageOrBuilder();
} else {
return keyspace_ == null ?
com.google.protobuf.StringValue.getDefaultInstance() : keyspace_;
}
}
/**
*
* The keyspace to use when schema element names in the query (tables, UDTs, functions) are not
* fully qualified.
*
*
* .google.protobuf.StringValue keyspace = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>
getKeyspaceFieldBuilder() {
if (keyspaceBuilder_ == null) {
keyspaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(
getKeyspace(),
getParentForChildren(),
isClean());
keyspace_ = null;
}
return keyspaceBuilder_;
}
private io.stargate.proto.QueryOuterClass.ConsistencyValue consistency_;
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.ConsistencyValue, io.stargate.proto.QueryOuterClass.ConsistencyValue.Builder, io.stargate.proto.QueryOuterClass.ConsistencyValueOrBuilder> consistencyBuilder_;
/**
*
* The consistency level.
* If unset, it defaults to LOCAL_QUORUM.
*
*
* .stargate.ConsistencyValue consistency = 2;
* @return Whether the consistency field is set.
*/
public boolean hasConsistency() {
return consistencyBuilder_ != null || consistency_ != null;
}
/**
*
* The consistency level.
* If unset, it defaults to LOCAL_QUORUM.
*
*
* .stargate.ConsistencyValue consistency = 2;
* @return The consistency.
*/
public io.stargate.proto.QueryOuterClass.ConsistencyValue getConsistency() {
if (consistencyBuilder_ == null) {
return consistency_ == null ? io.stargate.proto.QueryOuterClass.ConsistencyValue.getDefaultInstance() : consistency_;
} else {
return consistencyBuilder_.getMessage();
}
}
/**
*
* The consistency level.
* If unset, it defaults to LOCAL_QUORUM.
*
*
* .stargate.ConsistencyValue consistency = 2;
*/
public Builder setConsistency(io.stargate.proto.QueryOuterClass.ConsistencyValue value) {
if (consistencyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
consistency_ = value;
onChanged();
} else {
consistencyBuilder_.setMessage(value);
}
return this;
}
/**
*
* The consistency level.
* If unset, it defaults to LOCAL_QUORUM.
*
*
* .stargate.ConsistencyValue consistency = 2;
*/
public Builder setConsistency(
io.stargate.proto.QueryOuterClass.ConsistencyValue.Builder builderForValue) {
if (consistencyBuilder_ == null) {
consistency_ = builderForValue.build();
onChanged();
} else {
consistencyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The consistency level.
* If unset, it defaults to LOCAL_QUORUM.
*
*
* .stargate.ConsistencyValue consistency = 2;
*/
public Builder mergeConsistency(io.stargate.proto.QueryOuterClass.ConsistencyValue value) {
if (consistencyBuilder_ == null) {
if (consistency_ != null) {
consistency_ =
io.stargate.proto.QueryOuterClass.ConsistencyValue.newBuilder(consistency_).mergeFrom(value).buildPartial();
} else {
consistency_ = value;
}
onChanged();
} else {
consistencyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The consistency level.
* If unset, it defaults to LOCAL_QUORUM.
*
*
* .stargate.ConsistencyValue consistency = 2;
*/
public Builder clearConsistency() {
if (consistencyBuilder_ == null) {
consistency_ = null;
onChanged();
} else {
consistency_ = null;
consistencyBuilder_ = null;
}
return this;
}
/**
*
* The consistency level.
* If unset, it defaults to LOCAL_QUORUM.
*
*
* .stargate.ConsistencyValue consistency = 2;
*/
public io.stargate.proto.QueryOuterClass.ConsistencyValue.Builder getConsistencyBuilder() {
onChanged();
return getConsistencyFieldBuilder().getBuilder();
}
/**
*
* The consistency level.
* If unset, it defaults to LOCAL_QUORUM.
*
*
* .stargate.ConsistencyValue consistency = 2;
*/
public io.stargate.proto.QueryOuterClass.ConsistencyValueOrBuilder getConsistencyOrBuilder() {
if (consistencyBuilder_ != null) {
return consistencyBuilder_.getMessageOrBuilder();
} else {
return consistency_ == null ?
io.stargate.proto.QueryOuterClass.ConsistencyValue.getDefaultInstance() : consistency_;
}
}
/**
*
* The consistency level.
* If unset, it defaults to LOCAL_QUORUM.
*
*
* .stargate.ConsistencyValue consistency = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.ConsistencyValue, io.stargate.proto.QueryOuterClass.ConsistencyValue.Builder, io.stargate.proto.QueryOuterClass.ConsistencyValueOrBuilder>
getConsistencyFieldBuilder() {
if (consistencyBuilder_ == null) {
consistencyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.ConsistencyValue, io.stargate.proto.QueryOuterClass.ConsistencyValue.Builder, io.stargate.proto.QueryOuterClass.ConsistencyValueOrBuilder>(
getConsistency(),
getParentForChildren(),
isClean());
consistency_ = null;
}
return consistencyBuilder_;
}
private com.google.protobuf.Int32Value pageSize_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> pageSizeBuilder_;
/**
*
* The maximum number of rows that will be returned in the response. If there are more results,
* the response will contain a paging state, and additional queries will be needed to retrieve
* subsequent pages.
* Note that this is only a suggestion, the server reserves the right to return slightly smaller
* or bigger pages.
* If unset, it defaults to 100.
*
*
* .google.protobuf.Int32Value page_size = 3;
* @return Whether the pageSize field is set.
*/
public boolean hasPageSize() {
return pageSizeBuilder_ != null || pageSize_ != null;
}
/**
*
* The maximum number of rows that will be returned in the response. If there are more results,
* the response will contain a paging state, and additional queries will be needed to retrieve
* subsequent pages.
* Note that this is only a suggestion, the server reserves the right to return slightly smaller
* or bigger pages.
* If unset, it defaults to 100.
*
*
* .google.protobuf.Int32Value page_size = 3;
* @return The pageSize.
*/
public com.google.protobuf.Int32Value getPageSize() {
if (pageSizeBuilder_ == null) {
return pageSize_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : pageSize_;
} else {
return pageSizeBuilder_.getMessage();
}
}
/**
*
* The maximum number of rows that will be returned in the response. If there are more results,
* the response will contain a paging state, and additional queries will be needed to retrieve
* subsequent pages.
* Note that this is only a suggestion, the server reserves the right to return slightly smaller
* or bigger pages.
* If unset, it defaults to 100.
*
*
* .google.protobuf.Int32Value page_size = 3;
*/
public Builder setPageSize(com.google.protobuf.Int32Value value) {
if (pageSizeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pageSize_ = value;
onChanged();
} else {
pageSizeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The maximum number of rows that will be returned in the response. If there are more results,
* the response will contain a paging state, and additional queries will be needed to retrieve
* subsequent pages.
* Note that this is only a suggestion, the server reserves the right to return slightly smaller
* or bigger pages.
* If unset, it defaults to 100.
*
*
* .google.protobuf.Int32Value page_size = 3;
*/
public Builder setPageSize(
com.google.protobuf.Int32Value.Builder builderForValue) {
if (pageSizeBuilder_ == null) {
pageSize_ = builderForValue.build();
onChanged();
} else {
pageSizeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The maximum number of rows that will be returned in the response. If there are more results,
* the response will contain a paging state, and additional queries will be needed to retrieve
* subsequent pages.
* Note that this is only a suggestion, the server reserves the right to return slightly smaller
* or bigger pages.
* If unset, it defaults to 100.
*
*
* .google.protobuf.Int32Value page_size = 3;
*/
public Builder mergePageSize(com.google.protobuf.Int32Value value) {
if (pageSizeBuilder_ == null) {
if (pageSize_ != null) {
pageSize_ =
com.google.protobuf.Int32Value.newBuilder(pageSize_).mergeFrom(value).buildPartial();
} else {
pageSize_ = value;
}
onChanged();
} else {
pageSizeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The maximum number of rows that will be returned in the response. If there are more results,
* the response will contain a paging state, and additional queries will be needed to retrieve
* subsequent pages.
* Note that this is only a suggestion, the server reserves the right to return slightly smaller
* or bigger pages.
* If unset, it defaults to 100.
*
*
* .google.protobuf.Int32Value page_size = 3;
*/
public Builder clearPageSize() {
if (pageSizeBuilder_ == null) {
pageSize_ = null;
onChanged();
} else {
pageSize_ = null;
pageSizeBuilder_ = null;
}
return this;
}
/**
*
* The maximum number of rows that will be returned in the response. If there are more results,
* the response will contain a paging state, and additional queries will be needed to retrieve
* subsequent pages.
* Note that this is only a suggestion, the server reserves the right to return slightly smaller
* or bigger pages.
* If unset, it defaults to 100.
*
*
* .google.protobuf.Int32Value page_size = 3;
*/
public com.google.protobuf.Int32Value.Builder getPageSizeBuilder() {
onChanged();
return getPageSizeFieldBuilder().getBuilder();
}
/**
*
* The maximum number of rows that will be returned in the response. If there are more results,
* the response will contain a paging state, and additional queries will be needed to retrieve
* subsequent pages.
* Note that this is only a suggestion, the server reserves the right to return slightly smaller
* or bigger pages.
* If unset, it defaults to 100.
*
*
* .google.protobuf.Int32Value page_size = 3;
*/
public com.google.protobuf.Int32ValueOrBuilder getPageSizeOrBuilder() {
if (pageSizeBuilder_ != null) {
return pageSizeBuilder_.getMessageOrBuilder();
} else {
return pageSize_ == null ?
com.google.protobuf.Int32Value.getDefaultInstance() : pageSize_;
}
}
/**
*
* The maximum number of rows that will be returned in the response. If there are more results,
* the response will contain a paging state, and additional queries will be needed to retrieve
* subsequent pages.
* Note that this is only a suggestion, the server reserves the right to return slightly smaller
* or bigger pages.
* If unset, it defaults to 100.
*
*
* .google.protobuf.Int32Value page_size = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>
getPageSizeFieldBuilder() {
if (pageSizeBuilder_ == null) {
pageSizeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>(
getPageSize(),
getParentForChildren(),
isClean());
pageSize_ = null;
}
return pageSizeBuilder_;
}
private com.google.protobuf.BytesValue pagingState_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> pagingStateBuilder_;
/**
*
* A paging state that indicates where to resume iteration in the result set. This is used to
* retrieve the next page of data when the number of results exceeds the page size.
* This should be filled with the value returned by the previous response (see
* ResultSet.paging_state). It is an opaque binary string that is only intended to be collected,
* stored and reused; any attempt to modify its contents or reuse it with a different statement
* will yield unpredictable results.
*
*
* .google.protobuf.BytesValue paging_state = 4;
* @return Whether the pagingState field is set.
*/
public boolean hasPagingState() {
return pagingStateBuilder_ != null || pagingState_ != null;
}
/**
*
* A paging state that indicates where to resume iteration in the result set. This is used to
* retrieve the next page of data when the number of results exceeds the page size.
* This should be filled with the value returned by the previous response (see
* ResultSet.paging_state). It is an opaque binary string that is only intended to be collected,
* stored and reused; any attempt to modify its contents or reuse it with a different statement
* will yield unpredictable results.
*
*
* .google.protobuf.BytesValue paging_state = 4;
* @return The pagingState.
*/
public com.google.protobuf.BytesValue getPagingState() {
if (pagingStateBuilder_ == null) {
return pagingState_ == null ? com.google.protobuf.BytesValue.getDefaultInstance() : pagingState_;
} else {
return pagingStateBuilder_.getMessage();
}
}
/**
*
* A paging state that indicates where to resume iteration in the result set. This is used to
* retrieve the next page of data when the number of results exceeds the page size.
* This should be filled with the value returned by the previous response (see
* ResultSet.paging_state). It is an opaque binary string that is only intended to be collected,
* stored and reused; any attempt to modify its contents or reuse it with a different statement
* will yield unpredictable results.
*
*
* .google.protobuf.BytesValue paging_state = 4;
*/
public Builder setPagingState(com.google.protobuf.BytesValue value) {
if (pagingStateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pagingState_ = value;
onChanged();
} else {
pagingStateBuilder_.setMessage(value);
}
return this;
}
/**
*
* A paging state that indicates where to resume iteration in the result set. This is used to
* retrieve the next page of data when the number of results exceeds the page size.
* This should be filled with the value returned by the previous response (see
* ResultSet.paging_state). It is an opaque binary string that is only intended to be collected,
* stored and reused; any attempt to modify its contents or reuse it with a different statement
* will yield unpredictable results.
*
*
* .google.protobuf.BytesValue paging_state = 4;
*/
public Builder setPagingState(
com.google.protobuf.BytesValue.Builder builderForValue) {
if (pagingStateBuilder_ == null) {
pagingState_ = builderForValue.build();
onChanged();
} else {
pagingStateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* A paging state that indicates where to resume iteration in the result set. This is used to
* retrieve the next page of data when the number of results exceeds the page size.
* This should be filled with the value returned by the previous response (see
* ResultSet.paging_state). It is an opaque binary string that is only intended to be collected,
* stored and reused; any attempt to modify its contents or reuse it with a different statement
* will yield unpredictable results.
*
*
* .google.protobuf.BytesValue paging_state = 4;
*/
public Builder mergePagingState(com.google.protobuf.BytesValue value) {
if (pagingStateBuilder_ == null) {
if (pagingState_ != null) {
pagingState_ =
com.google.protobuf.BytesValue.newBuilder(pagingState_).mergeFrom(value).buildPartial();
} else {
pagingState_ = value;
}
onChanged();
} else {
pagingStateBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* A paging state that indicates where to resume iteration in the result set. This is used to
* retrieve the next page of data when the number of results exceeds the page size.
* This should be filled with the value returned by the previous response (see
* ResultSet.paging_state). It is an opaque binary string that is only intended to be collected,
* stored and reused; any attempt to modify its contents or reuse it with a different statement
* will yield unpredictable results.
*
*
* .google.protobuf.BytesValue paging_state = 4;
*/
public Builder clearPagingState() {
if (pagingStateBuilder_ == null) {
pagingState_ = null;
onChanged();
} else {
pagingState_ = null;
pagingStateBuilder_ = null;
}
return this;
}
/**
*
* A paging state that indicates where to resume iteration in the result set. This is used to
* retrieve the next page of data when the number of results exceeds the page size.
* This should be filled with the value returned by the previous response (see
* ResultSet.paging_state). It is an opaque binary string that is only intended to be collected,
* stored and reused; any attempt to modify its contents or reuse it with a different statement
* will yield unpredictable results.
*
*
* .google.protobuf.BytesValue paging_state = 4;
*/
public com.google.protobuf.BytesValue.Builder getPagingStateBuilder() {
onChanged();
return getPagingStateFieldBuilder().getBuilder();
}
/**
*
* A paging state that indicates where to resume iteration in the result set. This is used to
* retrieve the next page of data when the number of results exceeds the page size.
* This should be filled with the value returned by the previous response (see
* ResultSet.paging_state). It is an opaque binary string that is only intended to be collected,
* stored and reused; any attempt to modify its contents or reuse it with a different statement
* will yield unpredictable results.
*
*
* .google.protobuf.BytesValue paging_state = 4;
*/
public com.google.protobuf.BytesValueOrBuilder getPagingStateOrBuilder() {
if (pagingStateBuilder_ != null) {
return pagingStateBuilder_.getMessageOrBuilder();
} else {
return pagingState_ == null ?
com.google.protobuf.BytesValue.getDefaultInstance() : pagingState_;
}
}
/**
*
* A paging state that indicates where to resume iteration in the result set. This is used to
* retrieve the next page of data when the number of results exceeds the page size.
* This should be filled with the value returned by the previous response (see
* ResultSet.paging_state). It is an opaque binary string that is only intended to be collected,
* stored and reused; any attempt to modify its contents or reuse it with a different statement
* will yield unpredictable results.
*
*
* .google.protobuf.BytesValue paging_state = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder>
getPagingStateFieldBuilder() {
if (pagingStateBuilder_ == null) {
pagingStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder>(
getPagingState(),
getParentForChildren(),
isClean());
pagingState_ = null;
}
return pagingStateBuilder_;
}
private boolean tracing_ ;
/**
*
* Whether the server should collect tracing information about the execution of the query.
* If this is set, then a Traces message will be included in the Response message.
*
*
* bool tracing = 5;
* @return The tracing.
*/
@java.lang.Override
public boolean getTracing() {
return tracing_;
}
/**
*
* Whether the server should collect tracing information about the execution of the query.
* If this is set, then a Traces message will be included in the Response message.
*
*
* bool tracing = 5;
* @param value The tracing to set.
* @return This builder for chaining.
*/
public Builder setTracing(boolean value) {
tracing_ = value;
onChanged();
return this;
}
/**
*
* Whether the server should collect tracing information about the execution of the query.
* If this is set, then a Traces message will be included in the Response message.
*
*
* bool tracing = 5;
* @return This builder for chaining.
*/
public Builder clearTracing() {
tracing_ = false;
onChanged();
return this;
}
private boolean skipMetadata_ ;
/**
*
* Whether to omit ResultSet.columns in the response.
* This can be used to optimize response size when the client already knows that information (for
* example when fetching multiple pages for the same query).
*
*
* bool skip_metadata = 6;
* @return The skipMetadata.
*/
@java.lang.Override
public boolean getSkipMetadata() {
return skipMetadata_;
}
/**
*
* Whether to omit ResultSet.columns in the response.
* This can be used to optimize response size when the client already knows that information (for
* example when fetching multiple pages for the same query).
*
*
* bool skip_metadata = 6;
* @param value The skipMetadata to set.
* @return This builder for chaining.
*/
public Builder setSkipMetadata(boolean value) {
skipMetadata_ = value;
onChanged();
return this;
}
/**
*
* Whether to omit ResultSet.columns in the response.
* This can be used to optimize response size when the client already knows that information (for
* example when fetching multiple pages for the same query).
*
*
* bool skip_metadata = 6;
* @return This builder for chaining.
*/
public Builder clearSkipMetadata() {
skipMetadata_ = false;
onChanged();
return this;
}
private com.google.protobuf.Int64Value timestamp_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> timestampBuilder_;
/**
*
* The query timestamp (in microseconds). This is used to order mutations on the server.
* If unset, the server will assign one based on the time it received the query.
*
*
* .google.protobuf.Int64Value timestamp = 7;
* @return Whether the timestamp field is set.
*/
public boolean hasTimestamp() {
return timestampBuilder_ != null || timestamp_ != null;
}
/**
*
* The query timestamp (in microseconds). This is used to order mutations on the server.
* If unset, the server will assign one based on the time it received the query.
*
*
* .google.protobuf.Int64Value timestamp = 7;
* @return The timestamp.
*/
public com.google.protobuf.Int64Value getTimestamp() {
if (timestampBuilder_ == null) {
return timestamp_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : timestamp_;
} else {
return timestampBuilder_.getMessage();
}
}
/**
*
* The query timestamp (in microseconds). This is used to order mutations on the server.
* If unset, the server will assign one based on the time it received the query.
*
*
* .google.protobuf.Int64Value timestamp = 7;
*/
public Builder setTimestamp(com.google.protobuf.Int64Value value) {
if (timestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timestamp_ = value;
onChanged();
} else {
timestampBuilder_.setMessage(value);
}
return this;
}
/**
*
* The query timestamp (in microseconds). This is used to order mutations on the server.
* If unset, the server will assign one based on the time it received the query.
*
*
* .google.protobuf.Int64Value timestamp = 7;
*/
public Builder setTimestamp(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (timestampBuilder_ == null) {
timestamp_ = builderForValue.build();
onChanged();
} else {
timestampBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The query timestamp (in microseconds). This is used to order mutations on the server.
* If unset, the server will assign one based on the time it received the query.
*
*
* .google.protobuf.Int64Value timestamp = 7;
*/
public Builder mergeTimestamp(com.google.protobuf.Int64Value value) {
if (timestampBuilder_ == null) {
if (timestamp_ != null) {
timestamp_ =
com.google.protobuf.Int64Value.newBuilder(timestamp_).mergeFrom(value).buildPartial();
} else {
timestamp_ = value;
}
onChanged();
} else {
timestampBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The query timestamp (in microseconds). This is used to order mutations on the server.
* If unset, the server will assign one based on the time it received the query.
*
*
* .google.protobuf.Int64Value timestamp = 7;
*/
public Builder clearTimestamp() {
if (timestampBuilder_ == null) {
timestamp_ = null;
onChanged();
} else {
timestamp_ = null;
timestampBuilder_ = null;
}
return this;
}
/**
*
* The query timestamp (in microseconds). This is used to order mutations on the server.
* If unset, the server will assign one based on the time it received the query.
*
*
* .google.protobuf.Int64Value timestamp = 7;
*/
public com.google.protobuf.Int64Value.Builder getTimestampBuilder() {
onChanged();
return getTimestampFieldBuilder().getBuilder();
}
/**
*
* The query timestamp (in microseconds). This is used to order mutations on the server.
* If unset, the server will assign one based on the time it received the query.
*
*
* .google.protobuf.Int64Value timestamp = 7;
*/
public com.google.protobuf.Int64ValueOrBuilder getTimestampOrBuilder() {
if (timestampBuilder_ != null) {
return timestampBuilder_.getMessageOrBuilder();
} else {
return timestamp_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : timestamp_;
}
}
/**
*
* The query timestamp (in microseconds). This is used to order mutations on the server.
* If unset, the server will assign one based on the time it received the query.
*
*
* .google.protobuf.Int64Value timestamp = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getTimestampFieldBuilder() {
if (timestampBuilder_ == null) {
timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getTimestamp(),
getParentForChildren(),
isClean());
timestamp_ = null;
}
return timestampBuilder_;
}
private io.stargate.proto.QueryOuterClass.ConsistencyValue serialConsistency_;
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.ConsistencyValue, io.stargate.proto.QueryOuterClass.ConsistencyValue.Builder, io.stargate.proto.QueryOuterClass.ConsistencyValueOrBuilder> serialConsistencyBuilder_;
/**
*
* The serial consistency level (if the query is a lightweight transaction).
* If unset, it defaults to SERIAL.
*
*
* .stargate.ConsistencyValue serial_consistency = 8;
* @return Whether the serialConsistency field is set.
*/
public boolean hasSerialConsistency() {
return serialConsistencyBuilder_ != null || serialConsistency_ != null;
}
/**
*
* The serial consistency level (if the query is a lightweight transaction).
* If unset, it defaults to SERIAL.
*
*
* .stargate.ConsistencyValue serial_consistency = 8;
* @return The serialConsistency.
*/
public io.stargate.proto.QueryOuterClass.ConsistencyValue getSerialConsistency() {
if (serialConsistencyBuilder_ == null) {
return serialConsistency_ == null ? io.stargate.proto.QueryOuterClass.ConsistencyValue.getDefaultInstance() : serialConsistency_;
} else {
return serialConsistencyBuilder_.getMessage();
}
}
/**
*
* The serial consistency level (if the query is a lightweight transaction).
* If unset, it defaults to SERIAL.
*
*
* .stargate.ConsistencyValue serial_consistency = 8;
*/
public Builder setSerialConsistency(io.stargate.proto.QueryOuterClass.ConsistencyValue value) {
if (serialConsistencyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
serialConsistency_ = value;
onChanged();
} else {
serialConsistencyBuilder_.setMessage(value);
}
return this;
}
/**
*
* The serial consistency level (if the query is a lightweight transaction).
* If unset, it defaults to SERIAL.
*
*
* .stargate.ConsistencyValue serial_consistency = 8;
*/
public Builder setSerialConsistency(
io.stargate.proto.QueryOuterClass.ConsistencyValue.Builder builderForValue) {
if (serialConsistencyBuilder_ == null) {
serialConsistency_ = builderForValue.build();
onChanged();
} else {
serialConsistencyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The serial consistency level (if the query is a lightweight transaction).
* If unset, it defaults to SERIAL.
*
*
* .stargate.ConsistencyValue serial_consistency = 8;
*/
public Builder mergeSerialConsistency(io.stargate.proto.QueryOuterClass.ConsistencyValue value) {
if (serialConsistencyBuilder_ == null) {
if (serialConsistency_ != null) {
serialConsistency_ =
io.stargate.proto.QueryOuterClass.ConsistencyValue.newBuilder(serialConsistency_).mergeFrom(value).buildPartial();
} else {
serialConsistency_ = value;
}
onChanged();
} else {
serialConsistencyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The serial consistency level (if the query is a lightweight transaction).
* If unset, it defaults to SERIAL.
*
*
* .stargate.ConsistencyValue serial_consistency = 8;
*/
public Builder clearSerialConsistency() {
if (serialConsistencyBuilder_ == null) {
serialConsistency_ = null;
onChanged();
} else {
serialConsistency_ = null;
serialConsistencyBuilder_ = null;
}
return this;
}
/**
*
* The serial consistency level (if the query is a lightweight transaction).
* If unset, it defaults to SERIAL.
*
*
* .stargate.ConsistencyValue serial_consistency = 8;
*/
public io.stargate.proto.QueryOuterClass.ConsistencyValue.Builder getSerialConsistencyBuilder() {
onChanged();
return getSerialConsistencyFieldBuilder().getBuilder();
}
/**
*
* The serial consistency level (if the query is a lightweight transaction).
* If unset, it defaults to SERIAL.
*
*
* .stargate.ConsistencyValue serial_consistency = 8;
*/
public io.stargate.proto.QueryOuterClass.ConsistencyValueOrBuilder getSerialConsistencyOrBuilder() {
if (serialConsistencyBuilder_ != null) {
return serialConsistencyBuilder_.getMessageOrBuilder();
} else {
return serialConsistency_ == null ?
io.stargate.proto.QueryOuterClass.ConsistencyValue.getDefaultInstance() : serialConsistency_;
}
}
/**
*
* The serial consistency level (if the query is a lightweight transaction).
* If unset, it defaults to SERIAL.
*
*
* .stargate.ConsistencyValue serial_consistency = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.ConsistencyValue, io.stargate.proto.QueryOuterClass.ConsistencyValue.Builder, io.stargate.proto.QueryOuterClass.ConsistencyValueOrBuilder>
getSerialConsistencyFieldBuilder() {
if (serialConsistencyBuilder_ == null) {
serialConsistencyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.ConsistencyValue, io.stargate.proto.QueryOuterClass.ConsistencyValue.Builder, io.stargate.proto.QueryOuterClass.ConsistencyValueOrBuilder>(
getSerialConsistency(),
getParentForChildren(),
isClean());
serialConsistency_ = null;
}
return serialConsistencyBuilder_;
}
private com.google.protobuf.Int32Value nowInSeconds_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> nowInSecondsBuilder_;
/**
*
* Forces the current time for the query (for testing purposes).
* This affects TTL cell liveness in read queries and local deletion time for tombstones and TTL
* cells in update requests.
*
*
* .google.protobuf.Int32Value now_in_seconds = 9;
* @return Whether the nowInSeconds field is set.
*/
public boolean hasNowInSeconds() {
return nowInSecondsBuilder_ != null || nowInSeconds_ != null;
}
/**
*
* Forces the current time for the query (for testing purposes).
* This affects TTL cell liveness in read queries and local deletion time for tombstones and TTL
* cells in update requests.
*
*
* .google.protobuf.Int32Value now_in_seconds = 9;
* @return The nowInSeconds.
*/
public com.google.protobuf.Int32Value getNowInSeconds() {
if (nowInSecondsBuilder_ == null) {
return nowInSeconds_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : nowInSeconds_;
} else {
return nowInSecondsBuilder_.getMessage();
}
}
/**
*
* Forces the current time for the query (for testing purposes).
* This affects TTL cell liveness in read queries and local deletion time for tombstones and TTL
* cells in update requests.
*
*
* .google.protobuf.Int32Value now_in_seconds = 9;
*/
public Builder setNowInSeconds(com.google.protobuf.Int32Value value) {
if (nowInSecondsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nowInSeconds_ = value;
onChanged();
} else {
nowInSecondsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Forces the current time for the query (for testing purposes).
* This affects TTL cell liveness in read queries and local deletion time for tombstones and TTL
* cells in update requests.
*
*
* .google.protobuf.Int32Value now_in_seconds = 9;
*/
public Builder setNowInSeconds(
com.google.protobuf.Int32Value.Builder builderForValue) {
if (nowInSecondsBuilder_ == null) {
nowInSeconds_ = builderForValue.build();
onChanged();
} else {
nowInSecondsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Forces the current time for the query (for testing purposes).
* This affects TTL cell liveness in read queries and local deletion time for tombstones and TTL
* cells in update requests.
*
*
* .google.protobuf.Int32Value now_in_seconds = 9;
*/
public Builder mergeNowInSeconds(com.google.protobuf.Int32Value value) {
if (nowInSecondsBuilder_ == null) {
if (nowInSeconds_ != null) {
nowInSeconds_ =
com.google.protobuf.Int32Value.newBuilder(nowInSeconds_).mergeFrom(value).buildPartial();
} else {
nowInSeconds_ = value;
}
onChanged();
} else {
nowInSecondsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Forces the current time for the query (for testing purposes).
* This affects TTL cell liveness in read queries and local deletion time for tombstones and TTL
* cells in update requests.
*
*
* .google.protobuf.Int32Value now_in_seconds = 9;
*/
public Builder clearNowInSeconds() {
if (nowInSecondsBuilder_ == null) {
nowInSeconds_ = null;
onChanged();
} else {
nowInSeconds_ = null;
nowInSecondsBuilder_ = null;
}
return this;
}
/**
*
* Forces the current time for the query (for testing purposes).
* This affects TTL cell liveness in read queries and local deletion time for tombstones and TTL
* cells in update requests.
*
*
* .google.protobuf.Int32Value now_in_seconds = 9;
*/
public com.google.protobuf.Int32Value.Builder getNowInSecondsBuilder() {
onChanged();
return getNowInSecondsFieldBuilder().getBuilder();
}
/**
*
* Forces the current time for the query (for testing purposes).
* This affects TTL cell liveness in read queries and local deletion time for tombstones and TTL
* cells in update requests.
*
*
* .google.protobuf.Int32Value now_in_seconds = 9;
*/
public com.google.protobuf.Int32ValueOrBuilder getNowInSecondsOrBuilder() {
if (nowInSecondsBuilder_ != null) {
return nowInSecondsBuilder_.getMessageOrBuilder();
} else {
return nowInSeconds_ == null ?
com.google.protobuf.Int32Value.getDefaultInstance() : nowInSeconds_;
}
}
/**
*
* Forces the current time for the query (for testing purposes).
* This affects TTL cell liveness in read queries and local deletion time for tombstones and TTL
* cells in update requests.
*
*
* .google.protobuf.Int32Value now_in_seconds = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>
getNowInSecondsFieldBuilder() {
if (nowInSecondsBuilder_ == null) {
nowInSecondsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>(
getNowInSeconds(),
getParentForChildren(),
isClean());
nowInSeconds_ = null;
}
return nowInSecondsBuilder_;
}
private io.stargate.proto.QueryOuterClass.ConsistencyValue tracingConsistency_;
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.ConsistencyValue, io.stargate.proto.QueryOuterClass.ConsistencyValue.Builder, io.stargate.proto.QueryOuterClass.ConsistencyValueOrBuilder> tracingConsistencyBuilder_;
/**
*
* The consistency level to use to retrieve the query trace (if tracing is set).
* If unset, it defaults to ONE.
*
*
* .stargate.ConsistencyValue tracing_consistency = 10;
* @return Whether the tracingConsistency field is set.
*/
public boolean hasTracingConsistency() {
return tracingConsistencyBuilder_ != null || tracingConsistency_ != null;
}
/**
*
* The consistency level to use to retrieve the query trace (if tracing is set).
* If unset, it defaults to ONE.
*
*
* .stargate.ConsistencyValue tracing_consistency = 10;
* @return The tracingConsistency.
*/
public io.stargate.proto.QueryOuterClass.ConsistencyValue getTracingConsistency() {
if (tracingConsistencyBuilder_ == null) {
return tracingConsistency_ == null ? io.stargate.proto.QueryOuterClass.ConsistencyValue.getDefaultInstance() : tracingConsistency_;
} else {
return tracingConsistencyBuilder_.getMessage();
}
}
/**
*
* The consistency level to use to retrieve the query trace (if tracing is set).
* If unset, it defaults to ONE.
*
*
* .stargate.ConsistencyValue tracing_consistency = 10;
*/
public Builder setTracingConsistency(io.stargate.proto.QueryOuterClass.ConsistencyValue value) {
if (tracingConsistencyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tracingConsistency_ = value;
onChanged();
} else {
tracingConsistencyBuilder_.setMessage(value);
}
return this;
}
/**
*
* The consistency level to use to retrieve the query trace (if tracing is set).
* If unset, it defaults to ONE.
*
*
* .stargate.ConsistencyValue tracing_consistency = 10;
*/
public Builder setTracingConsistency(
io.stargate.proto.QueryOuterClass.ConsistencyValue.Builder builderForValue) {
if (tracingConsistencyBuilder_ == null) {
tracingConsistency_ = builderForValue.build();
onChanged();
} else {
tracingConsistencyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The consistency level to use to retrieve the query trace (if tracing is set).
* If unset, it defaults to ONE.
*
*
* .stargate.ConsistencyValue tracing_consistency = 10;
*/
public Builder mergeTracingConsistency(io.stargate.proto.QueryOuterClass.ConsistencyValue value) {
if (tracingConsistencyBuilder_ == null) {
if (tracingConsistency_ != null) {
tracingConsistency_ =
io.stargate.proto.QueryOuterClass.ConsistencyValue.newBuilder(tracingConsistency_).mergeFrom(value).buildPartial();
} else {
tracingConsistency_ = value;
}
onChanged();
} else {
tracingConsistencyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The consistency level to use to retrieve the query trace (if tracing is set).
* If unset, it defaults to ONE.
*
*
* .stargate.ConsistencyValue tracing_consistency = 10;
*/
public Builder clearTracingConsistency() {
if (tracingConsistencyBuilder_ == null) {
tracingConsistency_ = null;
onChanged();
} else {
tracingConsistency_ = null;
tracingConsistencyBuilder_ = null;
}
return this;
}
/**
*
* The consistency level to use to retrieve the query trace (if tracing is set).
* If unset, it defaults to ONE.
*
*
* .stargate.ConsistencyValue tracing_consistency = 10;
*/
public io.stargate.proto.QueryOuterClass.ConsistencyValue.Builder getTracingConsistencyBuilder() {
onChanged();
return getTracingConsistencyFieldBuilder().getBuilder();
}
/**
*
* The consistency level to use to retrieve the query trace (if tracing is set).
* If unset, it defaults to ONE.
*
*
* .stargate.ConsistencyValue tracing_consistency = 10;
*/
public io.stargate.proto.QueryOuterClass.ConsistencyValueOrBuilder getTracingConsistencyOrBuilder() {
if (tracingConsistencyBuilder_ != null) {
return tracingConsistencyBuilder_.getMessageOrBuilder();
} else {
return tracingConsistency_ == null ?
io.stargate.proto.QueryOuterClass.ConsistencyValue.getDefaultInstance() : tracingConsistency_;
}
}
/**
*
* The consistency level to use to retrieve the query trace (if tracing is set).
* If unset, it defaults to ONE.
*
*
* .stargate.ConsistencyValue tracing_consistency = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.ConsistencyValue, io.stargate.proto.QueryOuterClass.ConsistencyValue.Builder, io.stargate.proto.QueryOuterClass.ConsistencyValueOrBuilder>
getTracingConsistencyFieldBuilder() {
if (tracingConsistencyBuilder_ == null) {
tracingConsistencyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.ConsistencyValue, io.stargate.proto.QueryOuterClass.ConsistencyValue.Builder, io.stargate.proto.QueryOuterClass.ConsistencyValueOrBuilder>(
getTracingConsistency(),
getParentForChildren(),
isClean());
tracingConsistency_ = null;
}
return tracingConsistencyBuilder_;
}
@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:stargate.QueryParameters)
}
// @@protoc_insertion_point(class_scope:stargate.QueryParameters)
private static final io.stargate.proto.QueryOuterClass.QueryParameters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.QueryParameters();
}
public static io.stargate.proto.QueryOuterClass.QueryParameters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryParameters parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryParameters(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 io.stargate.proto.QueryOuterClass.QueryParameters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TypeSpecOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.TypeSpec)
com.google.protobuf.MessageOrBuilder {
/**
* .stargate.TypeSpec.Basic basic = 1;
* @return Whether the basic field is set.
*/
boolean hasBasic();
/**
* .stargate.TypeSpec.Basic basic = 1;
* @return The enum numeric value on the wire for basic.
*/
int getBasicValue();
/**
* .stargate.TypeSpec.Basic basic = 1;
* @return The basic.
*/
io.stargate.proto.QueryOuterClass.TypeSpec.Basic getBasic();
/**
* .stargate.TypeSpec.Map map = 2;
* @return Whether the map field is set.
*/
boolean hasMap();
/**
* .stargate.TypeSpec.Map map = 2;
* @return The map.
*/
io.stargate.proto.QueryOuterClass.TypeSpec.Map getMap();
/**
* .stargate.TypeSpec.Map map = 2;
*/
io.stargate.proto.QueryOuterClass.TypeSpec.MapOrBuilder getMapOrBuilder();
/**
* .stargate.TypeSpec.List list = 3;
* @return Whether the list field is set.
*/
boolean hasList();
/**
* .stargate.TypeSpec.List list = 3;
* @return The list.
*/
io.stargate.proto.QueryOuterClass.TypeSpec.List getList();
/**
* .stargate.TypeSpec.List list = 3;
*/
io.stargate.proto.QueryOuterClass.TypeSpec.ListOrBuilder getListOrBuilder();
/**
* .stargate.TypeSpec.Set set = 4;
* @return Whether the set field is set.
*/
boolean hasSet();
/**
* .stargate.TypeSpec.Set set = 4;
* @return The set.
*/
io.stargate.proto.QueryOuterClass.TypeSpec.Set getSet();
/**
* .stargate.TypeSpec.Set set = 4;
*/
io.stargate.proto.QueryOuterClass.TypeSpec.SetOrBuilder getSetOrBuilder();
/**
* .stargate.TypeSpec.Udt udt = 5;
* @return Whether the udt field is set.
*/
boolean hasUdt();
/**
* .stargate.TypeSpec.Udt udt = 5;
* @return The udt.
*/
io.stargate.proto.QueryOuterClass.TypeSpec.Udt getUdt();
/**
* .stargate.TypeSpec.Udt udt = 5;
*/
io.stargate.proto.QueryOuterClass.TypeSpec.UdtOrBuilder getUdtOrBuilder();
/**
* .stargate.TypeSpec.Tuple tuple = 6;
* @return Whether the tuple field is set.
*/
boolean hasTuple();
/**
* .stargate.TypeSpec.Tuple tuple = 6;
* @return The tuple.
*/
io.stargate.proto.QueryOuterClass.TypeSpec.Tuple getTuple();
/**
* .stargate.TypeSpec.Tuple tuple = 6;
*/
io.stargate.proto.QueryOuterClass.TypeSpec.TupleOrBuilder getTupleOrBuilder();
public io.stargate.proto.QueryOuterClass.TypeSpec.SpecCase getSpecCase();
}
/**
*
* A CQL column type.
*
*
* Protobuf type {@code stargate.TypeSpec}
*/
public static final class TypeSpec extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.TypeSpec)
TypeSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use TypeSpec.newBuilder() to construct.
private TypeSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TypeSpec() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TypeSpec();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TypeSpec(
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();
specCase_ = 1;
spec_ = rawValue;
break;
}
case 18: {
io.stargate.proto.QueryOuterClass.TypeSpec.Map.Builder subBuilder = null;
if (specCase_ == 2) {
subBuilder = ((io.stargate.proto.QueryOuterClass.TypeSpec.Map) spec_).toBuilder();
}
spec_ =
input.readMessage(io.stargate.proto.QueryOuterClass.TypeSpec.Map.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.stargate.proto.QueryOuterClass.TypeSpec.Map) spec_);
spec_ = subBuilder.buildPartial();
}
specCase_ = 2;
break;
}
case 26: {
io.stargate.proto.QueryOuterClass.TypeSpec.List.Builder subBuilder = null;
if (specCase_ == 3) {
subBuilder = ((io.stargate.proto.QueryOuterClass.TypeSpec.List) spec_).toBuilder();
}
spec_ =
input.readMessage(io.stargate.proto.QueryOuterClass.TypeSpec.List.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.stargate.proto.QueryOuterClass.TypeSpec.List) spec_);
spec_ = subBuilder.buildPartial();
}
specCase_ = 3;
break;
}
case 34: {
io.stargate.proto.QueryOuterClass.TypeSpec.Set.Builder subBuilder = null;
if (specCase_ == 4) {
subBuilder = ((io.stargate.proto.QueryOuterClass.TypeSpec.Set) spec_).toBuilder();
}
spec_ =
input.readMessage(io.stargate.proto.QueryOuterClass.TypeSpec.Set.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.stargate.proto.QueryOuterClass.TypeSpec.Set) spec_);
spec_ = subBuilder.buildPartial();
}
specCase_ = 4;
break;
}
case 42: {
io.stargate.proto.QueryOuterClass.TypeSpec.Udt.Builder subBuilder = null;
if (specCase_ == 5) {
subBuilder = ((io.stargate.proto.QueryOuterClass.TypeSpec.Udt) spec_).toBuilder();
}
spec_ =
input.readMessage(io.stargate.proto.QueryOuterClass.TypeSpec.Udt.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.stargate.proto.QueryOuterClass.TypeSpec.Udt) spec_);
spec_ = subBuilder.buildPartial();
}
specCase_ = 5;
break;
}
case 50: {
io.stargate.proto.QueryOuterClass.TypeSpec.Tuple.Builder subBuilder = null;
if (specCase_ == 6) {
subBuilder = ((io.stargate.proto.QueryOuterClass.TypeSpec.Tuple) spec_).toBuilder();
}
spec_ =
input.readMessage(io.stargate.proto.QueryOuterClass.TypeSpec.Tuple.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.stargate.proto.QueryOuterClass.TypeSpec.Tuple) spec_);
spec_ = subBuilder.buildPartial();
}
specCase_ = 6;
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 io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.TypeSpec.class, io.stargate.proto.QueryOuterClass.TypeSpec.Builder.class);
}
/**
*
* A CQL primitive type.
*
*
* Protobuf enum {@code stargate.TypeSpec.Basic}
*/
public enum Basic
implements com.google.protobuf.ProtocolMessageEnum {
/**
* CUSTOM = 0;
*/
CUSTOM(0),
/**
* ASCII = 1;
*/
ASCII(1),
/**
* BIGINT = 2;
*/
BIGINT(2),
/**
* BLOB = 3;
*/
BLOB(3),
/**
* BOOLEAN = 4;
*/
BOOLEAN(4),
/**
* COUNTER = 5;
*/
COUNTER(5),
/**
* DECIMAL = 6;
*/
DECIMAL(6),
/**
* DOUBLE = 7;
*/
DOUBLE(7),
/**
* FLOAT = 8;
*/
FLOAT(8),
/**
* INT = 9;
*/
INT(9),
/**
*
* Note that TEXT and VARCHAR are synonyms in Cassandra. gRPC responses will always use VARCHAR,
* regardless of the name that was used for creation.
*
*
* TEXT = 10 [deprecated = true];
*/
@java.lang.Deprecated
TEXT(10),
/**
* TIMESTAMP = 11;
*/
TIMESTAMP(11),
/**
* UUID = 12;
*/
UUID(12),
/**
* VARCHAR = 13;
*/
VARCHAR(13),
/**
* VARINT = 14;
*/
VARINT(14),
/**
* TIMEUUID = 15;
*/
TIMEUUID(15),
/**
* INET = 16;
*/
INET(16),
/**
* DATE = 17;
*/
DATE(17),
/**
* TIME = 18;
*/
TIME(18),
/**
* SMALLINT = 19;
*/
SMALLINT(19),
/**
* TINYINT = 20;
*/
TINYINT(20),
/**
* DURATION = 21;
*/
DURATION(21),
/**
* LINESTRING = 22;
*/
LINESTRING(22),
/**
* POINT = 23;
*/
POINT(23),
/**
* POLYGON = 24;
*/
POLYGON(24),
UNRECOGNIZED(-1),
;
/**
* CUSTOM = 0;
*/
public static final int CUSTOM_VALUE = 0;
/**
* ASCII = 1;
*/
public static final int ASCII_VALUE = 1;
/**
* BIGINT = 2;
*/
public static final int BIGINT_VALUE = 2;
/**
* BLOB = 3;
*/
public static final int BLOB_VALUE = 3;
/**
* BOOLEAN = 4;
*/
public static final int BOOLEAN_VALUE = 4;
/**
* COUNTER = 5;
*/
public static final int COUNTER_VALUE = 5;
/**
* DECIMAL = 6;
*/
public static final int DECIMAL_VALUE = 6;
/**
* DOUBLE = 7;
*/
public static final int DOUBLE_VALUE = 7;
/**
* FLOAT = 8;
*/
public static final int FLOAT_VALUE = 8;
/**
* INT = 9;
*/
public static final int INT_VALUE = 9;
/**
*
* Note that TEXT and VARCHAR are synonyms in Cassandra. gRPC responses will always use VARCHAR,
* regardless of the name that was used for creation.
*
*
* TEXT = 10 [deprecated = true];
*/
@java.lang.Deprecated public static final int TEXT_VALUE = 10;
/**
* TIMESTAMP = 11;
*/
public static final int TIMESTAMP_VALUE = 11;
/**
* UUID = 12;
*/
public static final int UUID_VALUE = 12;
/**
* VARCHAR = 13;
*/
public static final int VARCHAR_VALUE = 13;
/**
* VARINT = 14;
*/
public static final int VARINT_VALUE = 14;
/**
* TIMEUUID = 15;
*/
public static final int TIMEUUID_VALUE = 15;
/**
* INET = 16;
*/
public static final int INET_VALUE = 16;
/**
* DATE = 17;
*/
public static final int DATE_VALUE = 17;
/**
* TIME = 18;
*/
public static final int TIME_VALUE = 18;
/**
* SMALLINT = 19;
*/
public static final int SMALLINT_VALUE = 19;
/**
* TINYINT = 20;
*/
public static final int TINYINT_VALUE = 20;
/**
* DURATION = 21;
*/
public static final int DURATION_VALUE = 21;
/**
* LINESTRING = 22;
*/
public static final int LINESTRING_VALUE = 22;
/**
* POINT = 23;
*/
public static final int POINT_VALUE = 23;
/**
* POLYGON = 24;
*/
public static final int POLYGON_VALUE = 24;
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 Basic 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 Basic forNumber(int value) {
switch (value) {
case 0: return CUSTOM;
case 1: return ASCII;
case 2: return BIGINT;
case 3: return BLOB;
case 4: return BOOLEAN;
case 5: return COUNTER;
case 6: return DECIMAL;
case 7: return DOUBLE;
case 8: return FLOAT;
case 9: return INT;
case 10: return TEXT;
case 11: return TIMESTAMP;
case 12: return UUID;
case 13: return VARCHAR;
case 14: return VARINT;
case 15: return TIMEUUID;
case 16: return INET;
case 17: return DATE;
case 18: return TIME;
case 19: return SMALLINT;
case 20: return TINYINT;
case 21: return DURATION;
case 22: return LINESTRING;
case 23: return POINT;
case 24: return POLYGON;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Basic> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Basic findValueByNumber(int number) {
return Basic.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 io.stargate.proto.QueryOuterClass.TypeSpec.getDescriptor().getEnumTypes().get(0);
}
private static final Basic[] VALUES = values();
public static Basic 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 Basic(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:stargate.TypeSpec.Basic)
}
public interface MapOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.TypeSpec.Map)
com.google.protobuf.MessageOrBuilder {
/**
* .stargate.TypeSpec key = 1;
* @return Whether the key field is set.
*/
boolean hasKey();
/**
* .stargate.TypeSpec key = 1;
* @return The key.
*/
io.stargate.proto.QueryOuterClass.TypeSpec getKey();
/**
* .stargate.TypeSpec key = 1;
*/
io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder getKeyOrBuilder();
/**
* .stargate.TypeSpec value = 2;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* .stargate.TypeSpec value = 2;
* @return The value.
*/
io.stargate.proto.QueryOuterClass.TypeSpec getValue();
/**
* .stargate.TypeSpec value = 2;
*/
io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder getValueOrBuilder();
/**
*
* optional, only required on schema definition (CREATE TYPE or CREATE TABLE)
*
*
* bool frozen = 3;
* @return The frozen.
*/
boolean getFrozen();
}
/**
* Protobuf type {@code stargate.TypeSpec.Map}
*/
public static final class Map extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.TypeSpec.Map)
MapOrBuilder {
private static final long serialVersionUID = 0L;
// Use Map.newBuilder() to construct.
private Map(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Map() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Map();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Map(
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: {
io.stargate.proto.QueryOuterClass.TypeSpec.Builder subBuilder = null;
if (key_ != null) {
subBuilder = key_.toBuilder();
}
key_ = input.readMessage(io.stargate.proto.QueryOuterClass.TypeSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(key_);
key_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.stargate.proto.QueryOuterClass.TypeSpec.Builder subBuilder = null;
if (value_ != null) {
subBuilder = value_.toBuilder();
}
value_ = input.readMessage(io.stargate.proto.QueryOuterClass.TypeSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(value_);
value_ = subBuilder.buildPartial();
}
break;
}
case 24: {
frozen_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_Map_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_Map_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.TypeSpec.Map.class, io.stargate.proto.QueryOuterClass.TypeSpec.Map.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
private io.stargate.proto.QueryOuterClass.TypeSpec key_;
/**
* .stargate.TypeSpec key = 1;
* @return Whether the key field is set.
*/
@java.lang.Override
public boolean hasKey() {
return key_ != null;
}
/**
* .stargate.TypeSpec key = 1;
* @return The key.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec getKey() {
return key_ == null ? io.stargate.proto.QueryOuterClass.TypeSpec.getDefaultInstance() : key_;
}
/**
* .stargate.TypeSpec key = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder getKeyOrBuilder() {
return getKey();
}
public static final int VALUE_FIELD_NUMBER = 2;
private io.stargate.proto.QueryOuterClass.TypeSpec value_;
/**
* .stargate.TypeSpec value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return value_ != null;
}
/**
* .stargate.TypeSpec value = 2;
* @return The value.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec getValue() {
return value_ == null ? io.stargate.proto.QueryOuterClass.TypeSpec.getDefaultInstance() : value_;
}
/**
* .stargate.TypeSpec value = 2;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder getValueOrBuilder() {
return getValue();
}
public static final int FROZEN_FIELD_NUMBER = 3;
private boolean frozen_;
/**
*
* optional, only required on schema definition (CREATE TYPE or CREATE TABLE)
*
*
* bool frozen = 3;
* @return The frozen.
*/
@java.lang.Override
public boolean getFrozen() {
return frozen_;
}
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 (value_ != null) {
output.writeMessage(2, getValue());
}
if (frozen_ != false) {
output.writeBool(3, frozen_);
}
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 (value_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getValue());
}
if (frozen_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, frozen_);
}
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 io.stargate.proto.QueryOuterClass.TypeSpec.Map)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.TypeSpec.Map other = (io.stargate.proto.QueryOuterClass.TypeSpec.Map) obj;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (getFrozen()
!= other.getFrozen()) 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 (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (37 * hash) + FROZEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFrozen());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Map parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Map parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Map parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Map parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Map parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Map parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Map parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Map 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 io.stargate.proto.QueryOuterClass.TypeSpec.Map parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Map 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 io.stargate.proto.QueryOuterClass.TypeSpec.Map parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Map 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(io.stargate.proto.QueryOuterClass.TypeSpec.Map 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 stargate.TypeSpec.Map}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.TypeSpec.Map)
io.stargate.proto.QueryOuterClass.TypeSpec.MapOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_Map_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_Map_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.TypeSpec.Map.class, io.stargate.proto.QueryOuterClass.TypeSpec.Map.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.TypeSpec.Map.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 (valueBuilder_ == null) {
value_ = null;
} else {
value_ = null;
valueBuilder_ = null;
}
frozen_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_Map_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.Map getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.TypeSpec.Map.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.Map build() {
io.stargate.proto.QueryOuterClass.TypeSpec.Map result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.Map buildPartial() {
io.stargate.proto.QueryOuterClass.TypeSpec.Map result = new io.stargate.proto.QueryOuterClass.TypeSpec.Map(this);
if (keyBuilder_ == null) {
result.key_ = key_;
} else {
result.key_ = keyBuilder_.build();
}
if (valueBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = valueBuilder_.build();
}
result.frozen_ = frozen_;
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 io.stargate.proto.QueryOuterClass.TypeSpec.Map) {
return mergeFrom((io.stargate.proto.QueryOuterClass.TypeSpec.Map)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.TypeSpec.Map other) {
if (other == io.stargate.proto.QueryOuterClass.TypeSpec.Map.getDefaultInstance()) return this;
if (other.hasKey()) {
mergeKey(other.getKey());
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
if (other.getFrozen() != false) {
setFrozen(other.getFrozen());
}
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 {
io.stargate.proto.QueryOuterClass.TypeSpec.Map parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.TypeSpec.Map) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.stargate.proto.QueryOuterClass.TypeSpec key_;
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec, io.stargate.proto.QueryOuterClass.TypeSpec.Builder, io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder> keyBuilder_;
/**
* .stargate.TypeSpec key = 1;
* @return Whether the key field is set.
*/
public boolean hasKey() {
return keyBuilder_ != null || key_ != null;
}
/**
* .stargate.TypeSpec key = 1;
* @return The key.
*/
public io.stargate.proto.QueryOuterClass.TypeSpec getKey() {
if (keyBuilder_ == null) {
return key_ == null ? io.stargate.proto.QueryOuterClass.TypeSpec.getDefaultInstance() : key_;
} else {
return keyBuilder_.getMessage();
}
}
/**
* .stargate.TypeSpec key = 1;
*/
public Builder setKey(io.stargate.proto.QueryOuterClass.TypeSpec value) {
if (keyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
} else {
keyBuilder_.setMessage(value);
}
return this;
}
/**
* .stargate.TypeSpec key = 1;
*/
public Builder setKey(
io.stargate.proto.QueryOuterClass.TypeSpec.Builder builderForValue) {
if (keyBuilder_ == null) {
key_ = builderForValue.build();
onChanged();
} else {
keyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .stargate.TypeSpec key = 1;
*/
public Builder mergeKey(io.stargate.proto.QueryOuterClass.TypeSpec value) {
if (keyBuilder_ == null) {
if (key_ != null) {
key_ =
io.stargate.proto.QueryOuterClass.TypeSpec.newBuilder(key_).mergeFrom(value).buildPartial();
} else {
key_ = value;
}
onChanged();
} else {
keyBuilder_.mergeFrom(value);
}
return this;
}
/**
* .stargate.TypeSpec key = 1;
*/
public Builder clearKey() {
if (keyBuilder_ == null) {
key_ = null;
onChanged();
} else {
key_ = null;
keyBuilder_ = null;
}
return this;
}
/**
* .stargate.TypeSpec key = 1;
*/
public io.stargate.proto.QueryOuterClass.TypeSpec.Builder getKeyBuilder() {
onChanged();
return getKeyFieldBuilder().getBuilder();
}
/**
* .stargate.TypeSpec key = 1;
*/
public io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder getKeyOrBuilder() {
if (keyBuilder_ != null) {
return keyBuilder_.getMessageOrBuilder();
} else {
return key_ == null ?
io.stargate.proto.QueryOuterClass.TypeSpec.getDefaultInstance() : key_;
}
}
/**
* .stargate.TypeSpec key = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec, io.stargate.proto.QueryOuterClass.TypeSpec.Builder, io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder>
getKeyFieldBuilder() {
if (keyBuilder_ == null) {
keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec, io.stargate.proto.QueryOuterClass.TypeSpec.Builder, io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder>(
getKey(),
getParentForChildren(),
isClean());
key_ = null;
}
return keyBuilder_;
}
private io.stargate.proto.QueryOuterClass.TypeSpec value_;
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec, io.stargate.proto.QueryOuterClass.TypeSpec.Builder, io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder> valueBuilder_;
/**
* .stargate.TypeSpec value = 2;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return valueBuilder_ != null || value_ != null;
}
/**
* .stargate.TypeSpec value = 2;
* @return The value.
*/
public io.stargate.proto.QueryOuterClass.TypeSpec getValue() {
if (valueBuilder_ == null) {
return value_ == null ? io.stargate.proto.QueryOuterClass.TypeSpec.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* .stargate.TypeSpec value = 2;
*/
public Builder setValue(io.stargate.proto.QueryOuterClass.TypeSpec value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
valueBuilder_.setMessage(value);
}
return this;
}
/**
* .stargate.TypeSpec value = 2;
*/
public Builder setValue(
io.stargate.proto.QueryOuterClass.TypeSpec.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .stargate.TypeSpec value = 2;
*/
public Builder mergeValue(io.stargate.proto.QueryOuterClass.TypeSpec value) {
if (valueBuilder_ == null) {
if (value_ != null) {
value_ =
io.stargate.proto.QueryOuterClass.TypeSpec.newBuilder(value_).mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
valueBuilder_.mergeFrom(value);
}
return this;
}
/**
* .stargate.TypeSpec value = 2;
*/
public Builder clearValue() {
if (valueBuilder_ == null) {
value_ = null;
onChanged();
} else {
value_ = null;
valueBuilder_ = null;
}
return this;
}
/**
* .stargate.TypeSpec value = 2;
*/
public io.stargate.proto.QueryOuterClass.TypeSpec.Builder getValueBuilder() {
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* .stargate.TypeSpec value = 2;
*/
public io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
io.stargate.proto.QueryOuterClass.TypeSpec.getDefaultInstance() : value_;
}
}
/**
* .stargate.TypeSpec value = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec, io.stargate.proto.QueryOuterClass.TypeSpec.Builder, io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec, io.stargate.proto.QueryOuterClass.TypeSpec.Builder, io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
private boolean frozen_ ;
/**
*
* optional, only required on schema definition (CREATE TYPE or CREATE TABLE)
*
*
* bool frozen = 3;
* @return The frozen.
*/
@java.lang.Override
public boolean getFrozen() {
return frozen_;
}
/**
*
* optional, only required on schema definition (CREATE TYPE or CREATE TABLE)
*
*
* bool frozen = 3;
* @param value The frozen to set.
* @return This builder for chaining.
*/
public Builder setFrozen(boolean value) {
frozen_ = value;
onChanged();
return this;
}
/**
*
* optional, only required on schema definition (CREATE TYPE or CREATE TABLE)
*
*
* bool frozen = 3;
* @return This builder for chaining.
*/
public Builder clearFrozen() {
frozen_ = 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:stargate.TypeSpec.Map)
}
// @@protoc_insertion_point(class_scope:stargate.TypeSpec.Map)
private static final io.stargate.proto.QueryOuterClass.TypeSpec.Map DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.TypeSpec.Map();
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Map getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Map parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Map(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 io.stargate.proto.QueryOuterClass.TypeSpec.Map getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.TypeSpec.List)
com.google.protobuf.MessageOrBuilder {
/**
* .stargate.TypeSpec element = 1;
* @return Whether the element field is set.
*/
boolean hasElement();
/**
* .stargate.TypeSpec element = 1;
* @return The element.
*/
io.stargate.proto.QueryOuterClass.TypeSpec getElement();
/**
* .stargate.TypeSpec element = 1;
*/
io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder getElementOrBuilder();
/**
*
* optional, only required on schema definition (CREATE TYPE or CREATE TABLE)
*
*
* bool frozen = 2;
* @return The frozen.
*/
boolean getFrozen();
}
/**
* Protobuf type {@code stargate.TypeSpec.List}
*/
public static final class List extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.TypeSpec.List)
ListOrBuilder {
private static final long serialVersionUID = 0L;
// Use List.newBuilder() to construct.
private List(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private List() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new List();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private List(
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: {
io.stargate.proto.QueryOuterClass.TypeSpec.Builder subBuilder = null;
if (element_ != null) {
subBuilder = element_.toBuilder();
}
element_ = input.readMessage(io.stargate.proto.QueryOuterClass.TypeSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(element_);
element_ = subBuilder.buildPartial();
}
break;
}
case 16: {
frozen_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_List_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_List_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.TypeSpec.List.class, io.stargate.proto.QueryOuterClass.TypeSpec.List.Builder.class);
}
public static final int ELEMENT_FIELD_NUMBER = 1;
private io.stargate.proto.QueryOuterClass.TypeSpec element_;
/**
* .stargate.TypeSpec element = 1;
* @return Whether the element field is set.
*/
@java.lang.Override
public boolean hasElement() {
return element_ != null;
}
/**
* .stargate.TypeSpec element = 1;
* @return The element.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec getElement() {
return element_ == null ? io.stargate.proto.QueryOuterClass.TypeSpec.getDefaultInstance() : element_;
}
/**
* .stargate.TypeSpec element = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder getElementOrBuilder() {
return getElement();
}
public static final int FROZEN_FIELD_NUMBER = 2;
private boolean frozen_;
/**
*
* optional, only required on schema definition (CREATE TYPE or CREATE TABLE)
*
*
* bool frozen = 2;
* @return The frozen.
*/
@java.lang.Override
public boolean getFrozen() {
return frozen_;
}
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 (element_ != null) {
output.writeMessage(1, getElement());
}
if (frozen_ != false) {
output.writeBool(2, frozen_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (element_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getElement());
}
if (frozen_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, frozen_);
}
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 io.stargate.proto.QueryOuterClass.TypeSpec.List)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.TypeSpec.List other = (io.stargate.proto.QueryOuterClass.TypeSpec.List) obj;
if (hasElement() != other.hasElement()) return false;
if (hasElement()) {
if (!getElement()
.equals(other.getElement())) return false;
}
if (getFrozen()
!= other.getFrozen()) 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 (hasElement()) {
hash = (37 * hash) + ELEMENT_FIELD_NUMBER;
hash = (53 * hash) + getElement().hashCode();
}
hash = (37 * hash) + FROZEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFrozen());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.List parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.List parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.List parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.List parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.List parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.List parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.List parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.List 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 io.stargate.proto.QueryOuterClass.TypeSpec.List parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.List 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 io.stargate.proto.QueryOuterClass.TypeSpec.List parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.List 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(io.stargate.proto.QueryOuterClass.TypeSpec.List 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 stargate.TypeSpec.List}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.TypeSpec.List)
io.stargate.proto.QueryOuterClass.TypeSpec.ListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_List_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_List_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.TypeSpec.List.class, io.stargate.proto.QueryOuterClass.TypeSpec.List.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.TypeSpec.List.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 (elementBuilder_ == null) {
element_ = null;
} else {
element_ = null;
elementBuilder_ = null;
}
frozen_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_List_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.List getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.TypeSpec.List.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.List build() {
io.stargate.proto.QueryOuterClass.TypeSpec.List result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.List buildPartial() {
io.stargate.proto.QueryOuterClass.TypeSpec.List result = new io.stargate.proto.QueryOuterClass.TypeSpec.List(this);
if (elementBuilder_ == null) {
result.element_ = element_;
} else {
result.element_ = elementBuilder_.build();
}
result.frozen_ = frozen_;
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 io.stargate.proto.QueryOuterClass.TypeSpec.List) {
return mergeFrom((io.stargate.proto.QueryOuterClass.TypeSpec.List)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.TypeSpec.List other) {
if (other == io.stargate.proto.QueryOuterClass.TypeSpec.List.getDefaultInstance()) return this;
if (other.hasElement()) {
mergeElement(other.getElement());
}
if (other.getFrozen() != false) {
setFrozen(other.getFrozen());
}
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 {
io.stargate.proto.QueryOuterClass.TypeSpec.List parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.TypeSpec.List) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.stargate.proto.QueryOuterClass.TypeSpec element_;
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec, io.stargate.proto.QueryOuterClass.TypeSpec.Builder, io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder> elementBuilder_;
/**
* .stargate.TypeSpec element = 1;
* @return Whether the element field is set.
*/
public boolean hasElement() {
return elementBuilder_ != null || element_ != null;
}
/**
* .stargate.TypeSpec element = 1;
* @return The element.
*/
public io.stargate.proto.QueryOuterClass.TypeSpec getElement() {
if (elementBuilder_ == null) {
return element_ == null ? io.stargate.proto.QueryOuterClass.TypeSpec.getDefaultInstance() : element_;
} else {
return elementBuilder_.getMessage();
}
}
/**
* .stargate.TypeSpec element = 1;
*/
public Builder setElement(io.stargate.proto.QueryOuterClass.TypeSpec value) {
if (elementBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
element_ = value;
onChanged();
} else {
elementBuilder_.setMessage(value);
}
return this;
}
/**
* .stargate.TypeSpec element = 1;
*/
public Builder setElement(
io.stargate.proto.QueryOuterClass.TypeSpec.Builder builderForValue) {
if (elementBuilder_ == null) {
element_ = builderForValue.build();
onChanged();
} else {
elementBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .stargate.TypeSpec element = 1;
*/
public Builder mergeElement(io.stargate.proto.QueryOuterClass.TypeSpec value) {
if (elementBuilder_ == null) {
if (element_ != null) {
element_ =
io.stargate.proto.QueryOuterClass.TypeSpec.newBuilder(element_).mergeFrom(value).buildPartial();
} else {
element_ = value;
}
onChanged();
} else {
elementBuilder_.mergeFrom(value);
}
return this;
}
/**
* .stargate.TypeSpec element = 1;
*/
public Builder clearElement() {
if (elementBuilder_ == null) {
element_ = null;
onChanged();
} else {
element_ = null;
elementBuilder_ = null;
}
return this;
}
/**
* .stargate.TypeSpec element = 1;
*/
public io.stargate.proto.QueryOuterClass.TypeSpec.Builder getElementBuilder() {
onChanged();
return getElementFieldBuilder().getBuilder();
}
/**
* .stargate.TypeSpec element = 1;
*/
public io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder getElementOrBuilder() {
if (elementBuilder_ != null) {
return elementBuilder_.getMessageOrBuilder();
} else {
return element_ == null ?
io.stargate.proto.QueryOuterClass.TypeSpec.getDefaultInstance() : element_;
}
}
/**
* .stargate.TypeSpec element = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec, io.stargate.proto.QueryOuterClass.TypeSpec.Builder, io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder>
getElementFieldBuilder() {
if (elementBuilder_ == null) {
elementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec, io.stargate.proto.QueryOuterClass.TypeSpec.Builder, io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder>(
getElement(),
getParentForChildren(),
isClean());
element_ = null;
}
return elementBuilder_;
}
private boolean frozen_ ;
/**
*
* optional, only required on schema definition (CREATE TYPE or CREATE TABLE)
*
*
* bool frozen = 2;
* @return The frozen.
*/
@java.lang.Override
public boolean getFrozen() {
return frozen_;
}
/**
*
* optional, only required on schema definition (CREATE TYPE or CREATE TABLE)
*
*
* bool frozen = 2;
* @param value The frozen to set.
* @return This builder for chaining.
*/
public Builder setFrozen(boolean value) {
frozen_ = value;
onChanged();
return this;
}
/**
*
* optional, only required on schema definition (CREATE TYPE or CREATE TABLE)
*
*
* bool frozen = 2;
* @return This builder for chaining.
*/
public Builder clearFrozen() {
frozen_ = 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:stargate.TypeSpec.List)
}
// @@protoc_insertion_point(class_scope:stargate.TypeSpec.List)
private static final io.stargate.proto.QueryOuterClass.TypeSpec.List DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.TypeSpec.List();
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.List getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public List parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new List(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 io.stargate.proto.QueryOuterClass.TypeSpec.List getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SetOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.TypeSpec.Set)
com.google.protobuf.MessageOrBuilder {
/**
* .stargate.TypeSpec element = 1;
* @return Whether the element field is set.
*/
boolean hasElement();
/**
* .stargate.TypeSpec element = 1;
* @return The element.
*/
io.stargate.proto.QueryOuterClass.TypeSpec getElement();
/**
* .stargate.TypeSpec element = 1;
*/
io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder getElementOrBuilder();
/**
*
* optional, only required on schema definition (CREATE TYPE or CREATE TABLE)
*
*
* bool frozen = 2;
* @return The frozen.
*/
boolean getFrozen();
}
/**
* Protobuf type {@code stargate.TypeSpec.Set}
*/
public static final class Set extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.TypeSpec.Set)
SetOrBuilder {
private static final long serialVersionUID = 0L;
// Use Set.newBuilder() to construct.
private Set(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Set() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Set();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Set(
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: {
io.stargate.proto.QueryOuterClass.TypeSpec.Builder subBuilder = null;
if (element_ != null) {
subBuilder = element_.toBuilder();
}
element_ = input.readMessage(io.stargate.proto.QueryOuterClass.TypeSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(element_);
element_ = subBuilder.buildPartial();
}
break;
}
case 16: {
frozen_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_Set_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_Set_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.TypeSpec.Set.class, io.stargate.proto.QueryOuterClass.TypeSpec.Set.Builder.class);
}
public static final int ELEMENT_FIELD_NUMBER = 1;
private io.stargate.proto.QueryOuterClass.TypeSpec element_;
/**
* .stargate.TypeSpec element = 1;
* @return Whether the element field is set.
*/
@java.lang.Override
public boolean hasElement() {
return element_ != null;
}
/**
* .stargate.TypeSpec element = 1;
* @return The element.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec getElement() {
return element_ == null ? io.stargate.proto.QueryOuterClass.TypeSpec.getDefaultInstance() : element_;
}
/**
* .stargate.TypeSpec element = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder getElementOrBuilder() {
return getElement();
}
public static final int FROZEN_FIELD_NUMBER = 2;
private boolean frozen_;
/**
*
* optional, only required on schema definition (CREATE TYPE or CREATE TABLE)
*
*
* bool frozen = 2;
* @return The frozen.
*/
@java.lang.Override
public boolean getFrozen() {
return frozen_;
}
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 (element_ != null) {
output.writeMessage(1, getElement());
}
if (frozen_ != false) {
output.writeBool(2, frozen_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (element_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getElement());
}
if (frozen_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, frozen_);
}
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 io.stargate.proto.QueryOuterClass.TypeSpec.Set)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.TypeSpec.Set other = (io.stargate.proto.QueryOuterClass.TypeSpec.Set) obj;
if (hasElement() != other.hasElement()) return false;
if (hasElement()) {
if (!getElement()
.equals(other.getElement())) return false;
}
if (getFrozen()
!= other.getFrozen()) 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 (hasElement()) {
hash = (37 * hash) + ELEMENT_FIELD_NUMBER;
hash = (53 * hash) + getElement().hashCode();
}
hash = (37 * hash) + FROZEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFrozen());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Set parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Set parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Set parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Set parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Set parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Set parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Set parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Set 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 io.stargate.proto.QueryOuterClass.TypeSpec.Set parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Set 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 io.stargate.proto.QueryOuterClass.TypeSpec.Set parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Set 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(io.stargate.proto.QueryOuterClass.TypeSpec.Set 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 stargate.TypeSpec.Set}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.TypeSpec.Set)
io.stargate.proto.QueryOuterClass.TypeSpec.SetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_Set_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_Set_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.TypeSpec.Set.class, io.stargate.proto.QueryOuterClass.TypeSpec.Set.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.TypeSpec.Set.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 (elementBuilder_ == null) {
element_ = null;
} else {
element_ = null;
elementBuilder_ = null;
}
frozen_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_Set_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.Set getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.TypeSpec.Set.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.Set build() {
io.stargate.proto.QueryOuterClass.TypeSpec.Set result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.Set buildPartial() {
io.stargate.proto.QueryOuterClass.TypeSpec.Set result = new io.stargate.proto.QueryOuterClass.TypeSpec.Set(this);
if (elementBuilder_ == null) {
result.element_ = element_;
} else {
result.element_ = elementBuilder_.build();
}
result.frozen_ = frozen_;
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 io.stargate.proto.QueryOuterClass.TypeSpec.Set) {
return mergeFrom((io.stargate.proto.QueryOuterClass.TypeSpec.Set)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.TypeSpec.Set other) {
if (other == io.stargate.proto.QueryOuterClass.TypeSpec.Set.getDefaultInstance()) return this;
if (other.hasElement()) {
mergeElement(other.getElement());
}
if (other.getFrozen() != false) {
setFrozen(other.getFrozen());
}
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 {
io.stargate.proto.QueryOuterClass.TypeSpec.Set parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.TypeSpec.Set) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.stargate.proto.QueryOuterClass.TypeSpec element_;
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec, io.stargate.proto.QueryOuterClass.TypeSpec.Builder, io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder> elementBuilder_;
/**
* .stargate.TypeSpec element = 1;
* @return Whether the element field is set.
*/
public boolean hasElement() {
return elementBuilder_ != null || element_ != null;
}
/**
* .stargate.TypeSpec element = 1;
* @return The element.
*/
public io.stargate.proto.QueryOuterClass.TypeSpec getElement() {
if (elementBuilder_ == null) {
return element_ == null ? io.stargate.proto.QueryOuterClass.TypeSpec.getDefaultInstance() : element_;
} else {
return elementBuilder_.getMessage();
}
}
/**
* .stargate.TypeSpec element = 1;
*/
public Builder setElement(io.stargate.proto.QueryOuterClass.TypeSpec value) {
if (elementBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
element_ = value;
onChanged();
} else {
elementBuilder_.setMessage(value);
}
return this;
}
/**
* .stargate.TypeSpec element = 1;
*/
public Builder setElement(
io.stargate.proto.QueryOuterClass.TypeSpec.Builder builderForValue) {
if (elementBuilder_ == null) {
element_ = builderForValue.build();
onChanged();
} else {
elementBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .stargate.TypeSpec element = 1;
*/
public Builder mergeElement(io.stargate.proto.QueryOuterClass.TypeSpec value) {
if (elementBuilder_ == null) {
if (element_ != null) {
element_ =
io.stargate.proto.QueryOuterClass.TypeSpec.newBuilder(element_).mergeFrom(value).buildPartial();
} else {
element_ = value;
}
onChanged();
} else {
elementBuilder_.mergeFrom(value);
}
return this;
}
/**
* .stargate.TypeSpec element = 1;
*/
public Builder clearElement() {
if (elementBuilder_ == null) {
element_ = null;
onChanged();
} else {
element_ = null;
elementBuilder_ = null;
}
return this;
}
/**
* .stargate.TypeSpec element = 1;
*/
public io.stargate.proto.QueryOuterClass.TypeSpec.Builder getElementBuilder() {
onChanged();
return getElementFieldBuilder().getBuilder();
}
/**
* .stargate.TypeSpec element = 1;
*/
public io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder getElementOrBuilder() {
if (elementBuilder_ != null) {
return elementBuilder_.getMessageOrBuilder();
} else {
return element_ == null ?
io.stargate.proto.QueryOuterClass.TypeSpec.getDefaultInstance() : element_;
}
}
/**
* .stargate.TypeSpec element = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec, io.stargate.proto.QueryOuterClass.TypeSpec.Builder, io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder>
getElementFieldBuilder() {
if (elementBuilder_ == null) {
elementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec, io.stargate.proto.QueryOuterClass.TypeSpec.Builder, io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder>(
getElement(),
getParentForChildren(),
isClean());
element_ = null;
}
return elementBuilder_;
}
private boolean frozen_ ;
/**
*
* optional, only required on schema definition (CREATE TYPE or CREATE TABLE)
*
*
* bool frozen = 2;
* @return The frozen.
*/
@java.lang.Override
public boolean getFrozen() {
return frozen_;
}
/**
*
* optional, only required on schema definition (CREATE TYPE or CREATE TABLE)
*
*
* bool frozen = 2;
* @param value The frozen to set.
* @return This builder for chaining.
*/
public Builder setFrozen(boolean value) {
frozen_ = value;
onChanged();
return this;
}
/**
*
* optional, only required on schema definition (CREATE TYPE or CREATE TABLE)
*
*
* bool frozen = 2;
* @return This builder for chaining.
*/
public Builder clearFrozen() {
frozen_ = 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:stargate.TypeSpec.Set)
}
// @@protoc_insertion_point(class_scope:stargate.TypeSpec.Set)
private static final io.stargate.proto.QueryOuterClass.TypeSpec.Set DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.TypeSpec.Set();
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Set getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Set parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Set(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 io.stargate.proto.QueryOuterClass.TypeSpec.Set getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UdtOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.TypeSpec.Udt)
com.google.protobuf.MessageOrBuilder {
/**
*
* optional, only required when returned in ResultSet or used in CREATE TYPE,
* ignored on CREATE TABLE
*
*
* map<string, .stargate.TypeSpec> fields = 1;
*/
int getFieldsCount();
/**
*
* optional, only required when returned in ResultSet or used in CREATE TYPE,
* ignored on CREATE TABLE
*
*
* map<string, .stargate.TypeSpec> fields = 1;
*/
boolean containsFields(
java.lang.String key);
/**
* Use {@link #getFieldsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getFields();
/**
*
* optional, only required when returned in ResultSet or used in CREATE TYPE,
* ignored on CREATE TABLE
*
*
* map<string, .stargate.TypeSpec> fields = 1;
*/
java.util.Map
getFieldsMap();
/**
*
* optional, only required when returned in ResultSet or used in CREATE TYPE,
* ignored on CREATE TABLE
*
*
* map<string, .stargate.TypeSpec> fields = 1;
*/
io.stargate.proto.QueryOuterClass.TypeSpec getFieldsOrDefault(
java.lang.String key,
io.stargate.proto.QueryOuterClass.TypeSpec defaultValue);
/**
*
* optional, only required when returned in ResultSet or used in CREATE TYPE,
* ignored on CREATE TABLE
*
*
* map<string, .stargate.TypeSpec> fields = 1;
*/
io.stargate.proto.QueryOuterClass.TypeSpec getFieldsOrThrow(
java.lang.String key);
/**
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* optional, only required on schema definition (CREATE TYPE or CREATE TABLE)
*
*
* bool frozen = 3;
* @return The frozen.
*/
boolean getFrozen();
}
/**
*
* A CQL User-Defined type: a collection of named fields.
*
*
* Protobuf type {@code stargate.TypeSpec.Udt}
*/
public static final class Udt extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.TypeSpec.Udt)
UdtOrBuilder {
private static final long serialVersionUID = 0L;
// Use Udt.newBuilder() to construct.
private Udt(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Udt() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Udt();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Udt(
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)) {
fields_ = com.google.protobuf.MapField.newMapField(
FieldsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
fields__ = input.readMessage(
FieldsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
fields_.getMutableMap().put(
fields__.getKey(), fields__.getValue());
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 24: {
frozen_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_Udt_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetFields();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_Udt_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.TypeSpec.Udt.class, io.stargate.proto.QueryOuterClass.TypeSpec.Udt.Builder.class);
}
public static final int FIELDS_FIELD_NUMBER = 1;
private static final class FieldsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, io.stargate.proto.QueryOuterClass.TypeSpec> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_Udt_FieldsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
io.stargate.proto.QueryOuterClass.TypeSpec.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, io.stargate.proto.QueryOuterClass.TypeSpec> fields_;
private com.google.protobuf.MapField
internalGetFields() {
if (fields_ == null) {
return com.google.protobuf.MapField.emptyMapField(
FieldsDefaultEntryHolder.defaultEntry);
}
return fields_;
}
public int getFieldsCount() {
return internalGetFields().getMap().size();
}
/**
*
* optional, only required when returned in ResultSet or used in CREATE TYPE,
* ignored on CREATE TABLE
*
*
* map<string, .stargate.TypeSpec> fields = 1;
*/
@java.lang.Override
public boolean containsFields(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetFields().getMap().containsKey(key);
}
/**
* Use {@link #getFieldsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getFields() {
return getFieldsMap();
}
/**
*
* optional, only required when returned in ResultSet or used in CREATE TYPE,
* ignored on CREATE TABLE
*
*
* map<string, .stargate.TypeSpec> fields = 1;
*/
@java.lang.Override
public java.util.Map getFieldsMap() {
return internalGetFields().getMap();
}
/**
*
* optional, only required when returned in ResultSet or used in CREATE TYPE,
* ignored on CREATE TABLE
*
*
* map<string, .stargate.TypeSpec> fields = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec getFieldsOrDefault(
java.lang.String key,
io.stargate.proto.QueryOuterClass.TypeSpec defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetFields().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* optional, only required when returned in ResultSet or used in CREATE TYPE,
* ignored on CREATE TABLE
*
*
* map<string, .stargate.TypeSpec> fields = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec getFieldsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetFields().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* string name = 2;
* @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 = 2;
* @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 FROZEN_FIELD_NUMBER = 3;
private boolean frozen_;
/**
*
* optional, only required on schema definition (CREATE TYPE or CREATE TABLE)
*
*
* bool frozen = 3;
* @return The frozen.
*/
@java.lang.Override
public boolean getFrozen() {
return frozen_;
}
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 {
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetFields(),
FieldsDefaultEntryHolder.defaultEntry,
1);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (frozen_ != false) {
output.writeBool(3, frozen_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetFields().getMap().entrySet()) {
com.google.protobuf.MapEntry
fields__ = FieldsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, fields__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (frozen_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, frozen_);
}
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 io.stargate.proto.QueryOuterClass.TypeSpec.Udt)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.TypeSpec.Udt other = (io.stargate.proto.QueryOuterClass.TypeSpec.Udt) obj;
if (!internalGetFields().equals(
other.internalGetFields())) return false;
if (!getName()
.equals(other.getName())) return false;
if (getFrozen()
!= other.getFrozen()) 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 (!internalGetFields().getMap().isEmpty()) {
hash = (37 * hash) + FIELDS_FIELD_NUMBER;
hash = (53 * hash) + internalGetFields().hashCode();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + FROZEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFrozen());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Udt parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Udt parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Udt parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Udt parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Udt parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Udt parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Udt parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Udt 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 io.stargate.proto.QueryOuterClass.TypeSpec.Udt parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Udt 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 io.stargate.proto.QueryOuterClass.TypeSpec.Udt parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Udt 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(io.stargate.proto.QueryOuterClass.TypeSpec.Udt 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;
}
/**
*
* A CQL User-Defined type: a collection of named fields.
*
*
* Protobuf type {@code stargate.TypeSpec.Udt}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.TypeSpec.Udt)
io.stargate.proto.QueryOuterClass.TypeSpec.UdtOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_Udt_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetFields();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableFields();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_Udt_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.TypeSpec.Udt.class, io.stargate.proto.QueryOuterClass.TypeSpec.Udt.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.TypeSpec.Udt.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();
internalGetMutableFields().clear();
name_ = "";
frozen_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_Udt_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.Udt getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.TypeSpec.Udt.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.Udt build() {
io.stargate.proto.QueryOuterClass.TypeSpec.Udt result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.Udt buildPartial() {
io.stargate.proto.QueryOuterClass.TypeSpec.Udt result = new io.stargate.proto.QueryOuterClass.TypeSpec.Udt(this);
int from_bitField0_ = bitField0_;
result.fields_ = internalGetFields();
result.fields_.makeImmutable();
result.name_ = name_;
result.frozen_ = frozen_;
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 io.stargate.proto.QueryOuterClass.TypeSpec.Udt) {
return mergeFrom((io.stargate.proto.QueryOuterClass.TypeSpec.Udt)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.TypeSpec.Udt other) {
if (other == io.stargate.proto.QueryOuterClass.TypeSpec.Udt.getDefaultInstance()) return this;
internalGetMutableFields().mergeFrom(
other.internalGetFields());
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.getFrozen() != false) {
setFrozen(other.getFrozen());
}
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 {
io.stargate.proto.QueryOuterClass.TypeSpec.Udt parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.TypeSpec.Udt) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.MapField<
java.lang.String, io.stargate.proto.QueryOuterClass.TypeSpec> fields_;
private com.google.protobuf.MapField
internalGetFields() {
if (fields_ == null) {
return com.google.protobuf.MapField.emptyMapField(
FieldsDefaultEntryHolder.defaultEntry);
}
return fields_;
}
private com.google.protobuf.MapField
internalGetMutableFields() {
onChanged();;
if (fields_ == null) {
fields_ = com.google.protobuf.MapField.newMapField(
FieldsDefaultEntryHolder.defaultEntry);
}
if (!fields_.isMutable()) {
fields_ = fields_.copy();
}
return fields_;
}
public int getFieldsCount() {
return internalGetFields().getMap().size();
}
/**
*
* optional, only required when returned in ResultSet or used in CREATE TYPE,
* ignored on CREATE TABLE
*
*
* map<string, .stargate.TypeSpec> fields = 1;
*/
@java.lang.Override
public boolean containsFields(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetFields().getMap().containsKey(key);
}
/**
* Use {@link #getFieldsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getFields() {
return getFieldsMap();
}
/**
*
* optional, only required when returned in ResultSet or used in CREATE TYPE,
* ignored on CREATE TABLE
*
*
* map<string, .stargate.TypeSpec> fields = 1;
*/
@java.lang.Override
public java.util.Map getFieldsMap() {
return internalGetFields().getMap();
}
/**
*
* optional, only required when returned in ResultSet or used in CREATE TYPE,
* ignored on CREATE TABLE
*
*
* map<string, .stargate.TypeSpec> fields = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec getFieldsOrDefault(
java.lang.String key,
io.stargate.proto.QueryOuterClass.TypeSpec defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetFields().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* optional, only required when returned in ResultSet or used in CREATE TYPE,
* ignored on CREATE TABLE
*
*
* map<string, .stargate.TypeSpec> fields = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec getFieldsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetFields().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearFields() {
internalGetMutableFields().getMutableMap()
.clear();
return this;
}
/**
*
* optional, only required when returned in ResultSet or used in CREATE TYPE,
* ignored on CREATE TABLE
*
*
* map<string, .stargate.TypeSpec> fields = 1;
*/
public Builder removeFields(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableFields().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableFields() {
return internalGetMutableFields().getMutableMap();
}
/**
*
* optional, only required when returned in ResultSet or used in CREATE TYPE,
* ignored on CREATE TABLE
*
*
* map<string, .stargate.TypeSpec> fields = 1;
*/
public Builder putFields(
java.lang.String key,
io.stargate.proto.QueryOuterClass.TypeSpec value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableFields().getMutableMap()
.put(key, value);
return this;
}
/**
*
* optional, only required when returned in ResultSet or used in CREATE TYPE,
* ignored on CREATE TABLE
*
*
* map<string, .stargate.TypeSpec> fields = 1;
*/
public Builder putAllFields(
java.util.Map values) {
internalGetMutableFields().getMutableMap()
.putAll(values);
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 2;
* @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 = 2;
* @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 = 2;
* @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 = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 2;
* @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 boolean frozen_ ;
/**
*
* optional, only required on schema definition (CREATE TYPE or CREATE TABLE)
*
*
* bool frozen = 3;
* @return The frozen.
*/
@java.lang.Override
public boolean getFrozen() {
return frozen_;
}
/**
*
* optional, only required on schema definition (CREATE TYPE or CREATE TABLE)
*
*
* bool frozen = 3;
* @param value The frozen to set.
* @return This builder for chaining.
*/
public Builder setFrozen(boolean value) {
frozen_ = value;
onChanged();
return this;
}
/**
*
* optional, only required on schema definition (CREATE TYPE or CREATE TABLE)
*
*
* bool frozen = 3;
* @return This builder for chaining.
*/
public Builder clearFrozen() {
frozen_ = 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:stargate.TypeSpec.Udt)
}
// @@protoc_insertion_point(class_scope:stargate.TypeSpec.Udt)
private static final io.stargate.proto.QueryOuterClass.TypeSpec.Udt DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.TypeSpec.Udt();
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Udt getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Udt parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Udt(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 io.stargate.proto.QueryOuterClass.TypeSpec.Udt getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TupleOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.TypeSpec.Tuple)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .stargate.TypeSpec elements = 1;
*/
java.util.List
getElementsList();
/**
* repeated .stargate.TypeSpec elements = 1;
*/
io.stargate.proto.QueryOuterClass.TypeSpec getElements(int index);
/**
* repeated .stargate.TypeSpec elements = 1;
*/
int getElementsCount();
/**
* repeated .stargate.TypeSpec elements = 1;
*/
java.util.List extends io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder>
getElementsOrBuilderList();
/**
* repeated .stargate.TypeSpec elements = 1;
*/
io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder getElementsOrBuilder(
int index);
}
/**
*
* A CQL tuple: a collection of anonymous fields.
*
*
* Protobuf type {@code stargate.TypeSpec.Tuple}
*/
public static final class Tuple extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.TypeSpec.Tuple)
TupleOrBuilder {
private static final long serialVersionUID = 0L;
// Use Tuple.newBuilder() to construct.
private Tuple(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Tuple() {
elements_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Tuple();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Tuple(
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(io.stargate.proto.QueryOuterClass.TypeSpec.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 io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_Tuple_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_Tuple_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.TypeSpec.Tuple.class, io.stargate.proto.QueryOuterClass.TypeSpec.Tuple.Builder.class);
}
public static final int ELEMENTS_FIELD_NUMBER = 1;
private java.util.List elements_;
/**
* repeated .stargate.TypeSpec elements = 1;
*/
@java.lang.Override
public java.util.List getElementsList() {
return elements_;
}
/**
* repeated .stargate.TypeSpec elements = 1;
*/
@java.lang.Override
public java.util.List extends io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder>
getElementsOrBuilderList() {
return elements_;
}
/**
* repeated .stargate.TypeSpec elements = 1;
*/
@java.lang.Override
public int getElementsCount() {
return elements_.size();
}
/**
* repeated .stargate.TypeSpec elements = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec getElements(int index) {
return elements_.get(index);
}
/**
* repeated .stargate.TypeSpec elements = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder 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 io.stargate.proto.QueryOuterClass.TypeSpec.Tuple)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.TypeSpec.Tuple other = (io.stargate.proto.QueryOuterClass.TypeSpec.Tuple) 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 io.stargate.proto.QueryOuterClass.TypeSpec.Tuple parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Tuple parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Tuple parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Tuple parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Tuple parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Tuple parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Tuple parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Tuple 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 io.stargate.proto.QueryOuterClass.TypeSpec.Tuple parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Tuple 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 io.stargate.proto.QueryOuterClass.TypeSpec.Tuple parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Tuple 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(io.stargate.proto.QueryOuterClass.TypeSpec.Tuple 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;
}
/**
*
* A CQL tuple: a collection of anonymous fields.
*
*
* Protobuf type {@code stargate.TypeSpec.Tuple}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.TypeSpec.Tuple)
io.stargate.proto.QueryOuterClass.TypeSpec.TupleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_Tuple_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_Tuple_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.TypeSpec.Tuple.class, io.stargate.proto.QueryOuterClass.TypeSpec.Tuple.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.TypeSpec.Tuple.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 io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_Tuple_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.Tuple getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.TypeSpec.Tuple.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.Tuple build() {
io.stargate.proto.QueryOuterClass.TypeSpec.Tuple result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.Tuple buildPartial() {
io.stargate.proto.QueryOuterClass.TypeSpec.Tuple result = new io.stargate.proto.QueryOuterClass.TypeSpec.Tuple(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 io.stargate.proto.QueryOuterClass.TypeSpec.Tuple) {
return mergeFrom((io.stargate.proto.QueryOuterClass.TypeSpec.Tuple)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.TypeSpec.Tuple other) {
if (other == io.stargate.proto.QueryOuterClass.TypeSpec.Tuple.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 {
io.stargate.proto.QueryOuterClass.TypeSpec.Tuple parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.TypeSpec.Tuple) 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<
io.stargate.proto.QueryOuterClass.TypeSpec, io.stargate.proto.QueryOuterClass.TypeSpec.Builder, io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder> elementsBuilder_;
/**
* repeated .stargate.TypeSpec elements = 1;
*/
public java.util.List getElementsList() {
if (elementsBuilder_ == null) {
return java.util.Collections.unmodifiableList(elements_);
} else {
return elementsBuilder_.getMessageList();
}
}
/**
* repeated .stargate.TypeSpec elements = 1;
*/
public int getElementsCount() {
if (elementsBuilder_ == null) {
return elements_.size();
} else {
return elementsBuilder_.getCount();
}
}
/**
* repeated .stargate.TypeSpec elements = 1;
*/
public io.stargate.proto.QueryOuterClass.TypeSpec getElements(int index) {
if (elementsBuilder_ == null) {
return elements_.get(index);
} else {
return elementsBuilder_.getMessage(index);
}
}
/**
* repeated .stargate.TypeSpec elements = 1;
*/
public Builder setElements(
int index, io.stargate.proto.QueryOuterClass.TypeSpec value) {
if (elementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureElementsIsMutable();
elements_.set(index, value);
onChanged();
} else {
elementsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .stargate.TypeSpec elements = 1;
*/
public Builder setElements(
int index, io.stargate.proto.QueryOuterClass.TypeSpec.Builder builderForValue) {
if (elementsBuilder_ == null) {
ensureElementsIsMutable();
elements_.set(index, builderForValue.build());
onChanged();
} else {
elementsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .stargate.TypeSpec elements = 1;
*/
public Builder addElements(io.stargate.proto.QueryOuterClass.TypeSpec value) {
if (elementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureElementsIsMutable();
elements_.add(value);
onChanged();
} else {
elementsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .stargate.TypeSpec elements = 1;
*/
public Builder addElements(
int index, io.stargate.proto.QueryOuterClass.TypeSpec value) {
if (elementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureElementsIsMutable();
elements_.add(index, value);
onChanged();
} else {
elementsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .stargate.TypeSpec elements = 1;
*/
public Builder addElements(
io.stargate.proto.QueryOuterClass.TypeSpec.Builder builderForValue) {
if (elementsBuilder_ == null) {
ensureElementsIsMutable();
elements_.add(builderForValue.build());
onChanged();
} else {
elementsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .stargate.TypeSpec elements = 1;
*/
public Builder addElements(
int index, io.stargate.proto.QueryOuterClass.TypeSpec.Builder builderForValue) {
if (elementsBuilder_ == null) {
ensureElementsIsMutable();
elements_.add(index, builderForValue.build());
onChanged();
} else {
elementsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .stargate.TypeSpec elements = 1;
*/
public Builder addAllElements(
java.lang.Iterable extends io.stargate.proto.QueryOuterClass.TypeSpec> values) {
if (elementsBuilder_ == null) {
ensureElementsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, elements_);
onChanged();
} else {
elementsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .stargate.TypeSpec elements = 1;
*/
public Builder clearElements() {
if (elementsBuilder_ == null) {
elements_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
elementsBuilder_.clear();
}
return this;
}
/**
* repeated .stargate.TypeSpec elements = 1;
*/
public Builder removeElements(int index) {
if (elementsBuilder_ == null) {
ensureElementsIsMutable();
elements_.remove(index);
onChanged();
} else {
elementsBuilder_.remove(index);
}
return this;
}
/**
* repeated .stargate.TypeSpec elements = 1;
*/
public io.stargate.proto.QueryOuterClass.TypeSpec.Builder getElementsBuilder(
int index) {
return getElementsFieldBuilder().getBuilder(index);
}
/**
* repeated .stargate.TypeSpec elements = 1;
*/
public io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder getElementsOrBuilder(
int index) {
if (elementsBuilder_ == null) {
return elements_.get(index); } else {
return elementsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .stargate.TypeSpec elements = 1;
*/
public java.util.List extends io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder>
getElementsOrBuilderList() {
if (elementsBuilder_ != null) {
return elementsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(elements_);
}
}
/**
* repeated .stargate.TypeSpec elements = 1;
*/
public io.stargate.proto.QueryOuterClass.TypeSpec.Builder addElementsBuilder() {
return getElementsFieldBuilder().addBuilder(
io.stargate.proto.QueryOuterClass.TypeSpec.getDefaultInstance());
}
/**
* repeated .stargate.TypeSpec elements = 1;
*/
public io.stargate.proto.QueryOuterClass.TypeSpec.Builder addElementsBuilder(
int index) {
return getElementsFieldBuilder().addBuilder(
index, io.stargate.proto.QueryOuterClass.TypeSpec.getDefaultInstance());
}
/**
* repeated .stargate.TypeSpec elements = 1;
*/
public java.util.List
getElementsBuilderList() {
return getElementsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec, io.stargate.proto.QueryOuterClass.TypeSpec.Builder, io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder>
getElementsFieldBuilder() {
if (elementsBuilder_ == null) {
elementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec, io.stargate.proto.QueryOuterClass.TypeSpec.Builder, io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder>(
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:stargate.TypeSpec.Tuple)
}
// @@protoc_insertion_point(class_scope:stargate.TypeSpec.Tuple)
private static final io.stargate.proto.QueryOuterClass.TypeSpec.Tuple DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.TypeSpec.Tuple();
}
public static io.stargate.proto.QueryOuterClass.TypeSpec.Tuple getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Tuple parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Tuple(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 io.stargate.proto.QueryOuterClass.TypeSpec.Tuple getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int specCase_ = 0;
private java.lang.Object spec_;
public enum SpecCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
BASIC(1),
MAP(2),
LIST(3),
SET(4),
UDT(5),
TUPLE(6),
SPEC_NOT_SET(0);
private final int value;
private SpecCase(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 SpecCase valueOf(int value) {
return forNumber(value);
}
public static SpecCase forNumber(int value) {
switch (value) {
case 1: return BASIC;
case 2: return MAP;
case 3: return LIST;
case 4: return SET;
case 5: return UDT;
case 6: return TUPLE;
case 0: return SPEC_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SpecCase
getSpecCase() {
return SpecCase.forNumber(
specCase_);
}
public static final int BASIC_FIELD_NUMBER = 1;
/**
* .stargate.TypeSpec.Basic basic = 1;
* @return Whether the basic field is set.
*/
public boolean hasBasic() {
return specCase_ == 1;
}
/**
* .stargate.TypeSpec.Basic basic = 1;
* @return The enum numeric value on the wire for basic.
*/
public int getBasicValue() {
if (specCase_ == 1) {
return (java.lang.Integer) spec_;
}
return 0;
}
/**
* .stargate.TypeSpec.Basic basic = 1;
* @return The basic.
*/
public io.stargate.proto.QueryOuterClass.TypeSpec.Basic getBasic() {
if (specCase_ == 1) {
@SuppressWarnings("deprecation")
io.stargate.proto.QueryOuterClass.TypeSpec.Basic result = io.stargate.proto.QueryOuterClass.TypeSpec.Basic.valueOf(
(java.lang.Integer) spec_);
return result == null ? io.stargate.proto.QueryOuterClass.TypeSpec.Basic.UNRECOGNIZED : result;
}
return io.stargate.proto.QueryOuterClass.TypeSpec.Basic.CUSTOM;
}
public static final int MAP_FIELD_NUMBER = 2;
/**
* .stargate.TypeSpec.Map map = 2;
* @return Whether the map field is set.
*/
@java.lang.Override
public boolean hasMap() {
return specCase_ == 2;
}
/**
* .stargate.TypeSpec.Map map = 2;
* @return The map.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.Map getMap() {
if (specCase_ == 2) {
return (io.stargate.proto.QueryOuterClass.TypeSpec.Map) spec_;
}
return io.stargate.proto.QueryOuterClass.TypeSpec.Map.getDefaultInstance();
}
/**
* .stargate.TypeSpec.Map map = 2;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.MapOrBuilder getMapOrBuilder() {
if (specCase_ == 2) {
return (io.stargate.proto.QueryOuterClass.TypeSpec.Map) spec_;
}
return io.stargate.proto.QueryOuterClass.TypeSpec.Map.getDefaultInstance();
}
public static final int LIST_FIELD_NUMBER = 3;
/**
* .stargate.TypeSpec.List list = 3;
* @return Whether the list field is set.
*/
@java.lang.Override
public boolean hasList() {
return specCase_ == 3;
}
/**
* .stargate.TypeSpec.List list = 3;
* @return The list.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.List getList() {
if (specCase_ == 3) {
return (io.stargate.proto.QueryOuterClass.TypeSpec.List) spec_;
}
return io.stargate.proto.QueryOuterClass.TypeSpec.List.getDefaultInstance();
}
/**
* .stargate.TypeSpec.List list = 3;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.ListOrBuilder getListOrBuilder() {
if (specCase_ == 3) {
return (io.stargate.proto.QueryOuterClass.TypeSpec.List) spec_;
}
return io.stargate.proto.QueryOuterClass.TypeSpec.List.getDefaultInstance();
}
public static final int SET_FIELD_NUMBER = 4;
/**
* .stargate.TypeSpec.Set set = 4;
* @return Whether the set field is set.
*/
@java.lang.Override
public boolean hasSet() {
return specCase_ == 4;
}
/**
* .stargate.TypeSpec.Set set = 4;
* @return The set.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.Set getSet() {
if (specCase_ == 4) {
return (io.stargate.proto.QueryOuterClass.TypeSpec.Set) spec_;
}
return io.stargate.proto.QueryOuterClass.TypeSpec.Set.getDefaultInstance();
}
/**
* .stargate.TypeSpec.Set set = 4;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.SetOrBuilder getSetOrBuilder() {
if (specCase_ == 4) {
return (io.stargate.proto.QueryOuterClass.TypeSpec.Set) spec_;
}
return io.stargate.proto.QueryOuterClass.TypeSpec.Set.getDefaultInstance();
}
public static final int UDT_FIELD_NUMBER = 5;
/**
* .stargate.TypeSpec.Udt udt = 5;
* @return Whether the udt field is set.
*/
@java.lang.Override
public boolean hasUdt() {
return specCase_ == 5;
}
/**
* .stargate.TypeSpec.Udt udt = 5;
* @return The udt.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.Udt getUdt() {
if (specCase_ == 5) {
return (io.stargate.proto.QueryOuterClass.TypeSpec.Udt) spec_;
}
return io.stargate.proto.QueryOuterClass.TypeSpec.Udt.getDefaultInstance();
}
/**
* .stargate.TypeSpec.Udt udt = 5;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.UdtOrBuilder getUdtOrBuilder() {
if (specCase_ == 5) {
return (io.stargate.proto.QueryOuterClass.TypeSpec.Udt) spec_;
}
return io.stargate.proto.QueryOuterClass.TypeSpec.Udt.getDefaultInstance();
}
public static final int TUPLE_FIELD_NUMBER = 6;
/**
* .stargate.TypeSpec.Tuple tuple = 6;
* @return Whether the tuple field is set.
*/
@java.lang.Override
public boolean hasTuple() {
return specCase_ == 6;
}
/**
* .stargate.TypeSpec.Tuple tuple = 6;
* @return The tuple.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.Tuple getTuple() {
if (specCase_ == 6) {
return (io.stargate.proto.QueryOuterClass.TypeSpec.Tuple) spec_;
}
return io.stargate.proto.QueryOuterClass.TypeSpec.Tuple.getDefaultInstance();
}
/**
* .stargate.TypeSpec.Tuple tuple = 6;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.TupleOrBuilder getTupleOrBuilder() {
if (specCase_ == 6) {
return (io.stargate.proto.QueryOuterClass.TypeSpec.Tuple) spec_;
}
return io.stargate.proto.QueryOuterClass.TypeSpec.Tuple.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 (specCase_ == 1) {
output.writeEnum(1, ((java.lang.Integer) spec_));
}
if (specCase_ == 2) {
output.writeMessage(2, (io.stargate.proto.QueryOuterClass.TypeSpec.Map) spec_);
}
if (specCase_ == 3) {
output.writeMessage(3, (io.stargate.proto.QueryOuterClass.TypeSpec.List) spec_);
}
if (specCase_ == 4) {
output.writeMessage(4, (io.stargate.proto.QueryOuterClass.TypeSpec.Set) spec_);
}
if (specCase_ == 5) {
output.writeMessage(5, (io.stargate.proto.QueryOuterClass.TypeSpec.Udt) spec_);
}
if (specCase_ == 6) {
output.writeMessage(6, (io.stargate.proto.QueryOuterClass.TypeSpec.Tuple) spec_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (specCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, ((java.lang.Integer) spec_));
}
if (specCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.stargate.proto.QueryOuterClass.TypeSpec.Map) spec_);
}
if (specCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.stargate.proto.QueryOuterClass.TypeSpec.List) spec_);
}
if (specCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (io.stargate.proto.QueryOuterClass.TypeSpec.Set) spec_);
}
if (specCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (io.stargate.proto.QueryOuterClass.TypeSpec.Udt) spec_);
}
if (specCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (io.stargate.proto.QueryOuterClass.TypeSpec.Tuple) spec_);
}
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 io.stargate.proto.QueryOuterClass.TypeSpec)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.TypeSpec other = (io.stargate.proto.QueryOuterClass.TypeSpec) obj;
if (!getSpecCase().equals(other.getSpecCase())) return false;
switch (specCase_) {
case 1:
if (getBasicValue()
!= other.getBasicValue()) return false;
break;
case 2:
if (!getMap()
.equals(other.getMap())) return false;
break;
case 3:
if (!getList()
.equals(other.getList())) return false;
break;
case 4:
if (!getSet()
.equals(other.getSet())) return false;
break;
case 5:
if (!getUdt()
.equals(other.getUdt())) return false;
break;
case 6:
if (!getTuple()
.equals(other.getTuple())) 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 (specCase_) {
case 1:
hash = (37 * hash) + BASIC_FIELD_NUMBER;
hash = (53 * hash) + getBasicValue();
break;
case 2:
hash = (37 * hash) + MAP_FIELD_NUMBER;
hash = (53 * hash) + getMap().hashCode();
break;
case 3:
hash = (37 * hash) + LIST_FIELD_NUMBER;
hash = (53 * hash) + getList().hashCode();
break;
case 4:
hash = (37 * hash) + SET_FIELD_NUMBER;
hash = (53 * hash) + getSet().hashCode();
break;
case 5:
hash = (37 * hash) + UDT_FIELD_NUMBER;
hash = (53 * hash) + getUdt().hashCode();
break;
case 6:
hash = (37 * hash) + TUPLE_FIELD_NUMBER;
hash = (53 * hash) + getTuple().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.TypeSpec parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec 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 io.stargate.proto.QueryOuterClass.TypeSpec parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec 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 io.stargate.proto.QueryOuterClass.TypeSpec parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.TypeSpec 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(io.stargate.proto.QueryOuterClass.TypeSpec 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;
}
/**
*
* A CQL column type.
*
*
* Protobuf type {@code stargate.TypeSpec}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.TypeSpec)
io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.TypeSpec.class, io.stargate.proto.QueryOuterClass.TypeSpec.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.TypeSpec.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();
specCase_ = 0;
spec_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_TypeSpec_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.TypeSpec.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec build() {
io.stargate.proto.QueryOuterClass.TypeSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec buildPartial() {
io.stargate.proto.QueryOuterClass.TypeSpec result = new io.stargate.proto.QueryOuterClass.TypeSpec(this);
if (specCase_ == 1) {
result.spec_ = spec_;
}
if (specCase_ == 2) {
if (mapBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = mapBuilder_.build();
}
}
if (specCase_ == 3) {
if (listBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = listBuilder_.build();
}
}
if (specCase_ == 4) {
if (setBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = setBuilder_.build();
}
}
if (specCase_ == 5) {
if (udtBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = udtBuilder_.build();
}
}
if (specCase_ == 6) {
if (tupleBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = tupleBuilder_.build();
}
}
result.specCase_ = specCase_;
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 io.stargate.proto.QueryOuterClass.TypeSpec) {
return mergeFrom((io.stargate.proto.QueryOuterClass.TypeSpec)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.TypeSpec other) {
if (other == io.stargate.proto.QueryOuterClass.TypeSpec.getDefaultInstance()) return this;
switch (other.getSpecCase()) {
case BASIC: {
setBasicValue(other.getBasicValue());
break;
}
case MAP: {
mergeMap(other.getMap());
break;
}
case LIST: {
mergeList(other.getList());
break;
}
case SET: {
mergeSet(other.getSet());
break;
}
case UDT: {
mergeUdt(other.getUdt());
break;
}
case TUPLE: {
mergeTuple(other.getTuple());
break;
}
case SPEC_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 {
io.stargate.proto.QueryOuterClass.TypeSpec parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.TypeSpec) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int specCase_ = 0;
private java.lang.Object spec_;
public SpecCase
getSpecCase() {
return SpecCase.forNumber(
specCase_);
}
public Builder clearSpec() {
specCase_ = 0;
spec_ = null;
onChanged();
return this;
}
/**
* .stargate.TypeSpec.Basic basic = 1;
* @return Whether the basic field is set.
*/
@java.lang.Override
public boolean hasBasic() {
return specCase_ == 1;
}
/**
* .stargate.TypeSpec.Basic basic = 1;
* @return The enum numeric value on the wire for basic.
*/
@java.lang.Override
public int getBasicValue() {
if (specCase_ == 1) {
return ((java.lang.Integer) spec_).intValue();
}
return 0;
}
/**
* .stargate.TypeSpec.Basic basic = 1;
* @param value The enum numeric value on the wire for basic to set.
* @return This builder for chaining.
*/
public Builder setBasicValue(int value) {
specCase_ = 1;
spec_ = value;
onChanged();
return this;
}
/**
* .stargate.TypeSpec.Basic basic = 1;
* @return The basic.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.Basic getBasic() {
if (specCase_ == 1) {
@SuppressWarnings("deprecation")
io.stargate.proto.QueryOuterClass.TypeSpec.Basic result = io.stargate.proto.QueryOuterClass.TypeSpec.Basic.valueOf(
(java.lang.Integer) spec_);
return result == null ? io.stargate.proto.QueryOuterClass.TypeSpec.Basic.UNRECOGNIZED : result;
}
return io.stargate.proto.QueryOuterClass.TypeSpec.Basic.CUSTOM;
}
/**
* .stargate.TypeSpec.Basic basic = 1;
* @param value The basic to set.
* @return This builder for chaining.
*/
public Builder setBasic(io.stargate.proto.QueryOuterClass.TypeSpec.Basic value) {
if (value == null) {
throw new NullPointerException();
}
specCase_ = 1;
spec_ = value.getNumber();
onChanged();
return this;
}
/**
* .stargate.TypeSpec.Basic basic = 1;
* @return This builder for chaining.
*/
public Builder clearBasic() {
if (specCase_ == 1) {
specCase_ = 0;
spec_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec.Map, io.stargate.proto.QueryOuterClass.TypeSpec.Map.Builder, io.stargate.proto.QueryOuterClass.TypeSpec.MapOrBuilder> mapBuilder_;
/**
* .stargate.TypeSpec.Map map = 2;
* @return Whether the map field is set.
*/
@java.lang.Override
public boolean hasMap() {
return specCase_ == 2;
}
/**
* .stargate.TypeSpec.Map map = 2;
* @return The map.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.Map getMap() {
if (mapBuilder_ == null) {
if (specCase_ == 2) {
return (io.stargate.proto.QueryOuterClass.TypeSpec.Map) spec_;
}
return io.stargate.proto.QueryOuterClass.TypeSpec.Map.getDefaultInstance();
} else {
if (specCase_ == 2) {
return mapBuilder_.getMessage();
}
return io.stargate.proto.QueryOuterClass.TypeSpec.Map.getDefaultInstance();
}
}
/**
* .stargate.TypeSpec.Map map = 2;
*/
public Builder setMap(io.stargate.proto.QueryOuterClass.TypeSpec.Map value) {
if (mapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spec_ = value;
onChanged();
} else {
mapBuilder_.setMessage(value);
}
specCase_ = 2;
return this;
}
/**
* .stargate.TypeSpec.Map map = 2;
*/
public Builder setMap(
io.stargate.proto.QueryOuterClass.TypeSpec.Map.Builder builderForValue) {
if (mapBuilder_ == null) {
spec_ = builderForValue.build();
onChanged();
} else {
mapBuilder_.setMessage(builderForValue.build());
}
specCase_ = 2;
return this;
}
/**
* .stargate.TypeSpec.Map map = 2;
*/
public Builder mergeMap(io.stargate.proto.QueryOuterClass.TypeSpec.Map value) {
if (mapBuilder_ == null) {
if (specCase_ == 2 &&
spec_ != io.stargate.proto.QueryOuterClass.TypeSpec.Map.getDefaultInstance()) {
spec_ = io.stargate.proto.QueryOuterClass.TypeSpec.Map.newBuilder((io.stargate.proto.QueryOuterClass.TypeSpec.Map) spec_)
.mergeFrom(value).buildPartial();
} else {
spec_ = value;
}
onChanged();
} else {
if (specCase_ == 2) {
mapBuilder_.mergeFrom(value);
}
mapBuilder_.setMessage(value);
}
specCase_ = 2;
return this;
}
/**
* .stargate.TypeSpec.Map map = 2;
*/
public Builder clearMap() {
if (mapBuilder_ == null) {
if (specCase_ == 2) {
specCase_ = 0;
spec_ = null;
onChanged();
}
} else {
if (specCase_ == 2) {
specCase_ = 0;
spec_ = null;
}
mapBuilder_.clear();
}
return this;
}
/**
* .stargate.TypeSpec.Map map = 2;
*/
public io.stargate.proto.QueryOuterClass.TypeSpec.Map.Builder getMapBuilder() {
return getMapFieldBuilder().getBuilder();
}
/**
* .stargate.TypeSpec.Map map = 2;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.MapOrBuilder getMapOrBuilder() {
if ((specCase_ == 2) && (mapBuilder_ != null)) {
return mapBuilder_.getMessageOrBuilder();
} else {
if (specCase_ == 2) {
return (io.stargate.proto.QueryOuterClass.TypeSpec.Map) spec_;
}
return io.stargate.proto.QueryOuterClass.TypeSpec.Map.getDefaultInstance();
}
}
/**
* .stargate.TypeSpec.Map map = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec.Map, io.stargate.proto.QueryOuterClass.TypeSpec.Map.Builder, io.stargate.proto.QueryOuterClass.TypeSpec.MapOrBuilder>
getMapFieldBuilder() {
if (mapBuilder_ == null) {
if (!(specCase_ == 2)) {
spec_ = io.stargate.proto.QueryOuterClass.TypeSpec.Map.getDefaultInstance();
}
mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec.Map, io.stargate.proto.QueryOuterClass.TypeSpec.Map.Builder, io.stargate.proto.QueryOuterClass.TypeSpec.MapOrBuilder>(
(io.stargate.proto.QueryOuterClass.TypeSpec.Map) spec_,
getParentForChildren(),
isClean());
spec_ = null;
}
specCase_ = 2;
onChanged();;
return mapBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec.List, io.stargate.proto.QueryOuterClass.TypeSpec.List.Builder, io.stargate.proto.QueryOuterClass.TypeSpec.ListOrBuilder> listBuilder_;
/**
* .stargate.TypeSpec.List list = 3;
* @return Whether the list field is set.
*/
@java.lang.Override
public boolean hasList() {
return specCase_ == 3;
}
/**
* .stargate.TypeSpec.List list = 3;
* @return The list.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.List getList() {
if (listBuilder_ == null) {
if (specCase_ == 3) {
return (io.stargate.proto.QueryOuterClass.TypeSpec.List) spec_;
}
return io.stargate.proto.QueryOuterClass.TypeSpec.List.getDefaultInstance();
} else {
if (specCase_ == 3) {
return listBuilder_.getMessage();
}
return io.stargate.proto.QueryOuterClass.TypeSpec.List.getDefaultInstance();
}
}
/**
* .stargate.TypeSpec.List list = 3;
*/
public Builder setList(io.stargate.proto.QueryOuterClass.TypeSpec.List value) {
if (listBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spec_ = value;
onChanged();
} else {
listBuilder_.setMessage(value);
}
specCase_ = 3;
return this;
}
/**
* .stargate.TypeSpec.List list = 3;
*/
public Builder setList(
io.stargate.proto.QueryOuterClass.TypeSpec.List.Builder builderForValue) {
if (listBuilder_ == null) {
spec_ = builderForValue.build();
onChanged();
} else {
listBuilder_.setMessage(builderForValue.build());
}
specCase_ = 3;
return this;
}
/**
* .stargate.TypeSpec.List list = 3;
*/
public Builder mergeList(io.stargate.proto.QueryOuterClass.TypeSpec.List value) {
if (listBuilder_ == null) {
if (specCase_ == 3 &&
spec_ != io.stargate.proto.QueryOuterClass.TypeSpec.List.getDefaultInstance()) {
spec_ = io.stargate.proto.QueryOuterClass.TypeSpec.List.newBuilder((io.stargate.proto.QueryOuterClass.TypeSpec.List) spec_)
.mergeFrom(value).buildPartial();
} else {
spec_ = value;
}
onChanged();
} else {
if (specCase_ == 3) {
listBuilder_.mergeFrom(value);
}
listBuilder_.setMessage(value);
}
specCase_ = 3;
return this;
}
/**
* .stargate.TypeSpec.List list = 3;
*/
public Builder clearList() {
if (listBuilder_ == null) {
if (specCase_ == 3) {
specCase_ = 0;
spec_ = null;
onChanged();
}
} else {
if (specCase_ == 3) {
specCase_ = 0;
spec_ = null;
}
listBuilder_.clear();
}
return this;
}
/**
* .stargate.TypeSpec.List list = 3;
*/
public io.stargate.proto.QueryOuterClass.TypeSpec.List.Builder getListBuilder() {
return getListFieldBuilder().getBuilder();
}
/**
* .stargate.TypeSpec.List list = 3;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.ListOrBuilder getListOrBuilder() {
if ((specCase_ == 3) && (listBuilder_ != null)) {
return listBuilder_.getMessageOrBuilder();
} else {
if (specCase_ == 3) {
return (io.stargate.proto.QueryOuterClass.TypeSpec.List) spec_;
}
return io.stargate.proto.QueryOuterClass.TypeSpec.List.getDefaultInstance();
}
}
/**
* .stargate.TypeSpec.List list = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec.List, io.stargate.proto.QueryOuterClass.TypeSpec.List.Builder, io.stargate.proto.QueryOuterClass.TypeSpec.ListOrBuilder>
getListFieldBuilder() {
if (listBuilder_ == null) {
if (!(specCase_ == 3)) {
spec_ = io.stargate.proto.QueryOuterClass.TypeSpec.List.getDefaultInstance();
}
listBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec.List, io.stargate.proto.QueryOuterClass.TypeSpec.List.Builder, io.stargate.proto.QueryOuterClass.TypeSpec.ListOrBuilder>(
(io.stargate.proto.QueryOuterClass.TypeSpec.List) spec_,
getParentForChildren(),
isClean());
spec_ = null;
}
specCase_ = 3;
onChanged();;
return listBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec.Set, io.stargate.proto.QueryOuterClass.TypeSpec.Set.Builder, io.stargate.proto.QueryOuterClass.TypeSpec.SetOrBuilder> setBuilder_;
/**
* .stargate.TypeSpec.Set set = 4;
* @return Whether the set field is set.
*/
@java.lang.Override
public boolean hasSet() {
return specCase_ == 4;
}
/**
* .stargate.TypeSpec.Set set = 4;
* @return The set.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.Set getSet() {
if (setBuilder_ == null) {
if (specCase_ == 4) {
return (io.stargate.proto.QueryOuterClass.TypeSpec.Set) spec_;
}
return io.stargate.proto.QueryOuterClass.TypeSpec.Set.getDefaultInstance();
} else {
if (specCase_ == 4) {
return setBuilder_.getMessage();
}
return io.stargate.proto.QueryOuterClass.TypeSpec.Set.getDefaultInstance();
}
}
/**
* .stargate.TypeSpec.Set set = 4;
*/
public Builder setSet(io.stargate.proto.QueryOuterClass.TypeSpec.Set value) {
if (setBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spec_ = value;
onChanged();
} else {
setBuilder_.setMessage(value);
}
specCase_ = 4;
return this;
}
/**
* .stargate.TypeSpec.Set set = 4;
*/
public Builder setSet(
io.stargate.proto.QueryOuterClass.TypeSpec.Set.Builder builderForValue) {
if (setBuilder_ == null) {
spec_ = builderForValue.build();
onChanged();
} else {
setBuilder_.setMessage(builderForValue.build());
}
specCase_ = 4;
return this;
}
/**
* .stargate.TypeSpec.Set set = 4;
*/
public Builder mergeSet(io.stargate.proto.QueryOuterClass.TypeSpec.Set value) {
if (setBuilder_ == null) {
if (specCase_ == 4 &&
spec_ != io.stargate.proto.QueryOuterClass.TypeSpec.Set.getDefaultInstance()) {
spec_ = io.stargate.proto.QueryOuterClass.TypeSpec.Set.newBuilder((io.stargate.proto.QueryOuterClass.TypeSpec.Set) spec_)
.mergeFrom(value).buildPartial();
} else {
spec_ = value;
}
onChanged();
} else {
if (specCase_ == 4) {
setBuilder_.mergeFrom(value);
}
setBuilder_.setMessage(value);
}
specCase_ = 4;
return this;
}
/**
* .stargate.TypeSpec.Set set = 4;
*/
public Builder clearSet() {
if (setBuilder_ == null) {
if (specCase_ == 4) {
specCase_ = 0;
spec_ = null;
onChanged();
}
} else {
if (specCase_ == 4) {
specCase_ = 0;
spec_ = null;
}
setBuilder_.clear();
}
return this;
}
/**
* .stargate.TypeSpec.Set set = 4;
*/
public io.stargate.proto.QueryOuterClass.TypeSpec.Set.Builder getSetBuilder() {
return getSetFieldBuilder().getBuilder();
}
/**
* .stargate.TypeSpec.Set set = 4;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.SetOrBuilder getSetOrBuilder() {
if ((specCase_ == 4) && (setBuilder_ != null)) {
return setBuilder_.getMessageOrBuilder();
} else {
if (specCase_ == 4) {
return (io.stargate.proto.QueryOuterClass.TypeSpec.Set) spec_;
}
return io.stargate.proto.QueryOuterClass.TypeSpec.Set.getDefaultInstance();
}
}
/**
* .stargate.TypeSpec.Set set = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec.Set, io.stargate.proto.QueryOuterClass.TypeSpec.Set.Builder, io.stargate.proto.QueryOuterClass.TypeSpec.SetOrBuilder>
getSetFieldBuilder() {
if (setBuilder_ == null) {
if (!(specCase_ == 4)) {
spec_ = io.stargate.proto.QueryOuterClass.TypeSpec.Set.getDefaultInstance();
}
setBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec.Set, io.stargate.proto.QueryOuterClass.TypeSpec.Set.Builder, io.stargate.proto.QueryOuterClass.TypeSpec.SetOrBuilder>(
(io.stargate.proto.QueryOuterClass.TypeSpec.Set) spec_,
getParentForChildren(),
isClean());
spec_ = null;
}
specCase_ = 4;
onChanged();;
return setBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec.Udt, io.stargate.proto.QueryOuterClass.TypeSpec.Udt.Builder, io.stargate.proto.QueryOuterClass.TypeSpec.UdtOrBuilder> udtBuilder_;
/**
* .stargate.TypeSpec.Udt udt = 5;
* @return Whether the udt field is set.
*/
@java.lang.Override
public boolean hasUdt() {
return specCase_ == 5;
}
/**
* .stargate.TypeSpec.Udt udt = 5;
* @return The udt.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.Udt getUdt() {
if (udtBuilder_ == null) {
if (specCase_ == 5) {
return (io.stargate.proto.QueryOuterClass.TypeSpec.Udt) spec_;
}
return io.stargate.proto.QueryOuterClass.TypeSpec.Udt.getDefaultInstance();
} else {
if (specCase_ == 5) {
return udtBuilder_.getMessage();
}
return io.stargate.proto.QueryOuterClass.TypeSpec.Udt.getDefaultInstance();
}
}
/**
* .stargate.TypeSpec.Udt udt = 5;
*/
public Builder setUdt(io.stargate.proto.QueryOuterClass.TypeSpec.Udt value) {
if (udtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spec_ = value;
onChanged();
} else {
udtBuilder_.setMessage(value);
}
specCase_ = 5;
return this;
}
/**
* .stargate.TypeSpec.Udt udt = 5;
*/
public Builder setUdt(
io.stargate.proto.QueryOuterClass.TypeSpec.Udt.Builder builderForValue) {
if (udtBuilder_ == null) {
spec_ = builderForValue.build();
onChanged();
} else {
udtBuilder_.setMessage(builderForValue.build());
}
specCase_ = 5;
return this;
}
/**
* .stargate.TypeSpec.Udt udt = 5;
*/
public Builder mergeUdt(io.stargate.proto.QueryOuterClass.TypeSpec.Udt value) {
if (udtBuilder_ == null) {
if (specCase_ == 5 &&
spec_ != io.stargate.proto.QueryOuterClass.TypeSpec.Udt.getDefaultInstance()) {
spec_ = io.stargate.proto.QueryOuterClass.TypeSpec.Udt.newBuilder((io.stargate.proto.QueryOuterClass.TypeSpec.Udt) spec_)
.mergeFrom(value).buildPartial();
} else {
spec_ = value;
}
onChanged();
} else {
if (specCase_ == 5) {
udtBuilder_.mergeFrom(value);
}
udtBuilder_.setMessage(value);
}
specCase_ = 5;
return this;
}
/**
* .stargate.TypeSpec.Udt udt = 5;
*/
public Builder clearUdt() {
if (udtBuilder_ == null) {
if (specCase_ == 5) {
specCase_ = 0;
spec_ = null;
onChanged();
}
} else {
if (specCase_ == 5) {
specCase_ = 0;
spec_ = null;
}
udtBuilder_.clear();
}
return this;
}
/**
* .stargate.TypeSpec.Udt udt = 5;
*/
public io.stargate.proto.QueryOuterClass.TypeSpec.Udt.Builder getUdtBuilder() {
return getUdtFieldBuilder().getBuilder();
}
/**
* .stargate.TypeSpec.Udt udt = 5;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.UdtOrBuilder getUdtOrBuilder() {
if ((specCase_ == 5) && (udtBuilder_ != null)) {
return udtBuilder_.getMessageOrBuilder();
} else {
if (specCase_ == 5) {
return (io.stargate.proto.QueryOuterClass.TypeSpec.Udt) spec_;
}
return io.stargate.proto.QueryOuterClass.TypeSpec.Udt.getDefaultInstance();
}
}
/**
* .stargate.TypeSpec.Udt udt = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec.Udt, io.stargate.proto.QueryOuterClass.TypeSpec.Udt.Builder, io.stargate.proto.QueryOuterClass.TypeSpec.UdtOrBuilder>
getUdtFieldBuilder() {
if (udtBuilder_ == null) {
if (!(specCase_ == 5)) {
spec_ = io.stargate.proto.QueryOuterClass.TypeSpec.Udt.getDefaultInstance();
}
udtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec.Udt, io.stargate.proto.QueryOuterClass.TypeSpec.Udt.Builder, io.stargate.proto.QueryOuterClass.TypeSpec.UdtOrBuilder>(
(io.stargate.proto.QueryOuterClass.TypeSpec.Udt) spec_,
getParentForChildren(),
isClean());
spec_ = null;
}
specCase_ = 5;
onChanged();;
return udtBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec.Tuple, io.stargate.proto.QueryOuterClass.TypeSpec.Tuple.Builder, io.stargate.proto.QueryOuterClass.TypeSpec.TupleOrBuilder> tupleBuilder_;
/**
* .stargate.TypeSpec.Tuple tuple = 6;
* @return Whether the tuple field is set.
*/
@java.lang.Override
public boolean hasTuple() {
return specCase_ == 6;
}
/**
* .stargate.TypeSpec.Tuple tuple = 6;
* @return The tuple.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.Tuple getTuple() {
if (tupleBuilder_ == null) {
if (specCase_ == 6) {
return (io.stargate.proto.QueryOuterClass.TypeSpec.Tuple) spec_;
}
return io.stargate.proto.QueryOuterClass.TypeSpec.Tuple.getDefaultInstance();
} else {
if (specCase_ == 6) {
return tupleBuilder_.getMessage();
}
return io.stargate.proto.QueryOuterClass.TypeSpec.Tuple.getDefaultInstance();
}
}
/**
* .stargate.TypeSpec.Tuple tuple = 6;
*/
public Builder setTuple(io.stargate.proto.QueryOuterClass.TypeSpec.Tuple value) {
if (tupleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spec_ = value;
onChanged();
} else {
tupleBuilder_.setMessage(value);
}
specCase_ = 6;
return this;
}
/**
* .stargate.TypeSpec.Tuple tuple = 6;
*/
public Builder setTuple(
io.stargate.proto.QueryOuterClass.TypeSpec.Tuple.Builder builderForValue) {
if (tupleBuilder_ == null) {
spec_ = builderForValue.build();
onChanged();
} else {
tupleBuilder_.setMessage(builderForValue.build());
}
specCase_ = 6;
return this;
}
/**
* .stargate.TypeSpec.Tuple tuple = 6;
*/
public Builder mergeTuple(io.stargate.proto.QueryOuterClass.TypeSpec.Tuple value) {
if (tupleBuilder_ == null) {
if (specCase_ == 6 &&
spec_ != io.stargate.proto.QueryOuterClass.TypeSpec.Tuple.getDefaultInstance()) {
spec_ = io.stargate.proto.QueryOuterClass.TypeSpec.Tuple.newBuilder((io.stargate.proto.QueryOuterClass.TypeSpec.Tuple) spec_)
.mergeFrom(value).buildPartial();
} else {
spec_ = value;
}
onChanged();
} else {
if (specCase_ == 6) {
tupleBuilder_.mergeFrom(value);
}
tupleBuilder_.setMessage(value);
}
specCase_ = 6;
return this;
}
/**
* .stargate.TypeSpec.Tuple tuple = 6;
*/
public Builder clearTuple() {
if (tupleBuilder_ == null) {
if (specCase_ == 6) {
specCase_ = 0;
spec_ = null;
onChanged();
}
} else {
if (specCase_ == 6) {
specCase_ = 0;
spec_ = null;
}
tupleBuilder_.clear();
}
return this;
}
/**
* .stargate.TypeSpec.Tuple tuple = 6;
*/
public io.stargate.proto.QueryOuterClass.TypeSpec.Tuple.Builder getTupleBuilder() {
return getTupleFieldBuilder().getBuilder();
}
/**
* .stargate.TypeSpec.Tuple tuple = 6;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec.TupleOrBuilder getTupleOrBuilder() {
if ((specCase_ == 6) && (tupleBuilder_ != null)) {
return tupleBuilder_.getMessageOrBuilder();
} else {
if (specCase_ == 6) {
return (io.stargate.proto.QueryOuterClass.TypeSpec.Tuple) spec_;
}
return io.stargate.proto.QueryOuterClass.TypeSpec.Tuple.getDefaultInstance();
}
}
/**
* .stargate.TypeSpec.Tuple tuple = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec.Tuple, io.stargate.proto.QueryOuterClass.TypeSpec.Tuple.Builder, io.stargate.proto.QueryOuterClass.TypeSpec.TupleOrBuilder>
getTupleFieldBuilder() {
if (tupleBuilder_ == null) {
if (!(specCase_ == 6)) {
spec_ = io.stargate.proto.QueryOuterClass.TypeSpec.Tuple.getDefaultInstance();
}
tupleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec.Tuple, io.stargate.proto.QueryOuterClass.TypeSpec.Tuple.Builder, io.stargate.proto.QueryOuterClass.TypeSpec.TupleOrBuilder>(
(io.stargate.proto.QueryOuterClass.TypeSpec.Tuple) spec_,
getParentForChildren(),
isClean());
spec_ = null;
}
specCase_ = 6;
onChanged();;
return tupleBuilder_;
}
@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:stargate.TypeSpec)
}
// @@protoc_insertion_point(class_scope:stargate.TypeSpec)
private static final io.stargate.proto.QueryOuterClass.TypeSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.TypeSpec();
}
public static io.stargate.proto.QueryOuterClass.TypeSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TypeSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TypeSpec(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 io.stargate.proto.QueryOuterClass.TypeSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ColumnSpecOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.ColumnSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
* The CQL type.
*
*
* .stargate.TypeSpec type = 1;
* @return Whether the type field is set.
*/
boolean hasType();
/**
*
* The CQL type.
*
*
* .stargate.TypeSpec type = 1;
* @return The type.
*/
io.stargate.proto.QueryOuterClass.TypeSpec getType();
/**
*
* The CQL type.
*
*
* .stargate.TypeSpec type = 1;
*/
io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder getTypeOrBuilder();
/**
*
* The name.
*
*
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
*
* The name.
*
*
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
}
/**
*
* Metadata about a CQL column.
*
*
* Protobuf type {@code stargate.ColumnSpec}
*/
public static final class ColumnSpec extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.ColumnSpec)
ColumnSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use ColumnSpec.newBuilder() to construct.
private ColumnSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ColumnSpec() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ColumnSpec();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ColumnSpec(
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: {
io.stargate.proto.QueryOuterClass.TypeSpec.Builder subBuilder = null;
if (type_ != null) {
subBuilder = type_.toBuilder();
}
type_ = input.readMessage(io.stargate.proto.QueryOuterClass.TypeSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(type_);
type_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
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 io.stargate.proto.QueryOuterClass.internal_static_stargate_ColumnSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_ColumnSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.ColumnSpec.class, io.stargate.proto.QueryOuterClass.ColumnSpec.Builder.class);
}
public static final int TYPE_FIELD_NUMBER = 1;
private io.stargate.proto.QueryOuterClass.TypeSpec type_;
/**
*
* The CQL type.
*
*
* .stargate.TypeSpec type = 1;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return type_ != null;
}
/**
*
* The CQL type.
*
*
* .stargate.TypeSpec type = 1;
* @return The type.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpec getType() {
return type_ == null ? io.stargate.proto.QueryOuterClass.TypeSpec.getDefaultInstance() : type_;
}
/**
*
* The CQL type.
*
*
* .stargate.TypeSpec type = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder getTypeOrBuilder() {
return getType();
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
* The name.
*
*
* string name = 2;
* @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;
}
}
/**
*
* The name.
*
*
* string name = 2;
* @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;
}
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
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 io.stargate.proto.QueryOuterClass.ColumnSpec)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.ColumnSpec other = (io.stargate.proto.QueryOuterClass.ColumnSpec) obj;
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (!getType()
.equals(other.getType())) return false;
}
if (!getName()
.equals(other.getName())) 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();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.ColumnSpec parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.ColumnSpec parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.ColumnSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.ColumnSpec parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.ColumnSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.ColumnSpec parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.ColumnSpec parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.ColumnSpec 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 io.stargate.proto.QueryOuterClass.ColumnSpec parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.ColumnSpec 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 io.stargate.proto.QueryOuterClass.ColumnSpec parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.ColumnSpec 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(io.stargate.proto.QueryOuterClass.ColumnSpec 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;
}
/**
*
* Metadata about a CQL column.
*
*
* Protobuf type {@code stargate.ColumnSpec}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.ColumnSpec)
io.stargate.proto.QueryOuterClass.ColumnSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_ColumnSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_ColumnSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.ColumnSpec.class, io.stargate.proto.QueryOuterClass.ColumnSpec.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.ColumnSpec.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;
}
name_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_ColumnSpec_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ColumnSpec getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.ColumnSpec.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ColumnSpec build() {
io.stargate.proto.QueryOuterClass.ColumnSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ColumnSpec buildPartial() {
io.stargate.proto.QueryOuterClass.ColumnSpec result = new io.stargate.proto.QueryOuterClass.ColumnSpec(this);
if (typeBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = typeBuilder_.build();
}
result.name_ = name_;
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 io.stargate.proto.QueryOuterClass.ColumnSpec) {
return mergeFrom((io.stargate.proto.QueryOuterClass.ColumnSpec)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.ColumnSpec other) {
if (other == io.stargate.proto.QueryOuterClass.ColumnSpec.getDefaultInstance()) return this;
if (other.hasType()) {
mergeType(other.getType());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
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 {
io.stargate.proto.QueryOuterClass.ColumnSpec parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.ColumnSpec) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.stargate.proto.QueryOuterClass.TypeSpec type_;
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec, io.stargate.proto.QueryOuterClass.TypeSpec.Builder, io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder> typeBuilder_;
/**
*
* The CQL type.
*
*
* .stargate.TypeSpec type = 1;
* @return Whether the type field is set.
*/
public boolean hasType() {
return typeBuilder_ != null || type_ != null;
}
/**
*
* The CQL type.
*
*
* .stargate.TypeSpec type = 1;
* @return The type.
*/
public io.stargate.proto.QueryOuterClass.TypeSpec getType() {
if (typeBuilder_ == null) {
return type_ == null ? io.stargate.proto.QueryOuterClass.TypeSpec.getDefaultInstance() : type_;
} else {
return typeBuilder_.getMessage();
}
}
/**
*
* The CQL type.
*
*
* .stargate.TypeSpec type = 1;
*/
public Builder setType(io.stargate.proto.QueryOuterClass.TypeSpec value) {
if (typeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
typeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The CQL type.
*
*
* .stargate.TypeSpec type = 1;
*/
public Builder setType(
io.stargate.proto.QueryOuterClass.TypeSpec.Builder builderForValue) {
if (typeBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
typeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The CQL type.
*
*
* .stargate.TypeSpec type = 1;
*/
public Builder mergeType(io.stargate.proto.QueryOuterClass.TypeSpec value) {
if (typeBuilder_ == null) {
if (type_ != null) {
type_ =
io.stargate.proto.QueryOuterClass.TypeSpec.newBuilder(type_).mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
typeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The CQL type.
*
*
* .stargate.TypeSpec type = 1;
*/
public Builder clearType() {
if (typeBuilder_ == null) {
type_ = null;
onChanged();
} else {
type_ = null;
typeBuilder_ = null;
}
return this;
}
/**
*
* The CQL type.
*
*
* .stargate.TypeSpec type = 1;
*/
public io.stargate.proto.QueryOuterClass.TypeSpec.Builder getTypeBuilder() {
onChanged();
return getTypeFieldBuilder().getBuilder();
}
/**
*
* The CQL type.
*
*
* .stargate.TypeSpec type = 1;
*/
public io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder getTypeOrBuilder() {
if (typeBuilder_ != null) {
return typeBuilder_.getMessageOrBuilder();
} else {
return type_ == null ?
io.stargate.proto.QueryOuterClass.TypeSpec.getDefaultInstance() : type_;
}
}
/**
*
* The CQL type.
*
*
* .stargate.TypeSpec type = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec, io.stargate.proto.QueryOuterClass.TypeSpec.Builder, io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder>
getTypeFieldBuilder() {
if (typeBuilder_ == null) {
typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.TypeSpec, io.stargate.proto.QueryOuterClass.TypeSpec.Builder, io.stargate.proto.QueryOuterClass.TypeSpecOrBuilder>(
getType(),
getParentForChildren(),
isClean());
type_ = null;
}
return typeBuilder_;
}
private java.lang.Object name_ = "";
/**
*
* The name.
*
*
* string name = 2;
* @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;
}
}
/**
*
* The name.
*
*
* string name = 2;
* @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;
}
}
/**
*
* The name.
*
*
* string name = 2;
* @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;
}
/**
*
* The name.
*
*
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* The name.
*
*
* string name = 2;
* @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;
}
@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:stargate.ColumnSpec)
}
// @@protoc_insertion_point(class_scope:stargate.ColumnSpec)
private static final io.stargate.proto.QueryOuterClass.ColumnSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.ColumnSpec();
}
public static io.stargate.proto.QueryOuterClass.ColumnSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ColumnSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ColumnSpec(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 io.stargate.proto.QueryOuterClass.ColumnSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TracesOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.Traces)
com.google.protobuf.MessageOrBuilder {
/**
*
* A technical identifier for this trace.
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* A technical identifier for this trace.
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* The server-side duration of the query (in microseconds).
*
*
* int64 duration = 2;
* @return The duration.
*/
long getDuration();
/**
*
* The server-side timestamp of the start of the query.
*
*
* int64 started_at = 3;
* @return The startedAt.
*/
long getStartedAt();
/**
* repeated .stargate.Traces.Event events = 4;
*/
java.util.List
getEventsList();
/**
* repeated .stargate.Traces.Event events = 4;
*/
io.stargate.proto.QueryOuterClass.Traces.Event getEvents(int index);
/**
* repeated .stargate.Traces.Event events = 4;
*/
int getEventsCount();
/**
* repeated .stargate.Traces.Event events = 4;
*/
java.util.List extends io.stargate.proto.QueryOuterClass.Traces.EventOrBuilder>
getEventsOrBuilderList();
/**
* repeated .stargate.Traces.Event events = 4;
*/
io.stargate.proto.QueryOuterClass.Traces.EventOrBuilder getEventsOrBuilder(
int index);
}
/**
*
* Tracing information, included in the Response when it was requested by the client (see
* QueryParameters.tracing or BatchParameters.tracing)
*
*
* Protobuf type {@code stargate.Traces}
*/
public static final class Traces extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.Traces)
TracesOrBuilder {
private static final long serialVersionUID = 0L;
// Use Traces.newBuilder() to construct.
private Traces(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Traces() {
id_ = "";
events_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Traces();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Traces(
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: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 16: {
duration_ = input.readInt64();
break;
}
case 24: {
startedAt_ = input.readInt64();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
events_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
events_.add(
input.readMessage(io.stargate.proto.QueryOuterClass.Traces.Event.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)) {
events_ = java.util.Collections.unmodifiableList(events_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Traces_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Traces_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Traces.class, io.stargate.proto.QueryOuterClass.Traces.Builder.class);
}
public interface EventOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.Traces.Event)
com.google.protobuf.MessageOrBuilder {
/**
*
* Which activity the event corresponds to.
*
*
* string activity = 1;
* @return The activity.
*/
java.lang.String getActivity();
/**
*
* Which activity the event corresponds to.
*
*
* string activity = 1;
* @return The bytes for activity.
*/
com.google.protobuf.ByteString
getActivityBytes();
/**
*
* Identifies the host having generated the event.
*
*
* string source = 2;
* @return The source.
*/
java.lang.String getSource();
/**
*
* Identifies the host having generated the event.
*
*
* string source = 2;
* @return The bytes for source.
*/
com.google.protobuf.ByteString
getSourceBytes();
/**
*
* The number of microseconds elapsed on the source when this event occurred since the moment
* when the source started handling the query.
*
*
* int64 source_elapsed = 3;
* @return The sourceElapsed.
*/
long getSourceElapsed();
/**
*
* The name of the server thread on which this event occurred.
*
*
* string thread = 4;
* @return The thread.
*/
java.lang.String getThread();
/**
*
* The name of the server thread on which this event occurred.
*
*
* string thread = 4;
* @return The bytes for thread.
*/
com.google.protobuf.ByteString
getThreadBytes();
/**
*
* A technical identifier for the event.
*
*
* string event_id = 5;
* @return The eventId.
*/
java.lang.String getEventId();
/**
*
* A technical identifier for the event.
*
*
* string event_id = 5;
* @return The bytes for eventId.
*/
com.google.protobuf.ByteString
getEventIdBytes();
}
/**
*
* An event in a query trace.
*
*
* Protobuf type {@code stargate.Traces.Event}
*/
public static final class Event extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.Traces.Event)
EventOrBuilder {
private static final long serialVersionUID = 0L;
// Use Event.newBuilder() to construct.
private Event(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Event() {
activity_ = "";
source_ = "";
thread_ = "";
eventId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Event();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Event(
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();
activity_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
source_ = s;
break;
}
case 24: {
sourceElapsed_ = input.readInt64();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
thread_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
eventId_ = s;
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 io.stargate.proto.QueryOuterClass.internal_static_stargate_Traces_Event_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Traces_Event_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Traces.Event.class, io.stargate.proto.QueryOuterClass.Traces.Event.Builder.class);
}
public static final int ACTIVITY_FIELD_NUMBER = 1;
private volatile java.lang.Object activity_;
/**
*
* Which activity the event corresponds to.
*
*
* string activity = 1;
* @return The activity.
*/
@java.lang.Override
public java.lang.String getActivity() {
java.lang.Object ref = activity_;
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();
activity_ = s;
return s;
}
}
/**
*
* Which activity the event corresponds to.
*
*
* string activity = 1;
* @return The bytes for activity.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getActivityBytes() {
java.lang.Object ref = activity_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
activity_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOURCE_FIELD_NUMBER = 2;
private volatile java.lang.Object source_;
/**
*
* Identifies the host having generated the event.
*
*
* string source = 2;
* @return The source.
*/
@java.lang.Override
public java.lang.String getSource() {
java.lang.Object ref = source_;
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();
source_ = s;
return s;
}
}
/**
*
* Identifies the host having generated the event.
*
*
* string source = 2;
* @return The bytes for source.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOURCE_ELAPSED_FIELD_NUMBER = 3;
private long sourceElapsed_;
/**
*
* The number of microseconds elapsed on the source when this event occurred since the moment
* when the source started handling the query.
*
*
* int64 source_elapsed = 3;
* @return The sourceElapsed.
*/
@java.lang.Override
public long getSourceElapsed() {
return sourceElapsed_;
}
public static final int THREAD_FIELD_NUMBER = 4;
private volatile java.lang.Object thread_;
/**
*
* The name of the server thread on which this event occurred.
*
*
* string thread = 4;
* @return The thread.
*/
@java.lang.Override
public java.lang.String getThread() {
java.lang.Object ref = thread_;
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();
thread_ = s;
return s;
}
}
/**
*
* The name of the server thread on which this event occurred.
*
*
* string thread = 4;
* @return The bytes for thread.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getThreadBytes() {
java.lang.Object ref = thread_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
thread_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EVENT_ID_FIELD_NUMBER = 5;
private volatile java.lang.Object eventId_;
/**
*
* A technical identifier for the event.
*
*
* string event_id = 5;
* @return The eventId.
*/
@java.lang.Override
public java.lang.String getEventId() {
java.lang.Object ref = eventId_;
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();
eventId_ = s;
return s;
}
}
/**
*
* A technical identifier for the event.
*
*
* string event_id = 5;
* @return The bytes for eventId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEventIdBytes() {
java.lang.Object ref = eventId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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(activity_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, activity_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, source_);
}
if (sourceElapsed_ != 0L) {
output.writeInt64(3, sourceElapsed_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(thread_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, thread_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, eventId_);
}
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(activity_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, activity_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, source_);
}
if (sourceElapsed_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, sourceElapsed_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(thread_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, thread_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, eventId_);
}
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 io.stargate.proto.QueryOuterClass.Traces.Event)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.Traces.Event other = (io.stargate.proto.QueryOuterClass.Traces.Event) obj;
if (!getActivity()
.equals(other.getActivity())) return false;
if (!getSource()
.equals(other.getSource())) return false;
if (getSourceElapsed()
!= other.getSourceElapsed()) return false;
if (!getThread()
.equals(other.getThread())) return false;
if (!getEventId()
.equals(other.getEventId())) 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) + ACTIVITY_FIELD_NUMBER;
hash = (53 * hash) + getActivity().hashCode();
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
hash = (37 * hash) + SOURCE_ELAPSED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSourceElapsed());
hash = (37 * hash) + THREAD_FIELD_NUMBER;
hash = (53 * hash) + getThread().hashCode();
hash = (37 * hash) + EVENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getEventId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.Traces.Event parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Traces.Event parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Traces.Event parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Traces.Event parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Traces.Event parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Traces.Event parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Traces.Event parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Traces.Event 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 io.stargate.proto.QueryOuterClass.Traces.Event parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Traces.Event 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 io.stargate.proto.QueryOuterClass.Traces.Event parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Traces.Event 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(io.stargate.proto.QueryOuterClass.Traces.Event 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;
}
/**
*
* An event in a query trace.
*
*
* Protobuf type {@code stargate.Traces.Event}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.Traces.Event)
io.stargate.proto.QueryOuterClass.Traces.EventOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Traces_Event_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Traces_Event_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Traces.Event.class, io.stargate.proto.QueryOuterClass.Traces.Event.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.Traces.Event.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();
activity_ = "";
source_ = "";
sourceElapsed_ = 0L;
thread_ = "";
eventId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Traces_Event_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Traces.Event getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.Traces.Event.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Traces.Event build() {
io.stargate.proto.QueryOuterClass.Traces.Event result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Traces.Event buildPartial() {
io.stargate.proto.QueryOuterClass.Traces.Event result = new io.stargate.proto.QueryOuterClass.Traces.Event(this);
result.activity_ = activity_;
result.source_ = source_;
result.sourceElapsed_ = sourceElapsed_;
result.thread_ = thread_;
result.eventId_ = eventId_;
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 io.stargate.proto.QueryOuterClass.Traces.Event) {
return mergeFrom((io.stargate.proto.QueryOuterClass.Traces.Event)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.Traces.Event other) {
if (other == io.stargate.proto.QueryOuterClass.Traces.Event.getDefaultInstance()) return this;
if (!other.getActivity().isEmpty()) {
activity_ = other.activity_;
onChanged();
}
if (!other.getSource().isEmpty()) {
source_ = other.source_;
onChanged();
}
if (other.getSourceElapsed() != 0L) {
setSourceElapsed(other.getSourceElapsed());
}
if (!other.getThread().isEmpty()) {
thread_ = other.thread_;
onChanged();
}
if (!other.getEventId().isEmpty()) {
eventId_ = other.eventId_;
onChanged();
}
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 {
io.stargate.proto.QueryOuterClass.Traces.Event parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.Traces.Event) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object activity_ = "";
/**
*
* Which activity the event corresponds to.
*
*
* string activity = 1;
* @return The activity.
*/
public java.lang.String getActivity() {
java.lang.Object ref = activity_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
activity_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Which activity the event corresponds to.
*
*
* string activity = 1;
* @return The bytes for activity.
*/
public com.google.protobuf.ByteString
getActivityBytes() {
java.lang.Object ref = activity_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
activity_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Which activity the event corresponds to.
*
*
* string activity = 1;
* @param value The activity to set.
* @return This builder for chaining.
*/
public Builder setActivity(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
activity_ = value;
onChanged();
return this;
}
/**
*
* Which activity the event corresponds to.
*
*
* string activity = 1;
* @return This builder for chaining.
*/
public Builder clearActivity() {
activity_ = getDefaultInstance().getActivity();
onChanged();
return this;
}
/**
*
* Which activity the event corresponds to.
*
*
* string activity = 1;
* @param value The bytes for activity to set.
* @return This builder for chaining.
*/
public Builder setActivityBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
activity_ = value;
onChanged();
return this;
}
private java.lang.Object source_ = "";
/**
*
* Identifies the host having generated the event.
*
*
* string source = 2;
* @return The source.
*/
public java.lang.String getSource() {
java.lang.Object ref = source_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
source_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Identifies the host having generated the event.
*
*
* string source = 2;
* @return The bytes for source.
*/
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Identifies the host having generated the event.
*
*
* string source = 2;
* @param value The source to set.
* @return This builder for chaining.
*/
public Builder setSource(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
onChanged();
return this;
}
/**
*
* Identifies the host having generated the event.
*
*
* string source = 2;
* @return This builder for chaining.
*/
public Builder clearSource() {
source_ = getDefaultInstance().getSource();
onChanged();
return this;
}
/**
*
* Identifies the host having generated the event.
*
*
* string source = 2;
* @param value The bytes for source to set.
* @return This builder for chaining.
*/
public Builder setSourceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
source_ = value;
onChanged();
return this;
}
private long sourceElapsed_ ;
/**
*
* The number of microseconds elapsed on the source when this event occurred since the moment
* when the source started handling the query.
*
*
* int64 source_elapsed = 3;
* @return The sourceElapsed.
*/
@java.lang.Override
public long getSourceElapsed() {
return sourceElapsed_;
}
/**
*
* The number of microseconds elapsed on the source when this event occurred since the moment
* when the source started handling the query.
*
*
* int64 source_elapsed = 3;
* @param value The sourceElapsed to set.
* @return This builder for chaining.
*/
public Builder setSourceElapsed(long value) {
sourceElapsed_ = value;
onChanged();
return this;
}
/**
*
* The number of microseconds elapsed on the source when this event occurred since the moment
* when the source started handling the query.
*
*
* int64 source_elapsed = 3;
* @return This builder for chaining.
*/
public Builder clearSourceElapsed() {
sourceElapsed_ = 0L;
onChanged();
return this;
}
private java.lang.Object thread_ = "";
/**
*
* The name of the server thread on which this event occurred.
*
*
* string thread = 4;
* @return The thread.
*/
public java.lang.String getThread() {
java.lang.Object ref = thread_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
thread_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The name of the server thread on which this event occurred.
*
*
* string thread = 4;
* @return The bytes for thread.
*/
public com.google.protobuf.ByteString
getThreadBytes() {
java.lang.Object ref = thread_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
thread_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of the server thread on which this event occurred.
*
*
* string thread = 4;
* @param value The thread to set.
* @return This builder for chaining.
*/
public Builder setThread(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
thread_ = value;
onChanged();
return this;
}
/**
*
* The name of the server thread on which this event occurred.
*
*
* string thread = 4;
* @return This builder for chaining.
*/
public Builder clearThread() {
thread_ = getDefaultInstance().getThread();
onChanged();
return this;
}
/**
*
* The name of the server thread on which this event occurred.
*
*
* string thread = 4;
* @param value The bytes for thread to set.
* @return This builder for chaining.
*/
public Builder setThreadBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
thread_ = value;
onChanged();
return this;
}
private java.lang.Object eventId_ = "";
/**
*
* A technical identifier for the event.
*
*
* string event_id = 5;
* @return The eventId.
*/
public java.lang.String getEventId() {
java.lang.Object ref = eventId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
eventId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A technical identifier for the event.
*
*
* string event_id = 5;
* @return The bytes for eventId.
*/
public com.google.protobuf.ByteString
getEventIdBytes() {
java.lang.Object ref = eventId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A technical identifier for the event.
*
*
* string event_id = 5;
* @param value The eventId to set.
* @return This builder for chaining.
*/
public Builder setEventId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
eventId_ = value;
onChanged();
return this;
}
/**
*
* A technical identifier for the event.
*
*
* string event_id = 5;
* @return This builder for chaining.
*/
public Builder clearEventId() {
eventId_ = getDefaultInstance().getEventId();
onChanged();
return this;
}
/**
*
* A technical identifier for the event.
*
*
* string event_id = 5;
* @param value The bytes for eventId to set.
* @return This builder for chaining.
*/
public Builder setEventIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
eventId_ = value;
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:stargate.Traces.Event)
}
// @@protoc_insertion_point(class_scope:stargate.Traces.Event)
private static final io.stargate.proto.QueryOuterClass.Traces.Event DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.Traces.Event();
}
public static io.stargate.proto.QueryOuterClass.Traces.Event getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Event parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Event(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 io.stargate.proto.QueryOuterClass.Traces.Event getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* A technical identifier for this trace.
*
*
* string id = 1;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
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();
id_ = s;
return s;
}
}
/**
*
* A technical identifier for this trace.
*
*
* string id = 1;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DURATION_FIELD_NUMBER = 2;
private long duration_;
/**
*
* The server-side duration of the query (in microseconds).
*
*
* int64 duration = 2;
* @return The duration.
*/
@java.lang.Override
public long getDuration() {
return duration_;
}
public static final int STARTED_AT_FIELD_NUMBER = 3;
private long startedAt_;
/**
*
* The server-side timestamp of the start of the query.
*
*
* int64 started_at = 3;
* @return The startedAt.
*/
@java.lang.Override
public long getStartedAt() {
return startedAt_;
}
public static final int EVENTS_FIELD_NUMBER = 4;
private java.util.List events_;
/**
* repeated .stargate.Traces.Event events = 4;
*/
@java.lang.Override
public java.util.List getEventsList() {
return events_;
}
/**
* repeated .stargate.Traces.Event events = 4;
*/
@java.lang.Override
public java.util.List extends io.stargate.proto.QueryOuterClass.Traces.EventOrBuilder>
getEventsOrBuilderList() {
return events_;
}
/**
* repeated .stargate.Traces.Event events = 4;
*/
@java.lang.Override
public int getEventsCount() {
return events_.size();
}
/**
* repeated .stargate.Traces.Event events = 4;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Traces.Event getEvents(int index) {
return events_.get(index);
}
/**
* repeated .stargate.Traces.Event events = 4;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Traces.EventOrBuilder getEventsOrBuilder(
int index) {
return events_.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 {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (duration_ != 0L) {
output.writeInt64(2, duration_);
}
if (startedAt_ != 0L) {
output.writeInt64(3, startedAt_);
}
for (int i = 0; i < events_.size(); i++) {
output.writeMessage(4, events_.get(i));
}
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(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (duration_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, duration_);
}
if (startedAt_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, startedAt_);
}
for (int i = 0; i < events_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, events_.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 io.stargate.proto.QueryOuterClass.Traces)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.Traces other = (io.stargate.proto.QueryOuterClass.Traces) obj;
if (!getId()
.equals(other.getId())) return false;
if (getDuration()
!= other.getDuration()) return false;
if (getStartedAt()
!= other.getStartedAt()) return false;
if (!getEventsList()
.equals(other.getEventsList())) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + DURATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDuration());
hash = (37 * hash) + STARTED_AT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartedAt());
if (getEventsCount() > 0) {
hash = (37 * hash) + EVENTS_FIELD_NUMBER;
hash = (53 * hash) + getEventsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.Traces parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Traces parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Traces parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Traces parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Traces parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Traces parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Traces parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Traces 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 io.stargate.proto.QueryOuterClass.Traces parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Traces 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 io.stargate.proto.QueryOuterClass.Traces parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Traces 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(io.stargate.proto.QueryOuterClass.Traces 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;
}
/**
*
* Tracing information, included in the Response when it was requested by the client (see
* QueryParameters.tracing or BatchParameters.tracing)
*
*
* Protobuf type {@code stargate.Traces}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.Traces)
io.stargate.proto.QueryOuterClass.TracesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Traces_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Traces_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Traces.class, io.stargate.proto.QueryOuterClass.Traces.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.Traces.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEventsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
duration_ = 0L;
startedAt_ = 0L;
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
eventsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Traces_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Traces getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.Traces.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Traces build() {
io.stargate.proto.QueryOuterClass.Traces result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Traces buildPartial() {
io.stargate.proto.QueryOuterClass.Traces result = new io.stargate.proto.QueryOuterClass.Traces(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.duration_ = duration_;
result.startedAt_ = startedAt_;
if (eventsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
events_ = java.util.Collections.unmodifiableList(events_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.events_ = events_;
} else {
result.events_ = eventsBuilder_.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 io.stargate.proto.QueryOuterClass.Traces) {
return mergeFrom((io.stargate.proto.QueryOuterClass.Traces)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.Traces other) {
if (other == io.stargate.proto.QueryOuterClass.Traces.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (other.getDuration() != 0L) {
setDuration(other.getDuration());
}
if (other.getStartedAt() != 0L) {
setStartedAt(other.getStartedAt());
}
if (eventsBuilder_ == null) {
if (!other.events_.isEmpty()) {
if (events_.isEmpty()) {
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEventsIsMutable();
events_.addAll(other.events_);
}
onChanged();
}
} else {
if (!other.events_.isEmpty()) {
if (eventsBuilder_.isEmpty()) {
eventsBuilder_.dispose();
eventsBuilder_ = null;
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000001);
eventsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEventsFieldBuilder() : null;
} else {
eventsBuilder_.addAllMessages(other.events_);
}
}
}
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 {
io.stargate.proto.QueryOuterClass.Traces parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.Traces) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* A technical identifier for this trace.
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A technical identifier for this trace.
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A technical identifier for this trace.
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* A technical identifier for this trace.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* A technical identifier for this trace.
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private long duration_ ;
/**
*
* The server-side duration of the query (in microseconds).
*
*
* int64 duration = 2;
* @return The duration.
*/
@java.lang.Override
public long getDuration() {
return duration_;
}
/**
*
* The server-side duration of the query (in microseconds).
*
*
* int64 duration = 2;
* @param value The duration to set.
* @return This builder for chaining.
*/
public Builder setDuration(long value) {
duration_ = value;
onChanged();
return this;
}
/**
*
* The server-side duration of the query (in microseconds).
*
*
* int64 duration = 2;
* @return This builder for chaining.
*/
public Builder clearDuration() {
duration_ = 0L;
onChanged();
return this;
}
private long startedAt_ ;
/**
*
* The server-side timestamp of the start of the query.
*
*
* int64 started_at = 3;
* @return The startedAt.
*/
@java.lang.Override
public long getStartedAt() {
return startedAt_;
}
/**
*
* The server-side timestamp of the start of the query.
*
*
* int64 started_at = 3;
* @param value The startedAt to set.
* @return This builder for chaining.
*/
public Builder setStartedAt(long value) {
startedAt_ = value;
onChanged();
return this;
}
/**
*
* The server-side timestamp of the start of the query.
*
*
* int64 started_at = 3;
* @return This builder for chaining.
*/
public Builder clearStartedAt() {
startedAt_ = 0L;
onChanged();
return this;
}
private java.util.List events_ =
java.util.Collections.emptyList();
private void ensureEventsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
events_ = new java.util.ArrayList(events_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Traces.Event, io.stargate.proto.QueryOuterClass.Traces.Event.Builder, io.stargate.proto.QueryOuterClass.Traces.EventOrBuilder> eventsBuilder_;
/**
* repeated .stargate.Traces.Event events = 4;
*/
public java.util.List getEventsList() {
if (eventsBuilder_ == null) {
return java.util.Collections.unmodifiableList(events_);
} else {
return eventsBuilder_.getMessageList();
}
}
/**
* repeated .stargate.Traces.Event events = 4;
*/
public int getEventsCount() {
if (eventsBuilder_ == null) {
return events_.size();
} else {
return eventsBuilder_.getCount();
}
}
/**
* repeated .stargate.Traces.Event events = 4;
*/
public io.stargate.proto.QueryOuterClass.Traces.Event getEvents(int index) {
if (eventsBuilder_ == null) {
return events_.get(index);
} else {
return eventsBuilder_.getMessage(index);
}
}
/**
* repeated .stargate.Traces.Event events = 4;
*/
public Builder setEvents(
int index, io.stargate.proto.QueryOuterClass.Traces.Event value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.set(index, value);
onChanged();
} else {
eventsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .stargate.Traces.Event events = 4;
*/
public Builder setEvents(
int index, io.stargate.proto.QueryOuterClass.Traces.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.set(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .stargate.Traces.Event events = 4;
*/
public Builder addEvents(io.stargate.proto.QueryOuterClass.Traces.Event value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(value);
onChanged();
} else {
eventsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .stargate.Traces.Event events = 4;
*/
public Builder addEvents(
int index, io.stargate.proto.QueryOuterClass.Traces.Event value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(index, value);
onChanged();
} else {
eventsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .stargate.Traces.Event events = 4;
*/
public Builder addEvents(
io.stargate.proto.QueryOuterClass.Traces.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .stargate.Traces.Event events = 4;
*/
public Builder addEvents(
int index, io.stargate.proto.QueryOuterClass.Traces.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .stargate.Traces.Event events = 4;
*/
public Builder addAllEvents(
java.lang.Iterable extends io.stargate.proto.QueryOuterClass.Traces.Event> values) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, events_);
onChanged();
} else {
eventsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .stargate.Traces.Event events = 4;
*/
public Builder clearEvents() {
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
eventsBuilder_.clear();
}
return this;
}
/**
* repeated .stargate.Traces.Event events = 4;
*/
public Builder removeEvents(int index) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.remove(index);
onChanged();
} else {
eventsBuilder_.remove(index);
}
return this;
}
/**
* repeated .stargate.Traces.Event events = 4;
*/
public io.stargate.proto.QueryOuterClass.Traces.Event.Builder getEventsBuilder(
int index) {
return getEventsFieldBuilder().getBuilder(index);
}
/**
* repeated .stargate.Traces.Event events = 4;
*/
public io.stargate.proto.QueryOuterClass.Traces.EventOrBuilder getEventsOrBuilder(
int index) {
if (eventsBuilder_ == null) {
return events_.get(index); } else {
return eventsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .stargate.Traces.Event events = 4;
*/
public java.util.List extends io.stargate.proto.QueryOuterClass.Traces.EventOrBuilder>
getEventsOrBuilderList() {
if (eventsBuilder_ != null) {
return eventsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(events_);
}
}
/**
* repeated .stargate.Traces.Event events = 4;
*/
public io.stargate.proto.QueryOuterClass.Traces.Event.Builder addEventsBuilder() {
return getEventsFieldBuilder().addBuilder(
io.stargate.proto.QueryOuterClass.Traces.Event.getDefaultInstance());
}
/**
* repeated .stargate.Traces.Event events = 4;
*/
public io.stargate.proto.QueryOuterClass.Traces.Event.Builder addEventsBuilder(
int index) {
return getEventsFieldBuilder().addBuilder(
index, io.stargate.proto.QueryOuterClass.Traces.Event.getDefaultInstance());
}
/**
* repeated .stargate.Traces.Event events = 4;
*/
public java.util.List
getEventsBuilderList() {
return getEventsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Traces.Event, io.stargate.proto.QueryOuterClass.Traces.Event.Builder, io.stargate.proto.QueryOuterClass.Traces.EventOrBuilder>
getEventsFieldBuilder() {
if (eventsBuilder_ == null) {
eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Traces.Event, io.stargate.proto.QueryOuterClass.Traces.Event.Builder, io.stargate.proto.QueryOuterClass.Traces.EventOrBuilder>(
events_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
events_ = null;
}
return eventsBuilder_;
}
@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:stargate.Traces)
}
// @@protoc_insertion_point(class_scope:stargate.Traces)
private static final io.stargate.proto.QueryOuterClass.Traces DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.Traces();
}
public static io.stargate.proto.QueryOuterClass.Traces getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Traces parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Traces(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 io.stargate.proto.QueryOuterClass.Traces getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SchemaChangeOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.SchemaChange)
com.google.protobuf.MessageOrBuilder {
/**
*
* The nature of the change (created, updated or dropped).
*
*
* .stargate.SchemaChange.Type change_type = 1;
* @return The enum numeric value on the wire for changeType.
*/
int getChangeTypeValue();
/**
*
* The nature of the change (created, updated or dropped).
*
*
* .stargate.SchemaChange.Type change_type = 1;
* @return The changeType.
*/
io.stargate.proto.QueryOuterClass.SchemaChange.Type getChangeType();
/**
*
* The type of schema object that was affected.
*
*
* .stargate.SchemaChange.Target target = 2;
* @return The enum numeric value on the wire for target.
*/
int getTargetValue();
/**
*
* The type of schema object that was affected.
*
*
* .stargate.SchemaChange.Target target = 2;
* @return The target.
*/
io.stargate.proto.QueryOuterClass.SchemaChange.Target getTarget();
/**
*
* The name of the keyspace.
*
*
* string keyspace = 3;
* @return The keyspace.
*/
java.lang.String getKeyspace();
/**
*
* The name of the keyspace.
*
*
* string keyspace = 3;
* @return The bytes for keyspace.
*/
com.google.protobuf.ByteString
getKeyspaceBytes();
/**
*
* If the target is a keyspace element (table, type, etc), its name.
*
*
* .google.protobuf.StringValue name = 4;
* @return Whether the name field is set.
*/
boolean hasName();
/**
*
* If the target is a keyspace element (table, type, etc), its name.
*
*
* .google.protobuf.StringValue name = 4;
* @return The name.
*/
com.google.protobuf.StringValue getName();
/**
*
* If the target is a keyspace element (table, type, etc), its name.
*
*
* .google.protobuf.StringValue name = 4;
*/
com.google.protobuf.StringValueOrBuilder getNameOrBuilder();
/**
*
* If the target is a function or aggregate, the CQL types of the arguments.
*
*
* repeated string argument_types = 5;
* @return A list containing the argumentTypes.
*/
java.util.List
getArgumentTypesList();
/**
*
* If the target is a function or aggregate, the CQL types of the arguments.
*
*
* repeated string argument_types = 5;
* @return The count of argumentTypes.
*/
int getArgumentTypesCount();
/**
*
* If the target is a function or aggregate, the CQL types of the arguments.
*
*
* repeated string argument_types = 5;
* @param index The index of the element to return.
* @return The argumentTypes at the given index.
*/
java.lang.String getArgumentTypes(int index);
/**
*
* If the target is a function or aggregate, the CQL types of the arguments.
*
*
* repeated string argument_types = 5;
* @param index The index of the value to return.
* @return The bytes of the argumentTypes at the given index.
*/
com.google.protobuf.ByteString
getArgumentTypesBytes(int index);
}
/**
*
* TODO: does this need to include indexes and materialized views?
* If a Query message is a DDL statement, this will be included in the Response to describe the
* how the CQL schema was impacted.
*
*
* Protobuf type {@code stargate.SchemaChange}
*/
public static final class SchemaChange extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.SchemaChange)
SchemaChangeOrBuilder {
private static final long serialVersionUID = 0L;
// Use SchemaChange.newBuilder() to construct.
private SchemaChange(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SchemaChange() {
changeType_ = 0;
target_ = 0;
keyspace_ = "";
argumentTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SchemaChange();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SchemaChange(
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: {
int rawValue = input.readEnum();
changeType_ = rawValue;
break;
}
case 16: {
int rawValue = input.readEnum();
target_ = rawValue;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
keyspace_ = s;
break;
}
case 34: {
com.google.protobuf.StringValue.Builder subBuilder = null;
if (name_ != null) {
subBuilder = name_.toBuilder();
}
name_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(name_);
name_ = subBuilder.buildPartial();
}
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
argumentTypes_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
argumentTypes_.add(s);
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)) {
argumentTypes_ = argumentTypes_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_SchemaChange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_SchemaChange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.SchemaChange.class, io.stargate.proto.QueryOuterClass.SchemaChange.Builder.class);
}
/**
* Protobuf enum {@code stargate.SchemaChange.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* CREATED = 0;
*/
CREATED(0),
/**
* UPDATED = 1;
*/
UPDATED(1),
/**
* DROPPED = 2;
*/
DROPPED(2),
UNRECOGNIZED(-1),
;
/**
* CREATED = 0;
*/
public static final int CREATED_VALUE = 0;
/**
* UPDATED = 1;
*/
public static final int UPDATED_VALUE = 1;
/**
* DROPPED = 2;
*/
public static final int DROPPED_VALUE = 2;
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 Type 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 Type forNumber(int value) {
switch (value) {
case 0: return CREATED;
case 1: return UPDATED;
case 2: return DROPPED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Type> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.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 io.stargate.proto.QueryOuterClass.SchemaChange.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type 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 Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:stargate.SchemaChange.Type)
}
/**
* Protobuf enum {@code stargate.SchemaChange.Target}
*/
public enum Target
implements com.google.protobuf.ProtocolMessageEnum {
/**
* KEYSPACE = 0;
*/
KEYSPACE(0),
/**
* TABLE = 1;
*/
TABLE(1),
/**
* TYPE = 2;
*/
TYPE(2),
/**
* FUNCTION = 3;
*/
FUNCTION(3),
/**
* AGGREGATE = 4;
*/
AGGREGATE(4),
UNRECOGNIZED(-1),
;
/**
* KEYSPACE = 0;
*/
public static final int KEYSPACE_VALUE = 0;
/**
* TABLE = 1;
*/
public static final int TABLE_VALUE = 1;
/**
* TYPE = 2;
*/
public static final int TYPE_VALUE = 2;
/**
* FUNCTION = 3;
*/
public static final int FUNCTION_VALUE = 3;
/**
* AGGREGATE = 4;
*/
public static final int AGGREGATE_VALUE = 4;
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 Target 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 Target forNumber(int value) {
switch (value) {
case 0: return KEYSPACE;
case 1: return TABLE;
case 2: return TYPE;
case 3: return FUNCTION;
case 4: return AGGREGATE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Target> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Target findValueByNumber(int number) {
return Target.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 io.stargate.proto.QueryOuterClass.SchemaChange.getDescriptor().getEnumTypes().get(1);
}
private static final Target[] VALUES = values();
public static Target 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 Target(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:stargate.SchemaChange.Target)
}
public static final int CHANGE_TYPE_FIELD_NUMBER = 1;
private int changeType_;
/**
*
* The nature of the change (created, updated or dropped).
*
*
* .stargate.SchemaChange.Type change_type = 1;
* @return The enum numeric value on the wire for changeType.
*/
@java.lang.Override public int getChangeTypeValue() {
return changeType_;
}
/**
*
* The nature of the change (created, updated or dropped).
*
*
* .stargate.SchemaChange.Type change_type = 1;
* @return The changeType.
*/
@java.lang.Override public io.stargate.proto.QueryOuterClass.SchemaChange.Type getChangeType() {
@SuppressWarnings("deprecation")
io.stargate.proto.QueryOuterClass.SchemaChange.Type result = io.stargate.proto.QueryOuterClass.SchemaChange.Type.valueOf(changeType_);
return result == null ? io.stargate.proto.QueryOuterClass.SchemaChange.Type.UNRECOGNIZED : result;
}
public static final int TARGET_FIELD_NUMBER = 2;
private int target_;
/**
*
* The type of schema object that was affected.
*
*
* .stargate.SchemaChange.Target target = 2;
* @return The enum numeric value on the wire for target.
*/
@java.lang.Override public int getTargetValue() {
return target_;
}
/**
*
* The type of schema object that was affected.
*
*
* .stargate.SchemaChange.Target target = 2;
* @return The target.
*/
@java.lang.Override public io.stargate.proto.QueryOuterClass.SchemaChange.Target getTarget() {
@SuppressWarnings("deprecation")
io.stargate.proto.QueryOuterClass.SchemaChange.Target result = io.stargate.proto.QueryOuterClass.SchemaChange.Target.valueOf(target_);
return result == null ? io.stargate.proto.QueryOuterClass.SchemaChange.Target.UNRECOGNIZED : result;
}
public static final int KEYSPACE_FIELD_NUMBER = 3;
private volatile java.lang.Object keyspace_;
/**
*
* The name of the keyspace.
*
*
* string keyspace = 3;
* @return The keyspace.
*/
@java.lang.Override
public java.lang.String getKeyspace() {
java.lang.Object ref = keyspace_;
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();
keyspace_ = s;
return s;
}
}
/**
*
* The name of the keyspace.
*
*
* string keyspace = 3;
* @return The bytes for keyspace.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyspaceBytes() {
java.lang.Object ref = keyspace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyspace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 4;
private com.google.protobuf.StringValue name_;
/**
*
* If the target is a keyspace element (table, type, etc), its name.
*
*
* .google.protobuf.StringValue name = 4;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return name_ != null;
}
/**
*
* If the target is a keyspace element (table, type, etc), its name.
*
*
* .google.protobuf.StringValue name = 4;
* @return The name.
*/
@java.lang.Override
public com.google.protobuf.StringValue getName() {
return name_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : name_;
}
/**
*
* If the target is a keyspace element (table, type, etc), its name.
*
*
* .google.protobuf.StringValue name = 4;
*/
@java.lang.Override
public com.google.protobuf.StringValueOrBuilder getNameOrBuilder() {
return getName();
}
public static final int ARGUMENT_TYPES_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList argumentTypes_;
/**
*
* If the target is a function or aggregate, the CQL types of the arguments.
*
*
* repeated string argument_types = 5;
* @return A list containing the argumentTypes.
*/
public com.google.protobuf.ProtocolStringList
getArgumentTypesList() {
return argumentTypes_;
}
/**
*
* If the target is a function or aggregate, the CQL types of the arguments.
*
*
* repeated string argument_types = 5;
* @return The count of argumentTypes.
*/
public int getArgumentTypesCount() {
return argumentTypes_.size();
}
/**
*
* If the target is a function or aggregate, the CQL types of the arguments.
*
*
* repeated string argument_types = 5;
* @param index The index of the element to return.
* @return The argumentTypes at the given index.
*/
public java.lang.String getArgumentTypes(int index) {
return argumentTypes_.get(index);
}
/**
*
* If the target is a function or aggregate, the CQL types of the arguments.
*
*
* repeated string argument_types = 5;
* @param index The index of the value to return.
* @return The bytes of the argumentTypes at the given index.
*/
public com.google.protobuf.ByteString
getArgumentTypesBytes(int index) {
return argumentTypes_.getByteString(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 {
if (changeType_ != io.stargate.proto.QueryOuterClass.SchemaChange.Type.CREATED.getNumber()) {
output.writeEnum(1, changeType_);
}
if (target_ != io.stargate.proto.QueryOuterClass.SchemaChange.Target.KEYSPACE.getNumber()) {
output.writeEnum(2, target_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyspace_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, keyspace_);
}
if (name_ != null) {
output.writeMessage(4, getName());
}
for (int i = 0; i < argumentTypes_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, argumentTypes_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (changeType_ != io.stargate.proto.QueryOuterClass.SchemaChange.Type.CREATED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, changeType_);
}
if (target_ != io.stargate.proto.QueryOuterClass.SchemaChange.Target.KEYSPACE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, target_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyspace_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, keyspace_);
}
if (name_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getName());
}
{
int dataSize = 0;
for (int i = 0; i < argumentTypes_.size(); i++) {
dataSize += computeStringSizeNoTag(argumentTypes_.getRaw(i));
}
size += dataSize;
size += 1 * getArgumentTypesList().size();
}
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 io.stargate.proto.QueryOuterClass.SchemaChange)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.SchemaChange other = (io.stargate.proto.QueryOuterClass.SchemaChange) obj;
if (changeType_ != other.changeType_) return false;
if (target_ != other.target_) return false;
if (!getKeyspace()
.equals(other.getKeyspace())) return false;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (!getArgumentTypesList()
.equals(other.getArgumentTypesList())) 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) + CHANGE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + changeType_;
hash = (37 * hash) + TARGET_FIELD_NUMBER;
hash = (53 * hash) + target_;
hash = (37 * hash) + KEYSPACE_FIELD_NUMBER;
hash = (53 * hash) + getKeyspace().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (getArgumentTypesCount() > 0) {
hash = (37 * hash) + ARGUMENT_TYPES_FIELD_NUMBER;
hash = (53 * hash) + getArgumentTypesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.SchemaChange parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.SchemaChange parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.SchemaChange parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.SchemaChange parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.SchemaChange parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.SchemaChange parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.SchemaChange parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.SchemaChange 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 io.stargate.proto.QueryOuterClass.SchemaChange parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.SchemaChange 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 io.stargate.proto.QueryOuterClass.SchemaChange parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.SchemaChange 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(io.stargate.proto.QueryOuterClass.SchemaChange 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;
}
/**
*
* TODO: does this need to include indexes and materialized views?
* If a Query message is a DDL statement, this will be included in the Response to describe the
* how the CQL schema was impacted.
*
*
* Protobuf type {@code stargate.SchemaChange}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.SchemaChange)
io.stargate.proto.QueryOuterClass.SchemaChangeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_SchemaChange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_SchemaChange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.SchemaChange.class, io.stargate.proto.QueryOuterClass.SchemaChange.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.SchemaChange.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();
changeType_ = 0;
target_ = 0;
keyspace_ = "";
if (nameBuilder_ == null) {
name_ = null;
} else {
name_ = null;
nameBuilder_ = null;
}
argumentTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_SchemaChange_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.SchemaChange getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.SchemaChange.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.SchemaChange build() {
io.stargate.proto.QueryOuterClass.SchemaChange result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.SchemaChange buildPartial() {
io.stargate.proto.QueryOuterClass.SchemaChange result = new io.stargate.proto.QueryOuterClass.SchemaChange(this);
int from_bitField0_ = bitField0_;
result.changeType_ = changeType_;
result.target_ = target_;
result.keyspace_ = keyspace_;
if (nameBuilder_ == null) {
result.name_ = name_;
} else {
result.name_ = nameBuilder_.build();
}
if (((bitField0_ & 0x00000001) != 0)) {
argumentTypes_ = argumentTypes_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.argumentTypes_ = argumentTypes_;
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 io.stargate.proto.QueryOuterClass.SchemaChange) {
return mergeFrom((io.stargate.proto.QueryOuterClass.SchemaChange)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.SchemaChange other) {
if (other == io.stargate.proto.QueryOuterClass.SchemaChange.getDefaultInstance()) return this;
if (other.changeType_ != 0) {
setChangeTypeValue(other.getChangeTypeValue());
}
if (other.target_ != 0) {
setTargetValue(other.getTargetValue());
}
if (!other.getKeyspace().isEmpty()) {
keyspace_ = other.keyspace_;
onChanged();
}
if (other.hasName()) {
mergeName(other.getName());
}
if (!other.argumentTypes_.isEmpty()) {
if (argumentTypes_.isEmpty()) {
argumentTypes_ = other.argumentTypes_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureArgumentTypesIsMutable();
argumentTypes_.addAll(other.argumentTypes_);
}
onChanged();
}
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 {
io.stargate.proto.QueryOuterClass.SchemaChange parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.SchemaChange) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int changeType_ = 0;
/**
*
* The nature of the change (created, updated or dropped).
*
*
* .stargate.SchemaChange.Type change_type = 1;
* @return The enum numeric value on the wire for changeType.
*/
@java.lang.Override public int getChangeTypeValue() {
return changeType_;
}
/**
*
* The nature of the change (created, updated or dropped).
*
*
* .stargate.SchemaChange.Type change_type = 1;
* @param value The enum numeric value on the wire for changeType to set.
* @return This builder for chaining.
*/
public Builder setChangeTypeValue(int value) {
changeType_ = value;
onChanged();
return this;
}
/**
*
* The nature of the change (created, updated or dropped).
*
*
* .stargate.SchemaChange.Type change_type = 1;
* @return The changeType.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.SchemaChange.Type getChangeType() {
@SuppressWarnings("deprecation")
io.stargate.proto.QueryOuterClass.SchemaChange.Type result = io.stargate.proto.QueryOuterClass.SchemaChange.Type.valueOf(changeType_);
return result == null ? io.stargate.proto.QueryOuterClass.SchemaChange.Type.UNRECOGNIZED : result;
}
/**
*
* The nature of the change (created, updated or dropped).
*
*
* .stargate.SchemaChange.Type change_type = 1;
* @param value The changeType to set.
* @return This builder for chaining.
*/
public Builder setChangeType(io.stargate.proto.QueryOuterClass.SchemaChange.Type value) {
if (value == null) {
throw new NullPointerException();
}
changeType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The nature of the change (created, updated or dropped).
*
*
* .stargate.SchemaChange.Type change_type = 1;
* @return This builder for chaining.
*/
public Builder clearChangeType() {
changeType_ = 0;
onChanged();
return this;
}
private int target_ = 0;
/**
*
* The type of schema object that was affected.
*
*
* .stargate.SchemaChange.Target target = 2;
* @return The enum numeric value on the wire for target.
*/
@java.lang.Override public int getTargetValue() {
return target_;
}
/**
*
* The type of schema object that was affected.
*
*
* .stargate.SchemaChange.Target target = 2;
* @param value The enum numeric value on the wire for target to set.
* @return This builder for chaining.
*/
public Builder setTargetValue(int value) {
target_ = value;
onChanged();
return this;
}
/**
*
* The type of schema object that was affected.
*
*
* .stargate.SchemaChange.Target target = 2;
* @return The target.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.SchemaChange.Target getTarget() {
@SuppressWarnings("deprecation")
io.stargate.proto.QueryOuterClass.SchemaChange.Target result = io.stargate.proto.QueryOuterClass.SchemaChange.Target.valueOf(target_);
return result == null ? io.stargate.proto.QueryOuterClass.SchemaChange.Target.UNRECOGNIZED : result;
}
/**
*
* The type of schema object that was affected.
*
*
* .stargate.SchemaChange.Target target = 2;
* @param value The target to set.
* @return This builder for chaining.
*/
public Builder setTarget(io.stargate.proto.QueryOuterClass.SchemaChange.Target value) {
if (value == null) {
throw new NullPointerException();
}
target_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The type of schema object that was affected.
*
*
* .stargate.SchemaChange.Target target = 2;
* @return This builder for chaining.
*/
public Builder clearTarget() {
target_ = 0;
onChanged();
return this;
}
private java.lang.Object keyspace_ = "";
/**
*
* The name of the keyspace.
*
*
* string keyspace = 3;
* @return The keyspace.
*/
public java.lang.String getKeyspace() {
java.lang.Object ref = keyspace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
keyspace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The name of the keyspace.
*
*
* string keyspace = 3;
* @return The bytes for keyspace.
*/
public com.google.protobuf.ByteString
getKeyspaceBytes() {
java.lang.Object ref = keyspace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyspace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of the keyspace.
*
*
* string keyspace = 3;
* @param value The keyspace to set.
* @return This builder for chaining.
*/
public Builder setKeyspace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
keyspace_ = value;
onChanged();
return this;
}
/**
*
* The name of the keyspace.
*
*
* string keyspace = 3;
* @return This builder for chaining.
*/
public Builder clearKeyspace() {
keyspace_ = getDefaultInstance().getKeyspace();
onChanged();
return this;
}
/**
*
* The name of the keyspace.
*
*
* string keyspace = 3;
* @param value The bytes for keyspace to set.
* @return This builder for chaining.
*/
public Builder setKeyspaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
keyspace_ = value;
onChanged();
return this;
}
private com.google.protobuf.StringValue name_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> nameBuilder_;
/**
*
* If the target is a keyspace element (table, type, etc), its name.
*
*
* .google.protobuf.StringValue name = 4;
* @return Whether the name field is set.
*/
public boolean hasName() {
return nameBuilder_ != null || name_ != null;
}
/**
*
* If the target is a keyspace element (table, type, etc), its name.
*
*
* .google.protobuf.StringValue name = 4;
* @return The name.
*/
public com.google.protobuf.StringValue getName() {
if (nameBuilder_ == null) {
return name_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : name_;
} else {
return nameBuilder_.getMessage();
}
}
/**
*
* If the target is a keyspace element (table, type, etc), its name.
*
*
* .google.protobuf.StringValue name = 4;
*/
public Builder setName(com.google.protobuf.StringValue value) {
if (nameBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
} else {
nameBuilder_.setMessage(value);
}
return this;
}
/**
*
* If the target is a keyspace element (table, type, etc), its name.
*
*
* .google.protobuf.StringValue name = 4;
*/
public Builder setName(
com.google.protobuf.StringValue.Builder builderForValue) {
if (nameBuilder_ == null) {
name_ = builderForValue.build();
onChanged();
} else {
nameBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* If the target is a keyspace element (table, type, etc), its name.
*
*
* .google.protobuf.StringValue name = 4;
*/
public Builder mergeName(com.google.protobuf.StringValue value) {
if (nameBuilder_ == null) {
if (name_ != null) {
name_ =
com.google.protobuf.StringValue.newBuilder(name_).mergeFrom(value).buildPartial();
} else {
name_ = value;
}
onChanged();
} else {
nameBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* If the target is a keyspace element (table, type, etc), its name.
*
*
* .google.protobuf.StringValue name = 4;
*/
public Builder clearName() {
if (nameBuilder_ == null) {
name_ = null;
onChanged();
} else {
name_ = null;
nameBuilder_ = null;
}
return this;
}
/**
*
* If the target is a keyspace element (table, type, etc), its name.
*
*
* .google.protobuf.StringValue name = 4;
*/
public com.google.protobuf.StringValue.Builder getNameBuilder() {
onChanged();
return getNameFieldBuilder().getBuilder();
}
/**
*
* If the target is a keyspace element (table, type, etc), its name.
*
*
* .google.protobuf.StringValue name = 4;
*/
public com.google.protobuf.StringValueOrBuilder getNameOrBuilder() {
if (nameBuilder_ != null) {
return nameBuilder_.getMessageOrBuilder();
} else {
return name_ == null ?
com.google.protobuf.StringValue.getDefaultInstance() : name_;
}
}
/**
*
* If the target is a keyspace element (table, type, etc), its name.
*
*
* .google.protobuf.StringValue name = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>
getNameFieldBuilder() {
if (nameBuilder_ == null) {
nameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(
getName(),
getParentForChildren(),
isClean());
name_ = null;
}
return nameBuilder_;
}
private com.google.protobuf.LazyStringList argumentTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureArgumentTypesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
argumentTypes_ = new com.google.protobuf.LazyStringArrayList(argumentTypes_);
bitField0_ |= 0x00000001;
}
}
/**
*
* If the target is a function or aggregate, the CQL types of the arguments.
*
*
* repeated string argument_types = 5;
* @return A list containing the argumentTypes.
*/
public com.google.protobuf.ProtocolStringList
getArgumentTypesList() {
return argumentTypes_.getUnmodifiableView();
}
/**
*
* If the target is a function or aggregate, the CQL types of the arguments.
*
*
* repeated string argument_types = 5;
* @return The count of argumentTypes.
*/
public int getArgumentTypesCount() {
return argumentTypes_.size();
}
/**
*
* If the target is a function or aggregate, the CQL types of the arguments.
*
*
* repeated string argument_types = 5;
* @param index The index of the element to return.
* @return The argumentTypes at the given index.
*/
public java.lang.String getArgumentTypes(int index) {
return argumentTypes_.get(index);
}
/**
*
* If the target is a function or aggregate, the CQL types of the arguments.
*
*
* repeated string argument_types = 5;
* @param index The index of the value to return.
* @return The bytes of the argumentTypes at the given index.
*/
public com.google.protobuf.ByteString
getArgumentTypesBytes(int index) {
return argumentTypes_.getByteString(index);
}
/**
*
* If the target is a function or aggregate, the CQL types of the arguments.
*
*
* repeated string argument_types = 5;
* @param index The index to set the value at.
* @param value The argumentTypes to set.
* @return This builder for chaining.
*/
public Builder setArgumentTypes(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentTypesIsMutable();
argumentTypes_.set(index, value);
onChanged();
return this;
}
/**
*
* If the target is a function or aggregate, the CQL types of the arguments.
*
*
* repeated string argument_types = 5;
* @param value The argumentTypes to add.
* @return This builder for chaining.
*/
public Builder addArgumentTypes(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentTypesIsMutable();
argumentTypes_.add(value);
onChanged();
return this;
}
/**
*
* If the target is a function or aggregate, the CQL types of the arguments.
*
*
* repeated string argument_types = 5;
* @param values The argumentTypes to add.
* @return This builder for chaining.
*/
public Builder addAllArgumentTypes(
java.lang.Iterable values) {
ensureArgumentTypesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, argumentTypes_);
onChanged();
return this;
}
/**
*
* If the target is a function or aggregate, the CQL types of the arguments.
*
*
* repeated string argument_types = 5;
* @return This builder for chaining.
*/
public Builder clearArgumentTypes() {
argumentTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* If the target is a function or aggregate, the CQL types of the arguments.
*
*
* repeated string argument_types = 5;
* @param value The bytes of the argumentTypes to add.
* @return This builder for chaining.
*/
public Builder addArgumentTypesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureArgumentTypesIsMutable();
argumentTypes_.add(value);
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:stargate.SchemaChange)
}
// @@protoc_insertion_point(class_scope:stargate.SchemaChange)
private static final io.stargate.proto.QueryOuterClass.SchemaChange DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.SchemaChange();
}
public static io.stargate.proto.QueryOuterClass.SchemaChange getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SchemaChange parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SchemaChange(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 io.stargate.proto.QueryOuterClass.SchemaChange getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.Response)
com.google.protobuf.MessageOrBuilder {
/**
*
* The result data.
*
*
* .stargate.ResultSet result_set = 1;
* @return Whether the resultSet field is set.
*/
boolean hasResultSet();
/**
*
* The result data.
*
*
* .stargate.ResultSet result_set = 1;
* @return The resultSet.
*/
io.stargate.proto.QueryOuterClass.ResultSet getResultSet();
/**
*
* The result data.
*
*
* .stargate.ResultSet result_set = 1;
*/
io.stargate.proto.QueryOuterClass.ResultSetOrBuilder getResultSetOrBuilder();
/**
*
* How the query changed the CQL schema.
*
*
* .stargate.SchemaChange schema_change = 4;
* @return Whether the schemaChange field is set.
*/
boolean hasSchemaChange();
/**
*
* How the query changed the CQL schema.
*
*
* .stargate.SchemaChange schema_change = 4;
* @return The schemaChange.
*/
io.stargate.proto.QueryOuterClass.SchemaChange getSchemaChange();
/**
*
* How the query changed the CQL schema.
*
*
* .stargate.SchemaChange schema_change = 4;
*/
io.stargate.proto.QueryOuterClass.SchemaChangeOrBuilder getSchemaChangeOrBuilder();
/**
*
* The server-side warnings for the query, if any.
*
*
* repeated string warnings = 2;
* @return A list containing the warnings.
*/
java.util.List
getWarningsList();
/**
*
* The server-side warnings for the query, if any.
*
*
* repeated string warnings = 2;
* @return The count of warnings.
*/
int getWarningsCount();
/**
*
* The server-side warnings for the query, if any.
*
*
* repeated string warnings = 2;
* @param index The index of the element to return.
* @return The warnings at the given index.
*/
java.lang.String getWarnings(int index);
/**
*
* The server-side warnings for the query, if any.
*
*
* repeated string warnings = 2;
* @param index The index of the value to return.
* @return The bytes of the warnings at the given index.
*/
com.google.protobuf.ByteString
getWarningsBytes(int index);
/**
*
* The tracing information, if it was requested for the query.
*
*
* .stargate.Traces traces = 3;
* @return Whether the traces field is set.
*/
boolean hasTraces();
/**
*
* The tracing information, if it was requested for the query.
*
*
* .stargate.Traces traces = 3;
* @return The traces.
*/
io.stargate.proto.QueryOuterClass.Traces getTraces();
/**
*
* The tracing information, if it was requested for the query.
*
*
* .stargate.Traces traces = 3;
*/
io.stargate.proto.QueryOuterClass.TracesOrBuilder getTracesOrBuilder();
public io.stargate.proto.QueryOuterClass.Response.ResultCase getResultCase();
}
/**
*
* The response to a Query or Batch message.
*
*
* Protobuf type {@code stargate.Response}
*/
public static final class Response extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.Response)
ResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use Response.newBuilder() to construct.
private Response(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Response() {
warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Response();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Response(
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: {
io.stargate.proto.QueryOuterClass.ResultSet.Builder subBuilder = null;
if (resultCase_ == 1) {
subBuilder = ((io.stargate.proto.QueryOuterClass.ResultSet) result_).toBuilder();
}
result_ =
input.readMessage(io.stargate.proto.QueryOuterClass.ResultSet.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.stargate.proto.QueryOuterClass.ResultSet) result_);
result_ = subBuilder.buildPartial();
}
resultCase_ = 1;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
warnings_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
warnings_.add(s);
break;
}
case 26: {
io.stargate.proto.QueryOuterClass.Traces.Builder subBuilder = null;
if (traces_ != null) {
subBuilder = traces_.toBuilder();
}
traces_ = input.readMessage(io.stargate.proto.QueryOuterClass.Traces.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(traces_);
traces_ = subBuilder.buildPartial();
}
break;
}
case 34: {
io.stargate.proto.QueryOuterClass.SchemaChange.Builder subBuilder = null;
if (resultCase_ == 4) {
subBuilder = ((io.stargate.proto.QueryOuterClass.SchemaChange) result_).toBuilder();
}
result_ =
input.readMessage(io.stargate.proto.QueryOuterClass.SchemaChange.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.stargate.proto.QueryOuterClass.SchemaChange) result_);
result_ = subBuilder.buildPartial();
}
resultCase_ = 4;
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)) {
warnings_ = warnings_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Response_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Response.class, io.stargate.proto.QueryOuterClass.Response.Builder.class);
}
private int resultCase_ = 0;
private java.lang.Object result_;
public enum ResultCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
RESULT_SET(1),
SCHEMA_CHANGE(4),
RESULT_NOT_SET(0);
private final int value;
private ResultCase(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 ResultCase valueOf(int value) {
return forNumber(value);
}
public static ResultCase forNumber(int value) {
switch (value) {
case 1: return RESULT_SET;
case 4: return SCHEMA_CHANGE;
case 0: return RESULT_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ResultCase
getResultCase() {
return ResultCase.forNumber(
resultCase_);
}
public static final int RESULT_SET_FIELD_NUMBER = 1;
/**
*
* The result data.
*
*
* .stargate.ResultSet result_set = 1;
* @return Whether the resultSet field is set.
*/
@java.lang.Override
public boolean hasResultSet() {
return resultCase_ == 1;
}
/**
*
* The result data.
*
*
* .stargate.ResultSet result_set = 1;
* @return The resultSet.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ResultSet getResultSet() {
if (resultCase_ == 1) {
return (io.stargate.proto.QueryOuterClass.ResultSet) result_;
}
return io.stargate.proto.QueryOuterClass.ResultSet.getDefaultInstance();
}
/**
*
* The result data.
*
*
* .stargate.ResultSet result_set = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ResultSetOrBuilder getResultSetOrBuilder() {
if (resultCase_ == 1) {
return (io.stargate.proto.QueryOuterClass.ResultSet) result_;
}
return io.stargate.proto.QueryOuterClass.ResultSet.getDefaultInstance();
}
public static final int SCHEMA_CHANGE_FIELD_NUMBER = 4;
/**
*
* How the query changed the CQL schema.
*
*
* .stargate.SchemaChange schema_change = 4;
* @return Whether the schemaChange field is set.
*/
@java.lang.Override
public boolean hasSchemaChange() {
return resultCase_ == 4;
}
/**
*
* How the query changed the CQL schema.
*
*
* .stargate.SchemaChange schema_change = 4;
* @return The schemaChange.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.SchemaChange getSchemaChange() {
if (resultCase_ == 4) {
return (io.stargate.proto.QueryOuterClass.SchemaChange) result_;
}
return io.stargate.proto.QueryOuterClass.SchemaChange.getDefaultInstance();
}
/**
*
* How the query changed the CQL schema.
*
*
* .stargate.SchemaChange schema_change = 4;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.SchemaChangeOrBuilder getSchemaChangeOrBuilder() {
if (resultCase_ == 4) {
return (io.stargate.proto.QueryOuterClass.SchemaChange) result_;
}
return io.stargate.proto.QueryOuterClass.SchemaChange.getDefaultInstance();
}
public static final int WARNINGS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList warnings_;
/**
*
* The server-side warnings for the query, if any.
*
*
* repeated string warnings = 2;
* @return A list containing the warnings.
*/
public com.google.protobuf.ProtocolStringList
getWarningsList() {
return warnings_;
}
/**
*
* The server-side warnings for the query, if any.
*
*
* repeated string warnings = 2;
* @return The count of warnings.
*/
public int getWarningsCount() {
return warnings_.size();
}
/**
*
* The server-side warnings for the query, if any.
*
*
* repeated string warnings = 2;
* @param index The index of the element to return.
* @return The warnings at the given index.
*/
public java.lang.String getWarnings(int index) {
return warnings_.get(index);
}
/**
*
* The server-side warnings for the query, if any.
*
*
* repeated string warnings = 2;
* @param index The index of the value to return.
* @return The bytes of the warnings at the given index.
*/
public com.google.protobuf.ByteString
getWarningsBytes(int index) {
return warnings_.getByteString(index);
}
public static final int TRACES_FIELD_NUMBER = 3;
private io.stargate.proto.QueryOuterClass.Traces traces_;
/**
*
* The tracing information, if it was requested for the query.
*
*
* .stargate.Traces traces = 3;
* @return Whether the traces field is set.
*/
@java.lang.Override
public boolean hasTraces() {
return traces_ != null;
}
/**
*
* The tracing information, if it was requested for the query.
*
*
* .stargate.Traces traces = 3;
* @return The traces.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Traces getTraces() {
return traces_ == null ? io.stargate.proto.QueryOuterClass.Traces.getDefaultInstance() : traces_;
}
/**
*
* The tracing information, if it was requested for the query.
*
*
* .stargate.Traces traces = 3;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.TracesOrBuilder getTracesOrBuilder() {
return getTraces();
}
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 (resultCase_ == 1) {
output.writeMessage(1, (io.stargate.proto.QueryOuterClass.ResultSet) result_);
}
for (int i = 0; i < warnings_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, warnings_.getRaw(i));
}
if (traces_ != null) {
output.writeMessage(3, getTraces());
}
if (resultCase_ == 4) {
output.writeMessage(4, (io.stargate.proto.QueryOuterClass.SchemaChange) result_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (resultCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.stargate.proto.QueryOuterClass.ResultSet) result_);
}
{
int dataSize = 0;
for (int i = 0; i < warnings_.size(); i++) {
dataSize += computeStringSizeNoTag(warnings_.getRaw(i));
}
size += dataSize;
size += 1 * getWarningsList().size();
}
if (traces_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTraces());
}
if (resultCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (io.stargate.proto.QueryOuterClass.SchemaChange) result_);
}
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 io.stargate.proto.QueryOuterClass.Response)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.Response other = (io.stargate.proto.QueryOuterClass.Response) obj;
if (!getWarningsList()
.equals(other.getWarningsList())) return false;
if (hasTraces() != other.hasTraces()) return false;
if (hasTraces()) {
if (!getTraces()
.equals(other.getTraces())) return false;
}
if (!getResultCase().equals(other.getResultCase())) return false;
switch (resultCase_) {
case 1:
if (!getResultSet()
.equals(other.getResultSet())) return false;
break;
case 4:
if (!getSchemaChange()
.equals(other.getSchemaChange())) 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 (getWarningsCount() > 0) {
hash = (37 * hash) + WARNINGS_FIELD_NUMBER;
hash = (53 * hash) + getWarningsList().hashCode();
}
if (hasTraces()) {
hash = (37 * hash) + TRACES_FIELD_NUMBER;
hash = (53 * hash) + getTraces().hashCode();
}
switch (resultCase_) {
case 1:
hash = (37 * hash) + RESULT_SET_FIELD_NUMBER;
hash = (53 * hash) + getResultSet().hashCode();
break;
case 4:
hash = (37 * hash) + SCHEMA_CHANGE_FIELD_NUMBER;
hash = (53 * hash) + getSchemaChange().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.Response parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Response parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Response parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Response parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Response parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Response parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Response parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Response 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 io.stargate.proto.QueryOuterClass.Response parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Response 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 io.stargate.proto.QueryOuterClass.Response parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Response 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(io.stargate.proto.QueryOuterClass.Response 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;
}
/**
*
* The response to a Query or Batch message.
*
*
* Protobuf type {@code stargate.Response}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.Response)
io.stargate.proto.QueryOuterClass.ResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Response_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Response.class, io.stargate.proto.QueryOuterClass.Response.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.Response.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();
warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
if (tracesBuilder_ == null) {
traces_ = null;
} else {
traces_ = null;
tracesBuilder_ = null;
}
resultCase_ = 0;
result_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Response_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Response getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.Response.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Response build() {
io.stargate.proto.QueryOuterClass.Response result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Response buildPartial() {
io.stargate.proto.QueryOuterClass.Response result = new io.stargate.proto.QueryOuterClass.Response(this);
int from_bitField0_ = bitField0_;
if (resultCase_ == 1) {
if (resultSetBuilder_ == null) {
result.result_ = result_;
} else {
result.result_ = resultSetBuilder_.build();
}
}
if (resultCase_ == 4) {
if (schemaChangeBuilder_ == null) {
result.result_ = result_;
} else {
result.result_ = schemaChangeBuilder_.build();
}
}
if (((bitField0_ & 0x00000001) != 0)) {
warnings_ = warnings_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.warnings_ = warnings_;
if (tracesBuilder_ == null) {
result.traces_ = traces_;
} else {
result.traces_ = tracesBuilder_.build();
}
result.resultCase_ = resultCase_;
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 io.stargate.proto.QueryOuterClass.Response) {
return mergeFrom((io.stargate.proto.QueryOuterClass.Response)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.Response other) {
if (other == io.stargate.proto.QueryOuterClass.Response.getDefaultInstance()) return this;
if (!other.warnings_.isEmpty()) {
if (warnings_.isEmpty()) {
warnings_ = other.warnings_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureWarningsIsMutable();
warnings_.addAll(other.warnings_);
}
onChanged();
}
if (other.hasTraces()) {
mergeTraces(other.getTraces());
}
switch (other.getResultCase()) {
case RESULT_SET: {
mergeResultSet(other.getResultSet());
break;
}
case SCHEMA_CHANGE: {
mergeSchemaChange(other.getSchemaChange());
break;
}
case RESULT_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 {
io.stargate.proto.QueryOuterClass.Response parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.Response) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int resultCase_ = 0;
private java.lang.Object result_;
public ResultCase
getResultCase() {
return ResultCase.forNumber(
resultCase_);
}
public Builder clearResult() {
resultCase_ = 0;
result_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.ResultSet, io.stargate.proto.QueryOuterClass.ResultSet.Builder, io.stargate.proto.QueryOuterClass.ResultSetOrBuilder> resultSetBuilder_;
/**
*
* The result data.
*
*
* .stargate.ResultSet result_set = 1;
* @return Whether the resultSet field is set.
*/
@java.lang.Override
public boolean hasResultSet() {
return resultCase_ == 1;
}
/**
*
* The result data.
*
*
* .stargate.ResultSet result_set = 1;
* @return The resultSet.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ResultSet getResultSet() {
if (resultSetBuilder_ == null) {
if (resultCase_ == 1) {
return (io.stargate.proto.QueryOuterClass.ResultSet) result_;
}
return io.stargate.proto.QueryOuterClass.ResultSet.getDefaultInstance();
} else {
if (resultCase_ == 1) {
return resultSetBuilder_.getMessage();
}
return io.stargate.proto.QueryOuterClass.ResultSet.getDefaultInstance();
}
}
/**
*
* The result data.
*
*
* .stargate.ResultSet result_set = 1;
*/
public Builder setResultSet(io.stargate.proto.QueryOuterClass.ResultSet value) {
if (resultSetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
resultSetBuilder_.setMessage(value);
}
resultCase_ = 1;
return this;
}
/**
*
* The result data.
*
*
* .stargate.ResultSet result_set = 1;
*/
public Builder setResultSet(
io.stargate.proto.QueryOuterClass.ResultSet.Builder builderForValue) {
if (resultSetBuilder_ == null) {
result_ = builderForValue.build();
onChanged();
} else {
resultSetBuilder_.setMessage(builderForValue.build());
}
resultCase_ = 1;
return this;
}
/**
*
* The result data.
*
*
* .stargate.ResultSet result_set = 1;
*/
public Builder mergeResultSet(io.stargate.proto.QueryOuterClass.ResultSet value) {
if (resultSetBuilder_ == null) {
if (resultCase_ == 1 &&
result_ != io.stargate.proto.QueryOuterClass.ResultSet.getDefaultInstance()) {
result_ = io.stargate.proto.QueryOuterClass.ResultSet.newBuilder((io.stargate.proto.QueryOuterClass.ResultSet) result_)
.mergeFrom(value).buildPartial();
} else {
result_ = value;
}
onChanged();
} else {
if (resultCase_ == 1) {
resultSetBuilder_.mergeFrom(value);
}
resultSetBuilder_.setMessage(value);
}
resultCase_ = 1;
return this;
}
/**
*
* The result data.
*
*
* .stargate.ResultSet result_set = 1;
*/
public Builder clearResultSet() {
if (resultSetBuilder_ == null) {
if (resultCase_ == 1) {
resultCase_ = 0;
result_ = null;
onChanged();
}
} else {
if (resultCase_ == 1) {
resultCase_ = 0;
result_ = null;
}
resultSetBuilder_.clear();
}
return this;
}
/**
*
* The result data.
*
*
* .stargate.ResultSet result_set = 1;
*/
public io.stargate.proto.QueryOuterClass.ResultSet.Builder getResultSetBuilder() {
return getResultSetFieldBuilder().getBuilder();
}
/**
*
* The result data.
*
*
* .stargate.ResultSet result_set = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ResultSetOrBuilder getResultSetOrBuilder() {
if ((resultCase_ == 1) && (resultSetBuilder_ != null)) {
return resultSetBuilder_.getMessageOrBuilder();
} else {
if (resultCase_ == 1) {
return (io.stargate.proto.QueryOuterClass.ResultSet) result_;
}
return io.stargate.proto.QueryOuterClass.ResultSet.getDefaultInstance();
}
}
/**
*
* The result data.
*
*
* .stargate.ResultSet result_set = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.ResultSet, io.stargate.proto.QueryOuterClass.ResultSet.Builder, io.stargate.proto.QueryOuterClass.ResultSetOrBuilder>
getResultSetFieldBuilder() {
if (resultSetBuilder_ == null) {
if (!(resultCase_ == 1)) {
result_ = io.stargate.proto.QueryOuterClass.ResultSet.getDefaultInstance();
}
resultSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.ResultSet, io.stargate.proto.QueryOuterClass.ResultSet.Builder, io.stargate.proto.QueryOuterClass.ResultSetOrBuilder>(
(io.stargate.proto.QueryOuterClass.ResultSet) result_,
getParentForChildren(),
isClean());
result_ = null;
}
resultCase_ = 1;
onChanged();;
return resultSetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.SchemaChange, io.stargate.proto.QueryOuterClass.SchemaChange.Builder, io.stargate.proto.QueryOuterClass.SchemaChangeOrBuilder> schemaChangeBuilder_;
/**
*
* How the query changed the CQL schema.
*
*
* .stargate.SchemaChange schema_change = 4;
* @return Whether the schemaChange field is set.
*/
@java.lang.Override
public boolean hasSchemaChange() {
return resultCase_ == 4;
}
/**
*
* How the query changed the CQL schema.
*
*
* .stargate.SchemaChange schema_change = 4;
* @return The schemaChange.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.SchemaChange getSchemaChange() {
if (schemaChangeBuilder_ == null) {
if (resultCase_ == 4) {
return (io.stargate.proto.QueryOuterClass.SchemaChange) result_;
}
return io.stargate.proto.QueryOuterClass.SchemaChange.getDefaultInstance();
} else {
if (resultCase_ == 4) {
return schemaChangeBuilder_.getMessage();
}
return io.stargate.proto.QueryOuterClass.SchemaChange.getDefaultInstance();
}
}
/**
*
* How the query changed the CQL schema.
*
*
* .stargate.SchemaChange schema_change = 4;
*/
public Builder setSchemaChange(io.stargate.proto.QueryOuterClass.SchemaChange value) {
if (schemaChangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
schemaChangeBuilder_.setMessage(value);
}
resultCase_ = 4;
return this;
}
/**
*
* How the query changed the CQL schema.
*
*
* .stargate.SchemaChange schema_change = 4;
*/
public Builder setSchemaChange(
io.stargate.proto.QueryOuterClass.SchemaChange.Builder builderForValue) {
if (schemaChangeBuilder_ == null) {
result_ = builderForValue.build();
onChanged();
} else {
schemaChangeBuilder_.setMessage(builderForValue.build());
}
resultCase_ = 4;
return this;
}
/**
*
* How the query changed the CQL schema.
*
*
* .stargate.SchemaChange schema_change = 4;
*/
public Builder mergeSchemaChange(io.stargate.proto.QueryOuterClass.SchemaChange value) {
if (schemaChangeBuilder_ == null) {
if (resultCase_ == 4 &&
result_ != io.stargate.proto.QueryOuterClass.SchemaChange.getDefaultInstance()) {
result_ = io.stargate.proto.QueryOuterClass.SchemaChange.newBuilder((io.stargate.proto.QueryOuterClass.SchemaChange) result_)
.mergeFrom(value).buildPartial();
} else {
result_ = value;
}
onChanged();
} else {
if (resultCase_ == 4) {
schemaChangeBuilder_.mergeFrom(value);
}
schemaChangeBuilder_.setMessage(value);
}
resultCase_ = 4;
return this;
}
/**
*
* How the query changed the CQL schema.
*
*
* .stargate.SchemaChange schema_change = 4;
*/
public Builder clearSchemaChange() {
if (schemaChangeBuilder_ == null) {
if (resultCase_ == 4) {
resultCase_ = 0;
result_ = null;
onChanged();
}
} else {
if (resultCase_ == 4) {
resultCase_ = 0;
result_ = null;
}
schemaChangeBuilder_.clear();
}
return this;
}
/**
*
* How the query changed the CQL schema.
*
*
* .stargate.SchemaChange schema_change = 4;
*/
public io.stargate.proto.QueryOuterClass.SchemaChange.Builder getSchemaChangeBuilder() {
return getSchemaChangeFieldBuilder().getBuilder();
}
/**
*
* How the query changed the CQL schema.
*
*
* .stargate.SchemaChange schema_change = 4;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.SchemaChangeOrBuilder getSchemaChangeOrBuilder() {
if ((resultCase_ == 4) && (schemaChangeBuilder_ != null)) {
return schemaChangeBuilder_.getMessageOrBuilder();
} else {
if (resultCase_ == 4) {
return (io.stargate.proto.QueryOuterClass.SchemaChange) result_;
}
return io.stargate.proto.QueryOuterClass.SchemaChange.getDefaultInstance();
}
}
/**
*
* How the query changed the CQL schema.
*
*
* .stargate.SchemaChange schema_change = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.SchemaChange, io.stargate.proto.QueryOuterClass.SchemaChange.Builder, io.stargate.proto.QueryOuterClass.SchemaChangeOrBuilder>
getSchemaChangeFieldBuilder() {
if (schemaChangeBuilder_ == null) {
if (!(resultCase_ == 4)) {
result_ = io.stargate.proto.QueryOuterClass.SchemaChange.getDefaultInstance();
}
schemaChangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.SchemaChange, io.stargate.proto.QueryOuterClass.SchemaChange.Builder, io.stargate.proto.QueryOuterClass.SchemaChangeOrBuilder>(
(io.stargate.proto.QueryOuterClass.SchemaChange) result_,
getParentForChildren(),
isClean());
result_ = null;
}
resultCase_ = 4;
onChanged();;
return schemaChangeBuilder_;
}
private com.google.protobuf.LazyStringList warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureWarningsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_);
bitField0_ |= 0x00000001;
}
}
/**
*
* The server-side warnings for the query, if any.
*
*
* repeated string warnings = 2;
* @return A list containing the warnings.
*/
public com.google.protobuf.ProtocolStringList
getWarningsList() {
return warnings_.getUnmodifiableView();
}
/**
*
* The server-side warnings for the query, if any.
*
*
* repeated string warnings = 2;
* @return The count of warnings.
*/
public int getWarningsCount() {
return warnings_.size();
}
/**
*
* The server-side warnings for the query, if any.
*
*
* repeated string warnings = 2;
* @param index The index of the element to return.
* @return The warnings at the given index.
*/
public java.lang.String getWarnings(int index) {
return warnings_.get(index);
}
/**
*
* The server-side warnings for the query, if any.
*
*
* repeated string warnings = 2;
* @param index The index of the value to return.
* @return The bytes of the warnings at the given index.
*/
public com.google.protobuf.ByteString
getWarningsBytes(int index) {
return warnings_.getByteString(index);
}
/**
*
* The server-side warnings for the query, if any.
*
*
* repeated string warnings = 2;
* @param index The index to set the value at.
* @param value The warnings to set.
* @return This builder for chaining.
*/
public Builder setWarnings(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureWarningsIsMutable();
warnings_.set(index, value);
onChanged();
return this;
}
/**
*
* The server-side warnings for the query, if any.
*
*
* repeated string warnings = 2;
* @param value The warnings to add.
* @return This builder for chaining.
*/
public Builder addWarnings(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureWarningsIsMutable();
warnings_.add(value);
onChanged();
return this;
}
/**
*
* The server-side warnings for the query, if any.
*
*
* repeated string warnings = 2;
* @param values The warnings to add.
* @return This builder for chaining.
*/
public Builder addAllWarnings(
java.lang.Iterable values) {
ensureWarningsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, warnings_);
onChanged();
return this;
}
/**
*
* The server-side warnings for the query, if any.
*
*
* repeated string warnings = 2;
* @return This builder for chaining.
*/
public Builder clearWarnings() {
warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The server-side warnings for the query, if any.
*
*
* repeated string warnings = 2;
* @param value The bytes of the warnings to add.
* @return This builder for chaining.
*/
public Builder addWarningsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureWarningsIsMutable();
warnings_.add(value);
onChanged();
return this;
}
private io.stargate.proto.QueryOuterClass.Traces traces_;
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Traces, io.stargate.proto.QueryOuterClass.Traces.Builder, io.stargate.proto.QueryOuterClass.TracesOrBuilder> tracesBuilder_;
/**
*
* The tracing information, if it was requested for the query.
*
*
* .stargate.Traces traces = 3;
* @return Whether the traces field is set.
*/
public boolean hasTraces() {
return tracesBuilder_ != null || traces_ != null;
}
/**
*
* The tracing information, if it was requested for the query.
*
*
* .stargate.Traces traces = 3;
* @return The traces.
*/
public io.stargate.proto.QueryOuterClass.Traces getTraces() {
if (tracesBuilder_ == null) {
return traces_ == null ? io.stargate.proto.QueryOuterClass.Traces.getDefaultInstance() : traces_;
} else {
return tracesBuilder_.getMessage();
}
}
/**
*
* The tracing information, if it was requested for the query.
*
*
* .stargate.Traces traces = 3;
*/
public Builder setTraces(io.stargate.proto.QueryOuterClass.Traces value) {
if (tracesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
traces_ = value;
onChanged();
} else {
tracesBuilder_.setMessage(value);
}
return this;
}
/**
*
* The tracing information, if it was requested for the query.
*
*
* .stargate.Traces traces = 3;
*/
public Builder setTraces(
io.stargate.proto.QueryOuterClass.Traces.Builder builderForValue) {
if (tracesBuilder_ == null) {
traces_ = builderForValue.build();
onChanged();
} else {
tracesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The tracing information, if it was requested for the query.
*
*
* .stargate.Traces traces = 3;
*/
public Builder mergeTraces(io.stargate.proto.QueryOuterClass.Traces value) {
if (tracesBuilder_ == null) {
if (traces_ != null) {
traces_ =
io.stargate.proto.QueryOuterClass.Traces.newBuilder(traces_).mergeFrom(value).buildPartial();
} else {
traces_ = value;
}
onChanged();
} else {
tracesBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The tracing information, if it was requested for the query.
*
*
* .stargate.Traces traces = 3;
*/
public Builder clearTraces() {
if (tracesBuilder_ == null) {
traces_ = null;
onChanged();
} else {
traces_ = null;
tracesBuilder_ = null;
}
return this;
}
/**
*
* The tracing information, if it was requested for the query.
*
*
* .stargate.Traces traces = 3;
*/
public io.stargate.proto.QueryOuterClass.Traces.Builder getTracesBuilder() {
onChanged();
return getTracesFieldBuilder().getBuilder();
}
/**
*
* The tracing information, if it was requested for the query.
*
*
* .stargate.Traces traces = 3;
*/
public io.stargate.proto.QueryOuterClass.TracesOrBuilder getTracesOrBuilder() {
if (tracesBuilder_ != null) {
return tracesBuilder_.getMessageOrBuilder();
} else {
return traces_ == null ?
io.stargate.proto.QueryOuterClass.Traces.getDefaultInstance() : traces_;
}
}
/**
*
* The tracing information, if it was requested for the query.
*
*
* .stargate.Traces traces = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Traces, io.stargate.proto.QueryOuterClass.Traces.Builder, io.stargate.proto.QueryOuterClass.TracesOrBuilder>
getTracesFieldBuilder() {
if (tracesBuilder_ == null) {
tracesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Traces, io.stargate.proto.QueryOuterClass.Traces.Builder, io.stargate.proto.QueryOuterClass.TracesOrBuilder>(
getTraces(),
getParentForChildren(),
isClean());
traces_ = null;
}
return tracesBuilder_;
}
@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:stargate.Response)
}
// @@protoc_insertion_point(class_scope:stargate.Response)
private static final io.stargate.proto.QueryOuterClass.Response DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.Response();
}
public static io.stargate.proto.QueryOuterClass.Response getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Response parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Response(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 io.stargate.proto.QueryOuterClass.Response getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StreamingResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.StreamingResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .stargate.Response response = 1;
* @return Whether the response field is set.
*/
boolean hasResponse();
/**
* .stargate.Response response = 1;
* @return The response.
*/
io.stargate.proto.QueryOuterClass.Response getResponse();
/**
* .stargate.Response response = 1;
*/
io.stargate.proto.QueryOuterClass.ResponseOrBuilder getResponseOrBuilder();
/**
* .google.rpc.Status status = 2;
* @return Whether the status field is set.
*/
boolean hasStatus();
/**
* .google.rpc.Status status = 2;
* @return The status.
*/
com.google.rpc.Status getStatus();
/**
* .google.rpc.Status status = 2;
*/
com.google.rpc.StatusOrBuilder getStatusOrBuilder();
public io.stargate.proto.QueryOuterClass.StreamingResponse.MessageCase getMessageCase();
}
/**
* Protobuf type {@code stargate.StreamingResponse}
*/
public static final class StreamingResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.StreamingResponse)
StreamingResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use StreamingResponse.newBuilder() to construct.
private StreamingResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamingResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StreamingResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StreamingResponse(
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: {
io.stargate.proto.QueryOuterClass.Response.Builder subBuilder = null;
if (messageCase_ == 1) {
subBuilder = ((io.stargate.proto.QueryOuterClass.Response) message_).toBuilder();
}
message_ =
input.readMessage(io.stargate.proto.QueryOuterClass.Response.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.stargate.proto.QueryOuterClass.Response) message_);
message_ = subBuilder.buildPartial();
}
messageCase_ = 1;
break;
}
case 18: {
com.google.rpc.Status.Builder subBuilder = null;
if (messageCase_ == 2) {
subBuilder = ((com.google.rpc.Status) message_).toBuilder();
}
message_ =
input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.google.rpc.Status) message_);
message_ = subBuilder.buildPartial();
}
messageCase_ = 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 io.stargate.proto.QueryOuterClass.internal_static_stargate_StreamingResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_StreamingResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.StreamingResponse.class, io.stargate.proto.QueryOuterClass.StreamingResponse.Builder.class);
}
private int messageCase_ = 0;
private java.lang.Object message_;
public enum MessageCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
RESPONSE(1),
STATUS(2),
MESSAGE_NOT_SET(0);
private final int value;
private MessageCase(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 MessageCase valueOf(int value) {
return forNumber(value);
}
public static MessageCase forNumber(int value) {
switch (value) {
case 1: return RESPONSE;
case 2: return STATUS;
case 0: return MESSAGE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public MessageCase
getMessageCase() {
return MessageCase.forNumber(
messageCase_);
}
public static final int RESPONSE_FIELD_NUMBER = 1;
/**
* .stargate.Response response = 1;
* @return Whether the response field is set.
*/
@java.lang.Override
public boolean hasResponse() {
return messageCase_ == 1;
}
/**
* .stargate.Response response = 1;
* @return The response.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Response getResponse() {
if (messageCase_ == 1) {
return (io.stargate.proto.QueryOuterClass.Response) message_;
}
return io.stargate.proto.QueryOuterClass.Response.getDefaultInstance();
}
/**
* .stargate.Response response = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ResponseOrBuilder getResponseOrBuilder() {
if (messageCase_ == 1) {
return (io.stargate.proto.QueryOuterClass.Response) message_;
}
return io.stargate.proto.QueryOuterClass.Response.getDefaultInstance();
}
public static final int STATUS_FIELD_NUMBER = 2;
/**
* .google.rpc.Status status = 2;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return messageCase_ == 2;
}
/**
* .google.rpc.Status status = 2;
* @return The status.
*/
@java.lang.Override
public com.google.rpc.Status getStatus() {
if (messageCase_ == 2) {
return (com.google.rpc.Status) message_;
}
return com.google.rpc.Status.getDefaultInstance();
}
/**
* .google.rpc.Status status = 2;
*/
@java.lang.Override
public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
if (messageCase_ == 2) {
return (com.google.rpc.Status) message_;
}
return com.google.rpc.Status.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 (messageCase_ == 1) {
output.writeMessage(1, (io.stargate.proto.QueryOuterClass.Response) message_);
}
if (messageCase_ == 2) {
output.writeMessage(2, (com.google.rpc.Status) message_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (messageCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.stargate.proto.QueryOuterClass.Response) message_);
}
if (messageCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.google.rpc.Status) message_);
}
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 io.stargate.proto.QueryOuterClass.StreamingResponse)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.StreamingResponse other = (io.stargate.proto.QueryOuterClass.StreamingResponse) obj;
if (!getMessageCase().equals(other.getMessageCase())) return false;
switch (messageCase_) {
case 1:
if (!getResponse()
.equals(other.getResponse())) return false;
break;
case 2:
if (!getStatus()
.equals(other.getStatus())) 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 (messageCase_) {
case 1:
hash = (37 * hash) + RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getResponse().hashCode();
break;
case 2:
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.StreamingResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.StreamingResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.StreamingResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.StreamingResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.StreamingResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.StreamingResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.StreamingResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.StreamingResponse 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 io.stargate.proto.QueryOuterClass.StreamingResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.StreamingResponse 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 io.stargate.proto.QueryOuterClass.StreamingResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.StreamingResponse 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(io.stargate.proto.QueryOuterClass.StreamingResponse 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 stargate.StreamingResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.StreamingResponse)
io.stargate.proto.QueryOuterClass.StreamingResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_StreamingResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_StreamingResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.StreamingResponse.class, io.stargate.proto.QueryOuterClass.StreamingResponse.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.StreamingResponse.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();
messageCase_ = 0;
message_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_StreamingResponse_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.StreamingResponse getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.StreamingResponse.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.StreamingResponse build() {
io.stargate.proto.QueryOuterClass.StreamingResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.StreamingResponse buildPartial() {
io.stargate.proto.QueryOuterClass.StreamingResponse result = new io.stargate.proto.QueryOuterClass.StreamingResponse(this);
if (messageCase_ == 1) {
if (responseBuilder_ == null) {
result.message_ = message_;
} else {
result.message_ = responseBuilder_.build();
}
}
if (messageCase_ == 2) {
if (statusBuilder_ == null) {
result.message_ = message_;
} else {
result.message_ = statusBuilder_.build();
}
}
result.messageCase_ = messageCase_;
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 io.stargate.proto.QueryOuterClass.StreamingResponse) {
return mergeFrom((io.stargate.proto.QueryOuterClass.StreamingResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.StreamingResponse other) {
if (other == io.stargate.proto.QueryOuterClass.StreamingResponse.getDefaultInstance()) return this;
switch (other.getMessageCase()) {
case RESPONSE: {
mergeResponse(other.getResponse());
break;
}
case STATUS: {
mergeStatus(other.getStatus());
break;
}
case MESSAGE_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 {
io.stargate.proto.QueryOuterClass.StreamingResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.StreamingResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int messageCase_ = 0;
private java.lang.Object message_;
public MessageCase
getMessageCase() {
return MessageCase.forNumber(
messageCase_);
}
public Builder clearMessage() {
messageCase_ = 0;
message_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Response, io.stargate.proto.QueryOuterClass.Response.Builder, io.stargate.proto.QueryOuterClass.ResponseOrBuilder> responseBuilder_;
/**
* .stargate.Response response = 1;
* @return Whether the response field is set.
*/
@java.lang.Override
public boolean hasResponse() {
return messageCase_ == 1;
}
/**
* .stargate.Response response = 1;
* @return The response.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Response getResponse() {
if (responseBuilder_ == null) {
if (messageCase_ == 1) {
return (io.stargate.proto.QueryOuterClass.Response) message_;
}
return io.stargate.proto.QueryOuterClass.Response.getDefaultInstance();
} else {
if (messageCase_ == 1) {
return responseBuilder_.getMessage();
}
return io.stargate.proto.QueryOuterClass.Response.getDefaultInstance();
}
}
/**
* .stargate.Response response = 1;
*/
public Builder setResponse(io.stargate.proto.QueryOuterClass.Response value) {
if (responseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
responseBuilder_.setMessage(value);
}
messageCase_ = 1;
return this;
}
/**
* .stargate.Response response = 1;
*/
public Builder setResponse(
io.stargate.proto.QueryOuterClass.Response.Builder builderForValue) {
if (responseBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
responseBuilder_.setMessage(builderForValue.build());
}
messageCase_ = 1;
return this;
}
/**
* .stargate.Response response = 1;
*/
public Builder mergeResponse(io.stargate.proto.QueryOuterClass.Response value) {
if (responseBuilder_ == null) {
if (messageCase_ == 1 &&
message_ != io.stargate.proto.QueryOuterClass.Response.getDefaultInstance()) {
message_ = io.stargate.proto.QueryOuterClass.Response.newBuilder((io.stargate.proto.QueryOuterClass.Response) message_)
.mergeFrom(value).buildPartial();
} else {
message_ = value;
}
onChanged();
} else {
if (messageCase_ == 1) {
responseBuilder_.mergeFrom(value);
}
responseBuilder_.setMessage(value);
}
messageCase_ = 1;
return this;
}
/**
* .stargate.Response response = 1;
*/
public Builder clearResponse() {
if (responseBuilder_ == null) {
if (messageCase_ == 1) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
if (messageCase_ == 1) {
messageCase_ = 0;
message_ = null;
}
responseBuilder_.clear();
}
return this;
}
/**
* .stargate.Response response = 1;
*/
public io.stargate.proto.QueryOuterClass.Response.Builder getResponseBuilder() {
return getResponseFieldBuilder().getBuilder();
}
/**
* .stargate.Response response = 1;
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ResponseOrBuilder getResponseOrBuilder() {
if ((messageCase_ == 1) && (responseBuilder_ != null)) {
return responseBuilder_.getMessageOrBuilder();
} else {
if (messageCase_ == 1) {
return (io.stargate.proto.QueryOuterClass.Response) message_;
}
return io.stargate.proto.QueryOuterClass.Response.getDefaultInstance();
}
}
/**
* .stargate.Response response = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Response, io.stargate.proto.QueryOuterClass.Response.Builder, io.stargate.proto.QueryOuterClass.ResponseOrBuilder>
getResponseFieldBuilder() {
if (responseBuilder_ == null) {
if (!(messageCase_ == 1)) {
message_ = io.stargate.proto.QueryOuterClass.Response.getDefaultInstance();
}
responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.stargate.proto.QueryOuterClass.Response, io.stargate.proto.QueryOuterClass.Response.Builder, io.stargate.proto.QueryOuterClass.ResponseOrBuilder>(
(io.stargate.proto.QueryOuterClass.Response) message_,
getParentForChildren(),
isClean());
message_ = null;
}
messageCase_ = 1;
onChanged();;
return responseBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_;
/**
* .google.rpc.Status status = 2;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return messageCase_ == 2;
}
/**
* .google.rpc.Status status = 2;
* @return The status.
*/
@java.lang.Override
public com.google.rpc.Status getStatus() {
if (statusBuilder_ == null) {
if (messageCase_ == 2) {
return (com.google.rpc.Status) message_;
}
return com.google.rpc.Status.getDefaultInstance();
} else {
if (messageCase_ == 2) {
return statusBuilder_.getMessage();
}
return com.google.rpc.Status.getDefaultInstance();
}
}
/**
* .google.rpc.Status status = 2;
*/
public Builder setStatus(com.google.rpc.Status value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
statusBuilder_.setMessage(value);
}
messageCase_ = 2;
return this;
}
/**
* .google.rpc.Status status = 2;
*/
public Builder setStatus(
com.google.rpc.Status.Builder builderForValue) {
if (statusBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
statusBuilder_.setMessage(builderForValue.build());
}
messageCase_ = 2;
return this;
}
/**
* .google.rpc.Status status = 2;
*/
public Builder mergeStatus(com.google.rpc.Status value) {
if (statusBuilder_ == null) {
if (messageCase_ == 2 &&
message_ != com.google.rpc.Status.getDefaultInstance()) {
message_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) message_)
.mergeFrom(value).buildPartial();
} else {
message_ = value;
}
onChanged();
} else {
if (messageCase_ == 2) {
statusBuilder_.mergeFrom(value);
}
statusBuilder_.setMessage(value);
}
messageCase_ = 2;
return this;
}
/**
* .google.rpc.Status status = 2;
*/
public Builder clearStatus() {
if (statusBuilder_ == null) {
if (messageCase_ == 2) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
if (messageCase_ == 2) {
messageCase_ = 0;
message_ = null;
}
statusBuilder_.clear();
}
return this;
}
/**
* .google.rpc.Status status = 2;
*/
public com.google.rpc.Status.Builder getStatusBuilder() {
return getStatusFieldBuilder().getBuilder();
}
/**
* .google.rpc.Status status = 2;
*/
@java.lang.Override
public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
if ((messageCase_ == 2) && (statusBuilder_ != null)) {
return statusBuilder_.getMessageOrBuilder();
} else {
if (messageCase_ == 2) {
return (com.google.rpc.Status) message_;
}
return com.google.rpc.Status.getDefaultInstance();
}
}
/**
* .google.rpc.Status status = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
if (!(messageCase_ == 2)) {
message_ = com.google.rpc.Status.getDefaultInstance();
}
statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
(com.google.rpc.Status) message_,
getParentForChildren(),
isClean());
message_ = null;
}
messageCase_ = 2;
onChanged();;
return statusBuilder_;
}
@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:stargate.StreamingResponse)
}
// @@protoc_insertion_point(class_scope:stargate.StreamingResponse)
private static final io.stargate.proto.QueryOuterClass.StreamingResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.StreamingResponse();
}
public static io.stargate.proto.QueryOuterClass.StreamingResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StreamingResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StreamingResponse(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 io.stargate.proto.QueryOuterClass.StreamingResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UnavailableOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.Unavailable)
com.google.protobuf.MessageOrBuilder {
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The enum numeric value on the wire for consistency.
*/
int getConsistencyValue();
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The consistency.
*/
io.stargate.proto.QueryOuterClass.Consistency getConsistency();
/**
*
* The number of replica acknowledgements/responses required to perform the operation (with its
* required consistency level).
*
*
* int32 required = 2;
* @return The required.
*/
int getRequired();
/**
*
* The number of replicas that were known to be alive by the coordinator node when it tried to
* execute the operation.
*
*
* int32 alive = 3;
* @return The alive.
*/
int getAlive();
}
/**
*
* Thrown when the coordinator knows there is not enough replicas alive to perform a query with the
* requested consistency level.
*
*
* Protobuf type {@code stargate.Unavailable}
*/
public static final class Unavailable extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.Unavailable)
UnavailableOrBuilder {
private static final long serialVersionUID = 0L;
// Use Unavailable.newBuilder() to construct.
private Unavailable(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Unavailable() {
consistency_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Unavailable();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Unavailable(
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();
consistency_ = rawValue;
break;
}
case 16: {
required_ = input.readInt32();
break;
}
case 24: {
alive_ = 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 io.stargate.proto.QueryOuterClass.internal_static_stargate_Unavailable_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Unavailable_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Unavailable.class, io.stargate.proto.QueryOuterClass.Unavailable.Builder.class);
}
public static final int CONSISTENCY_FIELD_NUMBER = 1;
private int consistency_;
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The enum numeric value on the wire for consistency.
*/
@java.lang.Override public int getConsistencyValue() {
return consistency_;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The consistency.
*/
@java.lang.Override public io.stargate.proto.QueryOuterClass.Consistency getConsistency() {
@SuppressWarnings("deprecation")
io.stargate.proto.QueryOuterClass.Consistency result = io.stargate.proto.QueryOuterClass.Consistency.valueOf(consistency_);
return result == null ? io.stargate.proto.QueryOuterClass.Consistency.UNRECOGNIZED : result;
}
public static final int REQUIRED_FIELD_NUMBER = 2;
private int required_;
/**
*
* The number of replica acknowledgements/responses required to perform the operation (with its
* required consistency level).
*
*
* int32 required = 2;
* @return The required.
*/
@java.lang.Override
public int getRequired() {
return required_;
}
public static final int ALIVE_FIELD_NUMBER = 3;
private int alive_;
/**
*
* The number of replicas that were known to be alive by the coordinator node when it tried to
* execute the operation.
*
*
* int32 alive = 3;
* @return The alive.
*/
@java.lang.Override
public int getAlive() {
return alive_;
}
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 (consistency_ != io.stargate.proto.QueryOuterClass.Consistency.ANY.getNumber()) {
output.writeEnum(1, consistency_);
}
if (required_ != 0) {
output.writeInt32(2, required_);
}
if (alive_ != 0) {
output.writeInt32(3, alive_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (consistency_ != io.stargate.proto.QueryOuterClass.Consistency.ANY.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, consistency_);
}
if (required_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, required_);
}
if (alive_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, alive_);
}
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 io.stargate.proto.QueryOuterClass.Unavailable)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.Unavailable other = (io.stargate.proto.QueryOuterClass.Unavailable) obj;
if (consistency_ != other.consistency_) return false;
if (getRequired()
!= other.getRequired()) return false;
if (getAlive()
!= other.getAlive()) 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) + CONSISTENCY_FIELD_NUMBER;
hash = (53 * hash) + consistency_;
hash = (37 * hash) + REQUIRED_FIELD_NUMBER;
hash = (53 * hash) + getRequired();
hash = (37 * hash) + ALIVE_FIELD_NUMBER;
hash = (53 * hash) + getAlive();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.Unavailable parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Unavailable parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Unavailable parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Unavailable parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Unavailable parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.Unavailable parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.Unavailable parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Unavailable 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 io.stargate.proto.QueryOuterClass.Unavailable parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Unavailable 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 io.stargate.proto.QueryOuterClass.Unavailable parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.Unavailable 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(io.stargate.proto.QueryOuterClass.Unavailable 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;
}
/**
*
* Thrown when the coordinator knows there is not enough replicas alive to perform a query with the
* requested consistency level.
*
*
* Protobuf type {@code stargate.Unavailable}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.Unavailable)
io.stargate.proto.QueryOuterClass.UnavailableOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Unavailable_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Unavailable_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.Unavailable.class, io.stargate.proto.QueryOuterClass.Unavailable.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.Unavailable.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();
consistency_ = 0;
required_ = 0;
alive_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_Unavailable_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Unavailable getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.Unavailable.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Unavailable build() {
io.stargate.proto.QueryOuterClass.Unavailable result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Unavailable buildPartial() {
io.stargate.proto.QueryOuterClass.Unavailable result = new io.stargate.proto.QueryOuterClass.Unavailable(this);
result.consistency_ = consistency_;
result.required_ = required_;
result.alive_ = alive_;
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 io.stargate.proto.QueryOuterClass.Unavailable) {
return mergeFrom((io.stargate.proto.QueryOuterClass.Unavailable)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.Unavailable other) {
if (other == io.stargate.proto.QueryOuterClass.Unavailable.getDefaultInstance()) return this;
if (other.consistency_ != 0) {
setConsistencyValue(other.getConsistencyValue());
}
if (other.getRequired() != 0) {
setRequired(other.getRequired());
}
if (other.getAlive() != 0) {
setAlive(other.getAlive());
}
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 {
io.stargate.proto.QueryOuterClass.Unavailable parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.Unavailable) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int consistency_ = 0;
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The enum numeric value on the wire for consistency.
*/
@java.lang.Override public int getConsistencyValue() {
return consistency_;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @param value The enum numeric value on the wire for consistency to set.
* @return This builder for chaining.
*/
public Builder setConsistencyValue(int value) {
consistency_ = value;
onChanged();
return this;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The consistency.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Consistency getConsistency() {
@SuppressWarnings("deprecation")
io.stargate.proto.QueryOuterClass.Consistency result = io.stargate.proto.QueryOuterClass.Consistency.valueOf(consistency_);
return result == null ? io.stargate.proto.QueryOuterClass.Consistency.UNRECOGNIZED : result;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @param value The consistency to set.
* @return This builder for chaining.
*/
public Builder setConsistency(io.stargate.proto.QueryOuterClass.Consistency value) {
if (value == null) {
throw new NullPointerException();
}
consistency_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return This builder for chaining.
*/
public Builder clearConsistency() {
consistency_ = 0;
onChanged();
return this;
}
private int required_ ;
/**
*
* The number of replica acknowledgements/responses required to perform the operation (with its
* required consistency level).
*
*
* int32 required = 2;
* @return The required.
*/
@java.lang.Override
public int getRequired() {
return required_;
}
/**
*
* The number of replica acknowledgements/responses required to perform the operation (with its
* required consistency level).
*
*
* int32 required = 2;
* @param value The required to set.
* @return This builder for chaining.
*/
public Builder setRequired(int value) {
required_ = value;
onChanged();
return this;
}
/**
*
* The number of replica acknowledgements/responses required to perform the operation (with its
* required consistency level).
*
*
* int32 required = 2;
* @return This builder for chaining.
*/
public Builder clearRequired() {
required_ = 0;
onChanged();
return this;
}
private int alive_ ;
/**
*
* The number of replicas that were known to be alive by the coordinator node when it tried to
* execute the operation.
*
*
* int32 alive = 3;
* @return The alive.
*/
@java.lang.Override
public int getAlive() {
return alive_;
}
/**
*
* The number of replicas that were known to be alive by the coordinator node when it tried to
* execute the operation.
*
*
* int32 alive = 3;
* @param value The alive to set.
* @return This builder for chaining.
*/
public Builder setAlive(int value) {
alive_ = value;
onChanged();
return this;
}
/**
*
* The number of replicas that were known to be alive by the coordinator node when it tried to
* execute the operation.
*
*
* int32 alive = 3;
* @return This builder for chaining.
*/
public Builder clearAlive() {
alive_ = 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:stargate.Unavailable)
}
// @@protoc_insertion_point(class_scope:stargate.Unavailable)
private static final io.stargate.proto.QueryOuterClass.Unavailable DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.Unavailable();
}
public static io.stargate.proto.QueryOuterClass.Unavailable getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Unavailable parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Unavailable(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 io.stargate.proto.QueryOuterClass.Unavailable getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WriteTimeoutOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.WriteTimeout)
com.google.protobuf.MessageOrBuilder {
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The enum numeric value on the wire for consistency.
*/
int getConsistencyValue();
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The consistency.
*/
io.stargate.proto.QueryOuterClass.Consistency getConsistency();
/**
*
* The number of replica that had acknowledged/responded to the operation before it failed.
*
*
* int32 received = 2;
* @return The received.
*/
int getReceived();
/**
*
* The minimum number of replica acknowledgements/responses that were required to fulfill the
* operation.
*
*
* int32 block_for = 3;
* @return The blockFor.
*/
int getBlockFor();
/**
*
* The type of the write for which a timeout was raised.
*
*
* string write_type = 4;
* @return The writeType.
*/
java.lang.String getWriteType();
/**
*
* The type of the write for which a timeout was raised.
*
*
* string write_type = 4;
* @return The bytes for writeType.
*/
com.google.protobuf.ByteString
getWriteTypeBytes();
}
/**
*
* A server-side timeout during a write query.
*
*
* Protobuf type {@code stargate.WriteTimeout}
*/
public static final class WriteTimeout extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.WriteTimeout)
WriteTimeoutOrBuilder {
private static final long serialVersionUID = 0L;
// Use WriteTimeout.newBuilder() to construct.
private WriteTimeout(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WriteTimeout() {
consistency_ = 0;
writeType_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WriteTimeout();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WriteTimeout(
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();
consistency_ = rawValue;
break;
}
case 16: {
received_ = input.readInt32();
break;
}
case 24: {
blockFor_ = input.readInt32();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
writeType_ = s;
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 io.stargate.proto.QueryOuterClass.internal_static_stargate_WriteTimeout_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_WriteTimeout_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.WriteTimeout.class, io.stargate.proto.QueryOuterClass.WriteTimeout.Builder.class);
}
public static final int CONSISTENCY_FIELD_NUMBER = 1;
private int consistency_;
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The enum numeric value on the wire for consistency.
*/
@java.lang.Override public int getConsistencyValue() {
return consistency_;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The consistency.
*/
@java.lang.Override public io.stargate.proto.QueryOuterClass.Consistency getConsistency() {
@SuppressWarnings("deprecation")
io.stargate.proto.QueryOuterClass.Consistency result = io.stargate.proto.QueryOuterClass.Consistency.valueOf(consistency_);
return result == null ? io.stargate.proto.QueryOuterClass.Consistency.UNRECOGNIZED : result;
}
public static final int RECEIVED_FIELD_NUMBER = 2;
private int received_;
/**
*
* The number of replica that had acknowledged/responded to the operation before it failed.
*
*
* int32 received = 2;
* @return The received.
*/
@java.lang.Override
public int getReceived() {
return received_;
}
public static final int BLOCK_FOR_FIELD_NUMBER = 3;
private int blockFor_;
/**
*
* The minimum number of replica acknowledgements/responses that were required to fulfill the
* operation.
*
*
* int32 block_for = 3;
* @return The blockFor.
*/
@java.lang.Override
public int getBlockFor() {
return blockFor_;
}
public static final int WRITE_TYPE_FIELD_NUMBER = 4;
private volatile java.lang.Object writeType_;
/**
*
* The type of the write for which a timeout was raised.
*
*
* string write_type = 4;
* @return The writeType.
*/
@java.lang.Override
public java.lang.String getWriteType() {
java.lang.Object ref = writeType_;
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();
writeType_ = s;
return s;
}
}
/**
*
* The type of the write for which a timeout was raised.
*
*
* string write_type = 4;
* @return The bytes for writeType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getWriteTypeBytes() {
java.lang.Object ref = writeType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
writeType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (consistency_ != io.stargate.proto.QueryOuterClass.Consistency.ANY.getNumber()) {
output.writeEnum(1, consistency_);
}
if (received_ != 0) {
output.writeInt32(2, received_);
}
if (blockFor_ != 0) {
output.writeInt32(3, blockFor_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, writeType_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (consistency_ != io.stargate.proto.QueryOuterClass.Consistency.ANY.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, consistency_);
}
if (received_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, received_);
}
if (blockFor_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, blockFor_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, writeType_);
}
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 io.stargate.proto.QueryOuterClass.WriteTimeout)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.WriteTimeout other = (io.stargate.proto.QueryOuterClass.WriteTimeout) obj;
if (consistency_ != other.consistency_) return false;
if (getReceived()
!= other.getReceived()) return false;
if (getBlockFor()
!= other.getBlockFor()) return false;
if (!getWriteType()
.equals(other.getWriteType())) 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) + CONSISTENCY_FIELD_NUMBER;
hash = (53 * hash) + consistency_;
hash = (37 * hash) + RECEIVED_FIELD_NUMBER;
hash = (53 * hash) + getReceived();
hash = (37 * hash) + BLOCK_FOR_FIELD_NUMBER;
hash = (53 * hash) + getBlockFor();
hash = (37 * hash) + WRITE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getWriteType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.WriteTimeout parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.WriteTimeout parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.WriteTimeout parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.WriteTimeout parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.WriteTimeout parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.WriteTimeout parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.WriteTimeout parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.WriteTimeout 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 io.stargate.proto.QueryOuterClass.WriteTimeout parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.WriteTimeout 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 io.stargate.proto.QueryOuterClass.WriteTimeout parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.WriteTimeout 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(io.stargate.proto.QueryOuterClass.WriteTimeout 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;
}
/**
*
* A server-side timeout during a write query.
*
*
* Protobuf type {@code stargate.WriteTimeout}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.WriteTimeout)
io.stargate.proto.QueryOuterClass.WriteTimeoutOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_WriteTimeout_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_WriteTimeout_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.WriteTimeout.class, io.stargate.proto.QueryOuterClass.WriteTimeout.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.WriteTimeout.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();
consistency_ = 0;
received_ = 0;
blockFor_ = 0;
writeType_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_WriteTimeout_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.WriteTimeout getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.WriteTimeout.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.WriteTimeout build() {
io.stargate.proto.QueryOuterClass.WriteTimeout result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.WriteTimeout buildPartial() {
io.stargate.proto.QueryOuterClass.WriteTimeout result = new io.stargate.proto.QueryOuterClass.WriteTimeout(this);
result.consistency_ = consistency_;
result.received_ = received_;
result.blockFor_ = blockFor_;
result.writeType_ = writeType_;
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 io.stargate.proto.QueryOuterClass.WriteTimeout) {
return mergeFrom((io.stargate.proto.QueryOuterClass.WriteTimeout)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.WriteTimeout other) {
if (other == io.stargate.proto.QueryOuterClass.WriteTimeout.getDefaultInstance()) return this;
if (other.consistency_ != 0) {
setConsistencyValue(other.getConsistencyValue());
}
if (other.getReceived() != 0) {
setReceived(other.getReceived());
}
if (other.getBlockFor() != 0) {
setBlockFor(other.getBlockFor());
}
if (!other.getWriteType().isEmpty()) {
writeType_ = other.writeType_;
onChanged();
}
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 {
io.stargate.proto.QueryOuterClass.WriteTimeout parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.WriteTimeout) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int consistency_ = 0;
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The enum numeric value on the wire for consistency.
*/
@java.lang.Override public int getConsistencyValue() {
return consistency_;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @param value The enum numeric value on the wire for consistency to set.
* @return This builder for chaining.
*/
public Builder setConsistencyValue(int value) {
consistency_ = value;
onChanged();
return this;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The consistency.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Consistency getConsistency() {
@SuppressWarnings("deprecation")
io.stargate.proto.QueryOuterClass.Consistency result = io.stargate.proto.QueryOuterClass.Consistency.valueOf(consistency_);
return result == null ? io.stargate.proto.QueryOuterClass.Consistency.UNRECOGNIZED : result;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @param value The consistency to set.
* @return This builder for chaining.
*/
public Builder setConsistency(io.stargate.proto.QueryOuterClass.Consistency value) {
if (value == null) {
throw new NullPointerException();
}
consistency_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return This builder for chaining.
*/
public Builder clearConsistency() {
consistency_ = 0;
onChanged();
return this;
}
private int received_ ;
/**
*
* The number of replica that had acknowledged/responded to the operation before it failed.
*
*
* int32 received = 2;
* @return The received.
*/
@java.lang.Override
public int getReceived() {
return received_;
}
/**
*
* The number of replica that had acknowledged/responded to the operation before it failed.
*
*
* int32 received = 2;
* @param value The received to set.
* @return This builder for chaining.
*/
public Builder setReceived(int value) {
received_ = value;
onChanged();
return this;
}
/**
*
* The number of replica that had acknowledged/responded to the operation before it failed.
*
*
* int32 received = 2;
* @return This builder for chaining.
*/
public Builder clearReceived() {
received_ = 0;
onChanged();
return this;
}
private int blockFor_ ;
/**
*
* The minimum number of replica acknowledgements/responses that were required to fulfill the
* operation.
*
*
* int32 block_for = 3;
* @return The blockFor.
*/
@java.lang.Override
public int getBlockFor() {
return blockFor_;
}
/**
*
* The minimum number of replica acknowledgements/responses that were required to fulfill the
* operation.
*
*
* int32 block_for = 3;
* @param value The blockFor to set.
* @return This builder for chaining.
*/
public Builder setBlockFor(int value) {
blockFor_ = value;
onChanged();
return this;
}
/**
*
* The minimum number of replica acknowledgements/responses that were required to fulfill the
* operation.
*
*
* int32 block_for = 3;
* @return This builder for chaining.
*/
public Builder clearBlockFor() {
blockFor_ = 0;
onChanged();
return this;
}
private java.lang.Object writeType_ = "";
/**
*
* The type of the write for which a timeout was raised.
*
*
* string write_type = 4;
* @return The writeType.
*/
public java.lang.String getWriteType() {
java.lang.Object ref = writeType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
writeType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The type of the write for which a timeout was raised.
*
*
* string write_type = 4;
* @return The bytes for writeType.
*/
public com.google.protobuf.ByteString
getWriteTypeBytes() {
java.lang.Object ref = writeType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
writeType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The type of the write for which a timeout was raised.
*
*
* string write_type = 4;
* @param value The writeType to set.
* @return This builder for chaining.
*/
public Builder setWriteType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
writeType_ = value;
onChanged();
return this;
}
/**
*
* The type of the write for which a timeout was raised.
*
*
* string write_type = 4;
* @return This builder for chaining.
*/
public Builder clearWriteType() {
writeType_ = getDefaultInstance().getWriteType();
onChanged();
return this;
}
/**
*
* The type of the write for which a timeout was raised.
*
*
* string write_type = 4;
* @param value The bytes for writeType to set.
* @return This builder for chaining.
*/
public Builder setWriteTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
writeType_ = value;
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:stargate.WriteTimeout)
}
// @@protoc_insertion_point(class_scope:stargate.WriteTimeout)
private static final io.stargate.proto.QueryOuterClass.WriteTimeout DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.WriteTimeout();
}
public static io.stargate.proto.QueryOuterClass.WriteTimeout getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WriteTimeout parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new WriteTimeout(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 io.stargate.proto.QueryOuterClass.WriteTimeout getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ReadTimeoutOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.ReadTimeout)
com.google.protobuf.MessageOrBuilder {
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The enum numeric value on the wire for consistency.
*/
int getConsistencyValue();
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The consistency.
*/
io.stargate.proto.QueryOuterClass.Consistency getConsistency();
/**
*
* The number of replica that had acknowledged/responded to the operation before it failed.
*
*
* int32 received = 2;
* @return The received.
*/
int getReceived();
/**
*
* The minimum number of replica acknowledgements/responses that were required to fulfill the
* operation.
*
*
* int32 block_for = 3;
* @return The blockFor.
*/
int getBlockFor();
/**
*
* Whether the actual data was amongst the received replica responses.
* During reads, Cassandra doesn't request data from every replica to minimize internal network
* traffic. Instead, some replicas are only asked for a checksum of the data. A read timeout may
* occur even if enough replicas have responded to fulfill the consistency level, if only checksum
* responses have been received. This field allows to detect that case.
*
*
* bool data_present = 4;
* @return The dataPresent.
*/
boolean getDataPresent();
}
/**
*
* A server-side timeout during a read query.
*
*
* Protobuf type {@code stargate.ReadTimeout}
*/
public static final class ReadTimeout extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.ReadTimeout)
ReadTimeoutOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReadTimeout.newBuilder() to construct.
private ReadTimeout(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReadTimeout() {
consistency_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ReadTimeout();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ReadTimeout(
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();
consistency_ = rawValue;
break;
}
case 16: {
received_ = input.readInt32();
break;
}
case 24: {
blockFor_ = input.readInt32();
break;
}
case 32: {
dataPresent_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_ReadTimeout_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_ReadTimeout_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.ReadTimeout.class, io.stargate.proto.QueryOuterClass.ReadTimeout.Builder.class);
}
public static final int CONSISTENCY_FIELD_NUMBER = 1;
private int consistency_;
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The enum numeric value on the wire for consistency.
*/
@java.lang.Override public int getConsistencyValue() {
return consistency_;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The consistency.
*/
@java.lang.Override public io.stargate.proto.QueryOuterClass.Consistency getConsistency() {
@SuppressWarnings("deprecation")
io.stargate.proto.QueryOuterClass.Consistency result = io.stargate.proto.QueryOuterClass.Consistency.valueOf(consistency_);
return result == null ? io.stargate.proto.QueryOuterClass.Consistency.UNRECOGNIZED : result;
}
public static final int RECEIVED_FIELD_NUMBER = 2;
private int received_;
/**
*
* The number of replica that had acknowledged/responded to the operation before it failed.
*
*
* int32 received = 2;
* @return The received.
*/
@java.lang.Override
public int getReceived() {
return received_;
}
public static final int BLOCK_FOR_FIELD_NUMBER = 3;
private int blockFor_;
/**
*
* The minimum number of replica acknowledgements/responses that were required to fulfill the
* operation.
*
*
* int32 block_for = 3;
* @return The blockFor.
*/
@java.lang.Override
public int getBlockFor() {
return blockFor_;
}
public static final int DATA_PRESENT_FIELD_NUMBER = 4;
private boolean dataPresent_;
/**
*
* Whether the actual data was amongst the received replica responses.
* During reads, Cassandra doesn't request data from every replica to minimize internal network
* traffic. Instead, some replicas are only asked for a checksum of the data. A read timeout may
* occur even if enough replicas have responded to fulfill the consistency level, if only checksum
* responses have been received. This field allows to detect that case.
*
*
* bool data_present = 4;
* @return The dataPresent.
*/
@java.lang.Override
public boolean getDataPresent() {
return dataPresent_;
}
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 (consistency_ != io.stargate.proto.QueryOuterClass.Consistency.ANY.getNumber()) {
output.writeEnum(1, consistency_);
}
if (received_ != 0) {
output.writeInt32(2, received_);
}
if (blockFor_ != 0) {
output.writeInt32(3, blockFor_);
}
if (dataPresent_ != false) {
output.writeBool(4, dataPresent_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (consistency_ != io.stargate.proto.QueryOuterClass.Consistency.ANY.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, consistency_);
}
if (received_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, received_);
}
if (blockFor_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, blockFor_);
}
if (dataPresent_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, dataPresent_);
}
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 io.stargate.proto.QueryOuterClass.ReadTimeout)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.ReadTimeout other = (io.stargate.proto.QueryOuterClass.ReadTimeout) obj;
if (consistency_ != other.consistency_) return false;
if (getReceived()
!= other.getReceived()) return false;
if (getBlockFor()
!= other.getBlockFor()) return false;
if (getDataPresent()
!= other.getDataPresent()) 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) + CONSISTENCY_FIELD_NUMBER;
hash = (53 * hash) + consistency_;
hash = (37 * hash) + RECEIVED_FIELD_NUMBER;
hash = (53 * hash) + getReceived();
hash = (37 * hash) + BLOCK_FOR_FIELD_NUMBER;
hash = (53 * hash) + getBlockFor();
hash = (37 * hash) + DATA_PRESENT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDataPresent());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.ReadTimeout parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.ReadTimeout parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.ReadTimeout parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.ReadTimeout parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.ReadTimeout parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.ReadTimeout parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.ReadTimeout parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.ReadTimeout 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 io.stargate.proto.QueryOuterClass.ReadTimeout parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.ReadTimeout 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 io.stargate.proto.QueryOuterClass.ReadTimeout parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.ReadTimeout 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(io.stargate.proto.QueryOuterClass.ReadTimeout 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;
}
/**
*
* A server-side timeout during a read query.
*
*
* Protobuf type {@code stargate.ReadTimeout}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.ReadTimeout)
io.stargate.proto.QueryOuterClass.ReadTimeoutOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_ReadTimeout_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_ReadTimeout_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.ReadTimeout.class, io.stargate.proto.QueryOuterClass.ReadTimeout.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.ReadTimeout.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();
consistency_ = 0;
received_ = 0;
blockFor_ = 0;
dataPresent_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_ReadTimeout_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ReadTimeout getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.ReadTimeout.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ReadTimeout build() {
io.stargate.proto.QueryOuterClass.ReadTimeout result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ReadTimeout buildPartial() {
io.stargate.proto.QueryOuterClass.ReadTimeout result = new io.stargate.proto.QueryOuterClass.ReadTimeout(this);
result.consistency_ = consistency_;
result.received_ = received_;
result.blockFor_ = blockFor_;
result.dataPresent_ = dataPresent_;
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 io.stargate.proto.QueryOuterClass.ReadTimeout) {
return mergeFrom((io.stargate.proto.QueryOuterClass.ReadTimeout)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.ReadTimeout other) {
if (other == io.stargate.proto.QueryOuterClass.ReadTimeout.getDefaultInstance()) return this;
if (other.consistency_ != 0) {
setConsistencyValue(other.getConsistencyValue());
}
if (other.getReceived() != 0) {
setReceived(other.getReceived());
}
if (other.getBlockFor() != 0) {
setBlockFor(other.getBlockFor());
}
if (other.getDataPresent() != false) {
setDataPresent(other.getDataPresent());
}
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 {
io.stargate.proto.QueryOuterClass.ReadTimeout parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.ReadTimeout) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int consistency_ = 0;
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The enum numeric value on the wire for consistency.
*/
@java.lang.Override public int getConsistencyValue() {
return consistency_;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @param value The enum numeric value on the wire for consistency to set.
* @return This builder for chaining.
*/
public Builder setConsistencyValue(int value) {
consistency_ = value;
onChanged();
return this;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The consistency.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Consistency getConsistency() {
@SuppressWarnings("deprecation")
io.stargate.proto.QueryOuterClass.Consistency result = io.stargate.proto.QueryOuterClass.Consistency.valueOf(consistency_);
return result == null ? io.stargate.proto.QueryOuterClass.Consistency.UNRECOGNIZED : result;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @param value The consistency to set.
* @return This builder for chaining.
*/
public Builder setConsistency(io.stargate.proto.QueryOuterClass.Consistency value) {
if (value == null) {
throw new NullPointerException();
}
consistency_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return This builder for chaining.
*/
public Builder clearConsistency() {
consistency_ = 0;
onChanged();
return this;
}
private int received_ ;
/**
*
* The number of replica that had acknowledged/responded to the operation before it failed.
*
*
* int32 received = 2;
* @return The received.
*/
@java.lang.Override
public int getReceived() {
return received_;
}
/**
*
* The number of replica that had acknowledged/responded to the operation before it failed.
*
*
* int32 received = 2;
* @param value The received to set.
* @return This builder for chaining.
*/
public Builder setReceived(int value) {
received_ = value;
onChanged();
return this;
}
/**
*
* The number of replica that had acknowledged/responded to the operation before it failed.
*
*
* int32 received = 2;
* @return This builder for chaining.
*/
public Builder clearReceived() {
received_ = 0;
onChanged();
return this;
}
private int blockFor_ ;
/**
*
* The minimum number of replica acknowledgements/responses that were required to fulfill the
* operation.
*
*
* int32 block_for = 3;
* @return The blockFor.
*/
@java.lang.Override
public int getBlockFor() {
return blockFor_;
}
/**
*
* The minimum number of replica acknowledgements/responses that were required to fulfill the
* operation.
*
*
* int32 block_for = 3;
* @param value The blockFor to set.
* @return This builder for chaining.
*/
public Builder setBlockFor(int value) {
blockFor_ = value;
onChanged();
return this;
}
/**
*
* The minimum number of replica acknowledgements/responses that were required to fulfill the
* operation.
*
*
* int32 block_for = 3;
* @return This builder for chaining.
*/
public Builder clearBlockFor() {
blockFor_ = 0;
onChanged();
return this;
}
private boolean dataPresent_ ;
/**
*
* Whether the actual data was amongst the received replica responses.
* During reads, Cassandra doesn't request data from every replica to minimize internal network
* traffic. Instead, some replicas are only asked for a checksum of the data. A read timeout may
* occur even if enough replicas have responded to fulfill the consistency level, if only checksum
* responses have been received. This field allows to detect that case.
*
*
* bool data_present = 4;
* @return The dataPresent.
*/
@java.lang.Override
public boolean getDataPresent() {
return dataPresent_;
}
/**
*
* Whether the actual data was amongst the received replica responses.
* During reads, Cassandra doesn't request data from every replica to minimize internal network
* traffic. Instead, some replicas are only asked for a checksum of the data. A read timeout may
* occur even if enough replicas have responded to fulfill the consistency level, if only checksum
* responses have been received. This field allows to detect that case.
*
*
* bool data_present = 4;
* @param value The dataPresent to set.
* @return This builder for chaining.
*/
public Builder setDataPresent(boolean value) {
dataPresent_ = value;
onChanged();
return this;
}
/**
*
* Whether the actual data was amongst the received replica responses.
* During reads, Cassandra doesn't request data from every replica to minimize internal network
* traffic. Instead, some replicas are only asked for a checksum of the data. A read timeout may
* occur even if enough replicas have responded to fulfill the consistency level, if only checksum
* responses have been received. This field allows to detect that case.
*
*
* bool data_present = 4;
* @return This builder for chaining.
*/
public Builder clearDataPresent() {
dataPresent_ = 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:stargate.ReadTimeout)
}
// @@protoc_insertion_point(class_scope:stargate.ReadTimeout)
private static final io.stargate.proto.QueryOuterClass.ReadTimeout DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.ReadTimeout();
}
public static io.stargate.proto.QueryOuterClass.ReadTimeout getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReadTimeout parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ReadTimeout(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 io.stargate.proto.QueryOuterClass.ReadTimeout getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ReadFailureOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.ReadFailure)
com.google.protobuf.MessageOrBuilder {
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The enum numeric value on the wire for consistency.
*/
int getConsistencyValue();
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The consistency.
*/
io.stargate.proto.QueryOuterClass.Consistency getConsistency();
/**
*
* The number of replica that had acknowledged/responded to the operation before it failed.
*
*
* int32 received = 2;
* @return The received.
*/
int getReceived();
/**
*
* The minimum number of replica acknowledgements/responses that were required to fulfill the
* operation.
*
*
* int32 block_for = 3;
* @return The blockFor.
*/
int getBlockFor();
/**
*
* The number of replicas that experienced a failure while executing the request.
*
*
* int32 num_failures = 4;
* @return The numFailures.
*/
int getNumFailures();
/**
*
* Whether the actual data was amongst the received replica responses.
* During reads, Cassandra doesn't request data from every replica to minimize internal network
* traffic. Instead, some replicas are only asked for a checksum of the data. A read timeout may
* occur even if enough replicas have responded to fulfill the consistency level, if only checksum
* responses have been received. This field allows to detect that case.
*
*
* bool data_present = 5;
* @return The dataPresent.
*/
boolean getDataPresent();
}
/**
*
* A non-timeout error during a read query.
* This happens when some of the replicas that were contacted by the coordinator replied with an
* error.
*
*
* Protobuf type {@code stargate.ReadFailure}
*/
public static final class ReadFailure extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.ReadFailure)
ReadFailureOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReadFailure.newBuilder() to construct.
private ReadFailure(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReadFailure() {
consistency_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ReadFailure();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ReadFailure(
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();
consistency_ = rawValue;
break;
}
case 16: {
received_ = input.readInt32();
break;
}
case 24: {
blockFor_ = input.readInt32();
break;
}
case 32: {
numFailures_ = input.readInt32();
break;
}
case 40: {
dataPresent_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_ReadFailure_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_ReadFailure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.ReadFailure.class, io.stargate.proto.QueryOuterClass.ReadFailure.Builder.class);
}
public static final int CONSISTENCY_FIELD_NUMBER = 1;
private int consistency_;
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The enum numeric value on the wire for consistency.
*/
@java.lang.Override public int getConsistencyValue() {
return consistency_;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The consistency.
*/
@java.lang.Override public io.stargate.proto.QueryOuterClass.Consistency getConsistency() {
@SuppressWarnings("deprecation")
io.stargate.proto.QueryOuterClass.Consistency result = io.stargate.proto.QueryOuterClass.Consistency.valueOf(consistency_);
return result == null ? io.stargate.proto.QueryOuterClass.Consistency.UNRECOGNIZED : result;
}
public static final int RECEIVED_FIELD_NUMBER = 2;
private int received_;
/**
*
* The number of replica that had acknowledged/responded to the operation before it failed.
*
*
* int32 received = 2;
* @return The received.
*/
@java.lang.Override
public int getReceived() {
return received_;
}
public static final int BLOCK_FOR_FIELD_NUMBER = 3;
private int blockFor_;
/**
*
* The minimum number of replica acknowledgements/responses that were required to fulfill the
* operation.
*
*
* int32 block_for = 3;
* @return The blockFor.
*/
@java.lang.Override
public int getBlockFor() {
return blockFor_;
}
public static final int NUM_FAILURES_FIELD_NUMBER = 4;
private int numFailures_;
/**
*
* The number of replicas that experienced a failure while executing the request.
*
*
* int32 num_failures = 4;
* @return The numFailures.
*/
@java.lang.Override
public int getNumFailures() {
return numFailures_;
}
public static final int DATA_PRESENT_FIELD_NUMBER = 5;
private boolean dataPresent_;
/**
*
* Whether the actual data was amongst the received replica responses.
* During reads, Cassandra doesn't request data from every replica to minimize internal network
* traffic. Instead, some replicas are only asked for a checksum of the data. A read timeout may
* occur even if enough replicas have responded to fulfill the consistency level, if only checksum
* responses have been received. This field allows to detect that case.
*
*
* bool data_present = 5;
* @return The dataPresent.
*/
@java.lang.Override
public boolean getDataPresent() {
return dataPresent_;
}
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 (consistency_ != io.stargate.proto.QueryOuterClass.Consistency.ANY.getNumber()) {
output.writeEnum(1, consistency_);
}
if (received_ != 0) {
output.writeInt32(2, received_);
}
if (blockFor_ != 0) {
output.writeInt32(3, blockFor_);
}
if (numFailures_ != 0) {
output.writeInt32(4, numFailures_);
}
if (dataPresent_ != false) {
output.writeBool(5, dataPresent_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (consistency_ != io.stargate.proto.QueryOuterClass.Consistency.ANY.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, consistency_);
}
if (received_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, received_);
}
if (blockFor_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, blockFor_);
}
if (numFailures_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, numFailures_);
}
if (dataPresent_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, dataPresent_);
}
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 io.stargate.proto.QueryOuterClass.ReadFailure)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.ReadFailure other = (io.stargate.proto.QueryOuterClass.ReadFailure) obj;
if (consistency_ != other.consistency_) return false;
if (getReceived()
!= other.getReceived()) return false;
if (getBlockFor()
!= other.getBlockFor()) return false;
if (getNumFailures()
!= other.getNumFailures()) return false;
if (getDataPresent()
!= other.getDataPresent()) 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) + CONSISTENCY_FIELD_NUMBER;
hash = (53 * hash) + consistency_;
hash = (37 * hash) + RECEIVED_FIELD_NUMBER;
hash = (53 * hash) + getReceived();
hash = (37 * hash) + BLOCK_FOR_FIELD_NUMBER;
hash = (53 * hash) + getBlockFor();
hash = (37 * hash) + NUM_FAILURES_FIELD_NUMBER;
hash = (53 * hash) + getNumFailures();
hash = (37 * hash) + DATA_PRESENT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDataPresent());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.ReadFailure parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.ReadFailure parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.ReadFailure parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.ReadFailure parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.ReadFailure parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.ReadFailure parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.ReadFailure parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.ReadFailure 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 io.stargate.proto.QueryOuterClass.ReadFailure parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.ReadFailure 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 io.stargate.proto.QueryOuterClass.ReadFailure parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.ReadFailure 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(io.stargate.proto.QueryOuterClass.ReadFailure 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;
}
/**
*
* A non-timeout error during a read query.
* This happens when some of the replicas that were contacted by the coordinator replied with an
* error.
*
*
* Protobuf type {@code stargate.ReadFailure}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.ReadFailure)
io.stargate.proto.QueryOuterClass.ReadFailureOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_ReadFailure_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_ReadFailure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.ReadFailure.class, io.stargate.proto.QueryOuterClass.ReadFailure.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.ReadFailure.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();
consistency_ = 0;
received_ = 0;
blockFor_ = 0;
numFailures_ = 0;
dataPresent_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_ReadFailure_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ReadFailure getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.ReadFailure.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ReadFailure build() {
io.stargate.proto.QueryOuterClass.ReadFailure result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.ReadFailure buildPartial() {
io.stargate.proto.QueryOuterClass.ReadFailure result = new io.stargate.proto.QueryOuterClass.ReadFailure(this);
result.consistency_ = consistency_;
result.received_ = received_;
result.blockFor_ = blockFor_;
result.numFailures_ = numFailures_;
result.dataPresent_ = dataPresent_;
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 io.stargate.proto.QueryOuterClass.ReadFailure) {
return mergeFrom((io.stargate.proto.QueryOuterClass.ReadFailure)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.ReadFailure other) {
if (other == io.stargate.proto.QueryOuterClass.ReadFailure.getDefaultInstance()) return this;
if (other.consistency_ != 0) {
setConsistencyValue(other.getConsistencyValue());
}
if (other.getReceived() != 0) {
setReceived(other.getReceived());
}
if (other.getBlockFor() != 0) {
setBlockFor(other.getBlockFor());
}
if (other.getNumFailures() != 0) {
setNumFailures(other.getNumFailures());
}
if (other.getDataPresent() != false) {
setDataPresent(other.getDataPresent());
}
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 {
io.stargate.proto.QueryOuterClass.ReadFailure parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.ReadFailure) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int consistency_ = 0;
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The enum numeric value on the wire for consistency.
*/
@java.lang.Override public int getConsistencyValue() {
return consistency_;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @param value The enum numeric value on the wire for consistency to set.
* @return This builder for chaining.
*/
public Builder setConsistencyValue(int value) {
consistency_ = value;
onChanged();
return this;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The consistency.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Consistency getConsistency() {
@SuppressWarnings("deprecation")
io.stargate.proto.QueryOuterClass.Consistency result = io.stargate.proto.QueryOuterClass.Consistency.valueOf(consistency_);
return result == null ? io.stargate.proto.QueryOuterClass.Consistency.UNRECOGNIZED : result;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @param value The consistency to set.
* @return This builder for chaining.
*/
public Builder setConsistency(io.stargate.proto.QueryOuterClass.Consistency value) {
if (value == null) {
throw new NullPointerException();
}
consistency_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return This builder for chaining.
*/
public Builder clearConsistency() {
consistency_ = 0;
onChanged();
return this;
}
private int received_ ;
/**
*
* The number of replica that had acknowledged/responded to the operation before it failed.
*
*
* int32 received = 2;
* @return The received.
*/
@java.lang.Override
public int getReceived() {
return received_;
}
/**
*
* The number of replica that had acknowledged/responded to the operation before it failed.
*
*
* int32 received = 2;
* @param value The received to set.
* @return This builder for chaining.
*/
public Builder setReceived(int value) {
received_ = value;
onChanged();
return this;
}
/**
*
* The number of replica that had acknowledged/responded to the operation before it failed.
*
*
* int32 received = 2;
* @return This builder for chaining.
*/
public Builder clearReceived() {
received_ = 0;
onChanged();
return this;
}
private int blockFor_ ;
/**
*
* The minimum number of replica acknowledgements/responses that were required to fulfill the
* operation.
*
*
* int32 block_for = 3;
* @return The blockFor.
*/
@java.lang.Override
public int getBlockFor() {
return blockFor_;
}
/**
*
* The minimum number of replica acknowledgements/responses that were required to fulfill the
* operation.
*
*
* int32 block_for = 3;
* @param value The blockFor to set.
* @return This builder for chaining.
*/
public Builder setBlockFor(int value) {
blockFor_ = value;
onChanged();
return this;
}
/**
*
* The minimum number of replica acknowledgements/responses that were required to fulfill the
* operation.
*
*
* int32 block_for = 3;
* @return This builder for chaining.
*/
public Builder clearBlockFor() {
blockFor_ = 0;
onChanged();
return this;
}
private int numFailures_ ;
/**
*
* The number of replicas that experienced a failure while executing the request.
*
*
* int32 num_failures = 4;
* @return The numFailures.
*/
@java.lang.Override
public int getNumFailures() {
return numFailures_;
}
/**
*
* The number of replicas that experienced a failure while executing the request.
*
*
* int32 num_failures = 4;
* @param value The numFailures to set.
* @return This builder for chaining.
*/
public Builder setNumFailures(int value) {
numFailures_ = value;
onChanged();
return this;
}
/**
*
* The number of replicas that experienced a failure while executing the request.
*
*
* int32 num_failures = 4;
* @return This builder for chaining.
*/
public Builder clearNumFailures() {
numFailures_ = 0;
onChanged();
return this;
}
private boolean dataPresent_ ;
/**
*
* Whether the actual data was amongst the received replica responses.
* During reads, Cassandra doesn't request data from every replica to minimize internal network
* traffic. Instead, some replicas are only asked for a checksum of the data. A read timeout may
* occur even if enough replicas have responded to fulfill the consistency level, if only checksum
* responses have been received. This field allows to detect that case.
*
*
* bool data_present = 5;
* @return The dataPresent.
*/
@java.lang.Override
public boolean getDataPresent() {
return dataPresent_;
}
/**
*
* Whether the actual data was amongst the received replica responses.
* During reads, Cassandra doesn't request data from every replica to minimize internal network
* traffic. Instead, some replicas are only asked for a checksum of the data. A read timeout may
* occur even if enough replicas have responded to fulfill the consistency level, if only checksum
* responses have been received. This field allows to detect that case.
*
*
* bool data_present = 5;
* @param value The dataPresent to set.
* @return This builder for chaining.
*/
public Builder setDataPresent(boolean value) {
dataPresent_ = value;
onChanged();
return this;
}
/**
*
* Whether the actual data was amongst the received replica responses.
* During reads, Cassandra doesn't request data from every replica to minimize internal network
* traffic. Instead, some replicas are only asked for a checksum of the data. A read timeout may
* occur even if enough replicas have responded to fulfill the consistency level, if only checksum
* responses have been received. This field allows to detect that case.
*
*
* bool data_present = 5;
* @return This builder for chaining.
*/
public Builder clearDataPresent() {
dataPresent_ = 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:stargate.ReadFailure)
}
// @@protoc_insertion_point(class_scope:stargate.ReadFailure)
private static final io.stargate.proto.QueryOuterClass.ReadFailure DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.ReadFailure();
}
public static io.stargate.proto.QueryOuterClass.ReadFailure getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReadFailure parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ReadFailure(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 io.stargate.proto.QueryOuterClass.ReadFailure getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FunctionFailureOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.FunctionFailure)
com.google.protobuf.MessageOrBuilder {
/**
*
* The keyspace containing the function.
*
*
* string keyspace = 1;
* @return The keyspace.
*/
java.lang.String getKeyspace();
/**
*
* The keyspace containing the function.
*
*
* string keyspace = 1;
* @return The bytes for keyspace.
*/
com.google.protobuf.ByteString
getKeyspaceBytes();
/**
*
* The name of the function.
*
*
* string function = 2;
* @return The function.
*/
java.lang.String getFunction();
/**
*
* The name of the function.
*
*
* string function = 2;
* @return The bytes for function.
*/
com.google.protobuf.ByteString
getFunctionBytes();
/**
*
* The CQL types of the arguments of the function.
*
*
* repeated string arg_types = 3;
* @return A list containing the argTypes.
*/
java.util.List
getArgTypesList();
/**
*
* The CQL types of the arguments of the function.
*
*
* repeated string arg_types = 3;
* @return The count of argTypes.
*/
int getArgTypesCount();
/**
*
* The CQL types of the arguments of the function.
*
*
* repeated string arg_types = 3;
* @param index The index of the element to return.
* @return The argTypes at the given index.
*/
java.lang.String getArgTypes(int index);
/**
*
* The CQL types of the arguments of the function.
*
*
* repeated string arg_types = 3;
* @param index The index of the value to return.
* @return The bytes of the argTypes at the given index.
*/
com.google.protobuf.ByteString
getArgTypesBytes(int index);
}
/**
*
* An error during the execution of a CQL function.
*
*
* Protobuf type {@code stargate.FunctionFailure}
*/
public static final class FunctionFailure extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.FunctionFailure)
FunctionFailureOrBuilder {
private static final long serialVersionUID = 0L;
// Use FunctionFailure.newBuilder() to construct.
private FunctionFailure(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FunctionFailure() {
keyspace_ = "";
function_ = "";
argTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FunctionFailure();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FunctionFailure(
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: {
java.lang.String s = input.readStringRequireUtf8();
keyspace_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
function_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
argTypes_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
argTypes_.add(s);
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)) {
argTypes_ = argTypes_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_FunctionFailure_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_FunctionFailure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.FunctionFailure.class, io.stargate.proto.QueryOuterClass.FunctionFailure.Builder.class);
}
public static final int KEYSPACE_FIELD_NUMBER = 1;
private volatile java.lang.Object keyspace_;
/**
*
* The keyspace containing the function.
*
*
* string keyspace = 1;
* @return The keyspace.
*/
@java.lang.Override
public java.lang.String getKeyspace() {
java.lang.Object ref = keyspace_;
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();
keyspace_ = s;
return s;
}
}
/**
*
* The keyspace containing the function.
*
*
* string keyspace = 1;
* @return The bytes for keyspace.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyspaceBytes() {
java.lang.Object ref = keyspace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyspace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FUNCTION_FIELD_NUMBER = 2;
private volatile java.lang.Object function_;
/**
*
* The name of the function.
*
*
* string function = 2;
* @return The function.
*/
@java.lang.Override
public java.lang.String getFunction() {
java.lang.Object ref = function_;
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();
function_ = s;
return s;
}
}
/**
*
* The name of the function.
*
*
* string function = 2;
* @return The bytes for function.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFunctionBytes() {
java.lang.Object ref = function_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
function_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ARG_TYPES_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList argTypes_;
/**
*
* The CQL types of the arguments of the function.
*
*
* repeated string arg_types = 3;
* @return A list containing the argTypes.
*/
public com.google.protobuf.ProtocolStringList
getArgTypesList() {
return argTypes_;
}
/**
*
* The CQL types of the arguments of the function.
*
*
* repeated string arg_types = 3;
* @return The count of argTypes.
*/
public int getArgTypesCount() {
return argTypes_.size();
}
/**
*
* The CQL types of the arguments of the function.
*
*
* repeated string arg_types = 3;
* @param index The index of the element to return.
* @return The argTypes at the given index.
*/
public java.lang.String getArgTypes(int index) {
return argTypes_.get(index);
}
/**
*
* The CQL types of the arguments of the function.
*
*
* repeated string arg_types = 3;
* @param index The index of the value to return.
* @return The bytes of the argTypes at the given index.
*/
public com.google.protobuf.ByteString
getArgTypesBytes(int index) {
return argTypes_.getByteString(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 {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyspace_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyspace_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(function_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, function_);
}
for (int i = 0; i < argTypes_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, argTypes_.getRaw(i));
}
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(keyspace_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyspace_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(function_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, function_);
}
{
int dataSize = 0;
for (int i = 0; i < argTypes_.size(); i++) {
dataSize += computeStringSizeNoTag(argTypes_.getRaw(i));
}
size += dataSize;
size += 1 * getArgTypesList().size();
}
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 io.stargate.proto.QueryOuterClass.FunctionFailure)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.FunctionFailure other = (io.stargate.proto.QueryOuterClass.FunctionFailure) obj;
if (!getKeyspace()
.equals(other.getKeyspace())) return false;
if (!getFunction()
.equals(other.getFunction())) return false;
if (!getArgTypesList()
.equals(other.getArgTypesList())) 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) + KEYSPACE_FIELD_NUMBER;
hash = (53 * hash) + getKeyspace().hashCode();
hash = (37 * hash) + FUNCTION_FIELD_NUMBER;
hash = (53 * hash) + getFunction().hashCode();
if (getArgTypesCount() > 0) {
hash = (37 * hash) + ARG_TYPES_FIELD_NUMBER;
hash = (53 * hash) + getArgTypesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.FunctionFailure parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.FunctionFailure parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.FunctionFailure parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.FunctionFailure parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.FunctionFailure parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.FunctionFailure parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.FunctionFailure parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.FunctionFailure 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 io.stargate.proto.QueryOuterClass.FunctionFailure parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.FunctionFailure 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 io.stargate.proto.QueryOuterClass.FunctionFailure parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.FunctionFailure 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(io.stargate.proto.QueryOuterClass.FunctionFailure 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;
}
/**
*
* An error during the execution of a CQL function.
*
*
* Protobuf type {@code stargate.FunctionFailure}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.FunctionFailure)
io.stargate.proto.QueryOuterClass.FunctionFailureOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_FunctionFailure_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_FunctionFailure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.FunctionFailure.class, io.stargate.proto.QueryOuterClass.FunctionFailure.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.FunctionFailure.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();
keyspace_ = "";
function_ = "";
argTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_FunctionFailure_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.FunctionFailure getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.FunctionFailure.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.FunctionFailure build() {
io.stargate.proto.QueryOuterClass.FunctionFailure result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.FunctionFailure buildPartial() {
io.stargate.proto.QueryOuterClass.FunctionFailure result = new io.stargate.proto.QueryOuterClass.FunctionFailure(this);
int from_bitField0_ = bitField0_;
result.keyspace_ = keyspace_;
result.function_ = function_;
if (((bitField0_ & 0x00000001) != 0)) {
argTypes_ = argTypes_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.argTypes_ = argTypes_;
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 io.stargate.proto.QueryOuterClass.FunctionFailure) {
return mergeFrom((io.stargate.proto.QueryOuterClass.FunctionFailure)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.FunctionFailure other) {
if (other == io.stargate.proto.QueryOuterClass.FunctionFailure.getDefaultInstance()) return this;
if (!other.getKeyspace().isEmpty()) {
keyspace_ = other.keyspace_;
onChanged();
}
if (!other.getFunction().isEmpty()) {
function_ = other.function_;
onChanged();
}
if (!other.argTypes_.isEmpty()) {
if (argTypes_.isEmpty()) {
argTypes_ = other.argTypes_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureArgTypesIsMutable();
argTypes_.addAll(other.argTypes_);
}
onChanged();
}
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 {
io.stargate.proto.QueryOuterClass.FunctionFailure parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.FunctionFailure) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object keyspace_ = "";
/**
*
* The keyspace containing the function.
*
*
* string keyspace = 1;
* @return The keyspace.
*/
public java.lang.String getKeyspace() {
java.lang.Object ref = keyspace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
keyspace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The keyspace containing the function.
*
*
* string keyspace = 1;
* @return The bytes for keyspace.
*/
public com.google.protobuf.ByteString
getKeyspaceBytes() {
java.lang.Object ref = keyspace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyspace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The keyspace containing the function.
*
*
* string keyspace = 1;
* @param value The keyspace to set.
* @return This builder for chaining.
*/
public Builder setKeyspace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
keyspace_ = value;
onChanged();
return this;
}
/**
*
* The keyspace containing the function.
*
*
* string keyspace = 1;
* @return This builder for chaining.
*/
public Builder clearKeyspace() {
keyspace_ = getDefaultInstance().getKeyspace();
onChanged();
return this;
}
/**
*
* The keyspace containing the function.
*
*
* string keyspace = 1;
* @param value The bytes for keyspace to set.
* @return This builder for chaining.
*/
public Builder setKeyspaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
keyspace_ = value;
onChanged();
return this;
}
private java.lang.Object function_ = "";
/**
*
* The name of the function.
*
*
* string function = 2;
* @return The function.
*/
public java.lang.String getFunction() {
java.lang.Object ref = function_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
function_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The name of the function.
*
*
* string function = 2;
* @return The bytes for function.
*/
public com.google.protobuf.ByteString
getFunctionBytes() {
java.lang.Object ref = function_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
function_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of the function.
*
*
* string function = 2;
* @param value The function to set.
* @return This builder for chaining.
*/
public Builder setFunction(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
function_ = value;
onChanged();
return this;
}
/**
*
* The name of the function.
*
*
* string function = 2;
* @return This builder for chaining.
*/
public Builder clearFunction() {
function_ = getDefaultInstance().getFunction();
onChanged();
return this;
}
/**
*
* The name of the function.
*
*
* string function = 2;
* @param value The bytes for function to set.
* @return This builder for chaining.
*/
public Builder setFunctionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
function_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList argTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureArgTypesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
argTypes_ = new com.google.protobuf.LazyStringArrayList(argTypes_);
bitField0_ |= 0x00000001;
}
}
/**
*
* The CQL types of the arguments of the function.
*
*
* repeated string arg_types = 3;
* @return A list containing the argTypes.
*/
public com.google.protobuf.ProtocolStringList
getArgTypesList() {
return argTypes_.getUnmodifiableView();
}
/**
*
* The CQL types of the arguments of the function.
*
*
* repeated string arg_types = 3;
* @return The count of argTypes.
*/
public int getArgTypesCount() {
return argTypes_.size();
}
/**
*
* The CQL types of the arguments of the function.
*
*
* repeated string arg_types = 3;
* @param index The index of the element to return.
* @return The argTypes at the given index.
*/
public java.lang.String getArgTypes(int index) {
return argTypes_.get(index);
}
/**
*
* The CQL types of the arguments of the function.
*
*
* repeated string arg_types = 3;
* @param index The index of the value to return.
* @return The bytes of the argTypes at the given index.
*/
public com.google.protobuf.ByteString
getArgTypesBytes(int index) {
return argTypes_.getByteString(index);
}
/**
*
* The CQL types of the arguments of the function.
*
*
* repeated string arg_types = 3;
* @param index The index to set the value at.
* @param value The argTypes to set.
* @return This builder for chaining.
*/
public Builder setArgTypes(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureArgTypesIsMutable();
argTypes_.set(index, value);
onChanged();
return this;
}
/**
*
* The CQL types of the arguments of the function.
*
*
* repeated string arg_types = 3;
* @param value The argTypes to add.
* @return This builder for chaining.
*/
public Builder addArgTypes(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureArgTypesIsMutable();
argTypes_.add(value);
onChanged();
return this;
}
/**
*
* The CQL types of the arguments of the function.
*
*
* repeated string arg_types = 3;
* @param values The argTypes to add.
* @return This builder for chaining.
*/
public Builder addAllArgTypes(
java.lang.Iterable values) {
ensureArgTypesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, argTypes_);
onChanged();
return this;
}
/**
*
* The CQL types of the arguments of the function.
*
*
* repeated string arg_types = 3;
* @return This builder for chaining.
*/
public Builder clearArgTypes() {
argTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The CQL types of the arguments of the function.
*
*
* repeated string arg_types = 3;
* @param value The bytes of the argTypes to add.
* @return This builder for chaining.
*/
public Builder addArgTypesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureArgTypesIsMutable();
argTypes_.add(value);
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:stargate.FunctionFailure)
}
// @@protoc_insertion_point(class_scope:stargate.FunctionFailure)
private static final io.stargate.proto.QueryOuterClass.FunctionFailure DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.FunctionFailure();
}
public static io.stargate.proto.QueryOuterClass.FunctionFailure getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FunctionFailure parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FunctionFailure(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 io.stargate.proto.QueryOuterClass.FunctionFailure getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WriteFailureOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.WriteFailure)
com.google.protobuf.MessageOrBuilder {
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The enum numeric value on the wire for consistency.
*/
int getConsistencyValue();
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The consistency.
*/
io.stargate.proto.QueryOuterClass.Consistency getConsistency();
/**
*
* The number of replica that had acknowledged/responded to the operation before it failed.
*
*
* int32 received = 2;
* @return The received.
*/
int getReceived();
/**
*
* The minimum number of replica acknowledgements/responses that were required to fulfill the
* operation.
*
*
* int32 block_for = 3;
* @return The blockFor.
*/
int getBlockFor();
/**
*
* The number of replicas that experienced a failure while executing the request.
*
*
* int32 num_failures = 4;
* @return The numFailures.
*/
int getNumFailures();
/**
*
* The type of the write for which an error was raised.
*
*
* string write_type = 5;
* @return The writeType.
*/
java.lang.String getWriteType();
/**
*
* The type of the write for which an error was raised.
*
*
* string write_type = 5;
* @return The bytes for writeType.
*/
com.google.protobuf.ByteString
getWriteTypeBytes();
}
/**
*
* A non-timeout error during a write query.
* This happens when some of the replicas that were contacted by the coordinator replied with an
* error.
*
*
* Protobuf type {@code stargate.WriteFailure}
*/
public static final class WriteFailure extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.WriteFailure)
WriteFailureOrBuilder {
private static final long serialVersionUID = 0L;
// Use WriteFailure.newBuilder() to construct.
private WriteFailure(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WriteFailure() {
consistency_ = 0;
writeType_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WriteFailure();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WriteFailure(
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();
consistency_ = rawValue;
break;
}
case 16: {
received_ = input.readInt32();
break;
}
case 24: {
blockFor_ = input.readInt32();
break;
}
case 32: {
numFailures_ = input.readInt32();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
writeType_ = s;
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 io.stargate.proto.QueryOuterClass.internal_static_stargate_WriteFailure_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_WriteFailure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.WriteFailure.class, io.stargate.proto.QueryOuterClass.WriteFailure.Builder.class);
}
public static final int CONSISTENCY_FIELD_NUMBER = 1;
private int consistency_;
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The enum numeric value on the wire for consistency.
*/
@java.lang.Override public int getConsistencyValue() {
return consistency_;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The consistency.
*/
@java.lang.Override public io.stargate.proto.QueryOuterClass.Consistency getConsistency() {
@SuppressWarnings("deprecation")
io.stargate.proto.QueryOuterClass.Consistency result = io.stargate.proto.QueryOuterClass.Consistency.valueOf(consistency_);
return result == null ? io.stargate.proto.QueryOuterClass.Consistency.UNRECOGNIZED : result;
}
public static final int RECEIVED_FIELD_NUMBER = 2;
private int received_;
/**
*
* The number of replica that had acknowledged/responded to the operation before it failed.
*
*
* int32 received = 2;
* @return The received.
*/
@java.lang.Override
public int getReceived() {
return received_;
}
public static final int BLOCK_FOR_FIELD_NUMBER = 3;
private int blockFor_;
/**
*
* The minimum number of replica acknowledgements/responses that were required to fulfill the
* operation.
*
*
* int32 block_for = 3;
* @return The blockFor.
*/
@java.lang.Override
public int getBlockFor() {
return blockFor_;
}
public static final int NUM_FAILURES_FIELD_NUMBER = 4;
private int numFailures_;
/**
*
* The number of replicas that experienced a failure while executing the request.
*
*
* int32 num_failures = 4;
* @return The numFailures.
*/
@java.lang.Override
public int getNumFailures() {
return numFailures_;
}
public static final int WRITE_TYPE_FIELD_NUMBER = 5;
private volatile java.lang.Object writeType_;
/**
*
* The type of the write for which an error was raised.
*
*
* string write_type = 5;
* @return The writeType.
*/
@java.lang.Override
public java.lang.String getWriteType() {
java.lang.Object ref = writeType_;
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();
writeType_ = s;
return s;
}
}
/**
*
* The type of the write for which an error was raised.
*
*
* string write_type = 5;
* @return The bytes for writeType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getWriteTypeBytes() {
java.lang.Object ref = writeType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
writeType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (consistency_ != io.stargate.proto.QueryOuterClass.Consistency.ANY.getNumber()) {
output.writeEnum(1, consistency_);
}
if (received_ != 0) {
output.writeInt32(2, received_);
}
if (blockFor_ != 0) {
output.writeInt32(3, blockFor_);
}
if (numFailures_ != 0) {
output.writeInt32(4, numFailures_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, writeType_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (consistency_ != io.stargate.proto.QueryOuterClass.Consistency.ANY.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, consistency_);
}
if (received_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, received_);
}
if (blockFor_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, blockFor_);
}
if (numFailures_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, numFailures_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, writeType_);
}
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 io.stargate.proto.QueryOuterClass.WriteFailure)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.WriteFailure other = (io.stargate.proto.QueryOuterClass.WriteFailure) obj;
if (consistency_ != other.consistency_) return false;
if (getReceived()
!= other.getReceived()) return false;
if (getBlockFor()
!= other.getBlockFor()) return false;
if (getNumFailures()
!= other.getNumFailures()) return false;
if (!getWriteType()
.equals(other.getWriteType())) 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) + CONSISTENCY_FIELD_NUMBER;
hash = (53 * hash) + consistency_;
hash = (37 * hash) + RECEIVED_FIELD_NUMBER;
hash = (53 * hash) + getReceived();
hash = (37 * hash) + BLOCK_FOR_FIELD_NUMBER;
hash = (53 * hash) + getBlockFor();
hash = (37 * hash) + NUM_FAILURES_FIELD_NUMBER;
hash = (53 * hash) + getNumFailures();
hash = (37 * hash) + WRITE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getWriteType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.WriteFailure parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.WriteFailure parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.WriteFailure parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.WriteFailure parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.WriteFailure parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.WriteFailure parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.WriteFailure parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.WriteFailure 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 io.stargate.proto.QueryOuterClass.WriteFailure parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.WriteFailure 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 io.stargate.proto.QueryOuterClass.WriteFailure parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.WriteFailure 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(io.stargate.proto.QueryOuterClass.WriteFailure 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;
}
/**
*
* A non-timeout error during a write query.
* This happens when some of the replicas that were contacted by the coordinator replied with an
* error.
*
*
* Protobuf type {@code stargate.WriteFailure}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.WriteFailure)
io.stargate.proto.QueryOuterClass.WriteFailureOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_WriteFailure_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_WriteFailure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.WriteFailure.class, io.stargate.proto.QueryOuterClass.WriteFailure.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.WriteFailure.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();
consistency_ = 0;
received_ = 0;
blockFor_ = 0;
numFailures_ = 0;
writeType_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_WriteFailure_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.WriteFailure getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.WriteFailure.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.WriteFailure build() {
io.stargate.proto.QueryOuterClass.WriteFailure result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.WriteFailure buildPartial() {
io.stargate.proto.QueryOuterClass.WriteFailure result = new io.stargate.proto.QueryOuterClass.WriteFailure(this);
result.consistency_ = consistency_;
result.received_ = received_;
result.blockFor_ = blockFor_;
result.numFailures_ = numFailures_;
result.writeType_ = writeType_;
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 io.stargate.proto.QueryOuterClass.WriteFailure) {
return mergeFrom((io.stargate.proto.QueryOuterClass.WriteFailure)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.WriteFailure other) {
if (other == io.stargate.proto.QueryOuterClass.WriteFailure.getDefaultInstance()) return this;
if (other.consistency_ != 0) {
setConsistencyValue(other.getConsistencyValue());
}
if (other.getReceived() != 0) {
setReceived(other.getReceived());
}
if (other.getBlockFor() != 0) {
setBlockFor(other.getBlockFor());
}
if (other.getNumFailures() != 0) {
setNumFailures(other.getNumFailures());
}
if (!other.getWriteType().isEmpty()) {
writeType_ = other.writeType_;
onChanged();
}
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 {
io.stargate.proto.QueryOuterClass.WriteFailure parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.WriteFailure) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int consistency_ = 0;
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The enum numeric value on the wire for consistency.
*/
@java.lang.Override public int getConsistencyValue() {
return consistency_;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @param value The enum numeric value on the wire for consistency to set.
* @return This builder for chaining.
*/
public Builder setConsistencyValue(int value) {
consistency_ = value;
onChanged();
return this;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return The consistency.
*/
@java.lang.Override
public io.stargate.proto.QueryOuterClass.Consistency getConsistency() {
@SuppressWarnings("deprecation")
io.stargate.proto.QueryOuterClass.Consistency result = io.stargate.proto.QueryOuterClass.Consistency.valueOf(consistency_);
return result == null ? io.stargate.proto.QueryOuterClass.Consistency.UNRECOGNIZED : result;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @param value The consistency to set.
* @return This builder for chaining.
*/
public Builder setConsistency(io.stargate.proto.QueryOuterClass.Consistency value) {
if (value == null) {
throw new NullPointerException();
}
consistency_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The consistency level of the operation that failed.
*
*
* .stargate.Consistency consistency = 1;
* @return This builder for chaining.
*/
public Builder clearConsistency() {
consistency_ = 0;
onChanged();
return this;
}
private int received_ ;
/**
*
* The number of replica that had acknowledged/responded to the operation before it failed.
*
*
* int32 received = 2;
* @return The received.
*/
@java.lang.Override
public int getReceived() {
return received_;
}
/**
*
* The number of replica that had acknowledged/responded to the operation before it failed.
*
*
* int32 received = 2;
* @param value The received to set.
* @return This builder for chaining.
*/
public Builder setReceived(int value) {
received_ = value;
onChanged();
return this;
}
/**
*
* The number of replica that had acknowledged/responded to the operation before it failed.
*
*
* int32 received = 2;
* @return This builder for chaining.
*/
public Builder clearReceived() {
received_ = 0;
onChanged();
return this;
}
private int blockFor_ ;
/**
*
* The minimum number of replica acknowledgements/responses that were required to fulfill the
* operation.
*
*
* int32 block_for = 3;
* @return The blockFor.
*/
@java.lang.Override
public int getBlockFor() {
return blockFor_;
}
/**
*
* The minimum number of replica acknowledgements/responses that were required to fulfill the
* operation.
*
*
* int32 block_for = 3;
* @param value The blockFor to set.
* @return This builder for chaining.
*/
public Builder setBlockFor(int value) {
blockFor_ = value;
onChanged();
return this;
}
/**
*
* The minimum number of replica acknowledgements/responses that were required to fulfill the
* operation.
*
*
* int32 block_for = 3;
* @return This builder for chaining.
*/
public Builder clearBlockFor() {
blockFor_ = 0;
onChanged();
return this;
}
private int numFailures_ ;
/**
*
* The number of replicas that experienced a failure while executing the request.
*
*
* int32 num_failures = 4;
* @return The numFailures.
*/
@java.lang.Override
public int getNumFailures() {
return numFailures_;
}
/**
*
* The number of replicas that experienced a failure while executing the request.
*
*
* int32 num_failures = 4;
* @param value The numFailures to set.
* @return This builder for chaining.
*/
public Builder setNumFailures(int value) {
numFailures_ = value;
onChanged();
return this;
}
/**
*
* The number of replicas that experienced a failure while executing the request.
*
*
* int32 num_failures = 4;
* @return This builder for chaining.
*/
public Builder clearNumFailures() {
numFailures_ = 0;
onChanged();
return this;
}
private java.lang.Object writeType_ = "";
/**
*
* The type of the write for which an error was raised.
*
*
* string write_type = 5;
* @return The writeType.
*/
public java.lang.String getWriteType() {
java.lang.Object ref = writeType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
writeType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The type of the write for which an error was raised.
*
*
* string write_type = 5;
* @return The bytes for writeType.
*/
public com.google.protobuf.ByteString
getWriteTypeBytes() {
java.lang.Object ref = writeType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
writeType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The type of the write for which an error was raised.
*
*
* string write_type = 5;
* @param value The writeType to set.
* @return This builder for chaining.
*/
public Builder setWriteType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
writeType_ = value;
onChanged();
return this;
}
/**
*
* The type of the write for which an error was raised.
*
*
* string write_type = 5;
* @return This builder for chaining.
*/
public Builder clearWriteType() {
writeType_ = getDefaultInstance().getWriteType();
onChanged();
return this;
}
/**
*
* The type of the write for which an error was raised.
*
*
* string write_type = 5;
* @param value The bytes for writeType to set.
* @return This builder for chaining.
*/
public Builder setWriteTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
writeType_ = value;
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:stargate.WriteFailure)
}
// @@protoc_insertion_point(class_scope:stargate.WriteFailure)
private static final io.stargate.proto.QueryOuterClass.WriteFailure DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.WriteFailure();
}
public static io.stargate.proto.QueryOuterClass.WriteFailure getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WriteFailure parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new WriteFailure(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 io.stargate.proto.QueryOuterClass.WriteFailure getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AlreadyExistsOrBuilder extends
// @@protoc_insertion_point(interface_extends:stargate.AlreadyExists)
com.google.protobuf.MessageOrBuilder {
/**
* string keyspace = 1;
* @return The keyspace.
*/
java.lang.String getKeyspace();
/**
* string keyspace = 1;
* @return The bytes for keyspace.
*/
com.google.protobuf.ByteString
getKeyspaceBytes();
/**
* string table = 2;
* @return The table.
*/
java.lang.String getTable();
/**
* string table = 2;
* @return The bytes for table.
*/
com.google.protobuf.ByteString
getTableBytes();
}
/**
*
* Thrown when a query attempts to create a keyspace or table that already exists.
*
*
* Protobuf type {@code stargate.AlreadyExists}
*/
public static final class AlreadyExists extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:stargate.AlreadyExists)
AlreadyExistsOrBuilder {
private static final long serialVersionUID = 0L;
// Use AlreadyExists.newBuilder() to construct.
private AlreadyExists(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AlreadyExists() {
keyspace_ = "";
table_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AlreadyExists();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AlreadyExists(
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();
keyspace_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
table_ = s;
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 io.stargate.proto.QueryOuterClass.internal_static_stargate_AlreadyExists_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_AlreadyExists_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.AlreadyExists.class, io.stargate.proto.QueryOuterClass.AlreadyExists.Builder.class);
}
public static final int KEYSPACE_FIELD_NUMBER = 1;
private volatile java.lang.Object keyspace_;
/**
* string keyspace = 1;
* @return The keyspace.
*/
@java.lang.Override
public java.lang.String getKeyspace() {
java.lang.Object ref = keyspace_;
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();
keyspace_ = s;
return s;
}
}
/**
* string keyspace = 1;
* @return The bytes for keyspace.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyspaceBytes() {
java.lang.Object ref = keyspace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyspace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TABLE_FIELD_NUMBER = 2;
private volatile java.lang.Object table_;
/**
* string table = 2;
* @return The table.
*/
@java.lang.Override
public java.lang.String getTable() {
java.lang.Object ref = table_;
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();
table_ = s;
return s;
}
}
/**
* string table = 2;
* @return The bytes for table.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTableBytes() {
java.lang.Object ref = table_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
table_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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(keyspace_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyspace_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, table_);
}
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(keyspace_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyspace_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, table_);
}
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 io.stargate.proto.QueryOuterClass.AlreadyExists)) {
return super.equals(obj);
}
io.stargate.proto.QueryOuterClass.AlreadyExists other = (io.stargate.proto.QueryOuterClass.AlreadyExists) obj;
if (!getKeyspace()
.equals(other.getKeyspace())) return false;
if (!getTable()
.equals(other.getTable())) 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) + KEYSPACE_FIELD_NUMBER;
hash = (53 * hash) + getKeyspace().hashCode();
hash = (37 * hash) + TABLE_FIELD_NUMBER;
hash = (53 * hash) + getTable().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stargate.proto.QueryOuterClass.AlreadyExists parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.AlreadyExists parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.AlreadyExists parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.AlreadyExists parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.AlreadyExists parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stargate.proto.QueryOuterClass.AlreadyExists parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stargate.proto.QueryOuterClass.AlreadyExists parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.AlreadyExists 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 io.stargate.proto.QueryOuterClass.AlreadyExists parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.AlreadyExists 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 io.stargate.proto.QueryOuterClass.AlreadyExists parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.stargate.proto.QueryOuterClass.AlreadyExists 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(io.stargate.proto.QueryOuterClass.AlreadyExists 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;
}
/**
*
* Thrown when a query attempts to create a keyspace or table that already exists.
*
*
* Protobuf type {@code stargate.AlreadyExists}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:stargate.AlreadyExists)
io.stargate.proto.QueryOuterClass.AlreadyExistsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_AlreadyExists_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_AlreadyExists_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stargate.proto.QueryOuterClass.AlreadyExists.class, io.stargate.proto.QueryOuterClass.AlreadyExists.Builder.class);
}
// Construct using io.stargate.proto.QueryOuterClass.AlreadyExists.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();
keyspace_ = "";
table_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.stargate.proto.QueryOuterClass.internal_static_stargate_AlreadyExists_descriptor;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.AlreadyExists getDefaultInstanceForType() {
return io.stargate.proto.QueryOuterClass.AlreadyExists.getDefaultInstance();
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.AlreadyExists build() {
io.stargate.proto.QueryOuterClass.AlreadyExists result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stargate.proto.QueryOuterClass.AlreadyExists buildPartial() {
io.stargate.proto.QueryOuterClass.AlreadyExists result = new io.stargate.proto.QueryOuterClass.AlreadyExists(this);
result.keyspace_ = keyspace_;
result.table_ = table_;
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 io.stargate.proto.QueryOuterClass.AlreadyExists) {
return mergeFrom((io.stargate.proto.QueryOuterClass.AlreadyExists)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stargate.proto.QueryOuterClass.AlreadyExists other) {
if (other == io.stargate.proto.QueryOuterClass.AlreadyExists.getDefaultInstance()) return this;
if (!other.getKeyspace().isEmpty()) {
keyspace_ = other.keyspace_;
onChanged();
}
if (!other.getTable().isEmpty()) {
table_ = other.table_;
onChanged();
}
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 {
io.stargate.proto.QueryOuterClass.AlreadyExists parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.stargate.proto.QueryOuterClass.AlreadyExists) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object keyspace_ = "";
/**
* string keyspace = 1;
* @return The keyspace.
*/
public java.lang.String getKeyspace() {
java.lang.Object ref = keyspace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
keyspace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string keyspace = 1;
* @return The bytes for keyspace.
*/
public com.google.protobuf.ByteString
getKeyspaceBytes() {
java.lang.Object ref = keyspace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyspace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string keyspace = 1;
* @param value The keyspace to set.
* @return This builder for chaining.
*/
public Builder setKeyspace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
keyspace_ = value;
onChanged();
return this;
}
/**
* string keyspace = 1;
* @return This builder for chaining.
*/
public Builder clearKeyspace() {
keyspace_ = getDefaultInstance().getKeyspace();
onChanged();
return this;
}
/**
* string keyspace = 1;
* @param value The bytes for keyspace to set.
* @return This builder for chaining.
*/
public Builder setKeyspaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
keyspace_ = value;
onChanged();
return this;
}
private java.lang.Object table_ = "";
/**
* string table = 2;
* @return The table.
*/
public java.lang.String getTable() {
java.lang.Object ref = table_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
table_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string table = 2;
* @return The bytes for table.
*/
public com.google.protobuf.ByteString
getTableBytes() {
java.lang.Object ref = table_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
table_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string table = 2;
* @param value The table to set.
* @return This builder for chaining.
*/
public Builder setTable(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
table_ = value;
onChanged();
return this;
}
/**
* string table = 2;
* @return This builder for chaining.
*/
public Builder clearTable() {
table_ = getDefaultInstance().getTable();
onChanged();
return this;
}
/**
* string table = 2;
* @param value The bytes for table to set.
* @return This builder for chaining.
*/
public Builder setTableBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
table_ = value;
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:stargate.AlreadyExists)
}
// @@protoc_insertion_point(class_scope:stargate.AlreadyExists)
private static final io.stargate.proto.QueryOuterClass.AlreadyExists DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stargate.proto.QueryOuterClass.AlreadyExists();
}
public static io.stargate.proto.QueryOuterClass.AlreadyExists getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AlreadyExists parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AlreadyExists(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser