com.youtube.vitess.proto.Vtgate Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: vtgate.proto
package com.youtube.vitess.proto;
public final class Vtgate {
private Vtgate() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface SessionOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.Session)
com.google.protobuf.MessageOrBuilder {
/**
* optional bool in_transaction = 1;
*/
boolean getInTransaction();
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
java.util.List
getShardSessionsList();
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
com.youtube.vitess.proto.Vtgate.Session.ShardSession getShardSessions(int index);
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
int getShardSessionsCount();
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
java.util.List extends com.youtube.vitess.proto.Vtgate.Session.ShardSessionOrBuilder>
getShardSessionsOrBuilderList();
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
com.youtube.vitess.proto.Vtgate.Session.ShardSessionOrBuilder getShardSessionsOrBuilder(
int index);
/**
*
* single_db specifies if the transaction should be restricted
* to a single database.
*
*
* optional bool single_db = 3;
*/
boolean getSingleDb();
/**
*
* autocommit specifies if the session is in autocommit mode.
*
*
* optional bool autocommit = 4;
*/
boolean getAutocommit();
}
/**
*
* Session objects are session cookies and are invalidated on
* use. Query results will contain updated session values.
* Their content should be opaque to the user.
*
*
* Protobuf type {@code vtgate.Session}
*/
public static final class Session extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.Session)
SessionOrBuilder {
// Use Session.newBuilder() to construct.
private Session(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Session() {
inTransaction_ = false;
shardSessions_ = java.util.Collections.emptyList();
singleDb_ = false;
autocommit_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Session(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
inTransaction_ = input.readBool();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
shardSessions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
shardSessions_.add(
input.readMessage(com.youtube.vitess.proto.Vtgate.Session.ShardSession.parser(), extensionRegistry));
break;
}
case 24: {
singleDb_ = input.readBool();
break;
}
case 32: {
autocommit_ = input.readBool();
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_ & 0x00000002) == 0x00000002)) {
shardSessions_ = java.util.Collections.unmodifiableList(shardSessions_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_Session_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_Session_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.Session.class, com.youtube.vitess.proto.Vtgate.Session.Builder.class);
}
public interface ShardSessionOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.Session.ShardSession)
com.google.protobuf.MessageOrBuilder {
/**
* optional .query.Target target = 1;
*/
boolean hasTarget();
/**
* optional .query.Target target = 1;
*/
com.youtube.vitess.proto.Query.Target getTarget();
/**
* optional .query.Target target = 1;
*/
com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder();
/**
* optional int64 transaction_id = 2;
*/
long getTransactionId();
}
/**
* Protobuf type {@code vtgate.Session.ShardSession}
*/
public static final class ShardSession extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.Session.ShardSession)
ShardSessionOrBuilder {
// Use ShardSession.newBuilder() to construct.
private ShardSession(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ShardSession() {
transactionId_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ShardSession(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Query.Target.Builder subBuilder = null;
if (target_ != null) {
subBuilder = target_.toBuilder();
}
target_ = input.readMessage(com.youtube.vitess.proto.Query.Target.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(target_);
target_ = subBuilder.buildPartial();
}
break;
}
case 16: {
transactionId_ = input.readInt64();
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_Session_ShardSession_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_Session_ShardSession_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.Session.ShardSession.class, com.youtube.vitess.proto.Vtgate.Session.ShardSession.Builder.class);
}
public static final int TARGET_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Query.Target target_;
/**
* optional .query.Target target = 1;
*/
public boolean hasTarget() {
return target_ != null;
}
/**
* optional .query.Target target = 1;
*/
public com.youtube.vitess.proto.Query.Target getTarget() {
return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_;
}
/**
* optional .query.Target target = 1;
*/
public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() {
return getTarget();
}
public static final int TRANSACTION_ID_FIELD_NUMBER = 2;
private long transactionId_;
/**
* optional int64 transaction_id = 2;
*/
public long getTransactionId() {
return transactionId_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (target_ != null) {
output.writeMessage(1, getTarget());
}
if (transactionId_ != 0L) {
output.writeInt64(2, transactionId_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (target_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTarget());
}
if (transactionId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, transactionId_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.Session.ShardSession)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.Session.ShardSession other = (com.youtube.vitess.proto.Vtgate.Session.ShardSession) obj;
boolean result = true;
result = result && (hasTarget() == other.hasTarget());
if (hasTarget()) {
result = result && getTarget()
.equals(other.getTarget());
}
result = result && (getTransactionId()
== other.getTransactionId());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasTarget()) {
hash = (37 * hash) + TARGET_FIELD_NUMBER;
hash = (53 * hash) + getTarget().hashCode();
}
hash = (37 * hash) + TRANSACTION_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTransactionId());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.Session.ShardSession parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.Session.ShardSession parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.Session.ShardSession parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.Session.ShardSession parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.Session.ShardSession parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.Session.ShardSession parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.Session.ShardSession parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.Session.ShardSession parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.Session.ShardSession parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.Session.ShardSession parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.Session.ShardSession prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 vtgate.Session.ShardSession}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.Session.ShardSession)
com.youtube.vitess.proto.Vtgate.Session.ShardSessionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_Session_ShardSession_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_Session_ShardSession_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.Session.ShardSession.class, com.youtube.vitess.proto.Vtgate.Session.ShardSession.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.Session.ShardSession.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (targetBuilder_ == null) {
target_ = null;
} else {
target_ = null;
targetBuilder_ = null;
}
transactionId_ = 0L;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_Session_ShardSession_descriptor;
}
public com.youtube.vitess.proto.Vtgate.Session.ShardSession getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.Session.ShardSession.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.Session.ShardSession build() {
com.youtube.vitess.proto.Vtgate.Session.ShardSession result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.Session.ShardSession buildPartial() {
com.youtube.vitess.proto.Vtgate.Session.ShardSession result = new com.youtube.vitess.proto.Vtgate.Session.ShardSession(this);
if (targetBuilder_ == null) {
result.target_ = target_;
} else {
result.target_ = targetBuilder_.build();
}
result.transactionId_ = transactionId_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.Session.ShardSession) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.Session.ShardSession)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.Session.ShardSession other) {
if (other == com.youtube.vitess.proto.Vtgate.Session.ShardSession.getDefaultInstance()) return this;
if (other.hasTarget()) {
mergeTarget(other.getTarget());
}
if (other.getTransactionId() != 0L) {
setTransactionId(other.getTransactionId());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.Session.ShardSession parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.Session.ShardSession) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.youtube.vitess.proto.Query.Target target_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.Target, com.youtube.vitess.proto.Query.Target.Builder, com.youtube.vitess.proto.Query.TargetOrBuilder> targetBuilder_;
/**
* optional .query.Target target = 1;
*/
public boolean hasTarget() {
return targetBuilder_ != null || target_ != null;
}
/**
* optional .query.Target target = 1;
*/
public com.youtube.vitess.proto.Query.Target getTarget() {
if (targetBuilder_ == null) {
return target_ == null ? com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_;
} else {
return targetBuilder_.getMessage();
}
}
/**
* optional .query.Target target = 1;
*/
public Builder setTarget(com.youtube.vitess.proto.Query.Target value) {
if (targetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
target_ = value;
onChanged();
} else {
targetBuilder_.setMessage(value);
}
return this;
}
/**
* optional .query.Target target = 1;
*/
public Builder setTarget(
com.youtube.vitess.proto.Query.Target.Builder builderForValue) {
if (targetBuilder_ == null) {
target_ = builderForValue.build();
onChanged();
} else {
targetBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .query.Target target = 1;
*/
public Builder mergeTarget(com.youtube.vitess.proto.Query.Target value) {
if (targetBuilder_ == null) {
if (target_ != null) {
target_ =
com.youtube.vitess.proto.Query.Target.newBuilder(target_).mergeFrom(value).buildPartial();
} else {
target_ = value;
}
onChanged();
} else {
targetBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .query.Target target = 1;
*/
public Builder clearTarget() {
if (targetBuilder_ == null) {
target_ = null;
onChanged();
} else {
target_ = null;
targetBuilder_ = null;
}
return this;
}
/**
* optional .query.Target target = 1;
*/
public com.youtube.vitess.proto.Query.Target.Builder getTargetBuilder() {
onChanged();
return getTargetFieldBuilder().getBuilder();
}
/**
* optional .query.Target target = 1;
*/
public com.youtube.vitess.proto.Query.TargetOrBuilder getTargetOrBuilder() {
if (targetBuilder_ != null) {
return targetBuilder_.getMessageOrBuilder();
} else {
return target_ == null ?
com.youtube.vitess.proto.Query.Target.getDefaultInstance() : target_;
}
}
/**
* optional .query.Target target = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.Target, com.youtube.vitess.proto.Query.Target.Builder, com.youtube.vitess.proto.Query.TargetOrBuilder>
getTargetFieldBuilder() {
if (targetBuilder_ == null) {
targetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.Target, com.youtube.vitess.proto.Query.Target.Builder, com.youtube.vitess.proto.Query.TargetOrBuilder>(
getTarget(),
getParentForChildren(),
isClean());
target_ = null;
}
return targetBuilder_;
}
private long transactionId_ ;
/**
* optional int64 transaction_id = 2;
*/
public long getTransactionId() {
return transactionId_;
}
/**
* optional int64 transaction_id = 2;
*/
public Builder setTransactionId(long value) {
transactionId_ = value;
onChanged();
return this;
}
/**
* optional int64 transaction_id = 2;
*/
public Builder clearTransactionId() {
transactionId_ = 0L;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.Session.ShardSession)
}
// @@protoc_insertion_point(class_scope:vtgate.Session.ShardSession)
private static final com.youtube.vitess.proto.Vtgate.Session.ShardSession DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.Session.ShardSession();
}
public static com.youtube.vitess.proto.Vtgate.Session.ShardSession getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ShardSession parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ShardSession(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.Session.ShardSession getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int IN_TRANSACTION_FIELD_NUMBER = 1;
private boolean inTransaction_;
/**
* optional bool in_transaction = 1;
*/
public boolean getInTransaction() {
return inTransaction_;
}
public static final int SHARD_SESSIONS_FIELD_NUMBER = 2;
private java.util.List shardSessions_;
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public java.util.List getShardSessionsList() {
return shardSessions_;
}
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public java.util.List extends com.youtube.vitess.proto.Vtgate.Session.ShardSessionOrBuilder>
getShardSessionsOrBuilderList() {
return shardSessions_;
}
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public int getShardSessionsCount() {
return shardSessions_.size();
}
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.ShardSession getShardSessions(int index) {
return shardSessions_.get(index);
}
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.ShardSessionOrBuilder getShardSessionsOrBuilder(
int index) {
return shardSessions_.get(index);
}
public static final int SINGLE_DB_FIELD_NUMBER = 3;
private boolean singleDb_;
/**
*
* single_db specifies if the transaction should be restricted
* to a single database.
*
*
* optional bool single_db = 3;
*/
public boolean getSingleDb() {
return singleDb_;
}
public static final int AUTOCOMMIT_FIELD_NUMBER = 4;
private boolean autocommit_;
/**
*
* autocommit specifies if the session is in autocommit mode.
*
*
* optional bool autocommit = 4;
*/
public boolean getAutocommit() {
return autocommit_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (inTransaction_ != false) {
output.writeBool(1, inTransaction_);
}
for (int i = 0; i < shardSessions_.size(); i++) {
output.writeMessage(2, shardSessions_.get(i));
}
if (singleDb_ != false) {
output.writeBool(3, singleDb_);
}
if (autocommit_ != false) {
output.writeBool(4, autocommit_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (inTransaction_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, inTransaction_);
}
for (int i = 0; i < shardSessions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, shardSessions_.get(i));
}
if (singleDb_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, singleDb_);
}
if (autocommit_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, autocommit_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.Session)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.Session other = (com.youtube.vitess.proto.Vtgate.Session) obj;
boolean result = true;
result = result && (getInTransaction()
== other.getInTransaction());
result = result && getShardSessionsList()
.equals(other.getShardSessionsList());
result = result && (getSingleDb()
== other.getSingleDb());
result = result && (getAutocommit()
== other.getAutocommit());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + IN_TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getInTransaction());
if (getShardSessionsCount() > 0) {
hash = (37 * hash) + SHARD_SESSIONS_FIELD_NUMBER;
hash = (53 * hash) + getShardSessionsList().hashCode();
}
hash = (37 * hash) + SINGLE_DB_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSingleDb());
hash = (37 * hash) + AUTOCOMMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAutocommit());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.Session parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.Session parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.Session parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.Session parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.Session parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.Session parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.Session parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.Session parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.Session parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.Session parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.Session prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* Session objects are session cookies and are invalidated on
* use. Query results will contain updated session values.
* Their content should be opaque to the user.
*
*
* Protobuf type {@code vtgate.Session}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.Session)
com.youtube.vitess.proto.Vtgate.SessionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_Session_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_Session_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.Session.class, com.youtube.vitess.proto.Vtgate.Session.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.Session.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getShardSessionsFieldBuilder();
}
}
public Builder clear() {
super.clear();
inTransaction_ = false;
if (shardSessionsBuilder_ == null) {
shardSessions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
shardSessionsBuilder_.clear();
}
singleDb_ = false;
autocommit_ = false;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_Session_descriptor;
}
public com.youtube.vitess.proto.Vtgate.Session getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.Session build() {
com.youtube.vitess.proto.Vtgate.Session result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.Session buildPartial() {
com.youtube.vitess.proto.Vtgate.Session result = new com.youtube.vitess.proto.Vtgate.Session(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.inTransaction_ = inTransaction_;
if (shardSessionsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
shardSessions_ = java.util.Collections.unmodifiableList(shardSessions_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.shardSessions_ = shardSessions_;
} else {
result.shardSessions_ = shardSessionsBuilder_.build();
}
result.singleDb_ = singleDb_;
result.autocommit_ = autocommit_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.Session) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.Session)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.Session other) {
if (other == com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance()) return this;
if (other.getInTransaction() != false) {
setInTransaction(other.getInTransaction());
}
if (shardSessionsBuilder_ == null) {
if (!other.shardSessions_.isEmpty()) {
if (shardSessions_.isEmpty()) {
shardSessions_ = other.shardSessions_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureShardSessionsIsMutable();
shardSessions_.addAll(other.shardSessions_);
}
onChanged();
}
} else {
if (!other.shardSessions_.isEmpty()) {
if (shardSessionsBuilder_.isEmpty()) {
shardSessionsBuilder_.dispose();
shardSessionsBuilder_ = null;
shardSessions_ = other.shardSessions_;
bitField0_ = (bitField0_ & ~0x00000002);
shardSessionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getShardSessionsFieldBuilder() : null;
} else {
shardSessionsBuilder_.addAllMessages(other.shardSessions_);
}
}
}
if (other.getSingleDb() != false) {
setSingleDb(other.getSingleDb());
}
if (other.getAutocommit() != false) {
setAutocommit(other.getAutocommit());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.Session parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.Session) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private boolean inTransaction_ ;
/**
* optional bool in_transaction = 1;
*/
public boolean getInTransaction() {
return inTransaction_;
}
/**
* optional bool in_transaction = 1;
*/
public Builder setInTransaction(boolean value) {
inTransaction_ = value;
onChanged();
return this;
}
/**
* optional bool in_transaction = 1;
*/
public Builder clearInTransaction() {
inTransaction_ = false;
onChanged();
return this;
}
private java.util.List shardSessions_ =
java.util.Collections.emptyList();
private void ensureShardSessionsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
shardSessions_ = new java.util.ArrayList(shardSessions_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session.ShardSession, com.youtube.vitess.proto.Vtgate.Session.ShardSession.Builder, com.youtube.vitess.proto.Vtgate.Session.ShardSessionOrBuilder> shardSessionsBuilder_;
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public java.util.List getShardSessionsList() {
if (shardSessionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(shardSessions_);
} else {
return shardSessionsBuilder_.getMessageList();
}
}
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public int getShardSessionsCount() {
if (shardSessionsBuilder_ == null) {
return shardSessions_.size();
} else {
return shardSessionsBuilder_.getCount();
}
}
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.ShardSession getShardSessions(int index) {
if (shardSessionsBuilder_ == null) {
return shardSessions_.get(index);
} else {
return shardSessionsBuilder_.getMessage(index);
}
}
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public Builder setShardSessions(
int index, com.youtube.vitess.proto.Vtgate.Session.ShardSession value) {
if (shardSessionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureShardSessionsIsMutable();
shardSessions_.set(index, value);
onChanged();
} else {
shardSessionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public Builder setShardSessions(
int index, com.youtube.vitess.proto.Vtgate.Session.ShardSession.Builder builderForValue) {
if (shardSessionsBuilder_ == null) {
ensureShardSessionsIsMutable();
shardSessions_.set(index, builderForValue.build());
onChanged();
} else {
shardSessionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public Builder addShardSessions(com.youtube.vitess.proto.Vtgate.Session.ShardSession value) {
if (shardSessionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureShardSessionsIsMutable();
shardSessions_.add(value);
onChanged();
} else {
shardSessionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public Builder addShardSessions(
int index, com.youtube.vitess.proto.Vtgate.Session.ShardSession value) {
if (shardSessionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureShardSessionsIsMutable();
shardSessions_.add(index, value);
onChanged();
} else {
shardSessionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public Builder addShardSessions(
com.youtube.vitess.proto.Vtgate.Session.ShardSession.Builder builderForValue) {
if (shardSessionsBuilder_ == null) {
ensureShardSessionsIsMutable();
shardSessions_.add(builderForValue.build());
onChanged();
} else {
shardSessionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public Builder addShardSessions(
int index, com.youtube.vitess.proto.Vtgate.Session.ShardSession.Builder builderForValue) {
if (shardSessionsBuilder_ == null) {
ensureShardSessionsIsMutable();
shardSessions_.add(index, builderForValue.build());
onChanged();
} else {
shardSessionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public Builder addAllShardSessions(
java.lang.Iterable extends com.youtube.vitess.proto.Vtgate.Session.ShardSession> values) {
if (shardSessionsBuilder_ == null) {
ensureShardSessionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, shardSessions_);
onChanged();
} else {
shardSessionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public Builder clearShardSessions() {
if (shardSessionsBuilder_ == null) {
shardSessions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
shardSessionsBuilder_.clear();
}
return this;
}
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public Builder removeShardSessions(int index) {
if (shardSessionsBuilder_ == null) {
ensureShardSessionsIsMutable();
shardSessions_.remove(index);
onChanged();
} else {
shardSessionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.ShardSession.Builder getShardSessionsBuilder(
int index) {
return getShardSessionsFieldBuilder().getBuilder(index);
}
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.ShardSessionOrBuilder getShardSessionsOrBuilder(
int index) {
if (shardSessionsBuilder_ == null) {
return shardSessions_.get(index); } else {
return shardSessionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public java.util.List extends com.youtube.vitess.proto.Vtgate.Session.ShardSessionOrBuilder>
getShardSessionsOrBuilderList() {
if (shardSessionsBuilder_ != null) {
return shardSessionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(shardSessions_);
}
}
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.ShardSession.Builder addShardSessionsBuilder() {
return getShardSessionsFieldBuilder().addBuilder(
com.youtube.vitess.proto.Vtgate.Session.ShardSession.getDefaultInstance());
}
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.ShardSession.Builder addShardSessionsBuilder(
int index) {
return getShardSessionsFieldBuilder().addBuilder(
index, com.youtube.vitess.proto.Vtgate.Session.ShardSession.getDefaultInstance());
}
/**
* repeated .vtgate.Session.ShardSession shard_sessions = 2;
*/
public java.util.List
getShardSessionsBuilderList() {
return getShardSessionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session.ShardSession, com.youtube.vitess.proto.Vtgate.Session.ShardSession.Builder, com.youtube.vitess.proto.Vtgate.Session.ShardSessionOrBuilder>
getShardSessionsFieldBuilder() {
if (shardSessionsBuilder_ == null) {
shardSessionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session.ShardSession, com.youtube.vitess.proto.Vtgate.Session.ShardSession.Builder, com.youtube.vitess.proto.Vtgate.Session.ShardSessionOrBuilder>(
shardSessions_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
shardSessions_ = null;
}
return shardSessionsBuilder_;
}
private boolean singleDb_ ;
/**
*
* single_db specifies if the transaction should be restricted
* to a single database.
*
*
* optional bool single_db = 3;
*/
public boolean getSingleDb() {
return singleDb_;
}
/**
*
* single_db specifies if the transaction should be restricted
* to a single database.
*
*
* optional bool single_db = 3;
*/
public Builder setSingleDb(boolean value) {
singleDb_ = value;
onChanged();
return this;
}
/**
*
* single_db specifies if the transaction should be restricted
* to a single database.
*
*
* optional bool single_db = 3;
*/
public Builder clearSingleDb() {
singleDb_ = false;
onChanged();
return this;
}
private boolean autocommit_ ;
/**
*
* autocommit specifies if the session is in autocommit mode.
*
*
* optional bool autocommit = 4;
*/
public boolean getAutocommit() {
return autocommit_;
}
/**
*
* autocommit specifies if the session is in autocommit mode.
*
*
* optional bool autocommit = 4;
*/
public Builder setAutocommit(boolean value) {
autocommit_ = value;
onChanged();
return this;
}
/**
*
* autocommit specifies if the session is in autocommit mode.
*
*
* optional bool autocommit = 4;
*/
public Builder clearAutocommit() {
autocommit_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.Session)
}
// @@protoc_insertion_point(class_scope:vtgate.Session)
private static final com.youtube.vitess.proto.Vtgate.Session DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.Session();
}
public static com.youtube.vitess.proto.Vtgate.Session getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Session parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Session(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.Session getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.ExecuteRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
boolean hasCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerID getCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
boolean hasSession();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.Session getSession();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
boolean hasQuery();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
com.youtube.vitess.proto.Query.BoundQuery getQuery();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder();
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
int getTabletTypeValue();
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
com.youtube.vitess.proto.Topodata.TabletType getTabletType();
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 5;
*/
boolean getNotInTransaction();
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 6;
*/
java.lang.String getKeyspaceShard();
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 6;
*/
com.google.protobuf.ByteString
getKeyspaceShardBytes();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
boolean hasOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
com.youtube.vitess.proto.Query.ExecuteOptions getOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder();
}
/**
*
* ExecuteRequest is the payload to Execute.
*
*
* Protobuf type {@code vtgate.ExecuteRequest}
*/
public static final class ExecuteRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.ExecuteRequest)
ExecuteRequestOrBuilder {
// Use ExecuteRequest.newBuilder() to construct.
private ExecuteRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteRequest() {
tabletType_ = 0;
notInTransaction_ = false;
keyspaceShard_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ExecuteRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Vtrpc.CallerID.Builder subBuilder = null;
if (callerId_ != null) {
subBuilder = callerId_.toBuilder();
}
callerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(callerId_);
callerId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.youtube.vitess.proto.Vtgate.Session.Builder subBuilder = null;
if (session_ != null) {
subBuilder = session_.toBuilder();
}
session_ = input.readMessage(com.youtube.vitess.proto.Vtgate.Session.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(session_);
session_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.youtube.vitess.proto.Query.BoundQuery.Builder subBuilder = null;
if (query_ != null) {
subBuilder = query_.toBuilder();
}
query_ = input.readMessage(com.youtube.vitess.proto.Query.BoundQuery.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(query_);
query_ = subBuilder.buildPartial();
}
break;
}
case 32: {
int rawValue = input.readEnum();
tabletType_ = rawValue;
break;
}
case 40: {
notInTransaction_ = input.readBool();
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
keyspaceShard_ = s;
break;
}
case 58: {
com.youtube.vitess.proto.Query.ExecuteOptions.Builder subBuilder = null;
if (options_ != null) {
subBuilder = options_.toBuilder();
}
options_ = input.readMessage(com.youtube.vitess.proto.Query.ExecuteOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(options_);
options_ = subBuilder.buildPartial();
}
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteRequest.class, com.youtube.vitess.proto.Vtgate.ExecuteRequest.Builder.class);
}
public static final int CALLER_ID_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
return getCallerId();
}
public static final int SESSION_FIELD_NUMBER = 2;
private com.youtube.vitess.proto.Vtgate.Session session_;
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return session_ != null;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
return getSession();
}
public static final int QUERY_FIELD_NUMBER = 3;
private com.youtube.vitess.proto.Query.BoundQuery query_;
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public boolean hasQuery() {
return query_ != null;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQuery() {
return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() {
return getQuery();
}
public static final int TABLET_TYPE_FIELD_NUMBER = 4;
private int tabletType_;
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
public static final int NOT_IN_TRANSACTION_FIELD_NUMBER = 5;
private boolean notInTransaction_;
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 5;
*/
public boolean getNotInTransaction() {
return notInTransaction_;
}
public static final int KEYSPACE_SHARD_FIELD_NUMBER = 6;
private volatile java.lang.Object keyspaceShard_;
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 6;
*/
public java.lang.String getKeyspaceShard() {
java.lang.Object ref = keyspaceShard_;
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();
keyspaceShard_ = s;
return s;
}
}
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 6;
*/
public com.google.protobuf.ByteString
getKeyspaceShardBytes() {
java.lang.Object ref = keyspaceShard_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyspaceShard_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPTIONS_FIELD_NUMBER = 7;
private com.youtube.vitess.proto.Query.ExecuteOptions options_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
public boolean hasOptions() {
return options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
return getOptions();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (callerId_ != null) {
output.writeMessage(1, getCallerId());
}
if (session_ != null) {
output.writeMessage(2, getSession());
}
if (query_ != null) {
output.writeMessage(3, getQuery());
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
output.writeEnum(4, tabletType_);
}
if (notInTransaction_ != false) {
output.writeBool(5, notInTransaction_);
}
if (!getKeyspaceShardBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, keyspaceShard_);
}
if (options_ != null) {
output.writeMessage(7, getOptions());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (callerId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCallerId());
}
if (session_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSession());
}
if (query_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getQuery());
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, tabletType_);
}
if (notInTransaction_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, notInTransaction_);
}
if (!getKeyspaceShardBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, keyspaceShard_);
}
if (options_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getOptions());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.ExecuteRequest)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.ExecuteRequest other = (com.youtube.vitess.proto.Vtgate.ExecuteRequest) obj;
boolean result = true;
result = result && (hasCallerId() == other.hasCallerId());
if (hasCallerId()) {
result = result && getCallerId()
.equals(other.getCallerId());
}
result = result && (hasSession() == other.hasSession());
if (hasSession()) {
result = result && getSession()
.equals(other.getSession());
}
result = result && (hasQuery() == other.hasQuery());
if (hasQuery()) {
result = result && getQuery()
.equals(other.getQuery());
}
result = result && tabletType_ == other.tabletType_;
result = result && (getNotInTransaction()
== other.getNotInTransaction());
result = result && getKeyspaceShard()
.equals(other.getKeyspaceShard());
result = result && (hasOptions() == other.hasOptions());
if (hasOptions()) {
result = result && getOptions()
.equals(other.getOptions());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasCallerId()) {
hash = (37 * hash) + CALLER_ID_FIELD_NUMBER;
hash = (53 * hash) + getCallerId().hashCode();
}
if (hasSession()) {
hash = (37 * hash) + SESSION_FIELD_NUMBER;
hash = (53 * hash) + getSession().hashCode();
}
if (hasQuery()) {
hash = (37 * hash) + QUERY_FIELD_NUMBER;
hash = (53 * hash) + getQuery().hashCode();
}
hash = (37 * hash) + TABLET_TYPE_FIELD_NUMBER;
hash = (53 * hash) + tabletType_;
hash = (37 * hash) + NOT_IN_TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNotInTransaction());
hash = (37 * hash) + KEYSPACE_SHARD_FIELD_NUMBER;
hash = (53 * hash) + getKeyspaceShard().hashCode();
if (hasOptions()) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptions().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.ExecuteRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.ExecuteRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* ExecuteRequest is the payload to Execute.
*
*
* Protobuf type {@code vtgate.ExecuteRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.ExecuteRequest)
com.youtube.vitess.proto.Vtgate.ExecuteRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteRequest.class, com.youtube.vitess.proto.Vtgate.ExecuteRequest.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.ExecuteRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (callerIdBuilder_ == null) {
callerId_ = null;
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
if (sessionBuilder_ == null) {
session_ = null;
} else {
session_ = null;
sessionBuilder_ = null;
}
if (queryBuilder_ == null) {
query_ = null;
} else {
query_ = null;
queryBuilder_ = null;
}
tabletType_ = 0;
notInTransaction_ = false;
keyspaceShard_ = "";
if (optionsBuilder_ == null) {
options_ = null;
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteRequest_descriptor;
}
public com.youtube.vitess.proto.Vtgate.ExecuteRequest getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.ExecuteRequest.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.ExecuteRequest build() {
com.youtube.vitess.proto.Vtgate.ExecuteRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.ExecuteRequest buildPartial() {
com.youtube.vitess.proto.Vtgate.ExecuteRequest result = new com.youtube.vitess.proto.Vtgate.ExecuteRequest(this);
if (callerIdBuilder_ == null) {
result.callerId_ = callerId_;
} else {
result.callerId_ = callerIdBuilder_.build();
}
if (sessionBuilder_ == null) {
result.session_ = session_;
} else {
result.session_ = sessionBuilder_.build();
}
if (queryBuilder_ == null) {
result.query_ = query_;
} else {
result.query_ = queryBuilder_.build();
}
result.tabletType_ = tabletType_;
result.notInTransaction_ = notInTransaction_;
result.keyspaceShard_ = keyspaceShard_;
if (optionsBuilder_ == null) {
result.options_ = options_;
} else {
result.options_ = optionsBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.ExecuteRequest) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.ExecuteRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.ExecuteRequest other) {
if (other == com.youtube.vitess.proto.Vtgate.ExecuteRequest.getDefaultInstance()) return this;
if (other.hasCallerId()) {
mergeCallerId(other.getCallerId());
}
if (other.hasSession()) {
mergeSession(other.getSession());
}
if (other.hasQuery()) {
mergeQuery(other.getQuery());
}
if (other.tabletType_ != 0) {
setTabletTypeValue(other.getTabletTypeValue());
}
if (other.getNotInTransaction() != false) {
setNotInTransaction(other.getNotInTransaction());
}
if (!other.getKeyspaceShard().isEmpty()) {
keyspaceShard_ = other.keyspaceShard_;
onChanged();
}
if (other.hasOptions()) {
mergeOptions(other.getOptions());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.ExecuteRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.ExecuteRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder> callerIdBuilder_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerIdBuilder_ != null || callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
if (callerIdBuilder_ == null) {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
} else {
return callerIdBuilder_.getMessage();
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
callerId_ = value;
onChanged();
} else {
callerIdBuilder_.setMessage(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(
com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) {
if (callerIdBuilder_ == null) {
callerId_ = builderForValue.build();
onChanged();
} else {
callerIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder mergeCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (callerId_ != null) {
callerId_ =
com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(callerId_).mergeFrom(value).buildPartial();
} else {
callerId_ = value;
}
onChanged();
} else {
callerIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder clearCallerId() {
if (callerIdBuilder_ == null) {
callerId_ = null;
onChanged();
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getCallerIdBuilder() {
onChanged();
return getCallerIdFieldBuilder().getBuilder();
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
if (callerIdBuilder_ != null) {
return callerIdBuilder_.getMessageOrBuilder();
} else {
return callerId_ == null ?
com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>
getCallerIdFieldBuilder() {
if (callerIdBuilder_ == null) {
callerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>(
getCallerId(),
getParentForChildren(),
isClean());
callerId_ = null;
}
return callerIdBuilder_;
}
private com.youtube.vitess.proto.Vtgate.Session session_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder> sessionBuilder_;
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return sessionBuilder_ != null || session_ != null;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
if (sessionBuilder_ == null) {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
} else {
return sessionBuilder_.getMessage();
}
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
session_ = value;
onChanged();
} else {
sessionBuilder_.setMessage(value);
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(
com.youtube.vitess.proto.Vtgate.Session.Builder builderForValue) {
if (sessionBuilder_ == null) {
session_ = builderForValue.build();
onChanged();
} else {
sessionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder mergeSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (session_ != null) {
session_ =
com.youtube.vitess.proto.Vtgate.Session.newBuilder(session_).mergeFrom(value).buildPartial();
} else {
session_ = value;
}
onChanged();
} else {
sessionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder clearSession() {
if (sessionBuilder_ == null) {
session_ = null;
onChanged();
} else {
session_ = null;
sessionBuilder_ = null;
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.Builder getSessionBuilder() {
onChanged();
return getSessionFieldBuilder().getBuilder();
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
if (sessionBuilder_ != null) {
return sessionBuilder_.getMessageOrBuilder();
} else {
return session_ == null ?
com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>
getSessionFieldBuilder() {
if (sessionBuilder_ == null) {
sessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>(
getSession(),
getParentForChildren(),
isClean());
session_ = null;
}
return sessionBuilder_;
}
private com.youtube.vitess.proto.Query.BoundQuery query_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder> queryBuilder_;
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public boolean hasQuery() {
return queryBuilder_ != null || query_ != null;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQuery() {
if (queryBuilder_ == null) {
return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
} else {
return queryBuilder_.getMessage();
}
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public Builder setQuery(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
query_ = value;
onChanged();
} else {
queryBuilder_.setMessage(value);
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public Builder setQuery(
com.youtube.vitess.proto.Query.BoundQuery.Builder builderForValue) {
if (queryBuilder_ == null) {
query_ = builderForValue.build();
onChanged();
} else {
queryBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public Builder mergeQuery(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queryBuilder_ == null) {
if (query_ != null) {
query_ =
com.youtube.vitess.proto.Query.BoundQuery.newBuilder(query_).mergeFrom(value).buildPartial();
} else {
query_ = value;
}
onChanged();
} else {
queryBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public Builder clearQuery() {
if (queryBuilder_ == null) {
query_ = null;
onChanged();
} else {
query_ = null;
queryBuilder_ = null;
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQuery.Builder getQueryBuilder() {
onChanged();
return getQueryFieldBuilder().getBuilder();
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() {
if (queryBuilder_ != null) {
return queryBuilder_.getMessageOrBuilder();
} else {
return query_ == null ?
com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
}
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>
getQueryFieldBuilder() {
if (queryBuilder_ == null) {
queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>(
getQuery(),
getParentForChildren(),
isClean());
query_ = null;
}
return queryBuilder_;
}
private int tabletType_ = 0;
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public Builder setTabletTypeValue(int value) {
tabletType_ = value;
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public Builder setTabletType(com.youtube.vitess.proto.Topodata.TabletType value) {
if (value == null) {
throw new NullPointerException();
}
tabletType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public Builder clearTabletType() {
tabletType_ = 0;
onChanged();
return this;
}
private boolean notInTransaction_ ;
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 5;
*/
public boolean getNotInTransaction() {
return notInTransaction_;
}
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 5;
*/
public Builder setNotInTransaction(boolean value) {
notInTransaction_ = value;
onChanged();
return this;
}
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 5;
*/
public Builder clearNotInTransaction() {
notInTransaction_ = false;
onChanged();
return this;
}
private java.lang.Object keyspaceShard_ = "";
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 6;
*/
public java.lang.String getKeyspaceShard() {
java.lang.Object ref = keyspaceShard_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
keyspaceShard_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 6;
*/
public com.google.protobuf.ByteString
getKeyspaceShardBytes() {
java.lang.Object ref = keyspaceShard_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyspaceShard_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 6;
*/
public Builder setKeyspaceShard(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
keyspaceShard_ = value;
onChanged();
return this;
}
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 6;
*/
public Builder clearKeyspaceShard() {
keyspaceShard_ = getDefaultInstance().getKeyspaceShard();
onChanged();
return this;
}
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 6;
*/
public Builder setKeyspaceShardBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
keyspaceShard_ = value;
onChanged();
return this;
}
private com.youtube.vitess.proto.Query.ExecuteOptions options_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder> optionsBuilder_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
public boolean hasOptions() {
return optionsBuilder_ != null || options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
if (optionsBuilder_ == null) {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
} else {
return optionsBuilder_.getMessage();
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
public Builder setOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
options_ = value;
onChanged();
} else {
optionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
public Builder setOptions(
com.youtube.vitess.proto.Query.ExecuteOptions.Builder builderForValue) {
if (optionsBuilder_ == null) {
options_ = builderForValue.build();
onChanged();
} else {
optionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
public Builder mergeOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (options_ != null) {
options_ =
com.youtube.vitess.proto.Query.ExecuteOptions.newBuilder(options_).mergeFrom(value).buildPartial();
} else {
options_ = value;
}
onChanged();
} else {
optionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
public Builder clearOptions() {
if (optionsBuilder_ == null) {
options_ = null;
onChanged();
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions.Builder getOptionsBuilder() {
onChanged();
return getOptionsFieldBuilder().getBuilder();
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilder();
} else {
return options_ == null ?
com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>(
getOptions(),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.ExecuteRequest)
}
// @@protoc_insertion_point(class_scope:vtgate.ExecuteRequest)
private static final com.youtube.vitess.proto.Vtgate.ExecuteRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.ExecuteRequest();
}
public static com.youtube.vitess.proto.Vtgate.ExecuteRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExecuteRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.ExecuteRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.ExecuteResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
boolean hasError();
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
com.youtube.vitess.proto.Vtrpc.RPCError getError();
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
boolean hasSession();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.Session getSession();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder();
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
boolean hasResult();
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
com.youtube.vitess.proto.Query.QueryResult getResult();
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder();
}
/**
*
* ExecuteResponse is the returned value from Execute.
*
*
* Protobuf type {@code vtgate.ExecuteResponse}
*/
public static final class ExecuteResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.ExecuteResponse)
ExecuteResponseOrBuilder {
// Use ExecuteResponse.newBuilder() to construct.
private ExecuteResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ExecuteResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Vtrpc.RPCError.Builder subBuilder = null;
if (error_ != null) {
subBuilder = error_.toBuilder();
}
error_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.RPCError.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(error_);
error_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.youtube.vitess.proto.Vtgate.Session.Builder subBuilder = null;
if (session_ != null) {
subBuilder = session_.toBuilder();
}
session_ = input.readMessage(com.youtube.vitess.proto.Vtgate.Session.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(session_);
session_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.youtube.vitess.proto.Query.QueryResult.Builder subBuilder = null;
if (result_ != null) {
subBuilder = result_.toBuilder();
}
result_ = input.readMessage(com.youtube.vitess.proto.Query.QueryResult.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(result_);
result_ = subBuilder.buildPartial();
}
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteResponse.class, com.youtube.vitess.proto.Vtgate.ExecuteResponse.Builder.class);
}
public static final int ERROR_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Vtrpc.RPCError error_;
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public boolean hasError() {
return error_ != null;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError getError() {
return error_ == null ? com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder() {
return getError();
}
public static final int SESSION_FIELD_NUMBER = 2;
private com.youtube.vitess.proto.Vtgate.Session session_;
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return session_ != null;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
return getSession();
}
public static final int RESULT_FIELD_NUMBER = 3;
private com.youtube.vitess.proto.Query.QueryResult result_;
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public boolean hasResult() {
return result_ != null;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult getResult() {
return result_ == null ? com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder() {
return getResult();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (error_ != null) {
output.writeMessage(1, getError());
}
if (session_ != null) {
output.writeMessage(2, getSession());
}
if (result_ != null) {
output.writeMessage(3, getResult());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (error_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getError());
}
if (session_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSession());
}
if (result_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getResult());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.ExecuteResponse)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.ExecuteResponse other = (com.youtube.vitess.proto.Vtgate.ExecuteResponse) obj;
boolean result = true;
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError()
.equals(other.getError());
}
result = result && (hasSession() == other.hasSession());
if (hasSession()) {
result = result && getSession()
.equals(other.getSession());
}
result = result && (hasResult() == other.hasResult());
if (hasResult()) {
result = result && getResult()
.equals(other.getResult());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasError()) {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
}
if (hasSession()) {
hash = (37 * hash) + SESSION_FIELD_NUMBER;
hash = (53 * hash) + getSession().hashCode();
}
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.ExecuteResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.ExecuteResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* ExecuteResponse is the returned value from Execute.
*
*
* Protobuf type {@code vtgate.ExecuteResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.ExecuteResponse)
com.youtube.vitess.proto.Vtgate.ExecuteResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteResponse.class, com.youtube.vitess.proto.Vtgate.ExecuteResponse.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.ExecuteResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (errorBuilder_ == null) {
error_ = null;
} else {
error_ = null;
errorBuilder_ = null;
}
if (sessionBuilder_ == null) {
session_ = null;
} else {
session_ = null;
sessionBuilder_ = null;
}
if (resultBuilder_ == null) {
result_ = null;
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteResponse_descriptor;
}
public com.youtube.vitess.proto.Vtgate.ExecuteResponse getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.ExecuteResponse.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.ExecuteResponse build() {
com.youtube.vitess.proto.Vtgate.ExecuteResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.ExecuteResponse buildPartial() {
com.youtube.vitess.proto.Vtgate.ExecuteResponse result = new com.youtube.vitess.proto.Vtgate.ExecuteResponse(this);
if (errorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = errorBuilder_.build();
}
if (sessionBuilder_ == null) {
result.session_ = session_;
} else {
result.session_ = sessionBuilder_.build();
}
if (resultBuilder_ == null) {
result.result_ = result_;
} else {
result.result_ = resultBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.ExecuteResponse) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.ExecuteResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.ExecuteResponse other) {
if (other == com.youtube.vitess.proto.Vtgate.ExecuteResponse.getDefaultInstance()) return this;
if (other.hasError()) {
mergeError(other.getError());
}
if (other.hasSession()) {
mergeSession(other.getSession());
}
if (other.hasResult()) {
mergeResult(other.getResult());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.ExecuteResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.ExecuteResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.youtube.vitess.proto.Vtrpc.RPCError error_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder> errorBuilder_;
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public boolean hasError() {
return errorBuilder_ != null || error_ != null;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError getError() {
if (errorBuilder_ == null) {
return error_ == null ? com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder setError(com.youtube.vitess.proto.Vtrpc.RPCError value) {
if (errorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
} else {
errorBuilder_.setMessage(value);
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder setError(
com.youtube.vitess.proto.Vtrpc.RPCError.Builder builderForValue) {
if (errorBuilder_ == null) {
error_ = builderForValue.build();
onChanged();
} else {
errorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder mergeError(com.youtube.vitess.proto.Vtrpc.RPCError value) {
if (errorBuilder_ == null) {
if (error_ != null) {
error_ =
com.youtube.vitess.proto.Vtrpc.RPCError.newBuilder(error_).mergeFrom(value).buildPartial();
} else {
error_ = value;
}
onChanged();
} else {
errorBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
error_ = null;
onChanged();
} else {
error_ = null;
errorBuilder_ = null;
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError.Builder getErrorBuilder() {
onChanged();
return getErrorFieldBuilder().getBuilder();
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder() {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
return error_ == null ?
com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
}
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder>(
getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
private com.youtube.vitess.proto.Vtgate.Session session_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder> sessionBuilder_;
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return sessionBuilder_ != null || session_ != null;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
if (sessionBuilder_ == null) {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
} else {
return sessionBuilder_.getMessage();
}
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
session_ = value;
onChanged();
} else {
sessionBuilder_.setMessage(value);
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(
com.youtube.vitess.proto.Vtgate.Session.Builder builderForValue) {
if (sessionBuilder_ == null) {
session_ = builderForValue.build();
onChanged();
} else {
sessionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder mergeSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (session_ != null) {
session_ =
com.youtube.vitess.proto.Vtgate.Session.newBuilder(session_).mergeFrom(value).buildPartial();
} else {
session_ = value;
}
onChanged();
} else {
sessionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder clearSession() {
if (sessionBuilder_ == null) {
session_ = null;
onChanged();
} else {
session_ = null;
sessionBuilder_ = null;
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.Builder getSessionBuilder() {
onChanged();
return getSessionFieldBuilder().getBuilder();
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
if (sessionBuilder_ != null) {
return sessionBuilder_.getMessageOrBuilder();
} else {
return session_ == null ?
com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>
getSessionFieldBuilder() {
if (sessionBuilder_ == null) {
sessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>(
getSession(),
getParentForChildren(),
isClean());
session_ = null;
}
return sessionBuilder_;
}
private com.youtube.vitess.proto.Query.QueryResult result_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder> resultBuilder_;
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public boolean hasResult() {
return resultBuilder_ != null || result_ != null;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult getResult() {
if (resultBuilder_ == null) {
return result_ == null ? com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
} else {
return resultBuilder_.getMessage();
}
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public Builder setResult(com.youtube.vitess.proto.Query.QueryResult value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
resultBuilder_.setMessage(value);
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public Builder setResult(
com.youtube.vitess.proto.Query.QueryResult.Builder builderForValue) {
if (resultBuilder_ == null) {
result_ = builderForValue.build();
onChanged();
} else {
resultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public Builder mergeResult(com.youtube.vitess.proto.Query.QueryResult value) {
if (resultBuilder_ == null) {
if (result_ != null) {
result_ =
com.youtube.vitess.proto.Query.QueryResult.newBuilder(result_).mergeFrom(value).buildPartial();
} else {
result_ = value;
}
onChanged();
} else {
resultBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public Builder clearResult() {
if (resultBuilder_ == null) {
result_ = null;
onChanged();
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult.Builder getResultBuilder() {
onChanged();
return getResultFieldBuilder().getBuilder();
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder() {
if (resultBuilder_ != null) {
return resultBuilder_.getMessageOrBuilder();
} else {
return result_ == null ?
com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
}
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder>(
getResult(),
getParentForChildren(),
isClean());
result_ = null;
}
return resultBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.ExecuteResponse)
}
// @@protoc_insertion_point(class_scope:vtgate.ExecuteResponse)
private static final com.youtube.vitess.proto.Vtgate.ExecuteResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.ExecuteResponse();
}
public static com.youtube.vitess.proto.Vtgate.ExecuteResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExecuteResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.ExecuteResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteShardsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.ExecuteShardsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
boolean hasCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerID getCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
boolean hasSession();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.Session getSession();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
boolean hasQuery();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
com.youtube.vitess.proto.Query.BoundQuery getQuery();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder();
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
java.lang.String getKeyspace();
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
com.google.protobuf.ByteString
getKeyspaceBytes();
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 5;
*/
java.util.List
getShardsList();
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 5;
*/
int getShardsCount();
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 5;
*/
java.lang.String getShards(int index);
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 5;
*/
com.google.protobuf.ByteString
getShardsBytes(int index);
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
int getTabletTypeValue();
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
com.youtube.vitess.proto.Topodata.TabletType getTabletType();
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 7;
*/
boolean getNotInTransaction();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
boolean hasOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
com.youtube.vitess.proto.Query.ExecuteOptions getOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder();
}
/**
*
* ExecuteShardsRequest is the payload to ExecuteShards.
*
*
* Protobuf type {@code vtgate.ExecuteShardsRequest}
*/
public static final class ExecuteShardsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.ExecuteShardsRequest)
ExecuteShardsRequestOrBuilder {
// Use ExecuteShardsRequest.newBuilder() to construct.
private ExecuteShardsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteShardsRequest() {
keyspace_ = "";
shards_ = com.google.protobuf.LazyStringArrayList.EMPTY;
tabletType_ = 0;
notInTransaction_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ExecuteShardsRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Vtrpc.CallerID.Builder subBuilder = null;
if (callerId_ != null) {
subBuilder = callerId_.toBuilder();
}
callerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(callerId_);
callerId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.youtube.vitess.proto.Vtgate.Session.Builder subBuilder = null;
if (session_ != null) {
subBuilder = session_.toBuilder();
}
session_ = input.readMessage(com.youtube.vitess.proto.Vtgate.Session.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(session_);
session_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.youtube.vitess.proto.Query.BoundQuery.Builder subBuilder = null;
if (query_ != null) {
subBuilder = query_.toBuilder();
}
query_ = input.readMessage(com.youtube.vitess.proto.Query.BoundQuery.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(query_);
query_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
keyspace_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
shards_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000010;
}
shards_.add(s);
break;
}
case 48: {
int rawValue = input.readEnum();
tabletType_ = rawValue;
break;
}
case 56: {
notInTransaction_ = input.readBool();
break;
}
case 66: {
com.youtube.vitess.proto.Query.ExecuteOptions.Builder subBuilder = null;
if (options_ != null) {
subBuilder = options_.toBuilder();
}
options_ = input.readMessage(com.youtube.vitess.proto.Query.ExecuteOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(options_);
options_ = subBuilder.buildPartial();
}
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_ & 0x00000010) == 0x00000010)) {
shards_ = shards_.getUnmodifiableView();
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteShardsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteShardsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest.class, com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest.Builder.class);
}
private int bitField0_;
public static final int CALLER_ID_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
return getCallerId();
}
public static final int SESSION_FIELD_NUMBER = 2;
private com.youtube.vitess.proto.Vtgate.Session session_;
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return session_ != null;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
return getSession();
}
public static final int QUERY_FIELD_NUMBER = 3;
private com.youtube.vitess.proto.Query.BoundQuery query_;
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public boolean hasQuery() {
return query_ != null;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQuery() {
return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() {
return getQuery();
}
public static final int KEYSPACE_FIELD_NUMBER = 4;
private volatile java.lang.Object keyspace_;
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
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 SHARDS_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList shards_;
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 5;
*/
public com.google.protobuf.ProtocolStringList
getShardsList() {
return shards_;
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 5;
*/
public int getShardsCount() {
return shards_.size();
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 5;
*/
public java.lang.String getShards(int index) {
return shards_.get(index);
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 5;
*/
public com.google.protobuf.ByteString
getShardsBytes(int index) {
return shards_.getByteString(index);
}
public static final int TABLET_TYPE_FIELD_NUMBER = 6;
private int tabletType_;
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
public static final int NOT_IN_TRANSACTION_FIELD_NUMBER = 7;
private boolean notInTransaction_;
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 7;
*/
public boolean getNotInTransaction() {
return notInTransaction_;
}
public static final int OPTIONS_FIELD_NUMBER = 8;
private com.youtube.vitess.proto.Query.ExecuteOptions options_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public boolean hasOptions() {
return options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
return getOptions();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (callerId_ != null) {
output.writeMessage(1, getCallerId());
}
if (session_ != null) {
output.writeMessage(2, getSession());
}
if (query_ != null) {
output.writeMessage(3, getQuery());
}
if (!getKeyspaceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, keyspace_);
}
for (int i = 0; i < shards_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, shards_.getRaw(i));
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
output.writeEnum(6, tabletType_);
}
if (notInTransaction_ != false) {
output.writeBool(7, notInTransaction_);
}
if (options_ != null) {
output.writeMessage(8, getOptions());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (callerId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCallerId());
}
if (session_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSession());
}
if (query_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getQuery());
}
if (!getKeyspaceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, keyspace_);
}
{
int dataSize = 0;
for (int i = 0; i < shards_.size(); i++) {
dataSize += computeStringSizeNoTag(shards_.getRaw(i));
}
size += dataSize;
size += 1 * getShardsList().size();
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, tabletType_);
}
if (notInTransaction_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, notInTransaction_);
}
if (options_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getOptions());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest other = (com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest) obj;
boolean result = true;
result = result && (hasCallerId() == other.hasCallerId());
if (hasCallerId()) {
result = result && getCallerId()
.equals(other.getCallerId());
}
result = result && (hasSession() == other.hasSession());
if (hasSession()) {
result = result && getSession()
.equals(other.getSession());
}
result = result && (hasQuery() == other.hasQuery());
if (hasQuery()) {
result = result && getQuery()
.equals(other.getQuery());
}
result = result && getKeyspace()
.equals(other.getKeyspace());
result = result && getShardsList()
.equals(other.getShardsList());
result = result && tabletType_ == other.tabletType_;
result = result && (getNotInTransaction()
== other.getNotInTransaction());
result = result && (hasOptions() == other.hasOptions());
if (hasOptions()) {
result = result && getOptions()
.equals(other.getOptions());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasCallerId()) {
hash = (37 * hash) + CALLER_ID_FIELD_NUMBER;
hash = (53 * hash) + getCallerId().hashCode();
}
if (hasSession()) {
hash = (37 * hash) + SESSION_FIELD_NUMBER;
hash = (53 * hash) + getSession().hashCode();
}
if (hasQuery()) {
hash = (37 * hash) + QUERY_FIELD_NUMBER;
hash = (53 * hash) + getQuery().hashCode();
}
hash = (37 * hash) + KEYSPACE_FIELD_NUMBER;
hash = (53 * hash) + getKeyspace().hashCode();
if (getShardsCount() > 0) {
hash = (37 * hash) + SHARDS_FIELD_NUMBER;
hash = (53 * hash) + getShardsList().hashCode();
}
hash = (37 * hash) + TABLET_TYPE_FIELD_NUMBER;
hash = (53 * hash) + tabletType_;
hash = (37 * hash) + NOT_IN_TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNotInTransaction());
if (hasOptions()) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptions().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* ExecuteShardsRequest is the payload to ExecuteShards.
*
*
* Protobuf type {@code vtgate.ExecuteShardsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.ExecuteShardsRequest)
com.youtube.vitess.proto.Vtgate.ExecuteShardsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteShardsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteShardsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest.class, com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (callerIdBuilder_ == null) {
callerId_ = null;
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
if (sessionBuilder_ == null) {
session_ = null;
} else {
session_ = null;
sessionBuilder_ = null;
}
if (queryBuilder_ == null) {
query_ = null;
} else {
query_ = null;
queryBuilder_ = null;
}
keyspace_ = "";
shards_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
tabletType_ = 0;
notInTransaction_ = false;
if (optionsBuilder_ == null) {
options_ = null;
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteShardsRequest_descriptor;
}
public com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest build() {
com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest buildPartial() {
com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest result = new com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (callerIdBuilder_ == null) {
result.callerId_ = callerId_;
} else {
result.callerId_ = callerIdBuilder_.build();
}
if (sessionBuilder_ == null) {
result.session_ = session_;
} else {
result.session_ = sessionBuilder_.build();
}
if (queryBuilder_ == null) {
result.query_ = query_;
} else {
result.query_ = queryBuilder_.build();
}
result.keyspace_ = keyspace_;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
shards_ = shards_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000010);
}
result.shards_ = shards_;
result.tabletType_ = tabletType_;
result.notInTransaction_ = notInTransaction_;
if (optionsBuilder_ == null) {
result.options_ = options_;
} else {
result.options_ = optionsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest other) {
if (other == com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest.getDefaultInstance()) return this;
if (other.hasCallerId()) {
mergeCallerId(other.getCallerId());
}
if (other.hasSession()) {
mergeSession(other.getSession());
}
if (other.hasQuery()) {
mergeQuery(other.getQuery());
}
if (!other.getKeyspace().isEmpty()) {
keyspace_ = other.keyspace_;
onChanged();
}
if (!other.shards_.isEmpty()) {
if (shards_.isEmpty()) {
shards_ = other.shards_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureShardsIsMutable();
shards_.addAll(other.shards_);
}
onChanged();
}
if (other.tabletType_ != 0) {
setTabletTypeValue(other.getTabletTypeValue());
}
if (other.getNotInTransaction() != false) {
setNotInTransaction(other.getNotInTransaction());
}
if (other.hasOptions()) {
mergeOptions(other.getOptions());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder> callerIdBuilder_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerIdBuilder_ != null || callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
if (callerIdBuilder_ == null) {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
} else {
return callerIdBuilder_.getMessage();
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
callerId_ = value;
onChanged();
} else {
callerIdBuilder_.setMessage(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(
com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) {
if (callerIdBuilder_ == null) {
callerId_ = builderForValue.build();
onChanged();
} else {
callerIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder mergeCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (callerId_ != null) {
callerId_ =
com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(callerId_).mergeFrom(value).buildPartial();
} else {
callerId_ = value;
}
onChanged();
} else {
callerIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder clearCallerId() {
if (callerIdBuilder_ == null) {
callerId_ = null;
onChanged();
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getCallerIdBuilder() {
onChanged();
return getCallerIdFieldBuilder().getBuilder();
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
if (callerIdBuilder_ != null) {
return callerIdBuilder_.getMessageOrBuilder();
} else {
return callerId_ == null ?
com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>
getCallerIdFieldBuilder() {
if (callerIdBuilder_ == null) {
callerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>(
getCallerId(),
getParentForChildren(),
isClean());
callerId_ = null;
}
return callerIdBuilder_;
}
private com.youtube.vitess.proto.Vtgate.Session session_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder> sessionBuilder_;
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return sessionBuilder_ != null || session_ != null;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
if (sessionBuilder_ == null) {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
} else {
return sessionBuilder_.getMessage();
}
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
session_ = value;
onChanged();
} else {
sessionBuilder_.setMessage(value);
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(
com.youtube.vitess.proto.Vtgate.Session.Builder builderForValue) {
if (sessionBuilder_ == null) {
session_ = builderForValue.build();
onChanged();
} else {
sessionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder mergeSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (session_ != null) {
session_ =
com.youtube.vitess.proto.Vtgate.Session.newBuilder(session_).mergeFrom(value).buildPartial();
} else {
session_ = value;
}
onChanged();
} else {
sessionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder clearSession() {
if (sessionBuilder_ == null) {
session_ = null;
onChanged();
} else {
session_ = null;
sessionBuilder_ = null;
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.Builder getSessionBuilder() {
onChanged();
return getSessionFieldBuilder().getBuilder();
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
if (sessionBuilder_ != null) {
return sessionBuilder_.getMessageOrBuilder();
} else {
return session_ == null ?
com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>
getSessionFieldBuilder() {
if (sessionBuilder_ == null) {
sessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>(
getSession(),
getParentForChildren(),
isClean());
session_ = null;
}
return sessionBuilder_;
}
private com.youtube.vitess.proto.Query.BoundQuery query_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder> queryBuilder_;
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public boolean hasQuery() {
return queryBuilder_ != null || query_ != null;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQuery() {
if (queryBuilder_ == null) {
return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
} else {
return queryBuilder_.getMessage();
}
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public Builder setQuery(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
query_ = value;
onChanged();
} else {
queryBuilder_.setMessage(value);
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public Builder setQuery(
com.youtube.vitess.proto.Query.BoundQuery.Builder builderForValue) {
if (queryBuilder_ == null) {
query_ = builderForValue.build();
onChanged();
} else {
queryBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public Builder mergeQuery(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queryBuilder_ == null) {
if (query_ != null) {
query_ =
com.youtube.vitess.proto.Query.BoundQuery.newBuilder(query_).mergeFrom(value).buildPartial();
} else {
query_ = value;
}
onChanged();
} else {
queryBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public Builder clearQuery() {
if (queryBuilder_ == null) {
query_ = null;
onChanged();
} else {
query_ = null;
queryBuilder_ = null;
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQuery.Builder getQueryBuilder() {
onChanged();
return getQueryFieldBuilder().getBuilder();
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() {
if (queryBuilder_ != null) {
return queryBuilder_.getMessageOrBuilder();
} else {
return query_ == null ?
com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
}
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>
getQueryFieldBuilder() {
if (queryBuilder_ == null) {
queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>(
getQuery(),
getParentForChildren(),
isClean());
query_ = null;
}
return queryBuilder_;
}
private java.lang.Object keyspace_ = "";
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
public Builder setKeyspace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
keyspace_ = value;
onChanged();
return this;
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
public Builder clearKeyspace() {
keyspace_ = getDefaultInstance().getKeyspace();
onChanged();
return this;
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
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.LazyStringList shards_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureShardsIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
shards_ = new com.google.protobuf.LazyStringArrayList(shards_);
bitField0_ |= 0x00000010;
}
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 5;
*/
public com.google.protobuf.ProtocolStringList
getShardsList() {
return shards_.getUnmodifiableView();
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 5;
*/
public int getShardsCount() {
return shards_.size();
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 5;
*/
public java.lang.String getShards(int index) {
return shards_.get(index);
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 5;
*/
public com.google.protobuf.ByteString
getShardsBytes(int index) {
return shards_.getByteString(index);
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 5;
*/
public Builder setShards(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureShardsIsMutable();
shards_.set(index, value);
onChanged();
return this;
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 5;
*/
public Builder addShards(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureShardsIsMutable();
shards_.add(value);
onChanged();
return this;
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 5;
*/
public Builder addAllShards(
java.lang.Iterable values) {
ensureShardsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, shards_);
onChanged();
return this;
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 5;
*/
public Builder clearShards() {
shards_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 5;
*/
public Builder addShardsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureShardsIsMutable();
shards_.add(value);
onChanged();
return this;
}
private int tabletType_ = 0;
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
public Builder setTabletTypeValue(int value) {
tabletType_ = value;
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
public Builder setTabletType(com.youtube.vitess.proto.Topodata.TabletType value) {
if (value == null) {
throw new NullPointerException();
}
tabletType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
public Builder clearTabletType() {
tabletType_ = 0;
onChanged();
return this;
}
private boolean notInTransaction_ ;
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 7;
*/
public boolean getNotInTransaction() {
return notInTransaction_;
}
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 7;
*/
public Builder setNotInTransaction(boolean value) {
notInTransaction_ = value;
onChanged();
return this;
}
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 7;
*/
public Builder clearNotInTransaction() {
notInTransaction_ = false;
onChanged();
return this;
}
private com.youtube.vitess.proto.Query.ExecuteOptions options_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder> optionsBuilder_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public boolean hasOptions() {
return optionsBuilder_ != null || options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
if (optionsBuilder_ == null) {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
} else {
return optionsBuilder_.getMessage();
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public Builder setOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
options_ = value;
onChanged();
} else {
optionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public Builder setOptions(
com.youtube.vitess.proto.Query.ExecuteOptions.Builder builderForValue) {
if (optionsBuilder_ == null) {
options_ = builderForValue.build();
onChanged();
} else {
optionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public Builder mergeOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (options_ != null) {
options_ =
com.youtube.vitess.proto.Query.ExecuteOptions.newBuilder(options_).mergeFrom(value).buildPartial();
} else {
options_ = value;
}
onChanged();
} else {
optionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public Builder clearOptions() {
if (optionsBuilder_ == null) {
options_ = null;
onChanged();
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions.Builder getOptionsBuilder() {
onChanged();
return getOptionsFieldBuilder().getBuilder();
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilder();
} else {
return options_ == null ?
com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>(
getOptions(),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.ExecuteShardsRequest)
}
// @@protoc_insertion_point(class_scope:vtgate.ExecuteShardsRequest)
private static final com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest();
}
public static com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExecuteShardsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteShardsRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.ExecuteShardsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteShardsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.ExecuteShardsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
boolean hasError();
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
com.youtube.vitess.proto.Vtrpc.RPCError getError();
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
boolean hasSession();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.Session getSession();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder();
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
boolean hasResult();
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
com.youtube.vitess.proto.Query.QueryResult getResult();
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder();
}
/**
*
* ExecuteShardsResponse is the returned value from ExecuteShards.
*
*
* Protobuf type {@code vtgate.ExecuteShardsResponse}
*/
public static final class ExecuteShardsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.ExecuteShardsResponse)
ExecuteShardsResponseOrBuilder {
// Use ExecuteShardsResponse.newBuilder() to construct.
private ExecuteShardsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteShardsResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ExecuteShardsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Vtrpc.RPCError.Builder subBuilder = null;
if (error_ != null) {
subBuilder = error_.toBuilder();
}
error_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.RPCError.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(error_);
error_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.youtube.vitess.proto.Vtgate.Session.Builder subBuilder = null;
if (session_ != null) {
subBuilder = session_.toBuilder();
}
session_ = input.readMessage(com.youtube.vitess.proto.Vtgate.Session.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(session_);
session_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.youtube.vitess.proto.Query.QueryResult.Builder subBuilder = null;
if (result_ != null) {
subBuilder = result_.toBuilder();
}
result_ = input.readMessage(com.youtube.vitess.proto.Query.QueryResult.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(result_);
result_ = subBuilder.buildPartial();
}
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteShardsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteShardsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse.class, com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse.Builder.class);
}
public static final int ERROR_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Vtrpc.RPCError error_;
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public boolean hasError() {
return error_ != null;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError getError() {
return error_ == null ? com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder() {
return getError();
}
public static final int SESSION_FIELD_NUMBER = 2;
private com.youtube.vitess.proto.Vtgate.Session session_;
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return session_ != null;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
return getSession();
}
public static final int RESULT_FIELD_NUMBER = 3;
private com.youtube.vitess.proto.Query.QueryResult result_;
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public boolean hasResult() {
return result_ != null;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult getResult() {
return result_ == null ? com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder() {
return getResult();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (error_ != null) {
output.writeMessage(1, getError());
}
if (session_ != null) {
output.writeMessage(2, getSession());
}
if (result_ != null) {
output.writeMessage(3, getResult());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (error_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getError());
}
if (session_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSession());
}
if (result_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getResult());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse other = (com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse) obj;
boolean result = true;
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError()
.equals(other.getError());
}
result = result && (hasSession() == other.hasSession());
if (hasSession()) {
result = result && getSession()
.equals(other.getSession());
}
result = result && (hasResult() == other.hasResult());
if (hasResult()) {
result = result && getResult()
.equals(other.getResult());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasError()) {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
}
if (hasSession()) {
hash = (37 * hash) + SESSION_FIELD_NUMBER;
hash = (53 * hash) + getSession().hashCode();
}
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* ExecuteShardsResponse is the returned value from ExecuteShards.
*
*
* Protobuf type {@code vtgate.ExecuteShardsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.ExecuteShardsResponse)
com.youtube.vitess.proto.Vtgate.ExecuteShardsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteShardsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteShardsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse.class, com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (errorBuilder_ == null) {
error_ = null;
} else {
error_ = null;
errorBuilder_ = null;
}
if (sessionBuilder_ == null) {
session_ = null;
} else {
session_ = null;
sessionBuilder_ = null;
}
if (resultBuilder_ == null) {
result_ = null;
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteShardsResponse_descriptor;
}
public com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse build() {
com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse buildPartial() {
com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse result = new com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse(this);
if (errorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = errorBuilder_.build();
}
if (sessionBuilder_ == null) {
result.session_ = session_;
} else {
result.session_ = sessionBuilder_.build();
}
if (resultBuilder_ == null) {
result.result_ = result_;
} else {
result.result_ = resultBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse other) {
if (other == com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse.getDefaultInstance()) return this;
if (other.hasError()) {
mergeError(other.getError());
}
if (other.hasSession()) {
mergeSession(other.getSession());
}
if (other.hasResult()) {
mergeResult(other.getResult());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.youtube.vitess.proto.Vtrpc.RPCError error_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder> errorBuilder_;
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public boolean hasError() {
return errorBuilder_ != null || error_ != null;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError getError() {
if (errorBuilder_ == null) {
return error_ == null ? com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder setError(com.youtube.vitess.proto.Vtrpc.RPCError value) {
if (errorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
} else {
errorBuilder_.setMessage(value);
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder setError(
com.youtube.vitess.proto.Vtrpc.RPCError.Builder builderForValue) {
if (errorBuilder_ == null) {
error_ = builderForValue.build();
onChanged();
} else {
errorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder mergeError(com.youtube.vitess.proto.Vtrpc.RPCError value) {
if (errorBuilder_ == null) {
if (error_ != null) {
error_ =
com.youtube.vitess.proto.Vtrpc.RPCError.newBuilder(error_).mergeFrom(value).buildPartial();
} else {
error_ = value;
}
onChanged();
} else {
errorBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
error_ = null;
onChanged();
} else {
error_ = null;
errorBuilder_ = null;
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError.Builder getErrorBuilder() {
onChanged();
return getErrorFieldBuilder().getBuilder();
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder() {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
return error_ == null ?
com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
}
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder>(
getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
private com.youtube.vitess.proto.Vtgate.Session session_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder> sessionBuilder_;
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return sessionBuilder_ != null || session_ != null;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
if (sessionBuilder_ == null) {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
} else {
return sessionBuilder_.getMessage();
}
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
session_ = value;
onChanged();
} else {
sessionBuilder_.setMessage(value);
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(
com.youtube.vitess.proto.Vtgate.Session.Builder builderForValue) {
if (sessionBuilder_ == null) {
session_ = builderForValue.build();
onChanged();
} else {
sessionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder mergeSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (session_ != null) {
session_ =
com.youtube.vitess.proto.Vtgate.Session.newBuilder(session_).mergeFrom(value).buildPartial();
} else {
session_ = value;
}
onChanged();
} else {
sessionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder clearSession() {
if (sessionBuilder_ == null) {
session_ = null;
onChanged();
} else {
session_ = null;
sessionBuilder_ = null;
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.Builder getSessionBuilder() {
onChanged();
return getSessionFieldBuilder().getBuilder();
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
if (sessionBuilder_ != null) {
return sessionBuilder_.getMessageOrBuilder();
} else {
return session_ == null ?
com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>
getSessionFieldBuilder() {
if (sessionBuilder_ == null) {
sessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>(
getSession(),
getParentForChildren(),
isClean());
session_ = null;
}
return sessionBuilder_;
}
private com.youtube.vitess.proto.Query.QueryResult result_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder> resultBuilder_;
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public boolean hasResult() {
return resultBuilder_ != null || result_ != null;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult getResult() {
if (resultBuilder_ == null) {
return result_ == null ? com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
} else {
return resultBuilder_.getMessage();
}
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public Builder setResult(com.youtube.vitess.proto.Query.QueryResult value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
resultBuilder_.setMessage(value);
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public Builder setResult(
com.youtube.vitess.proto.Query.QueryResult.Builder builderForValue) {
if (resultBuilder_ == null) {
result_ = builderForValue.build();
onChanged();
} else {
resultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public Builder mergeResult(com.youtube.vitess.proto.Query.QueryResult value) {
if (resultBuilder_ == null) {
if (result_ != null) {
result_ =
com.youtube.vitess.proto.Query.QueryResult.newBuilder(result_).mergeFrom(value).buildPartial();
} else {
result_ = value;
}
onChanged();
} else {
resultBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public Builder clearResult() {
if (resultBuilder_ == null) {
result_ = null;
onChanged();
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult.Builder getResultBuilder() {
onChanged();
return getResultFieldBuilder().getBuilder();
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder() {
if (resultBuilder_ != null) {
return resultBuilder_.getMessageOrBuilder();
} else {
return result_ == null ?
com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
}
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder>(
getResult(),
getParentForChildren(),
isClean());
result_ = null;
}
return resultBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.ExecuteShardsResponse)
}
// @@protoc_insertion_point(class_scope:vtgate.ExecuteShardsResponse)
private static final com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse();
}
public static com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExecuteShardsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteShardsResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.ExecuteShardsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteKeyspaceIdsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.ExecuteKeyspaceIdsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
boolean hasCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerID getCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
boolean hasSession();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.Session getSession();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
boolean hasQuery();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
com.youtube.vitess.proto.Query.BoundQuery getQuery();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder();
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
java.lang.String getKeyspace();
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
com.google.protobuf.ByteString
getKeyspaceBytes();
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 5;
*/
java.util.List getKeyspaceIdsList();
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 5;
*/
int getKeyspaceIdsCount();
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 5;
*/
com.google.protobuf.ByteString getKeyspaceIds(int index);
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
int getTabletTypeValue();
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
com.youtube.vitess.proto.Topodata.TabletType getTabletType();
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 7;
*/
boolean getNotInTransaction();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
boolean hasOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
com.youtube.vitess.proto.Query.ExecuteOptions getOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder();
}
/**
*
* ExecuteKeyspaceIdsRequest is the payload to ExecuteKeyspaceIds.
*
*
* Protobuf type {@code vtgate.ExecuteKeyspaceIdsRequest}
*/
public static final class ExecuteKeyspaceIdsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.ExecuteKeyspaceIdsRequest)
ExecuteKeyspaceIdsRequestOrBuilder {
// Use ExecuteKeyspaceIdsRequest.newBuilder() to construct.
private ExecuteKeyspaceIdsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteKeyspaceIdsRequest() {
keyspace_ = "";
keyspaceIds_ = java.util.Collections.emptyList();
tabletType_ = 0;
notInTransaction_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ExecuteKeyspaceIdsRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Vtrpc.CallerID.Builder subBuilder = null;
if (callerId_ != null) {
subBuilder = callerId_.toBuilder();
}
callerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(callerId_);
callerId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.youtube.vitess.proto.Vtgate.Session.Builder subBuilder = null;
if (session_ != null) {
subBuilder = session_.toBuilder();
}
session_ = input.readMessage(com.youtube.vitess.proto.Vtgate.Session.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(session_);
session_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.youtube.vitess.proto.Query.BoundQuery.Builder subBuilder = null;
if (query_ != null) {
subBuilder = query_.toBuilder();
}
query_ = input.readMessage(com.youtube.vitess.proto.Query.BoundQuery.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(query_);
query_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
keyspace_ = s;
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
keyspaceIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
keyspaceIds_.add(input.readBytes());
break;
}
case 48: {
int rawValue = input.readEnum();
tabletType_ = rawValue;
break;
}
case 56: {
notInTransaction_ = input.readBool();
break;
}
case 66: {
com.youtube.vitess.proto.Query.ExecuteOptions.Builder subBuilder = null;
if (options_ != null) {
subBuilder = options_.toBuilder();
}
options_ = input.readMessage(com.youtube.vitess.proto.Query.ExecuteOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(options_);
options_ = subBuilder.buildPartial();
}
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_ & 0x00000010) == 0x00000010)) {
keyspaceIds_ = java.util.Collections.unmodifiableList(keyspaceIds_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteKeyspaceIdsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteKeyspaceIdsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest.class, com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest.Builder.class);
}
private int bitField0_;
public static final int CALLER_ID_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
return getCallerId();
}
public static final int SESSION_FIELD_NUMBER = 2;
private com.youtube.vitess.proto.Vtgate.Session session_;
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return session_ != null;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
return getSession();
}
public static final int QUERY_FIELD_NUMBER = 3;
private com.youtube.vitess.proto.Query.BoundQuery query_;
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public boolean hasQuery() {
return query_ != null;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQuery() {
return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() {
return getQuery();
}
public static final int KEYSPACE_FIELD_NUMBER = 4;
private volatile java.lang.Object keyspace_;
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
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 KEYSPACE_IDS_FIELD_NUMBER = 5;
private java.util.List keyspaceIds_;
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 5;
*/
public java.util.List
getKeyspaceIdsList() {
return keyspaceIds_;
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 5;
*/
public int getKeyspaceIdsCount() {
return keyspaceIds_.size();
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 5;
*/
public com.google.protobuf.ByteString getKeyspaceIds(int index) {
return keyspaceIds_.get(index);
}
public static final int TABLET_TYPE_FIELD_NUMBER = 6;
private int tabletType_;
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
public static final int NOT_IN_TRANSACTION_FIELD_NUMBER = 7;
private boolean notInTransaction_;
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 7;
*/
public boolean getNotInTransaction() {
return notInTransaction_;
}
public static final int OPTIONS_FIELD_NUMBER = 8;
private com.youtube.vitess.proto.Query.ExecuteOptions options_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public boolean hasOptions() {
return options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
return getOptions();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (callerId_ != null) {
output.writeMessage(1, getCallerId());
}
if (session_ != null) {
output.writeMessage(2, getSession());
}
if (query_ != null) {
output.writeMessage(3, getQuery());
}
if (!getKeyspaceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, keyspace_);
}
for (int i = 0; i < keyspaceIds_.size(); i++) {
output.writeBytes(5, keyspaceIds_.get(i));
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
output.writeEnum(6, tabletType_);
}
if (notInTransaction_ != false) {
output.writeBool(7, notInTransaction_);
}
if (options_ != null) {
output.writeMessage(8, getOptions());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (callerId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCallerId());
}
if (session_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSession());
}
if (query_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getQuery());
}
if (!getKeyspaceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, keyspace_);
}
{
int dataSize = 0;
for (int i = 0; i < keyspaceIds_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(keyspaceIds_.get(i));
}
size += dataSize;
size += 1 * getKeyspaceIdsList().size();
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, tabletType_);
}
if (notInTransaction_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, notInTransaction_);
}
if (options_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getOptions());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest other = (com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest) obj;
boolean result = true;
result = result && (hasCallerId() == other.hasCallerId());
if (hasCallerId()) {
result = result && getCallerId()
.equals(other.getCallerId());
}
result = result && (hasSession() == other.hasSession());
if (hasSession()) {
result = result && getSession()
.equals(other.getSession());
}
result = result && (hasQuery() == other.hasQuery());
if (hasQuery()) {
result = result && getQuery()
.equals(other.getQuery());
}
result = result && getKeyspace()
.equals(other.getKeyspace());
result = result && getKeyspaceIdsList()
.equals(other.getKeyspaceIdsList());
result = result && tabletType_ == other.tabletType_;
result = result && (getNotInTransaction()
== other.getNotInTransaction());
result = result && (hasOptions() == other.hasOptions());
if (hasOptions()) {
result = result && getOptions()
.equals(other.getOptions());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasCallerId()) {
hash = (37 * hash) + CALLER_ID_FIELD_NUMBER;
hash = (53 * hash) + getCallerId().hashCode();
}
if (hasSession()) {
hash = (37 * hash) + SESSION_FIELD_NUMBER;
hash = (53 * hash) + getSession().hashCode();
}
if (hasQuery()) {
hash = (37 * hash) + QUERY_FIELD_NUMBER;
hash = (53 * hash) + getQuery().hashCode();
}
hash = (37 * hash) + KEYSPACE_FIELD_NUMBER;
hash = (53 * hash) + getKeyspace().hashCode();
if (getKeyspaceIdsCount() > 0) {
hash = (37 * hash) + KEYSPACE_IDS_FIELD_NUMBER;
hash = (53 * hash) + getKeyspaceIdsList().hashCode();
}
hash = (37 * hash) + TABLET_TYPE_FIELD_NUMBER;
hash = (53 * hash) + tabletType_;
hash = (37 * hash) + NOT_IN_TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNotInTransaction());
if (hasOptions()) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptions().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* ExecuteKeyspaceIdsRequest is the payload to ExecuteKeyspaceIds.
*
*
* Protobuf type {@code vtgate.ExecuteKeyspaceIdsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.ExecuteKeyspaceIdsRequest)
com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteKeyspaceIdsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteKeyspaceIdsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest.class, com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (callerIdBuilder_ == null) {
callerId_ = null;
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
if (sessionBuilder_ == null) {
session_ = null;
} else {
session_ = null;
sessionBuilder_ = null;
}
if (queryBuilder_ == null) {
query_ = null;
} else {
query_ = null;
queryBuilder_ = null;
}
keyspace_ = "";
keyspaceIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
tabletType_ = 0;
notInTransaction_ = false;
if (optionsBuilder_ == null) {
options_ = null;
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteKeyspaceIdsRequest_descriptor;
}
public com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest build() {
com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest buildPartial() {
com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest result = new com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (callerIdBuilder_ == null) {
result.callerId_ = callerId_;
} else {
result.callerId_ = callerIdBuilder_.build();
}
if (sessionBuilder_ == null) {
result.session_ = session_;
} else {
result.session_ = sessionBuilder_.build();
}
if (queryBuilder_ == null) {
result.query_ = query_;
} else {
result.query_ = queryBuilder_.build();
}
result.keyspace_ = keyspace_;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
keyspaceIds_ = java.util.Collections.unmodifiableList(keyspaceIds_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.keyspaceIds_ = keyspaceIds_;
result.tabletType_ = tabletType_;
result.notInTransaction_ = notInTransaction_;
if (optionsBuilder_ == null) {
result.options_ = options_;
} else {
result.options_ = optionsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest other) {
if (other == com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest.getDefaultInstance()) return this;
if (other.hasCallerId()) {
mergeCallerId(other.getCallerId());
}
if (other.hasSession()) {
mergeSession(other.getSession());
}
if (other.hasQuery()) {
mergeQuery(other.getQuery());
}
if (!other.getKeyspace().isEmpty()) {
keyspace_ = other.keyspace_;
onChanged();
}
if (!other.keyspaceIds_.isEmpty()) {
if (keyspaceIds_.isEmpty()) {
keyspaceIds_ = other.keyspaceIds_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureKeyspaceIdsIsMutable();
keyspaceIds_.addAll(other.keyspaceIds_);
}
onChanged();
}
if (other.tabletType_ != 0) {
setTabletTypeValue(other.getTabletTypeValue());
}
if (other.getNotInTransaction() != false) {
setNotInTransaction(other.getNotInTransaction());
}
if (other.hasOptions()) {
mergeOptions(other.getOptions());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder> callerIdBuilder_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerIdBuilder_ != null || callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
if (callerIdBuilder_ == null) {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
} else {
return callerIdBuilder_.getMessage();
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
callerId_ = value;
onChanged();
} else {
callerIdBuilder_.setMessage(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(
com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) {
if (callerIdBuilder_ == null) {
callerId_ = builderForValue.build();
onChanged();
} else {
callerIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder mergeCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (callerId_ != null) {
callerId_ =
com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(callerId_).mergeFrom(value).buildPartial();
} else {
callerId_ = value;
}
onChanged();
} else {
callerIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder clearCallerId() {
if (callerIdBuilder_ == null) {
callerId_ = null;
onChanged();
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getCallerIdBuilder() {
onChanged();
return getCallerIdFieldBuilder().getBuilder();
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
if (callerIdBuilder_ != null) {
return callerIdBuilder_.getMessageOrBuilder();
} else {
return callerId_ == null ?
com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>
getCallerIdFieldBuilder() {
if (callerIdBuilder_ == null) {
callerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>(
getCallerId(),
getParentForChildren(),
isClean());
callerId_ = null;
}
return callerIdBuilder_;
}
private com.youtube.vitess.proto.Vtgate.Session session_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder> sessionBuilder_;
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return sessionBuilder_ != null || session_ != null;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
if (sessionBuilder_ == null) {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
} else {
return sessionBuilder_.getMessage();
}
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
session_ = value;
onChanged();
} else {
sessionBuilder_.setMessage(value);
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(
com.youtube.vitess.proto.Vtgate.Session.Builder builderForValue) {
if (sessionBuilder_ == null) {
session_ = builderForValue.build();
onChanged();
} else {
sessionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder mergeSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (session_ != null) {
session_ =
com.youtube.vitess.proto.Vtgate.Session.newBuilder(session_).mergeFrom(value).buildPartial();
} else {
session_ = value;
}
onChanged();
} else {
sessionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder clearSession() {
if (sessionBuilder_ == null) {
session_ = null;
onChanged();
} else {
session_ = null;
sessionBuilder_ = null;
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.Builder getSessionBuilder() {
onChanged();
return getSessionFieldBuilder().getBuilder();
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
if (sessionBuilder_ != null) {
return sessionBuilder_.getMessageOrBuilder();
} else {
return session_ == null ?
com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>
getSessionFieldBuilder() {
if (sessionBuilder_ == null) {
sessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>(
getSession(),
getParentForChildren(),
isClean());
session_ = null;
}
return sessionBuilder_;
}
private com.youtube.vitess.proto.Query.BoundQuery query_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder> queryBuilder_;
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public boolean hasQuery() {
return queryBuilder_ != null || query_ != null;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQuery() {
if (queryBuilder_ == null) {
return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
} else {
return queryBuilder_.getMessage();
}
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public Builder setQuery(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
query_ = value;
onChanged();
} else {
queryBuilder_.setMessage(value);
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public Builder setQuery(
com.youtube.vitess.proto.Query.BoundQuery.Builder builderForValue) {
if (queryBuilder_ == null) {
query_ = builderForValue.build();
onChanged();
} else {
queryBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public Builder mergeQuery(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queryBuilder_ == null) {
if (query_ != null) {
query_ =
com.youtube.vitess.proto.Query.BoundQuery.newBuilder(query_).mergeFrom(value).buildPartial();
} else {
query_ = value;
}
onChanged();
} else {
queryBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public Builder clearQuery() {
if (queryBuilder_ == null) {
query_ = null;
onChanged();
} else {
query_ = null;
queryBuilder_ = null;
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQuery.Builder getQueryBuilder() {
onChanged();
return getQueryFieldBuilder().getBuilder();
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() {
if (queryBuilder_ != null) {
return queryBuilder_.getMessageOrBuilder();
} else {
return query_ == null ?
com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
}
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>
getQueryFieldBuilder() {
if (queryBuilder_ == null) {
queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>(
getQuery(),
getParentForChildren(),
isClean());
query_ = null;
}
return queryBuilder_;
}
private java.lang.Object keyspace_ = "";
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
public Builder setKeyspace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
keyspace_ = value;
onChanged();
return this;
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
public Builder clearKeyspace() {
keyspace_ = getDefaultInstance().getKeyspace();
onChanged();
return this;
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
public Builder setKeyspaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
keyspace_ = value;
onChanged();
return this;
}
private java.util.List keyspaceIds_ = java.util.Collections.emptyList();
private void ensureKeyspaceIdsIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
keyspaceIds_ = new java.util.ArrayList(keyspaceIds_);
bitField0_ |= 0x00000010;
}
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 5;
*/
public java.util.List
getKeyspaceIdsList() {
return java.util.Collections.unmodifiableList(keyspaceIds_);
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 5;
*/
public int getKeyspaceIdsCount() {
return keyspaceIds_.size();
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 5;
*/
public com.google.protobuf.ByteString getKeyspaceIds(int index) {
return keyspaceIds_.get(index);
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 5;
*/
public Builder setKeyspaceIds(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyspaceIdsIsMutable();
keyspaceIds_.set(index, value);
onChanged();
return this;
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 5;
*/
public Builder addKeyspaceIds(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyspaceIdsIsMutable();
keyspaceIds_.add(value);
onChanged();
return this;
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 5;
*/
public Builder addAllKeyspaceIds(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureKeyspaceIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, keyspaceIds_);
onChanged();
return this;
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 5;
*/
public Builder clearKeyspaceIds() {
keyspaceIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
private int tabletType_ = 0;
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
public Builder setTabletTypeValue(int value) {
tabletType_ = value;
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
public Builder setTabletType(com.youtube.vitess.proto.Topodata.TabletType value) {
if (value == null) {
throw new NullPointerException();
}
tabletType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
public Builder clearTabletType() {
tabletType_ = 0;
onChanged();
return this;
}
private boolean notInTransaction_ ;
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 7;
*/
public boolean getNotInTransaction() {
return notInTransaction_;
}
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 7;
*/
public Builder setNotInTransaction(boolean value) {
notInTransaction_ = value;
onChanged();
return this;
}
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 7;
*/
public Builder clearNotInTransaction() {
notInTransaction_ = false;
onChanged();
return this;
}
private com.youtube.vitess.proto.Query.ExecuteOptions options_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder> optionsBuilder_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public boolean hasOptions() {
return optionsBuilder_ != null || options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
if (optionsBuilder_ == null) {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
} else {
return optionsBuilder_.getMessage();
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public Builder setOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
options_ = value;
onChanged();
} else {
optionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public Builder setOptions(
com.youtube.vitess.proto.Query.ExecuteOptions.Builder builderForValue) {
if (optionsBuilder_ == null) {
options_ = builderForValue.build();
onChanged();
} else {
optionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public Builder mergeOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (options_ != null) {
options_ =
com.youtube.vitess.proto.Query.ExecuteOptions.newBuilder(options_).mergeFrom(value).buildPartial();
} else {
options_ = value;
}
onChanged();
} else {
optionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public Builder clearOptions() {
if (optionsBuilder_ == null) {
options_ = null;
onChanged();
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions.Builder getOptionsBuilder() {
onChanged();
return getOptionsFieldBuilder().getBuilder();
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilder();
} else {
return options_ == null ?
com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>(
getOptions(),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.ExecuteKeyspaceIdsRequest)
}
// @@protoc_insertion_point(class_scope:vtgate.ExecuteKeyspaceIdsRequest)
private static final com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest();
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExecuteKeyspaceIdsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteKeyspaceIdsRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteKeyspaceIdsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.ExecuteKeyspaceIdsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
boolean hasError();
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
com.youtube.vitess.proto.Vtrpc.RPCError getError();
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
boolean hasSession();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.Session getSession();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder();
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
boolean hasResult();
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
com.youtube.vitess.proto.Query.QueryResult getResult();
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder();
}
/**
*
* ExecuteKeyspaceIdsResponse is the returned value from ExecuteKeyspaceIds.
*
*
* Protobuf type {@code vtgate.ExecuteKeyspaceIdsResponse}
*/
public static final class ExecuteKeyspaceIdsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.ExecuteKeyspaceIdsResponse)
ExecuteKeyspaceIdsResponseOrBuilder {
// Use ExecuteKeyspaceIdsResponse.newBuilder() to construct.
private ExecuteKeyspaceIdsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteKeyspaceIdsResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ExecuteKeyspaceIdsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Vtrpc.RPCError.Builder subBuilder = null;
if (error_ != null) {
subBuilder = error_.toBuilder();
}
error_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.RPCError.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(error_);
error_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.youtube.vitess.proto.Vtgate.Session.Builder subBuilder = null;
if (session_ != null) {
subBuilder = session_.toBuilder();
}
session_ = input.readMessage(com.youtube.vitess.proto.Vtgate.Session.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(session_);
session_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.youtube.vitess.proto.Query.QueryResult.Builder subBuilder = null;
if (result_ != null) {
subBuilder = result_.toBuilder();
}
result_ = input.readMessage(com.youtube.vitess.proto.Query.QueryResult.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(result_);
result_ = subBuilder.buildPartial();
}
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteKeyspaceIdsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteKeyspaceIdsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse.class, com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse.Builder.class);
}
public static final int ERROR_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Vtrpc.RPCError error_;
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public boolean hasError() {
return error_ != null;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError getError() {
return error_ == null ? com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder() {
return getError();
}
public static final int SESSION_FIELD_NUMBER = 2;
private com.youtube.vitess.proto.Vtgate.Session session_;
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return session_ != null;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
return getSession();
}
public static final int RESULT_FIELD_NUMBER = 3;
private com.youtube.vitess.proto.Query.QueryResult result_;
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public boolean hasResult() {
return result_ != null;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult getResult() {
return result_ == null ? com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder() {
return getResult();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (error_ != null) {
output.writeMessage(1, getError());
}
if (session_ != null) {
output.writeMessage(2, getSession());
}
if (result_ != null) {
output.writeMessage(3, getResult());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (error_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getError());
}
if (session_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSession());
}
if (result_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getResult());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse other = (com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse) obj;
boolean result = true;
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError()
.equals(other.getError());
}
result = result && (hasSession() == other.hasSession());
if (hasSession()) {
result = result && getSession()
.equals(other.getSession());
}
result = result && (hasResult() == other.hasResult());
if (hasResult()) {
result = result && getResult()
.equals(other.getResult());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasError()) {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
}
if (hasSession()) {
hash = (37 * hash) + SESSION_FIELD_NUMBER;
hash = (53 * hash) + getSession().hashCode();
}
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* ExecuteKeyspaceIdsResponse is the returned value from ExecuteKeyspaceIds.
*
*
* Protobuf type {@code vtgate.ExecuteKeyspaceIdsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.ExecuteKeyspaceIdsResponse)
com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteKeyspaceIdsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteKeyspaceIdsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse.class, com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (errorBuilder_ == null) {
error_ = null;
} else {
error_ = null;
errorBuilder_ = null;
}
if (sessionBuilder_ == null) {
session_ = null;
} else {
session_ = null;
sessionBuilder_ = null;
}
if (resultBuilder_ == null) {
result_ = null;
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteKeyspaceIdsResponse_descriptor;
}
public com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse build() {
com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse buildPartial() {
com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse result = new com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse(this);
if (errorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = errorBuilder_.build();
}
if (sessionBuilder_ == null) {
result.session_ = session_;
} else {
result.session_ = sessionBuilder_.build();
}
if (resultBuilder_ == null) {
result.result_ = result_;
} else {
result.result_ = resultBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse other) {
if (other == com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse.getDefaultInstance()) return this;
if (other.hasError()) {
mergeError(other.getError());
}
if (other.hasSession()) {
mergeSession(other.getSession());
}
if (other.hasResult()) {
mergeResult(other.getResult());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.youtube.vitess.proto.Vtrpc.RPCError error_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder> errorBuilder_;
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public boolean hasError() {
return errorBuilder_ != null || error_ != null;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError getError() {
if (errorBuilder_ == null) {
return error_ == null ? com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder setError(com.youtube.vitess.proto.Vtrpc.RPCError value) {
if (errorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
} else {
errorBuilder_.setMessage(value);
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder setError(
com.youtube.vitess.proto.Vtrpc.RPCError.Builder builderForValue) {
if (errorBuilder_ == null) {
error_ = builderForValue.build();
onChanged();
} else {
errorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder mergeError(com.youtube.vitess.proto.Vtrpc.RPCError value) {
if (errorBuilder_ == null) {
if (error_ != null) {
error_ =
com.youtube.vitess.proto.Vtrpc.RPCError.newBuilder(error_).mergeFrom(value).buildPartial();
} else {
error_ = value;
}
onChanged();
} else {
errorBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
error_ = null;
onChanged();
} else {
error_ = null;
errorBuilder_ = null;
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError.Builder getErrorBuilder() {
onChanged();
return getErrorFieldBuilder().getBuilder();
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder() {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
return error_ == null ?
com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
}
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder>(
getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
private com.youtube.vitess.proto.Vtgate.Session session_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder> sessionBuilder_;
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return sessionBuilder_ != null || session_ != null;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
if (sessionBuilder_ == null) {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
} else {
return sessionBuilder_.getMessage();
}
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
session_ = value;
onChanged();
} else {
sessionBuilder_.setMessage(value);
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(
com.youtube.vitess.proto.Vtgate.Session.Builder builderForValue) {
if (sessionBuilder_ == null) {
session_ = builderForValue.build();
onChanged();
} else {
sessionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder mergeSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (session_ != null) {
session_ =
com.youtube.vitess.proto.Vtgate.Session.newBuilder(session_).mergeFrom(value).buildPartial();
} else {
session_ = value;
}
onChanged();
} else {
sessionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder clearSession() {
if (sessionBuilder_ == null) {
session_ = null;
onChanged();
} else {
session_ = null;
sessionBuilder_ = null;
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.Builder getSessionBuilder() {
onChanged();
return getSessionFieldBuilder().getBuilder();
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
if (sessionBuilder_ != null) {
return sessionBuilder_.getMessageOrBuilder();
} else {
return session_ == null ?
com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>
getSessionFieldBuilder() {
if (sessionBuilder_ == null) {
sessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>(
getSession(),
getParentForChildren(),
isClean());
session_ = null;
}
return sessionBuilder_;
}
private com.youtube.vitess.proto.Query.QueryResult result_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder> resultBuilder_;
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public boolean hasResult() {
return resultBuilder_ != null || result_ != null;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult getResult() {
if (resultBuilder_ == null) {
return result_ == null ? com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
} else {
return resultBuilder_.getMessage();
}
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public Builder setResult(com.youtube.vitess.proto.Query.QueryResult value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
resultBuilder_.setMessage(value);
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public Builder setResult(
com.youtube.vitess.proto.Query.QueryResult.Builder builderForValue) {
if (resultBuilder_ == null) {
result_ = builderForValue.build();
onChanged();
} else {
resultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public Builder mergeResult(com.youtube.vitess.proto.Query.QueryResult value) {
if (resultBuilder_ == null) {
if (result_ != null) {
result_ =
com.youtube.vitess.proto.Query.QueryResult.newBuilder(result_).mergeFrom(value).buildPartial();
} else {
result_ = value;
}
onChanged();
} else {
resultBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public Builder clearResult() {
if (resultBuilder_ == null) {
result_ = null;
onChanged();
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult.Builder getResultBuilder() {
onChanged();
return getResultFieldBuilder().getBuilder();
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder() {
if (resultBuilder_ != null) {
return resultBuilder_.getMessageOrBuilder();
} else {
return result_ == null ?
com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
}
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder>(
getResult(),
getParentForChildren(),
isClean());
result_ = null;
}
return resultBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.ExecuteKeyspaceIdsResponse)
}
// @@protoc_insertion_point(class_scope:vtgate.ExecuteKeyspaceIdsResponse)
private static final com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse();
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExecuteKeyspaceIdsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteKeyspaceIdsResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.ExecuteKeyspaceIdsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteKeyRangesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.ExecuteKeyRangesRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
boolean hasCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerID getCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
boolean hasSession();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.Session getSession();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
boolean hasQuery();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
com.youtube.vitess.proto.Query.BoundQuery getQuery();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder();
/**
*
* keyspace to target the query to
*
*
* optional string keyspace = 4;
*/
java.lang.String getKeyspace();
/**
*
* keyspace to target the query to
*
*
* optional string keyspace = 4;
*/
com.google.protobuf.ByteString
getKeyspaceBytes();
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
java.util.List
getKeyRangesList();
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
com.youtube.vitess.proto.Topodata.KeyRange getKeyRanges(int index);
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
int getKeyRangesCount();
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
java.util.List extends com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder>
getKeyRangesOrBuilderList();
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder getKeyRangesOrBuilder(
int index);
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
int getTabletTypeValue();
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
com.youtube.vitess.proto.Topodata.TabletType getTabletType();
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 7;
*/
boolean getNotInTransaction();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
boolean hasOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
com.youtube.vitess.proto.Query.ExecuteOptions getOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder();
}
/**
*
* ExecuteKeyRangesRequest is the payload to ExecuteKeyRanges.
*
*
* Protobuf type {@code vtgate.ExecuteKeyRangesRequest}
*/
public static final class ExecuteKeyRangesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.ExecuteKeyRangesRequest)
ExecuteKeyRangesRequestOrBuilder {
// Use ExecuteKeyRangesRequest.newBuilder() to construct.
private ExecuteKeyRangesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteKeyRangesRequest() {
keyspace_ = "";
keyRanges_ = java.util.Collections.emptyList();
tabletType_ = 0;
notInTransaction_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ExecuteKeyRangesRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Vtrpc.CallerID.Builder subBuilder = null;
if (callerId_ != null) {
subBuilder = callerId_.toBuilder();
}
callerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(callerId_);
callerId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.youtube.vitess.proto.Vtgate.Session.Builder subBuilder = null;
if (session_ != null) {
subBuilder = session_.toBuilder();
}
session_ = input.readMessage(com.youtube.vitess.proto.Vtgate.Session.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(session_);
session_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.youtube.vitess.proto.Query.BoundQuery.Builder subBuilder = null;
if (query_ != null) {
subBuilder = query_.toBuilder();
}
query_ = input.readMessage(com.youtube.vitess.proto.Query.BoundQuery.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(query_);
query_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
keyspace_ = s;
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
keyRanges_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
keyRanges_.add(
input.readMessage(com.youtube.vitess.proto.Topodata.KeyRange.parser(), extensionRegistry));
break;
}
case 48: {
int rawValue = input.readEnum();
tabletType_ = rawValue;
break;
}
case 56: {
notInTransaction_ = input.readBool();
break;
}
case 66: {
com.youtube.vitess.proto.Query.ExecuteOptions.Builder subBuilder = null;
if (options_ != null) {
subBuilder = options_.toBuilder();
}
options_ = input.readMessage(com.youtube.vitess.proto.Query.ExecuteOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(options_);
options_ = subBuilder.buildPartial();
}
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_ & 0x00000010) == 0x00000010)) {
keyRanges_ = java.util.Collections.unmodifiableList(keyRanges_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteKeyRangesRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteKeyRangesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest.class, com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest.Builder.class);
}
private int bitField0_;
public static final int CALLER_ID_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
return getCallerId();
}
public static final int SESSION_FIELD_NUMBER = 2;
private com.youtube.vitess.proto.Vtgate.Session session_;
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return session_ != null;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
return getSession();
}
public static final int QUERY_FIELD_NUMBER = 3;
private com.youtube.vitess.proto.Query.BoundQuery query_;
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public boolean hasQuery() {
return query_ != null;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQuery() {
return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() {
return getQuery();
}
public static final int KEYSPACE_FIELD_NUMBER = 4;
private volatile java.lang.Object keyspace_;
/**
*
* keyspace to target the query to
*
*
* optional string keyspace = 4;
*/
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;
}
}
/**
*
* keyspace to target the query to
*
*
* optional string keyspace = 4;
*/
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 KEY_RANGES_FIELD_NUMBER = 5;
private java.util.List keyRanges_;
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public java.util.List getKeyRangesList() {
return keyRanges_;
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public java.util.List extends com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder>
getKeyRangesOrBuilderList() {
return keyRanges_;
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public int getKeyRangesCount() {
return keyRanges_.size();
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public com.youtube.vitess.proto.Topodata.KeyRange getKeyRanges(int index) {
return keyRanges_.get(index);
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder getKeyRangesOrBuilder(
int index) {
return keyRanges_.get(index);
}
public static final int TABLET_TYPE_FIELD_NUMBER = 6;
private int tabletType_;
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
public static final int NOT_IN_TRANSACTION_FIELD_NUMBER = 7;
private boolean notInTransaction_;
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 7;
*/
public boolean getNotInTransaction() {
return notInTransaction_;
}
public static final int OPTIONS_FIELD_NUMBER = 8;
private com.youtube.vitess.proto.Query.ExecuteOptions options_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public boolean hasOptions() {
return options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
return getOptions();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (callerId_ != null) {
output.writeMessage(1, getCallerId());
}
if (session_ != null) {
output.writeMessage(2, getSession());
}
if (query_ != null) {
output.writeMessage(3, getQuery());
}
if (!getKeyspaceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, keyspace_);
}
for (int i = 0; i < keyRanges_.size(); i++) {
output.writeMessage(5, keyRanges_.get(i));
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
output.writeEnum(6, tabletType_);
}
if (notInTransaction_ != false) {
output.writeBool(7, notInTransaction_);
}
if (options_ != null) {
output.writeMessage(8, getOptions());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (callerId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCallerId());
}
if (session_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSession());
}
if (query_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getQuery());
}
if (!getKeyspaceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, keyspace_);
}
for (int i = 0; i < keyRanges_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, keyRanges_.get(i));
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, tabletType_);
}
if (notInTransaction_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, notInTransaction_);
}
if (options_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getOptions());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest other = (com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest) obj;
boolean result = true;
result = result && (hasCallerId() == other.hasCallerId());
if (hasCallerId()) {
result = result && getCallerId()
.equals(other.getCallerId());
}
result = result && (hasSession() == other.hasSession());
if (hasSession()) {
result = result && getSession()
.equals(other.getSession());
}
result = result && (hasQuery() == other.hasQuery());
if (hasQuery()) {
result = result && getQuery()
.equals(other.getQuery());
}
result = result && getKeyspace()
.equals(other.getKeyspace());
result = result && getKeyRangesList()
.equals(other.getKeyRangesList());
result = result && tabletType_ == other.tabletType_;
result = result && (getNotInTransaction()
== other.getNotInTransaction());
result = result && (hasOptions() == other.hasOptions());
if (hasOptions()) {
result = result && getOptions()
.equals(other.getOptions());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasCallerId()) {
hash = (37 * hash) + CALLER_ID_FIELD_NUMBER;
hash = (53 * hash) + getCallerId().hashCode();
}
if (hasSession()) {
hash = (37 * hash) + SESSION_FIELD_NUMBER;
hash = (53 * hash) + getSession().hashCode();
}
if (hasQuery()) {
hash = (37 * hash) + QUERY_FIELD_NUMBER;
hash = (53 * hash) + getQuery().hashCode();
}
hash = (37 * hash) + KEYSPACE_FIELD_NUMBER;
hash = (53 * hash) + getKeyspace().hashCode();
if (getKeyRangesCount() > 0) {
hash = (37 * hash) + KEY_RANGES_FIELD_NUMBER;
hash = (53 * hash) + getKeyRangesList().hashCode();
}
hash = (37 * hash) + TABLET_TYPE_FIELD_NUMBER;
hash = (53 * hash) + tabletType_;
hash = (37 * hash) + NOT_IN_TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNotInTransaction());
if (hasOptions()) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptions().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* ExecuteKeyRangesRequest is the payload to ExecuteKeyRanges.
*
*
* Protobuf type {@code vtgate.ExecuteKeyRangesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.ExecuteKeyRangesRequest)
com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteKeyRangesRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteKeyRangesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest.class, com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getKeyRangesFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (callerIdBuilder_ == null) {
callerId_ = null;
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
if (sessionBuilder_ == null) {
session_ = null;
} else {
session_ = null;
sessionBuilder_ = null;
}
if (queryBuilder_ == null) {
query_ = null;
} else {
query_ = null;
queryBuilder_ = null;
}
keyspace_ = "";
if (keyRangesBuilder_ == null) {
keyRanges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
keyRangesBuilder_.clear();
}
tabletType_ = 0;
notInTransaction_ = false;
if (optionsBuilder_ == null) {
options_ = null;
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteKeyRangesRequest_descriptor;
}
public com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest build() {
com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest buildPartial() {
com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest result = new com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (callerIdBuilder_ == null) {
result.callerId_ = callerId_;
} else {
result.callerId_ = callerIdBuilder_.build();
}
if (sessionBuilder_ == null) {
result.session_ = session_;
} else {
result.session_ = sessionBuilder_.build();
}
if (queryBuilder_ == null) {
result.query_ = query_;
} else {
result.query_ = queryBuilder_.build();
}
result.keyspace_ = keyspace_;
if (keyRangesBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
keyRanges_ = java.util.Collections.unmodifiableList(keyRanges_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.keyRanges_ = keyRanges_;
} else {
result.keyRanges_ = keyRangesBuilder_.build();
}
result.tabletType_ = tabletType_;
result.notInTransaction_ = notInTransaction_;
if (optionsBuilder_ == null) {
result.options_ = options_;
} else {
result.options_ = optionsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest other) {
if (other == com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest.getDefaultInstance()) return this;
if (other.hasCallerId()) {
mergeCallerId(other.getCallerId());
}
if (other.hasSession()) {
mergeSession(other.getSession());
}
if (other.hasQuery()) {
mergeQuery(other.getQuery());
}
if (!other.getKeyspace().isEmpty()) {
keyspace_ = other.keyspace_;
onChanged();
}
if (keyRangesBuilder_ == null) {
if (!other.keyRanges_.isEmpty()) {
if (keyRanges_.isEmpty()) {
keyRanges_ = other.keyRanges_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureKeyRangesIsMutable();
keyRanges_.addAll(other.keyRanges_);
}
onChanged();
}
} else {
if (!other.keyRanges_.isEmpty()) {
if (keyRangesBuilder_.isEmpty()) {
keyRangesBuilder_.dispose();
keyRangesBuilder_ = null;
keyRanges_ = other.keyRanges_;
bitField0_ = (bitField0_ & ~0x00000010);
keyRangesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getKeyRangesFieldBuilder() : null;
} else {
keyRangesBuilder_.addAllMessages(other.keyRanges_);
}
}
}
if (other.tabletType_ != 0) {
setTabletTypeValue(other.getTabletTypeValue());
}
if (other.getNotInTransaction() != false) {
setNotInTransaction(other.getNotInTransaction());
}
if (other.hasOptions()) {
mergeOptions(other.getOptions());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder> callerIdBuilder_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerIdBuilder_ != null || callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
if (callerIdBuilder_ == null) {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
} else {
return callerIdBuilder_.getMessage();
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
callerId_ = value;
onChanged();
} else {
callerIdBuilder_.setMessage(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(
com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) {
if (callerIdBuilder_ == null) {
callerId_ = builderForValue.build();
onChanged();
} else {
callerIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder mergeCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (callerId_ != null) {
callerId_ =
com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(callerId_).mergeFrom(value).buildPartial();
} else {
callerId_ = value;
}
onChanged();
} else {
callerIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder clearCallerId() {
if (callerIdBuilder_ == null) {
callerId_ = null;
onChanged();
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getCallerIdBuilder() {
onChanged();
return getCallerIdFieldBuilder().getBuilder();
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
if (callerIdBuilder_ != null) {
return callerIdBuilder_.getMessageOrBuilder();
} else {
return callerId_ == null ?
com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>
getCallerIdFieldBuilder() {
if (callerIdBuilder_ == null) {
callerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>(
getCallerId(),
getParentForChildren(),
isClean());
callerId_ = null;
}
return callerIdBuilder_;
}
private com.youtube.vitess.proto.Vtgate.Session session_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder> sessionBuilder_;
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return sessionBuilder_ != null || session_ != null;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
if (sessionBuilder_ == null) {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
} else {
return sessionBuilder_.getMessage();
}
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
session_ = value;
onChanged();
} else {
sessionBuilder_.setMessage(value);
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(
com.youtube.vitess.proto.Vtgate.Session.Builder builderForValue) {
if (sessionBuilder_ == null) {
session_ = builderForValue.build();
onChanged();
} else {
sessionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder mergeSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (session_ != null) {
session_ =
com.youtube.vitess.proto.Vtgate.Session.newBuilder(session_).mergeFrom(value).buildPartial();
} else {
session_ = value;
}
onChanged();
} else {
sessionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder clearSession() {
if (sessionBuilder_ == null) {
session_ = null;
onChanged();
} else {
session_ = null;
sessionBuilder_ = null;
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.Builder getSessionBuilder() {
onChanged();
return getSessionFieldBuilder().getBuilder();
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
if (sessionBuilder_ != null) {
return sessionBuilder_.getMessageOrBuilder();
} else {
return session_ == null ?
com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>
getSessionFieldBuilder() {
if (sessionBuilder_ == null) {
sessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>(
getSession(),
getParentForChildren(),
isClean());
session_ = null;
}
return sessionBuilder_;
}
private com.youtube.vitess.proto.Query.BoundQuery query_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder> queryBuilder_;
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public boolean hasQuery() {
return queryBuilder_ != null || query_ != null;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQuery() {
if (queryBuilder_ == null) {
return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
} else {
return queryBuilder_.getMessage();
}
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public Builder setQuery(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
query_ = value;
onChanged();
} else {
queryBuilder_.setMessage(value);
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public Builder setQuery(
com.youtube.vitess.proto.Query.BoundQuery.Builder builderForValue) {
if (queryBuilder_ == null) {
query_ = builderForValue.build();
onChanged();
} else {
queryBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public Builder mergeQuery(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queryBuilder_ == null) {
if (query_ != null) {
query_ =
com.youtube.vitess.proto.Query.BoundQuery.newBuilder(query_).mergeFrom(value).buildPartial();
} else {
query_ = value;
}
onChanged();
} else {
queryBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public Builder clearQuery() {
if (queryBuilder_ == null) {
query_ = null;
onChanged();
} else {
query_ = null;
queryBuilder_ = null;
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQuery.Builder getQueryBuilder() {
onChanged();
return getQueryFieldBuilder().getBuilder();
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() {
if (queryBuilder_ != null) {
return queryBuilder_.getMessageOrBuilder();
} else {
return query_ == null ?
com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
}
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>
getQueryFieldBuilder() {
if (queryBuilder_ == null) {
queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>(
getQuery(),
getParentForChildren(),
isClean());
query_ = null;
}
return queryBuilder_;
}
private java.lang.Object keyspace_ = "";
/**
*
* keyspace to target the query to
*
*
* optional string keyspace = 4;
*/
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;
}
}
/**
*
* keyspace to target the query to
*
*
* optional string keyspace = 4;
*/
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;
}
}
/**
*
* keyspace to target the query to
*
*
* optional string keyspace = 4;
*/
public Builder setKeyspace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
keyspace_ = value;
onChanged();
return this;
}
/**
*
* keyspace to target the query to
*
*
* optional string keyspace = 4;
*/
public Builder clearKeyspace() {
keyspace_ = getDefaultInstance().getKeyspace();
onChanged();
return this;
}
/**
*
* keyspace to target the query to
*
*
* optional string keyspace = 4;
*/
public Builder setKeyspaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
keyspace_ = value;
onChanged();
return this;
}
private java.util.List keyRanges_ =
java.util.Collections.emptyList();
private void ensureKeyRangesIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
keyRanges_ = new java.util.ArrayList(keyRanges_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Topodata.KeyRange, com.youtube.vitess.proto.Topodata.KeyRange.Builder, com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder> keyRangesBuilder_;
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public java.util.List getKeyRangesList() {
if (keyRangesBuilder_ == null) {
return java.util.Collections.unmodifiableList(keyRanges_);
} else {
return keyRangesBuilder_.getMessageList();
}
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public int getKeyRangesCount() {
if (keyRangesBuilder_ == null) {
return keyRanges_.size();
} else {
return keyRangesBuilder_.getCount();
}
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public com.youtube.vitess.proto.Topodata.KeyRange getKeyRanges(int index) {
if (keyRangesBuilder_ == null) {
return keyRanges_.get(index);
} else {
return keyRangesBuilder_.getMessage(index);
}
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public Builder setKeyRanges(
int index, com.youtube.vitess.proto.Topodata.KeyRange value) {
if (keyRangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyRangesIsMutable();
keyRanges_.set(index, value);
onChanged();
} else {
keyRangesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public Builder setKeyRanges(
int index, com.youtube.vitess.proto.Topodata.KeyRange.Builder builderForValue) {
if (keyRangesBuilder_ == null) {
ensureKeyRangesIsMutable();
keyRanges_.set(index, builderForValue.build());
onChanged();
} else {
keyRangesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public Builder addKeyRanges(com.youtube.vitess.proto.Topodata.KeyRange value) {
if (keyRangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyRangesIsMutable();
keyRanges_.add(value);
onChanged();
} else {
keyRangesBuilder_.addMessage(value);
}
return this;
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public Builder addKeyRanges(
int index, com.youtube.vitess.proto.Topodata.KeyRange value) {
if (keyRangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyRangesIsMutable();
keyRanges_.add(index, value);
onChanged();
} else {
keyRangesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public Builder addKeyRanges(
com.youtube.vitess.proto.Topodata.KeyRange.Builder builderForValue) {
if (keyRangesBuilder_ == null) {
ensureKeyRangesIsMutable();
keyRanges_.add(builderForValue.build());
onChanged();
} else {
keyRangesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public Builder addKeyRanges(
int index, com.youtube.vitess.proto.Topodata.KeyRange.Builder builderForValue) {
if (keyRangesBuilder_ == null) {
ensureKeyRangesIsMutable();
keyRanges_.add(index, builderForValue.build());
onChanged();
} else {
keyRangesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public Builder addAllKeyRanges(
java.lang.Iterable extends com.youtube.vitess.proto.Topodata.KeyRange> values) {
if (keyRangesBuilder_ == null) {
ensureKeyRangesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, keyRanges_);
onChanged();
} else {
keyRangesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public Builder clearKeyRanges() {
if (keyRangesBuilder_ == null) {
keyRanges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
keyRangesBuilder_.clear();
}
return this;
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public Builder removeKeyRanges(int index) {
if (keyRangesBuilder_ == null) {
ensureKeyRangesIsMutable();
keyRanges_.remove(index);
onChanged();
} else {
keyRangesBuilder_.remove(index);
}
return this;
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public com.youtube.vitess.proto.Topodata.KeyRange.Builder getKeyRangesBuilder(
int index) {
return getKeyRangesFieldBuilder().getBuilder(index);
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder getKeyRangesOrBuilder(
int index) {
if (keyRangesBuilder_ == null) {
return keyRanges_.get(index); } else {
return keyRangesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public java.util.List extends com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder>
getKeyRangesOrBuilderList() {
if (keyRangesBuilder_ != null) {
return keyRangesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(keyRanges_);
}
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public com.youtube.vitess.proto.Topodata.KeyRange.Builder addKeyRangesBuilder() {
return getKeyRangesFieldBuilder().addBuilder(
com.youtube.vitess.proto.Topodata.KeyRange.getDefaultInstance());
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public com.youtube.vitess.proto.Topodata.KeyRange.Builder addKeyRangesBuilder(
int index) {
return getKeyRangesFieldBuilder().addBuilder(
index, com.youtube.vitess.proto.Topodata.KeyRange.getDefaultInstance());
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 5;
*/
public java.util.List
getKeyRangesBuilderList() {
return getKeyRangesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Topodata.KeyRange, com.youtube.vitess.proto.Topodata.KeyRange.Builder, com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder>
getKeyRangesFieldBuilder() {
if (keyRangesBuilder_ == null) {
keyRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Topodata.KeyRange, com.youtube.vitess.proto.Topodata.KeyRange.Builder, com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder>(
keyRanges_,
((bitField0_ & 0x00000010) == 0x00000010),
getParentForChildren(),
isClean());
keyRanges_ = null;
}
return keyRangesBuilder_;
}
private int tabletType_ = 0;
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
public Builder setTabletTypeValue(int value) {
tabletType_ = value;
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
public Builder setTabletType(com.youtube.vitess.proto.Topodata.TabletType value) {
if (value == null) {
throw new NullPointerException();
}
tabletType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 6;
*/
public Builder clearTabletType() {
tabletType_ = 0;
onChanged();
return this;
}
private boolean notInTransaction_ ;
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 7;
*/
public boolean getNotInTransaction() {
return notInTransaction_;
}
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 7;
*/
public Builder setNotInTransaction(boolean value) {
notInTransaction_ = value;
onChanged();
return this;
}
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 7;
*/
public Builder clearNotInTransaction() {
notInTransaction_ = false;
onChanged();
return this;
}
private com.youtube.vitess.proto.Query.ExecuteOptions options_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder> optionsBuilder_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public boolean hasOptions() {
return optionsBuilder_ != null || options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
if (optionsBuilder_ == null) {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
} else {
return optionsBuilder_.getMessage();
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public Builder setOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
options_ = value;
onChanged();
} else {
optionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public Builder setOptions(
com.youtube.vitess.proto.Query.ExecuteOptions.Builder builderForValue) {
if (optionsBuilder_ == null) {
options_ = builderForValue.build();
onChanged();
} else {
optionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public Builder mergeOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (options_ != null) {
options_ =
com.youtube.vitess.proto.Query.ExecuteOptions.newBuilder(options_).mergeFrom(value).buildPartial();
} else {
options_ = value;
}
onChanged();
} else {
optionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public Builder clearOptions() {
if (optionsBuilder_ == null) {
options_ = null;
onChanged();
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions.Builder getOptionsBuilder() {
onChanged();
return getOptionsFieldBuilder().getBuilder();
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilder();
} else {
return options_ == null ?
com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>(
getOptions(),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.ExecuteKeyRangesRequest)
}
// @@protoc_insertion_point(class_scope:vtgate.ExecuteKeyRangesRequest)
private static final com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest();
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExecuteKeyRangesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteKeyRangesRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteKeyRangesResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.ExecuteKeyRangesResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
boolean hasError();
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
com.youtube.vitess.proto.Vtrpc.RPCError getError();
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
boolean hasSession();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.Session getSession();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder();
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
boolean hasResult();
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
com.youtube.vitess.proto.Query.QueryResult getResult();
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder();
}
/**
*
* ExecuteKeyRangesResponse is the returned value from ExecuteKeyRanges.
*
*
* Protobuf type {@code vtgate.ExecuteKeyRangesResponse}
*/
public static final class ExecuteKeyRangesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.ExecuteKeyRangesResponse)
ExecuteKeyRangesResponseOrBuilder {
// Use ExecuteKeyRangesResponse.newBuilder() to construct.
private ExecuteKeyRangesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteKeyRangesResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ExecuteKeyRangesResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Vtrpc.RPCError.Builder subBuilder = null;
if (error_ != null) {
subBuilder = error_.toBuilder();
}
error_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.RPCError.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(error_);
error_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.youtube.vitess.proto.Vtgate.Session.Builder subBuilder = null;
if (session_ != null) {
subBuilder = session_.toBuilder();
}
session_ = input.readMessage(com.youtube.vitess.proto.Vtgate.Session.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(session_);
session_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.youtube.vitess.proto.Query.QueryResult.Builder subBuilder = null;
if (result_ != null) {
subBuilder = result_.toBuilder();
}
result_ = input.readMessage(com.youtube.vitess.proto.Query.QueryResult.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(result_);
result_ = subBuilder.buildPartial();
}
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteKeyRangesResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteKeyRangesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse.class, com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse.Builder.class);
}
public static final int ERROR_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Vtrpc.RPCError error_;
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public boolean hasError() {
return error_ != null;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError getError() {
return error_ == null ? com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder() {
return getError();
}
public static final int SESSION_FIELD_NUMBER = 2;
private com.youtube.vitess.proto.Vtgate.Session session_;
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return session_ != null;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
return getSession();
}
public static final int RESULT_FIELD_NUMBER = 3;
private com.youtube.vitess.proto.Query.QueryResult result_;
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public boolean hasResult() {
return result_ != null;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult getResult() {
return result_ == null ? com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder() {
return getResult();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (error_ != null) {
output.writeMessage(1, getError());
}
if (session_ != null) {
output.writeMessage(2, getSession());
}
if (result_ != null) {
output.writeMessage(3, getResult());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (error_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getError());
}
if (session_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSession());
}
if (result_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getResult());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse other = (com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse) obj;
boolean result = true;
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError()
.equals(other.getError());
}
result = result && (hasSession() == other.hasSession());
if (hasSession()) {
result = result && getSession()
.equals(other.getSession());
}
result = result && (hasResult() == other.hasResult());
if (hasResult()) {
result = result && getResult()
.equals(other.getResult());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasError()) {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
}
if (hasSession()) {
hash = (37 * hash) + SESSION_FIELD_NUMBER;
hash = (53 * hash) + getSession().hashCode();
}
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* ExecuteKeyRangesResponse is the returned value from ExecuteKeyRanges.
*
*
* Protobuf type {@code vtgate.ExecuteKeyRangesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.ExecuteKeyRangesResponse)
com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteKeyRangesResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteKeyRangesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse.class, com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (errorBuilder_ == null) {
error_ = null;
} else {
error_ = null;
errorBuilder_ = null;
}
if (sessionBuilder_ == null) {
session_ = null;
} else {
session_ = null;
sessionBuilder_ = null;
}
if (resultBuilder_ == null) {
result_ = null;
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteKeyRangesResponse_descriptor;
}
public com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse build() {
com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse buildPartial() {
com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse result = new com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse(this);
if (errorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = errorBuilder_.build();
}
if (sessionBuilder_ == null) {
result.session_ = session_;
} else {
result.session_ = sessionBuilder_.build();
}
if (resultBuilder_ == null) {
result.result_ = result_;
} else {
result.result_ = resultBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse other) {
if (other == com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse.getDefaultInstance()) return this;
if (other.hasError()) {
mergeError(other.getError());
}
if (other.hasSession()) {
mergeSession(other.getSession());
}
if (other.hasResult()) {
mergeResult(other.getResult());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.youtube.vitess.proto.Vtrpc.RPCError error_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder> errorBuilder_;
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public boolean hasError() {
return errorBuilder_ != null || error_ != null;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError getError() {
if (errorBuilder_ == null) {
return error_ == null ? com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder setError(com.youtube.vitess.proto.Vtrpc.RPCError value) {
if (errorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
} else {
errorBuilder_.setMessage(value);
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder setError(
com.youtube.vitess.proto.Vtrpc.RPCError.Builder builderForValue) {
if (errorBuilder_ == null) {
error_ = builderForValue.build();
onChanged();
} else {
errorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder mergeError(com.youtube.vitess.proto.Vtrpc.RPCError value) {
if (errorBuilder_ == null) {
if (error_ != null) {
error_ =
com.youtube.vitess.proto.Vtrpc.RPCError.newBuilder(error_).mergeFrom(value).buildPartial();
} else {
error_ = value;
}
onChanged();
} else {
errorBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
error_ = null;
onChanged();
} else {
error_ = null;
errorBuilder_ = null;
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError.Builder getErrorBuilder() {
onChanged();
return getErrorFieldBuilder().getBuilder();
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder() {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
return error_ == null ?
com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
}
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder>(
getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
private com.youtube.vitess.proto.Vtgate.Session session_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder> sessionBuilder_;
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return sessionBuilder_ != null || session_ != null;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
if (sessionBuilder_ == null) {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
} else {
return sessionBuilder_.getMessage();
}
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
session_ = value;
onChanged();
} else {
sessionBuilder_.setMessage(value);
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(
com.youtube.vitess.proto.Vtgate.Session.Builder builderForValue) {
if (sessionBuilder_ == null) {
session_ = builderForValue.build();
onChanged();
} else {
sessionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder mergeSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (session_ != null) {
session_ =
com.youtube.vitess.proto.Vtgate.Session.newBuilder(session_).mergeFrom(value).buildPartial();
} else {
session_ = value;
}
onChanged();
} else {
sessionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder clearSession() {
if (sessionBuilder_ == null) {
session_ = null;
onChanged();
} else {
session_ = null;
sessionBuilder_ = null;
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.Builder getSessionBuilder() {
onChanged();
return getSessionFieldBuilder().getBuilder();
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
if (sessionBuilder_ != null) {
return sessionBuilder_.getMessageOrBuilder();
} else {
return session_ == null ?
com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>
getSessionFieldBuilder() {
if (sessionBuilder_ == null) {
sessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>(
getSession(),
getParentForChildren(),
isClean());
session_ = null;
}
return sessionBuilder_;
}
private com.youtube.vitess.proto.Query.QueryResult result_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder> resultBuilder_;
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public boolean hasResult() {
return resultBuilder_ != null || result_ != null;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult getResult() {
if (resultBuilder_ == null) {
return result_ == null ? com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
} else {
return resultBuilder_.getMessage();
}
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public Builder setResult(com.youtube.vitess.proto.Query.QueryResult value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
resultBuilder_.setMessage(value);
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public Builder setResult(
com.youtube.vitess.proto.Query.QueryResult.Builder builderForValue) {
if (resultBuilder_ == null) {
result_ = builderForValue.build();
onChanged();
} else {
resultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public Builder mergeResult(com.youtube.vitess.proto.Query.QueryResult value) {
if (resultBuilder_ == null) {
if (result_ != null) {
result_ =
com.youtube.vitess.proto.Query.QueryResult.newBuilder(result_).mergeFrom(value).buildPartial();
} else {
result_ = value;
}
onChanged();
} else {
resultBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public Builder clearResult() {
if (resultBuilder_ == null) {
result_ = null;
onChanged();
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult.Builder getResultBuilder() {
onChanged();
return getResultFieldBuilder().getBuilder();
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder() {
if (resultBuilder_ != null) {
return resultBuilder_.getMessageOrBuilder();
} else {
return result_ == null ?
com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
}
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder>(
getResult(),
getParentForChildren(),
isClean());
result_ = null;
}
return resultBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.ExecuteKeyRangesResponse)
}
// @@protoc_insertion_point(class_scope:vtgate.ExecuteKeyRangesResponse)
private static final com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse();
}
public static com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExecuteKeyRangesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteKeyRangesResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.ExecuteKeyRangesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteEntityIdsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.ExecuteEntityIdsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
boolean hasCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerID getCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
boolean hasSession();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.Session getSession();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
boolean hasQuery();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
com.youtube.vitess.proto.Query.BoundQuery getQuery();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder();
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
java.lang.String getKeyspace();
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
com.google.protobuf.ByteString
getKeyspaceBytes();
/**
*
* entity_column_name is the column name to use.
*
*
* optional string entity_column_name = 5;
*/
java.lang.String getEntityColumnName();
/**
*
* entity_column_name is the column name to use.
*
*
* optional string entity_column_name = 5;
*/
com.google.protobuf.ByteString
getEntityColumnNameBytes();
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
java.util.List
getEntityKeyspaceIdsList();
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId getEntityKeyspaceIds(int index);
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
int getEntityKeyspaceIdsCount();
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
java.util.List extends com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityIdOrBuilder>
getEntityKeyspaceIdsOrBuilderList();
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityIdOrBuilder getEntityKeyspaceIdsOrBuilder(
int index);
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 7;
*/
int getTabletTypeValue();
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 7;
*/
com.youtube.vitess.proto.Topodata.TabletType getTabletType();
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 8;
*/
boolean getNotInTransaction();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 9;
*/
boolean hasOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 9;
*/
com.youtube.vitess.proto.Query.ExecuteOptions getOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 9;
*/
com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder();
}
/**
*
* ExecuteEntityIdsRequest is the payload to ExecuteEntityIds.
*
*
* Protobuf type {@code vtgate.ExecuteEntityIdsRequest}
*/
public static final class ExecuteEntityIdsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.ExecuteEntityIdsRequest)
ExecuteEntityIdsRequestOrBuilder {
// Use ExecuteEntityIdsRequest.newBuilder() to construct.
private ExecuteEntityIdsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteEntityIdsRequest() {
keyspace_ = "";
entityColumnName_ = "";
entityKeyspaceIds_ = java.util.Collections.emptyList();
tabletType_ = 0;
notInTransaction_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ExecuteEntityIdsRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Vtrpc.CallerID.Builder subBuilder = null;
if (callerId_ != null) {
subBuilder = callerId_.toBuilder();
}
callerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(callerId_);
callerId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.youtube.vitess.proto.Vtgate.Session.Builder subBuilder = null;
if (session_ != null) {
subBuilder = session_.toBuilder();
}
session_ = input.readMessage(com.youtube.vitess.proto.Vtgate.Session.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(session_);
session_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.youtube.vitess.proto.Query.BoundQuery.Builder subBuilder = null;
if (query_ != null) {
subBuilder = query_.toBuilder();
}
query_ = input.readMessage(com.youtube.vitess.proto.Query.BoundQuery.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(query_);
query_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
keyspace_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
entityColumnName_ = s;
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
entityKeyspaceIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
entityKeyspaceIds_.add(
input.readMessage(com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId.parser(), extensionRegistry));
break;
}
case 56: {
int rawValue = input.readEnum();
tabletType_ = rawValue;
break;
}
case 64: {
notInTransaction_ = input.readBool();
break;
}
case 74: {
com.youtube.vitess.proto.Query.ExecuteOptions.Builder subBuilder = null;
if (options_ != null) {
subBuilder = options_.toBuilder();
}
options_ = input.readMessage(com.youtube.vitess.proto.Query.ExecuteOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(options_);
options_ = subBuilder.buildPartial();
}
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_ & 0x00000020) == 0x00000020)) {
entityKeyspaceIds_ = java.util.Collections.unmodifiableList(entityKeyspaceIds_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteEntityIdsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteEntityIdsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.class, com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.Builder.class);
}
public interface EntityIdOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.ExecuteEntityIdsRequest.EntityId)
com.google.protobuf.MessageOrBuilder {
/**
*
* type is the type of the entity's value. Can be NULL_TYPE.
*
*
* optional .query.Type type = 1;
*/
int getTypeValue();
/**
*
* type is the type of the entity's value. Can be NULL_TYPE.
*
*
* optional .query.Type type = 1;
*/
com.youtube.vitess.proto.Query.Type getType();
/**
*
* value is the value for the entity. Not set if type is NULL_TYPE.
*
*
* optional bytes value = 2;
*/
com.google.protobuf.ByteString getValue();
/**
*
* keyspace_id is the associated keyspace_id for the entity.
*
*
* optional bytes keyspace_id = 3;
*/
com.google.protobuf.ByteString getKeyspaceId();
}
/**
* Protobuf type {@code vtgate.ExecuteEntityIdsRequest.EntityId}
*/
public static final class EntityId extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.ExecuteEntityIdsRequest.EntityId)
EntityIdOrBuilder {
// Use EntityId.newBuilder() to construct.
private EntityId(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EntityId() {
type_ = 0;
value_ = com.google.protobuf.ByteString.EMPTY;
keyspaceId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private EntityId(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 18: {
value_ = input.readBytes();
break;
}
case 26: {
keyspaceId_ = input.readBytes();
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteEntityIdsRequest_EntityId_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteEntityIdsRequest_EntityId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId.class, com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId.Builder.class);
}
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
*
* type is the type of the entity's value. Can be NULL_TYPE.
*
*
* optional .query.Type type = 1;
*/
public int getTypeValue() {
return type_;
}
/**
*
* type is the type of the entity's value. Can be NULL_TYPE.
*
*
* optional .query.Type type = 1;
*/
public com.youtube.vitess.proto.Query.Type getType() {
com.youtube.vitess.proto.Query.Type result = com.youtube.vitess.proto.Query.Type.valueOf(type_);
return result == null ? com.youtube.vitess.proto.Query.Type.UNRECOGNIZED : result;
}
public static final int VALUE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString value_;
/**
*
* value is the value for the entity. Not set if type is NULL_TYPE.
*
*
* optional bytes value = 2;
*/
public com.google.protobuf.ByteString getValue() {
return value_;
}
public static final int KEYSPACE_ID_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString keyspaceId_;
/**
*
* keyspace_id is the associated keyspace_id for the entity.
*
*
* optional bytes keyspace_id = 3;
*/
public com.google.protobuf.ByteString getKeyspaceId() {
return keyspaceId_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (type_ != com.youtube.vitess.proto.Query.Type.NULL_TYPE.getNumber()) {
output.writeEnum(1, type_);
}
if (!value_.isEmpty()) {
output.writeBytes(2, value_);
}
if (!keyspaceId_.isEmpty()) {
output.writeBytes(3, keyspaceId_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (type_ != com.youtube.vitess.proto.Query.Type.NULL_TYPE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, value_);
}
if (!keyspaceId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, keyspaceId_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId other = (com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId) obj;
boolean result = true;
result = result && type_ == other.type_;
result = result && getValue()
.equals(other.getValue());
result = result && getKeyspaceId()
.equals(other.getKeyspaceId());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (37 * hash) + KEYSPACE_ID_FIELD_NUMBER;
hash = (53 * hash) + getKeyspaceId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 vtgate.ExecuteEntityIdsRequest.EntityId}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.ExecuteEntityIdsRequest.EntityId)
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityIdOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteEntityIdsRequest_EntityId_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteEntityIdsRequest_EntityId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId.class, com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
type_ = 0;
value_ = com.google.protobuf.ByteString.EMPTY;
keyspaceId_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteEntityIdsRequest_EntityId_descriptor;
}
public com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId build() {
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId buildPartial() {
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId result = new com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId(this);
result.type_ = type_;
result.value_ = value_;
result.keyspaceId_ = keyspaceId_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId other) {
if (other == com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId.getDefaultInstance()) return this;
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(other.getValue());
}
if (other.getKeyspaceId() != com.google.protobuf.ByteString.EMPTY) {
setKeyspaceId(other.getKeyspaceId());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int type_ = 0;
/**
*
* type is the type of the entity's value. Can be NULL_TYPE.
*
*
* optional .query.Type type = 1;
*/
public int getTypeValue() {
return type_;
}
/**
*
* type is the type of the entity's value. Can be NULL_TYPE.
*
*
* optional .query.Type type = 1;
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
*
* type is the type of the entity's value. Can be NULL_TYPE.
*
*
* optional .query.Type type = 1;
*/
public com.youtube.vitess.proto.Query.Type getType() {
com.youtube.vitess.proto.Query.Type result = com.youtube.vitess.proto.Query.Type.valueOf(type_);
return result == null ? com.youtube.vitess.proto.Query.Type.UNRECOGNIZED : result;
}
/**
*
* type is the type of the entity's value. Can be NULL_TYPE.
*
*
* optional .query.Type type = 1;
*/
public Builder setType(com.youtube.vitess.proto.Query.Type value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* type is the type of the entity's value. Can be NULL_TYPE.
*
*
* optional .query.Type type = 1;
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* value is the value for the entity. Not set if type is NULL_TYPE.
*
*
* optional bytes value = 2;
*/
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
*
* value is the value for the entity. Not set if type is NULL_TYPE.
*
*
* optional bytes value = 2;
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
*
* value is the value for the entity. Not set if type is NULL_TYPE.
*
*
* optional bytes value = 2;
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
private com.google.protobuf.ByteString keyspaceId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* keyspace_id is the associated keyspace_id for the entity.
*
*
* optional bytes keyspace_id = 3;
*/
public com.google.protobuf.ByteString getKeyspaceId() {
return keyspaceId_;
}
/**
*
* keyspace_id is the associated keyspace_id for the entity.
*
*
* optional bytes keyspace_id = 3;
*/
public Builder setKeyspaceId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
keyspaceId_ = value;
onChanged();
return this;
}
/**
*
* keyspace_id is the associated keyspace_id for the entity.
*
*
* optional bytes keyspace_id = 3;
*/
public Builder clearKeyspaceId() {
keyspaceId_ = getDefaultInstance().getKeyspaceId();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.ExecuteEntityIdsRequest.EntityId)
}
// @@protoc_insertion_point(class_scope:vtgate.ExecuteEntityIdsRequest.EntityId)
private static final com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId();
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public EntityId parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EntityId(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int CALLER_ID_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
return getCallerId();
}
public static final int SESSION_FIELD_NUMBER = 2;
private com.youtube.vitess.proto.Vtgate.Session session_;
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return session_ != null;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
return getSession();
}
public static final int QUERY_FIELD_NUMBER = 3;
private com.youtube.vitess.proto.Query.BoundQuery query_;
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public boolean hasQuery() {
return query_ != null;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQuery() {
return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() {
return getQuery();
}
public static final int KEYSPACE_FIELD_NUMBER = 4;
private volatile java.lang.Object keyspace_;
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
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 ENTITY_COLUMN_NAME_FIELD_NUMBER = 5;
private volatile java.lang.Object entityColumnName_;
/**
*
* entity_column_name is the column name to use.
*
*
* optional string entity_column_name = 5;
*/
public java.lang.String getEntityColumnName() {
java.lang.Object ref = entityColumnName_;
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();
entityColumnName_ = s;
return s;
}
}
/**
*
* entity_column_name is the column name to use.
*
*
* optional string entity_column_name = 5;
*/
public com.google.protobuf.ByteString
getEntityColumnNameBytes() {
java.lang.Object ref = entityColumnName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
entityColumnName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENTITY_KEYSPACE_IDS_FIELD_NUMBER = 6;
private java.util.List entityKeyspaceIds_;
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public java.util.List getEntityKeyspaceIdsList() {
return entityKeyspaceIds_;
}
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public java.util.List extends com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityIdOrBuilder>
getEntityKeyspaceIdsOrBuilderList() {
return entityKeyspaceIds_;
}
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public int getEntityKeyspaceIdsCount() {
return entityKeyspaceIds_.size();
}
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId getEntityKeyspaceIds(int index) {
return entityKeyspaceIds_.get(index);
}
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityIdOrBuilder getEntityKeyspaceIdsOrBuilder(
int index) {
return entityKeyspaceIds_.get(index);
}
public static final int TABLET_TYPE_FIELD_NUMBER = 7;
private int tabletType_;
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 7;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 7;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
public static final int NOT_IN_TRANSACTION_FIELD_NUMBER = 8;
private boolean notInTransaction_;
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 8;
*/
public boolean getNotInTransaction() {
return notInTransaction_;
}
public static final int OPTIONS_FIELD_NUMBER = 9;
private com.youtube.vitess.proto.Query.ExecuteOptions options_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 9;
*/
public boolean hasOptions() {
return options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 9;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 9;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
return getOptions();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (callerId_ != null) {
output.writeMessage(1, getCallerId());
}
if (session_ != null) {
output.writeMessage(2, getSession());
}
if (query_ != null) {
output.writeMessage(3, getQuery());
}
if (!getKeyspaceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, keyspace_);
}
if (!getEntityColumnNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, entityColumnName_);
}
for (int i = 0; i < entityKeyspaceIds_.size(); i++) {
output.writeMessage(6, entityKeyspaceIds_.get(i));
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
output.writeEnum(7, tabletType_);
}
if (notInTransaction_ != false) {
output.writeBool(8, notInTransaction_);
}
if (options_ != null) {
output.writeMessage(9, getOptions());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (callerId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCallerId());
}
if (session_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSession());
}
if (query_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getQuery());
}
if (!getKeyspaceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, keyspace_);
}
if (!getEntityColumnNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, entityColumnName_);
}
for (int i = 0; i < entityKeyspaceIds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, entityKeyspaceIds_.get(i));
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, tabletType_);
}
if (notInTransaction_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, notInTransaction_);
}
if (options_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getOptions());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest other = (com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest) obj;
boolean result = true;
result = result && (hasCallerId() == other.hasCallerId());
if (hasCallerId()) {
result = result && getCallerId()
.equals(other.getCallerId());
}
result = result && (hasSession() == other.hasSession());
if (hasSession()) {
result = result && getSession()
.equals(other.getSession());
}
result = result && (hasQuery() == other.hasQuery());
if (hasQuery()) {
result = result && getQuery()
.equals(other.getQuery());
}
result = result && getKeyspace()
.equals(other.getKeyspace());
result = result && getEntityColumnName()
.equals(other.getEntityColumnName());
result = result && getEntityKeyspaceIdsList()
.equals(other.getEntityKeyspaceIdsList());
result = result && tabletType_ == other.tabletType_;
result = result && (getNotInTransaction()
== other.getNotInTransaction());
result = result && (hasOptions() == other.hasOptions());
if (hasOptions()) {
result = result && getOptions()
.equals(other.getOptions());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasCallerId()) {
hash = (37 * hash) + CALLER_ID_FIELD_NUMBER;
hash = (53 * hash) + getCallerId().hashCode();
}
if (hasSession()) {
hash = (37 * hash) + SESSION_FIELD_NUMBER;
hash = (53 * hash) + getSession().hashCode();
}
if (hasQuery()) {
hash = (37 * hash) + QUERY_FIELD_NUMBER;
hash = (53 * hash) + getQuery().hashCode();
}
hash = (37 * hash) + KEYSPACE_FIELD_NUMBER;
hash = (53 * hash) + getKeyspace().hashCode();
hash = (37 * hash) + ENTITY_COLUMN_NAME_FIELD_NUMBER;
hash = (53 * hash) + getEntityColumnName().hashCode();
if (getEntityKeyspaceIdsCount() > 0) {
hash = (37 * hash) + ENTITY_KEYSPACE_IDS_FIELD_NUMBER;
hash = (53 * hash) + getEntityKeyspaceIdsList().hashCode();
}
hash = (37 * hash) + TABLET_TYPE_FIELD_NUMBER;
hash = (53 * hash) + tabletType_;
hash = (37 * hash) + NOT_IN_TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNotInTransaction());
if (hasOptions()) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptions().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* ExecuteEntityIdsRequest is the payload to ExecuteEntityIds.
*
*
* Protobuf type {@code vtgate.ExecuteEntityIdsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.ExecuteEntityIdsRequest)
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteEntityIdsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteEntityIdsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.class, com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEntityKeyspaceIdsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (callerIdBuilder_ == null) {
callerId_ = null;
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
if (sessionBuilder_ == null) {
session_ = null;
} else {
session_ = null;
sessionBuilder_ = null;
}
if (queryBuilder_ == null) {
query_ = null;
} else {
query_ = null;
queryBuilder_ = null;
}
keyspace_ = "";
entityColumnName_ = "";
if (entityKeyspaceIdsBuilder_ == null) {
entityKeyspaceIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
entityKeyspaceIdsBuilder_.clear();
}
tabletType_ = 0;
notInTransaction_ = false;
if (optionsBuilder_ == null) {
options_ = null;
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteEntityIdsRequest_descriptor;
}
public com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest build() {
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest buildPartial() {
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest result = new com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (callerIdBuilder_ == null) {
result.callerId_ = callerId_;
} else {
result.callerId_ = callerIdBuilder_.build();
}
if (sessionBuilder_ == null) {
result.session_ = session_;
} else {
result.session_ = sessionBuilder_.build();
}
if (queryBuilder_ == null) {
result.query_ = query_;
} else {
result.query_ = queryBuilder_.build();
}
result.keyspace_ = keyspace_;
result.entityColumnName_ = entityColumnName_;
if (entityKeyspaceIdsBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020)) {
entityKeyspaceIds_ = java.util.Collections.unmodifiableList(entityKeyspaceIds_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.entityKeyspaceIds_ = entityKeyspaceIds_;
} else {
result.entityKeyspaceIds_ = entityKeyspaceIdsBuilder_.build();
}
result.tabletType_ = tabletType_;
result.notInTransaction_ = notInTransaction_;
if (optionsBuilder_ == null) {
result.options_ = options_;
} else {
result.options_ = optionsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest other) {
if (other == com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.getDefaultInstance()) return this;
if (other.hasCallerId()) {
mergeCallerId(other.getCallerId());
}
if (other.hasSession()) {
mergeSession(other.getSession());
}
if (other.hasQuery()) {
mergeQuery(other.getQuery());
}
if (!other.getKeyspace().isEmpty()) {
keyspace_ = other.keyspace_;
onChanged();
}
if (!other.getEntityColumnName().isEmpty()) {
entityColumnName_ = other.entityColumnName_;
onChanged();
}
if (entityKeyspaceIdsBuilder_ == null) {
if (!other.entityKeyspaceIds_.isEmpty()) {
if (entityKeyspaceIds_.isEmpty()) {
entityKeyspaceIds_ = other.entityKeyspaceIds_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureEntityKeyspaceIdsIsMutable();
entityKeyspaceIds_.addAll(other.entityKeyspaceIds_);
}
onChanged();
}
} else {
if (!other.entityKeyspaceIds_.isEmpty()) {
if (entityKeyspaceIdsBuilder_.isEmpty()) {
entityKeyspaceIdsBuilder_.dispose();
entityKeyspaceIdsBuilder_ = null;
entityKeyspaceIds_ = other.entityKeyspaceIds_;
bitField0_ = (bitField0_ & ~0x00000020);
entityKeyspaceIdsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEntityKeyspaceIdsFieldBuilder() : null;
} else {
entityKeyspaceIdsBuilder_.addAllMessages(other.entityKeyspaceIds_);
}
}
}
if (other.tabletType_ != 0) {
setTabletTypeValue(other.getTabletTypeValue());
}
if (other.getNotInTransaction() != false) {
setNotInTransaction(other.getNotInTransaction());
}
if (other.hasOptions()) {
mergeOptions(other.getOptions());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder> callerIdBuilder_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerIdBuilder_ != null || callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
if (callerIdBuilder_ == null) {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
} else {
return callerIdBuilder_.getMessage();
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
callerId_ = value;
onChanged();
} else {
callerIdBuilder_.setMessage(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(
com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) {
if (callerIdBuilder_ == null) {
callerId_ = builderForValue.build();
onChanged();
} else {
callerIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder mergeCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (callerId_ != null) {
callerId_ =
com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(callerId_).mergeFrom(value).buildPartial();
} else {
callerId_ = value;
}
onChanged();
} else {
callerIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder clearCallerId() {
if (callerIdBuilder_ == null) {
callerId_ = null;
onChanged();
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getCallerIdBuilder() {
onChanged();
return getCallerIdFieldBuilder().getBuilder();
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
if (callerIdBuilder_ != null) {
return callerIdBuilder_.getMessageOrBuilder();
} else {
return callerId_ == null ?
com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>
getCallerIdFieldBuilder() {
if (callerIdBuilder_ == null) {
callerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>(
getCallerId(),
getParentForChildren(),
isClean());
callerId_ = null;
}
return callerIdBuilder_;
}
private com.youtube.vitess.proto.Vtgate.Session session_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder> sessionBuilder_;
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return sessionBuilder_ != null || session_ != null;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
if (sessionBuilder_ == null) {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
} else {
return sessionBuilder_.getMessage();
}
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
session_ = value;
onChanged();
} else {
sessionBuilder_.setMessage(value);
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(
com.youtube.vitess.proto.Vtgate.Session.Builder builderForValue) {
if (sessionBuilder_ == null) {
session_ = builderForValue.build();
onChanged();
} else {
sessionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder mergeSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (session_ != null) {
session_ =
com.youtube.vitess.proto.Vtgate.Session.newBuilder(session_).mergeFrom(value).buildPartial();
} else {
session_ = value;
}
onChanged();
} else {
sessionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder clearSession() {
if (sessionBuilder_ == null) {
session_ = null;
onChanged();
} else {
session_ = null;
sessionBuilder_ = null;
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.Builder getSessionBuilder() {
onChanged();
return getSessionFieldBuilder().getBuilder();
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
if (sessionBuilder_ != null) {
return sessionBuilder_.getMessageOrBuilder();
} else {
return session_ == null ?
com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>
getSessionFieldBuilder() {
if (sessionBuilder_ == null) {
sessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>(
getSession(),
getParentForChildren(),
isClean());
session_ = null;
}
return sessionBuilder_;
}
private com.youtube.vitess.proto.Query.BoundQuery query_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder> queryBuilder_;
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public boolean hasQuery() {
return queryBuilder_ != null || query_ != null;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQuery() {
if (queryBuilder_ == null) {
return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
} else {
return queryBuilder_.getMessage();
}
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public Builder setQuery(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
query_ = value;
onChanged();
} else {
queryBuilder_.setMessage(value);
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public Builder setQuery(
com.youtube.vitess.proto.Query.BoundQuery.Builder builderForValue) {
if (queryBuilder_ == null) {
query_ = builderForValue.build();
onChanged();
} else {
queryBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public Builder mergeQuery(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queryBuilder_ == null) {
if (query_ != null) {
query_ =
com.youtube.vitess.proto.Query.BoundQuery.newBuilder(query_).mergeFrom(value).buildPartial();
} else {
query_ = value;
}
onChanged();
} else {
queryBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public Builder clearQuery() {
if (queryBuilder_ == null) {
query_ = null;
onChanged();
} else {
query_ = null;
queryBuilder_ = null;
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQuery.Builder getQueryBuilder() {
onChanged();
return getQueryFieldBuilder().getBuilder();
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() {
if (queryBuilder_ != null) {
return queryBuilder_.getMessageOrBuilder();
} else {
return query_ == null ?
com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
}
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>
getQueryFieldBuilder() {
if (queryBuilder_ == null) {
queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>(
getQuery(),
getParentForChildren(),
isClean());
query_ = null;
}
return queryBuilder_;
}
private java.lang.Object keyspace_ = "";
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
public Builder setKeyspace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
keyspace_ = value;
onChanged();
return this;
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
public Builder clearKeyspace() {
keyspace_ = getDefaultInstance().getKeyspace();
onChanged();
return this;
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 4;
*/
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 entityColumnName_ = "";
/**
*
* entity_column_name is the column name to use.
*
*
* optional string entity_column_name = 5;
*/
public java.lang.String getEntityColumnName() {
java.lang.Object ref = entityColumnName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
entityColumnName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* entity_column_name is the column name to use.
*
*
* optional string entity_column_name = 5;
*/
public com.google.protobuf.ByteString
getEntityColumnNameBytes() {
java.lang.Object ref = entityColumnName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
entityColumnName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* entity_column_name is the column name to use.
*
*
* optional string entity_column_name = 5;
*/
public Builder setEntityColumnName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
entityColumnName_ = value;
onChanged();
return this;
}
/**
*
* entity_column_name is the column name to use.
*
*
* optional string entity_column_name = 5;
*/
public Builder clearEntityColumnName() {
entityColumnName_ = getDefaultInstance().getEntityColumnName();
onChanged();
return this;
}
/**
*
* entity_column_name is the column name to use.
*
*
* optional string entity_column_name = 5;
*/
public Builder setEntityColumnNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
entityColumnName_ = value;
onChanged();
return this;
}
private java.util.List entityKeyspaceIds_ =
java.util.Collections.emptyList();
private void ensureEntityKeyspaceIdsIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
entityKeyspaceIds_ = new java.util.ArrayList(entityKeyspaceIds_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId, com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId.Builder, com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityIdOrBuilder> entityKeyspaceIdsBuilder_;
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public java.util.List getEntityKeyspaceIdsList() {
if (entityKeyspaceIdsBuilder_ == null) {
return java.util.Collections.unmodifiableList(entityKeyspaceIds_);
} else {
return entityKeyspaceIdsBuilder_.getMessageList();
}
}
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public int getEntityKeyspaceIdsCount() {
if (entityKeyspaceIdsBuilder_ == null) {
return entityKeyspaceIds_.size();
} else {
return entityKeyspaceIdsBuilder_.getCount();
}
}
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId getEntityKeyspaceIds(int index) {
if (entityKeyspaceIdsBuilder_ == null) {
return entityKeyspaceIds_.get(index);
} else {
return entityKeyspaceIdsBuilder_.getMessage(index);
}
}
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public Builder setEntityKeyspaceIds(
int index, com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId value) {
if (entityKeyspaceIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntityKeyspaceIdsIsMutable();
entityKeyspaceIds_.set(index, value);
onChanged();
} else {
entityKeyspaceIdsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public Builder setEntityKeyspaceIds(
int index, com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId.Builder builderForValue) {
if (entityKeyspaceIdsBuilder_ == null) {
ensureEntityKeyspaceIdsIsMutable();
entityKeyspaceIds_.set(index, builderForValue.build());
onChanged();
} else {
entityKeyspaceIdsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public Builder addEntityKeyspaceIds(com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId value) {
if (entityKeyspaceIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntityKeyspaceIdsIsMutable();
entityKeyspaceIds_.add(value);
onChanged();
} else {
entityKeyspaceIdsBuilder_.addMessage(value);
}
return this;
}
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public Builder addEntityKeyspaceIds(
int index, com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId value) {
if (entityKeyspaceIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntityKeyspaceIdsIsMutable();
entityKeyspaceIds_.add(index, value);
onChanged();
} else {
entityKeyspaceIdsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public Builder addEntityKeyspaceIds(
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId.Builder builderForValue) {
if (entityKeyspaceIdsBuilder_ == null) {
ensureEntityKeyspaceIdsIsMutable();
entityKeyspaceIds_.add(builderForValue.build());
onChanged();
} else {
entityKeyspaceIdsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public Builder addEntityKeyspaceIds(
int index, com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId.Builder builderForValue) {
if (entityKeyspaceIdsBuilder_ == null) {
ensureEntityKeyspaceIdsIsMutable();
entityKeyspaceIds_.add(index, builderForValue.build());
onChanged();
} else {
entityKeyspaceIdsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public Builder addAllEntityKeyspaceIds(
java.lang.Iterable extends com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId> values) {
if (entityKeyspaceIdsBuilder_ == null) {
ensureEntityKeyspaceIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, entityKeyspaceIds_);
onChanged();
} else {
entityKeyspaceIdsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public Builder clearEntityKeyspaceIds() {
if (entityKeyspaceIdsBuilder_ == null) {
entityKeyspaceIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
entityKeyspaceIdsBuilder_.clear();
}
return this;
}
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public Builder removeEntityKeyspaceIds(int index) {
if (entityKeyspaceIdsBuilder_ == null) {
ensureEntityKeyspaceIdsIsMutable();
entityKeyspaceIds_.remove(index);
onChanged();
} else {
entityKeyspaceIdsBuilder_.remove(index);
}
return this;
}
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId.Builder getEntityKeyspaceIdsBuilder(
int index) {
return getEntityKeyspaceIdsFieldBuilder().getBuilder(index);
}
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityIdOrBuilder getEntityKeyspaceIdsOrBuilder(
int index) {
if (entityKeyspaceIdsBuilder_ == null) {
return entityKeyspaceIds_.get(index); } else {
return entityKeyspaceIdsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public java.util.List extends com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityIdOrBuilder>
getEntityKeyspaceIdsOrBuilderList() {
if (entityKeyspaceIdsBuilder_ != null) {
return entityKeyspaceIdsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(entityKeyspaceIds_);
}
}
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId.Builder addEntityKeyspaceIdsBuilder() {
return getEntityKeyspaceIdsFieldBuilder().addBuilder(
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId.getDefaultInstance());
}
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId.Builder addEntityKeyspaceIdsBuilder(
int index) {
return getEntityKeyspaceIdsFieldBuilder().addBuilder(
index, com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId.getDefaultInstance());
}
/**
*
* entity_keyspace_ids are pairs of entity_column_name values
* associated with its corresponding keyspace_id.
*
*
* repeated .vtgate.ExecuteEntityIdsRequest.EntityId entity_keyspace_ids = 6;
*/
public java.util.List
getEntityKeyspaceIdsBuilderList() {
return getEntityKeyspaceIdsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId, com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId.Builder, com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityIdOrBuilder>
getEntityKeyspaceIdsFieldBuilder() {
if (entityKeyspaceIdsBuilder_ == null) {
entityKeyspaceIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId, com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityId.Builder, com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest.EntityIdOrBuilder>(
entityKeyspaceIds_,
((bitField0_ & 0x00000020) == 0x00000020),
getParentForChildren(),
isClean());
entityKeyspaceIds_ = null;
}
return entityKeyspaceIdsBuilder_;
}
private int tabletType_ = 0;
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 7;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 7;
*/
public Builder setTabletTypeValue(int value) {
tabletType_ = value;
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 7;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 7;
*/
public Builder setTabletType(com.youtube.vitess.proto.Topodata.TabletType value) {
if (value == null) {
throw new NullPointerException();
}
tabletType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 7;
*/
public Builder clearTabletType() {
tabletType_ = 0;
onChanged();
return this;
}
private boolean notInTransaction_ ;
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 8;
*/
public boolean getNotInTransaction() {
return notInTransaction_;
}
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 8;
*/
public Builder setNotInTransaction(boolean value) {
notInTransaction_ = value;
onChanged();
return this;
}
/**
*
* not_in_transaction is deprecated and should not be used.
*
*
* optional bool not_in_transaction = 8;
*/
public Builder clearNotInTransaction() {
notInTransaction_ = false;
onChanged();
return this;
}
private com.youtube.vitess.proto.Query.ExecuteOptions options_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder> optionsBuilder_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 9;
*/
public boolean hasOptions() {
return optionsBuilder_ != null || options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 9;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
if (optionsBuilder_ == null) {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
} else {
return optionsBuilder_.getMessage();
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 9;
*/
public Builder setOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
options_ = value;
onChanged();
} else {
optionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 9;
*/
public Builder setOptions(
com.youtube.vitess.proto.Query.ExecuteOptions.Builder builderForValue) {
if (optionsBuilder_ == null) {
options_ = builderForValue.build();
onChanged();
} else {
optionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 9;
*/
public Builder mergeOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (options_ != null) {
options_ =
com.youtube.vitess.proto.Query.ExecuteOptions.newBuilder(options_).mergeFrom(value).buildPartial();
} else {
options_ = value;
}
onChanged();
} else {
optionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 9;
*/
public Builder clearOptions() {
if (optionsBuilder_ == null) {
options_ = null;
onChanged();
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 9;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions.Builder getOptionsBuilder() {
onChanged();
return getOptionsFieldBuilder().getBuilder();
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 9;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilder();
} else {
return options_ == null ?
com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>(
getOptions(),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.ExecuteEntityIdsRequest)
}
// @@protoc_insertion_point(class_scope:vtgate.ExecuteEntityIdsRequest)
private static final com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest();
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExecuteEntityIdsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteEntityIdsRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteEntityIdsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.ExecuteEntityIdsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
boolean hasError();
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
com.youtube.vitess.proto.Vtrpc.RPCError getError();
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
boolean hasSession();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.Session getSession();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder();
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
boolean hasResult();
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
com.youtube.vitess.proto.Query.QueryResult getResult();
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder();
}
/**
*
* ExecuteEntityIdsResponse is the returned value from ExecuteEntityIds.
*
*
* Protobuf type {@code vtgate.ExecuteEntityIdsResponse}
*/
public static final class ExecuteEntityIdsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.ExecuteEntityIdsResponse)
ExecuteEntityIdsResponseOrBuilder {
// Use ExecuteEntityIdsResponse.newBuilder() to construct.
private ExecuteEntityIdsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteEntityIdsResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ExecuteEntityIdsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Vtrpc.RPCError.Builder subBuilder = null;
if (error_ != null) {
subBuilder = error_.toBuilder();
}
error_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.RPCError.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(error_);
error_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.youtube.vitess.proto.Vtgate.Session.Builder subBuilder = null;
if (session_ != null) {
subBuilder = session_.toBuilder();
}
session_ = input.readMessage(com.youtube.vitess.proto.Vtgate.Session.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(session_);
session_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.youtube.vitess.proto.Query.QueryResult.Builder subBuilder = null;
if (result_ != null) {
subBuilder = result_.toBuilder();
}
result_ = input.readMessage(com.youtube.vitess.proto.Query.QueryResult.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(result_);
result_ = subBuilder.buildPartial();
}
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteEntityIdsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteEntityIdsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse.class, com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse.Builder.class);
}
public static final int ERROR_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Vtrpc.RPCError error_;
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public boolean hasError() {
return error_ != null;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError getError() {
return error_ == null ? com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder() {
return getError();
}
public static final int SESSION_FIELD_NUMBER = 2;
private com.youtube.vitess.proto.Vtgate.Session session_;
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return session_ != null;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
return getSession();
}
public static final int RESULT_FIELD_NUMBER = 3;
private com.youtube.vitess.proto.Query.QueryResult result_;
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public boolean hasResult() {
return result_ != null;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult getResult() {
return result_ == null ? com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder() {
return getResult();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (error_ != null) {
output.writeMessage(1, getError());
}
if (session_ != null) {
output.writeMessage(2, getSession());
}
if (result_ != null) {
output.writeMessage(3, getResult());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (error_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getError());
}
if (session_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSession());
}
if (result_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getResult());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse other = (com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse) obj;
boolean result = true;
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError()
.equals(other.getError());
}
result = result && (hasSession() == other.hasSession());
if (hasSession()) {
result = result && getSession()
.equals(other.getSession());
}
result = result && (hasResult() == other.hasResult());
if (hasResult()) {
result = result && getResult()
.equals(other.getResult());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasError()) {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
}
if (hasSession()) {
hash = (37 * hash) + SESSION_FIELD_NUMBER;
hash = (53 * hash) + getSession().hashCode();
}
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* ExecuteEntityIdsResponse is the returned value from ExecuteEntityIds.
*
*
* Protobuf type {@code vtgate.ExecuteEntityIdsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.ExecuteEntityIdsResponse)
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteEntityIdsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteEntityIdsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse.class, com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (errorBuilder_ == null) {
error_ = null;
} else {
error_ = null;
errorBuilder_ = null;
}
if (sessionBuilder_ == null) {
session_ = null;
} else {
session_ = null;
sessionBuilder_ = null;
}
if (resultBuilder_ == null) {
result_ = null;
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteEntityIdsResponse_descriptor;
}
public com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse build() {
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse buildPartial() {
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse result = new com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse(this);
if (errorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = errorBuilder_.build();
}
if (sessionBuilder_ == null) {
result.session_ = session_;
} else {
result.session_ = sessionBuilder_.build();
}
if (resultBuilder_ == null) {
result.result_ = result_;
} else {
result.result_ = resultBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse other) {
if (other == com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse.getDefaultInstance()) return this;
if (other.hasError()) {
mergeError(other.getError());
}
if (other.hasSession()) {
mergeSession(other.getSession());
}
if (other.hasResult()) {
mergeResult(other.getResult());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.youtube.vitess.proto.Vtrpc.RPCError error_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder> errorBuilder_;
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public boolean hasError() {
return errorBuilder_ != null || error_ != null;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError getError() {
if (errorBuilder_ == null) {
return error_ == null ? com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder setError(com.youtube.vitess.proto.Vtrpc.RPCError value) {
if (errorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
} else {
errorBuilder_.setMessage(value);
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder setError(
com.youtube.vitess.proto.Vtrpc.RPCError.Builder builderForValue) {
if (errorBuilder_ == null) {
error_ = builderForValue.build();
onChanged();
} else {
errorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder mergeError(com.youtube.vitess.proto.Vtrpc.RPCError value) {
if (errorBuilder_ == null) {
if (error_ != null) {
error_ =
com.youtube.vitess.proto.Vtrpc.RPCError.newBuilder(error_).mergeFrom(value).buildPartial();
} else {
error_ = value;
}
onChanged();
} else {
errorBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
error_ = null;
onChanged();
} else {
error_ = null;
errorBuilder_ = null;
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError.Builder getErrorBuilder() {
onChanged();
return getErrorFieldBuilder().getBuilder();
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder() {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
return error_ == null ?
com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
}
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder>(
getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
private com.youtube.vitess.proto.Vtgate.Session session_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder> sessionBuilder_;
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return sessionBuilder_ != null || session_ != null;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
if (sessionBuilder_ == null) {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
} else {
return sessionBuilder_.getMessage();
}
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
session_ = value;
onChanged();
} else {
sessionBuilder_.setMessage(value);
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(
com.youtube.vitess.proto.Vtgate.Session.Builder builderForValue) {
if (sessionBuilder_ == null) {
session_ = builderForValue.build();
onChanged();
} else {
sessionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder mergeSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (session_ != null) {
session_ =
com.youtube.vitess.proto.Vtgate.Session.newBuilder(session_).mergeFrom(value).buildPartial();
} else {
session_ = value;
}
onChanged();
} else {
sessionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder clearSession() {
if (sessionBuilder_ == null) {
session_ = null;
onChanged();
} else {
session_ = null;
sessionBuilder_ = null;
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.Builder getSessionBuilder() {
onChanged();
return getSessionFieldBuilder().getBuilder();
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
if (sessionBuilder_ != null) {
return sessionBuilder_.getMessageOrBuilder();
} else {
return session_ == null ?
com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>
getSessionFieldBuilder() {
if (sessionBuilder_ == null) {
sessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>(
getSession(),
getParentForChildren(),
isClean());
session_ = null;
}
return sessionBuilder_;
}
private com.youtube.vitess.proto.Query.QueryResult result_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder> resultBuilder_;
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public boolean hasResult() {
return resultBuilder_ != null || result_ != null;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult getResult() {
if (resultBuilder_ == null) {
return result_ == null ? com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
} else {
return resultBuilder_.getMessage();
}
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public Builder setResult(com.youtube.vitess.proto.Query.QueryResult value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
resultBuilder_.setMessage(value);
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public Builder setResult(
com.youtube.vitess.proto.Query.QueryResult.Builder builderForValue) {
if (resultBuilder_ == null) {
result_ = builderForValue.build();
onChanged();
} else {
resultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public Builder mergeResult(com.youtube.vitess.proto.Query.QueryResult value) {
if (resultBuilder_ == null) {
if (result_ != null) {
result_ =
com.youtube.vitess.proto.Query.QueryResult.newBuilder(result_).mergeFrom(value).buildPartial();
} else {
result_ = value;
}
onChanged();
} else {
resultBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public Builder clearResult() {
if (resultBuilder_ == null) {
result_ = null;
onChanged();
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult.Builder getResultBuilder() {
onChanged();
return getResultFieldBuilder().getBuilder();
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder() {
if (resultBuilder_ != null) {
return resultBuilder_.getMessageOrBuilder();
} else {
return result_ == null ?
com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
}
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* optional .query.QueryResult result = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder>(
getResult(),
getParentForChildren(),
isClean());
result_ = null;
}
return resultBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.ExecuteEntityIdsResponse)
}
// @@protoc_insertion_point(class_scope:vtgate.ExecuteEntityIdsResponse)
private static final com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse();
}
public static com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExecuteEntityIdsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteEntityIdsResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.ExecuteEntityIdsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteBatchRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.ExecuteBatchRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
boolean hasCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerID getCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
boolean hasSession();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.Session getSession();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder();
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
java.util.List
getQueriesList();
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
com.youtube.vitess.proto.Query.BoundQuery getQueries(int index);
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
int getQueriesCount();
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
java.util.List extends com.youtube.vitess.proto.Query.BoundQueryOrBuilder>
getQueriesOrBuilderList();
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueriesOrBuilder(
int index);
/**
*
* tablet_type is the type of tablets that these queries is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
int getTabletTypeValue();
/**
*
* tablet_type is the type of tablets that these queries is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
com.youtube.vitess.proto.Topodata.TabletType getTabletType();
/**
*
* as_transaction is deprecated.
* We cannot use the proto3 deprecated feature yet because
* the php compiler doesn't recognize that construct.
*
*
* optional bool as_transaction = 5;
*/
boolean getAsTransaction();
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 6;
*/
java.lang.String getKeyspaceShard();
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 6;
*/
com.google.protobuf.ByteString
getKeyspaceShardBytes();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
boolean hasOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
com.youtube.vitess.proto.Query.ExecuteOptions getOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder();
}
/**
*
* ExecuteBatchRequest is the payload to ExecuteBatch.
*
*
* Protobuf type {@code vtgate.ExecuteBatchRequest}
*/
public static final class ExecuteBatchRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.ExecuteBatchRequest)
ExecuteBatchRequestOrBuilder {
// Use ExecuteBatchRequest.newBuilder() to construct.
private ExecuteBatchRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteBatchRequest() {
queries_ = java.util.Collections.emptyList();
tabletType_ = 0;
asTransaction_ = false;
keyspaceShard_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ExecuteBatchRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Vtrpc.CallerID.Builder subBuilder = null;
if (callerId_ != null) {
subBuilder = callerId_.toBuilder();
}
callerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(callerId_);
callerId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.youtube.vitess.proto.Vtgate.Session.Builder subBuilder = null;
if (session_ != null) {
subBuilder = session_.toBuilder();
}
session_ = input.readMessage(com.youtube.vitess.proto.Vtgate.Session.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(session_);
session_ = subBuilder.buildPartial();
}
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
queries_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
queries_.add(
input.readMessage(com.youtube.vitess.proto.Query.BoundQuery.parser(), extensionRegistry));
break;
}
case 32: {
int rawValue = input.readEnum();
tabletType_ = rawValue;
break;
}
case 40: {
asTransaction_ = input.readBool();
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
keyspaceShard_ = s;
break;
}
case 58: {
com.youtube.vitess.proto.Query.ExecuteOptions.Builder subBuilder = null;
if (options_ != null) {
subBuilder = options_.toBuilder();
}
options_ = input.readMessage(com.youtube.vitess.proto.Query.ExecuteOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(options_);
options_ = subBuilder.buildPartial();
}
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_ & 0x00000004) == 0x00000004)) {
queries_ = java.util.Collections.unmodifiableList(queries_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest.class, com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest.Builder.class);
}
private int bitField0_;
public static final int CALLER_ID_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
return getCallerId();
}
public static final int SESSION_FIELD_NUMBER = 2;
private com.youtube.vitess.proto.Vtgate.Session session_;
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return session_ != null;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
return getSession();
}
public static final int QUERIES_FIELD_NUMBER = 3;
private java.util.List queries_;
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public java.util.List getQueriesList() {
return queries_;
}
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public java.util.List extends com.youtube.vitess.proto.Query.BoundQueryOrBuilder>
getQueriesOrBuilderList() {
return queries_;
}
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public int getQueriesCount() {
return queries_.size();
}
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQueries(int index) {
return queries_.get(index);
}
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueriesOrBuilder(
int index) {
return queries_.get(index);
}
public static final int TABLET_TYPE_FIELD_NUMBER = 4;
private int tabletType_;
/**
*
* tablet_type is the type of tablets that these queries is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that these queries is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
public static final int AS_TRANSACTION_FIELD_NUMBER = 5;
private boolean asTransaction_;
/**
*
* as_transaction is deprecated.
* We cannot use the proto3 deprecated feature yet because
* the php compiler doesn't recognize that construct.
*
*
* optional bool as_transaction = 5;
*/
public boolean getAsTransaction() {
return asTransaction_;
}
public static final int KEYSPACE_SHARD_FIELD_NUMBER = 6;
private volatile java.lang.Object keyspaceShard_;
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 6;
*/
public java.lang.String getKeyspaceShard() {
java.lang.Object ref = keyspaceShard_;
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();
keyspaceShard_ = s;
return s;
}
}
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 6;
*/
public com.google.protobuf.ByteString
getKeyspaceShardBytes() {
java.lang.Object ref = keyspaceShard_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyspaceShard_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPTIONS_FIELD_NUMBER = 7;
private com.youtube.vitess.proto.Query.ExecuteOptions options_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
public boolean hasOptions() {
return options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
return getOptions();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (callerId_ != null) {
output.writeMessage(1, getCallerId());
}
if (session_ != null) {
output.writeMessage(2, getSession());
}
for (int i = 0; i < queries_.size(); i++) {
output.writeMessage(3, queries_.get(i));
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
output.writeEnum(4, tabletType_);
}
if (asTransaction_ != false) {
output.writeBool(5, asTransaction_);
}
if (!getKeyspaceShardBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, keyspaceShard_);
}
if (options_ != null) {
output.writeMessage(7, getOptions());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (callerId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCallerId());
}
if (session_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSession());
}
for (int i = 0; i < queries_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, queries_.get(i));
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, tabletType_);
}
if (asTransaction_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, asTransaction_);
}
if (!getKeyspaceShardBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, keyspaceShard_);
}
if (options_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getOptions());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest other = (com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest) obj;
boolean result = true;
result = result && (hasCallerId() == other.hasCallerId());
if (hasCallerId()) {
result = result && getCallerId()
.equals(other.getCallerId());
}
result = result && (hasSession() == other.hasSession());
if (hasSession()) {
result = result && getSession()
.equals(other.getSession());
}
result = result && getQueriesList()
.equals(other.getQueriesList());
result = result && tabletType_ == other.tabletType_;
result = result && (getAsTransaction()
== other.getAsTransaction());
result = result && getKeyspaceShard()
.equals(other.getKeyspaceShard());
result = result && (hasOptions() == other.hasOptions());
if (hasOptions()) {
result = result && getOptions()
.equals(other.getOptions());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasCallerId()) {
hash = (37 * hash) + CALLER_ID_FIELD_NUMBER;
hash = (53 * hash) + getCallerId().hashCode();
}
if (hasSession()) {
hash = (37 * hash) + SESSION_FIELD_NUMBER;
hash = (53 * hash) + getSession().hashCode();
}
if (getQueriesCount() > 0) {
hash = (37 * hash) + QUERIES_FIELD_NUMBER;
hash = (53 * hash) + getQueriesList().hashCode();
}
hash = (37 * hash) + TABLET_TYPE_FIELD_NUMBER;
hash = (53 * hash) + tabletType_;
hash = (37 * hash) + AS_TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAsTransaction());
hash = (37 * hash) + KEYSPACE_SHARD_FIELD_NUMBER;
hash = (53 * hash) + getKeyspaceShard().hashCode();
if (hasOptions()) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptions().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* ExecuteBatchRequest is the payload to ExecuteBatch.
*
*
* Protobuf type {@code vtgate.ExecuteBatchRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.ExecuteBatchRequest)
com.youtube.vitess.proto.Vtgate.ExecuteBatchRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest.class, com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getQueriesFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (callerIdBuilder_ == null) {
callerId_ = null;
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
if (sessionBuilder_ == null) {
session_ = null;
} else {
session_ = null;
sessionBuilder_ = null;
}
if (queriesBuilder_ == null) {
queries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
queriesBuilder_.clear();
}
tabletType_ = 0;
asTransaction_ = false;
keyspaceShard_ = "";
if (optionsBuilder_ == null) {
options_ = null;
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchRequest_descriptor;
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest build() {
com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest buildPartial() {
com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest result = new com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (callerIdBuilder_ == null) {
result.callerId_ = callerId_;
} else {
result.callerId_ = callerIdBuilder_.build();
}
if (sessionBuilder_ == null) {
result.session_ = session_;
} else {
result.session_ = sessionBuilder_.build();
}
if (queriesBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
queries_ = java.util.Collections.unmodifiableList(queries_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.queries_ = queries_;
} else {
result.queries_ = queriesBuilder_.build();
}
result.tabletType_ = tabletType_;
result.asTransaction_ = asTransaction_;
result.keyspaceShard_ = keyspaceShard_;
if (optionsBuilder_ == null) {
result.options_ = options_;
} else {
result.options_ = optionsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest other) {
if (other == com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest.getDefaultInstance()) return this;
if (other.hasCallerId()) {
mergeCallerId(other.getCallerId());
}
if (other.hasSession()) {
mergeSession(other.getSession());
}
if (queriesBuilder_ == null) {
if (!other.queries_.isEmpty()) {
if (queries_.isEmpty()) {
queries_ = other.queries_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureQueriesIsMutable();
queries_.addAll(other.queries_);
}
onChanged();
}
} else {
if (!other.queries_.isEmpty()) {
if (queriesBuilder_.isEmpty()) {
queriesBuilder_.dispose();
queriesBuilder_ = null;
queries_ = other.queries_;
bitField0_ = (bitField0_ & ~0x00000004);
queriesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getQueriesFieldBuilder() : null;
} else {
queriesBuilder_.addAllMessages(other.queries_);
}
}
}
if (other.tabletType_ != 0) {
setTabletTypeValue(other.getTabletTypeValue());
}
if (other.getAsTransaction() != false) {
setAsTransaction(other.getAsTransaction());
}
if (!other.getKeyspaceShard().isEmpty()) {
keyspaceShard_ = other.keyspaceShard_;
onChanged();
}
if (other.hasOptions()) {
mergeOptions(other.getOptions());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder> callerIdBuilder_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerIdBuilder_ != null || callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
if (callerIdBuilder_ == null) {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
} else {
return callerIdBuilder_.getMessage();
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
callerId_ = value;
onChanged();
} else {
callerIdBuilder_.setMessage(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(
com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) {
if (callerIdBuilder_ == null) {
callerId_ = builderForValue.build();
onChanged();
} else {
callerIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder mergeCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (callerId_ != null) {
callerId_ =
com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(callerId_).mergeFrom(value).buildPartial();
} else {
callerId_ = value;
}
onChanged();
} else {
callerIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder clearCallerId() {
if (callerIdBuilder_ == null) {
callerId_ = null;
onChanged();
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getCallerIdBuilder() {
onChanged();
return getCallerIdFieldBuilder().getBuilder();
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
if (callerIdBuilder_ != null) {
return callerIdBuilder_.getMessageOrBuilder();
} else {
return callerId_ == null ?
com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>
getCallerIdFieldBuilder() {
if (callerIdBuilder_ == null) {
callerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>(
getCallerId(),
getParentForChildren(),
isClean());
callerId_ = null;
}
return callerIdBuilder_;
}
private com.youtube.vitess.proto.Vtgate.Session session_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder> sessionBuilder_;
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return sessionBuilder_ != null || session_ != null;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
if (sessionBuilder_ == null) {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
} else {
return sessionBuilder_.getMessage();
}
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
session_ = value;
onChanged();
} else {
sessionBuilder_.setMessage(value);
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(
com.youtube.vitess.proto.Vtgate.Session.Builder builderForValue) {
if (sessionBuilder_ == null) {
session_ = builderForValue.build();
onChanged();
} else {
sessionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder mergeSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (session_ != null) {
session_ =
com.youtube.vitess.proto.Vtgate.Session.newBuilder(session_).mergeFrom(value).buildPartial();
} else {
session_ = value;
}
onChanged();
} else {
sessionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder clearSession() {
if (sessionBuilder_ == null) {
session_ = null;
onChanged();
} else {
session_ = null;
sessionBuilder_ = null;
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.Builder getSessionBuilder() {
onChanged();
return getSessionFieldBuilder().getBuilder();
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
if (sessionBuilder_ != null) {
return sessionBuilder_.getMessageOrBuilder();
} else {
return session_ == null ?
com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>
getSessionFieldBuilder() {
if (sessionBuilder_ == null) {
sessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>(
getSession(),
getParentForChildren(),
isClean());
session_ = null;
}
return sessionBuilder_;
}
private java.util.List queries_ =
java.util.Collections.emptyList();
private void ensureQueriesIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
queries_ = new java.util.ArrayList(queries_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder> queriesBuilder_;
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public java.util.List getQueriesList() {
if (queriesBuilder_ == null) {
return java.util.Collections.unmodifiableList(queries_);
} else {
return queriesBuilder_.getMessageList();
}
}
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public int getQueriesCount() {
if (queriesBuilder_ == null) {
return queries_.size();
} else {
return queriesBuilder_.getCount();
}
}
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQueries(int index) {
if (queriesBuilder_ == null) {
return queries_.get(index);
} else {
return queriesBuilder_.getMessage(index);
}
}
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public Builder setQueries(
int index, com.youtube.vitess.proto.Query.BoundQuery value) {
if (queriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueriesIsMutable();
queries_.set(index, value);
onChanged();
} else {
queriesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public Builder setQueries(
int index, com.youtube.vitess.proto.Query.BoundQuery.Builder builderForValue) {
if (queriesBuilder_ == null) {
ensureQueriesIsMutable();
queries_.set(index, builderForValue.build());
onChanged();
} else {
queriesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public Builder addQueries(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueriesIsMutable();
queries_.add(value);
onChanged();
} else {
queriesBuilder_.addMessage(value);
}
return this;
}
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public Builder addQueries(
int index, com.youtube.vitess.proto.Query.BoundQuery value) {
if (queriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueriesIsMutable();
queries_.add(index, value);
onChanged();
} else {
queriesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public Builder addQueries(
com.youtube.vitess.proto.Query.BoundQuery.Builder builderForValue) {
if (queriesBuilder_ == null) {
ensureQueriesIsMutable();
queries_.add(builderForValue.build());
onChanged();
} else {
queriesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public Builder addQueries(
int index, com.youtube.vitess.proto.Query.BoundQuery.Builder builderForValue) {
if (queriesBuilder_ == null) {
ensureQueriesIsMutable();
queries_.add(index, builderForValue.build());
onChanged();
} else {
queriesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public Builder addAllQueries(
java.lang.Iterable extends com.youtube.vitess.proto.Query.BoundQuery> values) {
if (queriesBuilder_ == null) {
ensureQueriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, queries_);
onChanged();
} else {
queriesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public Builder clearQueries() {
if (queriesBuilder_ == null) {
queries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
queriesBuilder_.clear();
}
return this;
}
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public Builder removeQueries(int index) {
if (queriesBuilder_ == null) {
ensureQueriesIsMutable();
queries_.remove(index);
onChanged();
} else {
queriesBuilder_.remove(index);
}
return this;
}
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public com.youtube.vitess.proto.Query.BoundQuery.Builder getQueriesBuilder(
int index) {
return getQueriesFieldBuilder().getBuilder(index);
}
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueriesOrBuilder(
int index) {
if (queriesBuilder_ == null) {
return queries_.get(index); } else {
return queriesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public java.util.List extends com.youtube.vitess.proto.Query.BoundQueryOrBuilder>
getQueriesOrBuilderList() {
if (queriesBuilder_ != null) {
return queriesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(queries_);
}
}
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public com.youtube.vitess.proto.Query.BoundQuery.Builder addQueriesBuilder() {
return getQueriesFieldBuilder().addBuilder(
com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance());
}
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public com.youtube.vitess.proto.Query.BoundQuery.Builder addQueriesBuilder(
int index) {
return getQueriesFieldBuilder().addBuilder(
index, com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance());
}
/**
*
* queries is a list of query and bind variables to execute.
*
*
* repeated .query.BoundQuery queries = 3;
*/
public java.util.List
getQueriesBuilderList() {
return getQueriesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>
getQueriesFieldBuilder() {
if (queriesBuilder_ == null) {
queriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>(
queries_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
queries_ = null;
}
return queriesBuilder_;
}
private int tabletType_ = 0;
/**
*
* tablet_type is the type of tablets that these queries is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that these queries is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public Builder setTabletTypeValue(int value) {
tabletType_ = value;
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that these queries is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
/**
*
* tablet_type is the type of tablets that these queries is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public Builder setTabletType(com.youtube.vitess.proto.Topodata.TabletType value) {
if (value == null) {
throw new NullPointerException();
}
tabletType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that these queries is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public Builder clearTabletType() {
tabletType_ = 0;
onChanged();
return this;
}
private boolean asTransaction_ ;
/**
*
* as_transaction is deprecated.
* We cannot use the proto3 deprecated feature yet because
* the php compiler doesn't recognize that construct.
*
*
* optional bool as_transaction = 5;
*/
public boolean getAsTransaction() {
return asTransaction_;
}
/**
*
* as_transaction is deprecated.
* We cannot use the proto3 deprecated feature yet because
* the php compiler doesn't recognize that construct.
*
*
* optional bool as_transaction = 5;
*/
public Builder setAsTransaction(boolean value) {
asTransaction_ = value;
onChanged();
return this;
}
/**
*
* as_transaction is deprecated.
* We cannot use the proto3 deprecated feature yet because
* the php compiler doesn't recognize that construct.
*
*
* optional bool as_transaction = 5;
*/
public Builder clearAsTransaction() {
asTransaction_ = false;
onChanged();
return this;
}
private java.lang.Object keyspaceShard_ = "";
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 6;
*/
public java.lang.String getKeyspaceShard() {
java.lang.Object ref = keyspaceShard_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
keyspaceShard_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 6;
*/
public com.google.protobuf.ByteString
getKeyspaceShardBytes() {
java.lang.Object ref = keyspaceShard_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyspaceShard_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 6;
*/
public Builder setKeyspaceShard(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
keyspaceShard_ = value;
onChanged();
return this;
}
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 6;
*/
public Builder clearKeyspaceShard() {
keyspaceShard_ = getDefaultInstance().getKeyspaceShard();
onChanged();
return this;
}
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 6;
*/
public Builder setKeyspaceShardBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
keyspaceShard_ = value;
onChanged();
return this;
}
private com.youtube.vitess.proto.Query.ExecuteOptions options_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder> optionsBuilder_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
public boolean hasOptions() {
return optionsBuilder_ != null || options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
if (optionsBuilder_ == null) {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
} else {
return optionsBuilder_.getMessage();
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
public Builder setOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
options_ = value;
onChanged();
} else {
optionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
public Builder setOptions(
com.youtube.vitess.proto.Query.ExecuteOptions.Builder builderForValue) {
if (optionsBuilder_ == null) {
options_ = builderForValue.build();
onChanged();
} else {
optionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
public Builder mergeOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (options_ != null) {
options_ =
com.youtube.vitess.proto.Query.ExecuteOptions.newBuilder(options_).mergeFrom(value).buildPartial();
} else {
options_ = value;
}
onChanged();
} else {
optionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
public Builder clearOptions() {
if (optionsBuilder_ == null) {
options_ = null;
onChanged();
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions.Builder getOptionsBuilder() {
onChanged();
return getOptionsFieldBuilder().getBuilder();
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilder();
} else {
return options_ == null ?
com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>(
getOptions(),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.ExecuteBatchRequest)
}
// @@protoc_insertion_point(class_scope:vtgate.ExecuteBatchRequest)
private static final com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest();
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExecuteBatchRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteBatchRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteBatchResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.ExecuteBatchResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
boolean hasError();
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
com.youtube.vitess.proto.Vtrpc.RPCError getError();
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
boolean hasSession();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.Session getSession();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder();
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
java.util.List
getResultsList();
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
com.youtube.vitess.proto.Query.ResultWithError getResults(int index);
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
int getResultsCount();
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
java.util.List extends com.youtube.vitess.proto.Query.ResultWithErrorOrBuilder>
getResultsOrBuilderList();
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
com.youtube.vitess.proto.Query.ResultWithErrorOrBuilder getResultsOrBuilder(
int index);
}
/**
*
* ExecuteBatchResponse is the returned value from ExecuteBatch.
*
*
* Protobuf type {@code vtgate.ExecuteBatchResponse}
*/
public static final class ExecuteBatchResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.ExecuteBatchResponse)
ExecuteBatchResponseOrBuilder {
// Use ExecuteBatchResponse.newBuilder() to construct.
private ExecuteBatchResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteBatchResponse() {
results_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ExecuteBatchResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Vtrpc.RPCError.Builder subBuilder = null;
if (error_ != null) {
subBuilder = error_.toBuilder();
}
error_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.RPCError.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(error_);
error_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.youtube.vitess.proto.Vtgate.Session.Builder subBuilder = null;
if (session_ != null) {
subBuilder = session_.toBuilder();
}
session_ = input.readMessage(com.youtube.vitess.proto.Vtgate.Session.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(session_);
session_ = subBuilder.buildPartial();
}
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
results_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
results_.add(
input.readMessage(com.youtube.vitess.proto.Query.ResultWithError.parser(), extensionRegistry));
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_ & 0x00000004) == 0x00000004)) {
results_ = java.util.Collections.unmodifiableList(results_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse.class, com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse.Builder.class);
}
private int bitField0_;
public static final int ERROR_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Vtrpc.RPCError error_;
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public boolean hasError() {
return error_ != null;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError getError() {
return error_ == null ? com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder() {
return getError();
}
public static final int SESSION_FIELD_NUMBER = 2;
private com.youtube.vitess.proto.Vtgate.Session session_;
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return session_ != null;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
return getSession();
}
public static final int RESULTS_FIELD_NUMBER = 3;
private java.util.List results_;
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public java.util.List getResultsList() {
return results_;
}
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public java.util.List extends com.youtube.vitess.proto.Query.ResultWithErrorOrBuilder>
getResultsOrBuilderList() {
return results_;
}
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public int getResultsCount() {
return results_.size();
}
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public com.youtube.vitess.proto.Query.ResultWithError getResults(int index) {
return results_.get(index);
}
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public com.youtube.vitess.proto.Query.ResultWithErrorOrBuilder getResultsOrBuilder(
int index) {
return results_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (error_ != null) {
output.writeMessage(1, getError());
}
if (session_ != null) {
output.writeMessage(2, getSession());
}
for (int i = 0; i < results_.size(); i++) {
output.writeMessage(3, results_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (error_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getError());
}
if (session_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSession());
}
for (int i = 0; i < results_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, results_.get(i));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse other = (com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse) obj;
boolean result = true;
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError()
.equals(other.getError());
}
result = result && (hasSession() == other.hasSession());
if (hasSession()) {
result = result && getSession()
.equals(other.getSession());
}
result = result && getResultsList()
.equals(other.getResultsList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasError()) {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
}
if (hasSession()) {
hash = (37 * hash) + SESSION_FIELD_NUMBER;
hash = (53 * hash) + getSession().hashCode();
}
if (getResultsCount() > 0) {
hash = (37 * hash) + RESULTS_FIELD_NUMBER;
hash = (53 * hash) + getResultsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* ExecuteBatchResponse is the returned value from ExecuteBatch.
*
*
* Protobuf type {@code vtgate.ExecuteBatchResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.ExecuteBatchResponse)
com.youtube.vitess.proto.Vtgate.ExecuteBatchResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse.class, com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResultsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (errorBuilder_ == null) {
error_ = null;
} else {
error_ = null;
errorBuilder_ = null;
}
if (sessionBuilder_ == null) {
session_ = null;
} else {
session_ = null;
sessionBuilder_ = null;
}
if (resultsBuilder_ == null) {
results_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
resultsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchResponse_descriptor;
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse build() {
com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse buildPartial() {
com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse result = new com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (errorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = errorBuilder_.build();
}
if (sessionBuilder_ == null) {
result.session_ = session_;
} else {
result.session_ = sessionBuilder_.build();
}
if (resultsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
results_ = java.util.Collections.unmodifiableList(results_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.results_ = results_;
} else {
result.results_ = resultsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse other) {
if (other == com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse.getDefaultInstance()) return this;
if (other.hasError()) {
mergeError(other.getError());
}
if (other.hasSession()) {
mergeSession(other.getSession());
}
if (resultsBuilder_ == null) {
if (!other.results_.isEmpty()) {
if (results_.isEmpty()) {
results_ = other.results_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureResultsIsMutable();
results_.addAll(other.results_);
}
onChanged();
}
} else {
if (!other.results_.isEmpty()) {
if (resultsBuilder_.isEmpty()) {
resultsBuilder_.dispose();
resultsBuilder_ = null;
results_ = other.results_;
bitField0_ = (bitField0_ & ~0x00000004);
resultsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResultsFieldBuilder() : null;
} else {
resultsBuilder_.addAllMessages(other.results_);
}
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.youtube.vitess.proto.Vtrpc.RPCError error_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder> errorBuilder_;
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public boolean hasError() {
return errorBuilder_ != null || error_ != null;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError getError() {
if (errorBuilder_ == null) {
return error_ == null ? com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder setError(com.youtube.vitess.proto.Vtrpc.RPCError value) {
if (errorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
} else {
errorBuilder_.setMessage(value);
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder setError(
com.youtube.vitess.proto.Vtrpc.RPCError.Builder builderForValue) {
if (errorBuilder_ == null) {
error_ = builderForValue.build();
onChanged();
} else {
errorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder mergeError(com.youtube.vitess.proto.Vtrpc.RPCError value) {
if (errorBuilder_ == null) {
if (error_ != null) {
error_ =
com.youtube.vitess.proto.Vtrpc.RPCError.newBuilder(error_).mergeFrom(value).buildPartial();
} else {
error_ = value;
}
onChanged();
} else {
errorBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
error_ = null;
onChanged();
} else {
error_ = null;
errorBuilder_ = null;
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError.Builder getErrorBuilder() {
onChanged();
return getErrorFieldBuilder().getBuilder();
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder() {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
return error_ == null ?
com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
}
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder>(
getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
private com.youtube.vitess.proto.Vtgate.Session session_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder> sessionBuilder_;
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return sessionBuilder_ != null || session_ != null;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
if (sessionBuilder_ == null) {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
} else {
return sessionBuilder_.getMessage();
}
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
session_ = value;
onChanged();
} else {
sessionBuilder_.setMessage(value);
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(
com.youtube.vitess.proto.Vtgate.Session.Builder builderForValue) {
if (sessionBuilder_ == null) {
session_ = builderForValue.build();
onChanged();
} else {
sessionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder mergeSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (session_ != null) {
session_ =
com.youtube.vitess.proto.Vtgate.Session.newBuilder(session_).mergeFrom(value).buildPartial();
} else {
session_ = value;
}
onChanged();
} else {
sessionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder clearSession() {
if (sessionBuilder_ == null) {
session_ = null;
onChanged();
} else {
session_ = null;
sessionBuilder_ = null;
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.Builder getSessionBuilder() {
onChanged();
return getSessionFieldBuilder().getBuilder();
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
if (sessionBuilder_ != null) {
return sessionBuilder_.getMessageOrBuilder();
} else {
return session_ == null ?
com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>
getSessionFieldBuilder() {
if (sessionBuilder_ == null) {
sessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>(
getSession(),
getParentForChildren(),
isClean());
session_ = null;
}
return sessionBuilder_;
}
private java.util.List results_ =
java.util.Collections.emptyList();
private void ensureResultsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
results_ = new java.util.ArrayList(results_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Query.ResultWithError, com.youtube.vitess.proto.Query.ResultWithError.Builder, com.youtube.vitess.proto.Query.ResultWithErrorOrBuilder> resultsBuilder_;
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public java.util.List getResultsList() {
if (resultsBuilder_ == null) {
return java.util.Collections.unmodifiableList(results_);
} else {
return resultsBuilder_.getMessageList();
}
}
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public int getResultsCount() {
if (resultsBuilder_ == null) {
return results_.size();
} else {
return resultsBuilder_.getCount();
}
}
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public com.youtube.vitess.proto.Query.ResultWithError getResults(int index) {
if (resultsBuilder_ == null) {
return results_.get(index);
} else {
return resultsBuilder_.getMessage(index);
}
}
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public Builder setResults(
int index, com.youtube.vitess.proto.Query.ResultWithError value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.set(index, value);
onChanged();
} else {
resultsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public Builder setResults(
int index, com.youtube.vitess.proto.Query.ResultWithError.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.set(index, builderForValue.build());
onChanged();
} else {
resultsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public Builder addResults(com.youtube.vitess.proto.Query.ResultWithError value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.add(value);
onChanged();
} else {
resultsBuilder_.addMessage(value);
}
return this;
}
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public Builder addResults(
int index, com.youtube.vitess.proto.Query.ResultWithError value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.add(index, value);
onChanged();
} else {
resultsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public Builder addResults(
com.youtube.vitess.proto.Query.ResultWithError.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.add(builderForValue.build());
onChanged();
} else {
resultsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public Builder addResults(
int index, com.youtube.vitess.proto.Query.ResultWithError.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.add(index, builderForValue.build());
onChanged();
} else {
resultsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public Builder addAllResults(
java.lang.Iterable extends com.youtube.vitess.proto.Query.ResultWithError> values) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, results_);
onChanged();
} else {
resultsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public Builder clearResults() {
if (resultsBuilder_ == null) {
results_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
resultsBuilder_.clear();
}
return this;
}
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public Builder removeResults(int index) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.remove(index);
onChanged();
} else {
resultsBuilder_.remove(index);
}
return this;
}
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public com.youtube.vitess.proto.Query.ResultWithError.Builder getResultsBuilder(
int index) {
return getResultsFieldBuilder().getBuilder(index);
}
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public com.youtube.vitess.proto.Query.ResultWithErrorOrBuilder getResultsOrBuilder(
int index) {
if (resultsBuilder_ == null) {
return results_.get(index); } else {
return resultsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public java.util.List extends com.youtube.vitess.proto.Query.ResultWithErrorOrBuilder>
getResultsOrBuilderList() {
if (resultsBuilder_ != null) {
return resultsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(results_);
}
}
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public com.youtube.vitess.proto.Query.ResultWithError.Builder addResultsBuilder() {
return getResultsFieldBuilder().addBuilder(
com.youtube.vitess.proto.Query.ResultWithError.getDefaultInstance());
}
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public com.youtube.vitess.proto.Query.ResultWithError.Builder addResultsBuilder(
int index) {
return getResultsFieldBuilder().addBuilder(
index, com.youtube.vitess.proto.Query.ResultWithError.getDefaultInstance());
}
/**
*
* results contains the query results, only set if application level error is unset.
*
*
* repeated .query.ResultWithError results = 3;
*/
public java.util.List
getResultsBuilderList() {
return getResultsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Query.ResultWithError, com.youtube.vitess.proto.Query.ResultWithError.Builder, com.youtube.vitess.proto.Query.ResultWithErrorOrBuilder>
getResultsFieldBuilder() {
if (resultsBuilder_ == null) {
resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Query.ResultWithError, com.youtube.vitess.proto.Query.ResultWithError.Builder, com.youtube.vitess.proto.Query.ResultWithErrorOrBuilder>(
results_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
results_ = null;
}
return resultsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.ExecuteBatchResponse)
}
// @@protoc_insertion_point(class_scope:vtgate.ExecuteBatchResponse)
private static final com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse();
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExecuteBatchResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteBatchResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BoundShardQueryOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.BoundShardQuery)
com.google.protobuf.MessageOrBuilder {
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
boolean hasQuery();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
com.youtube.vitess.proto.Query.BoundQuery getQuery();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder();
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 2;
*/
java.lang.String getKeyspace();
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 2;
*/
com.google.protobuf.ByteString
getKeyspaceBytes();
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 3;
*/
java.util.List
getShardsList();
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 3;
*/
int getShardsCount();
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 3;
*/
java.lang.String getShards(int index);
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 3;
*/
com.google.protobuf.ByteString
getShardsBytes(int index);
}
/**
*
* BoundShardQuery represents a single query request for the
* specified list of shards. This is used in a list for
* ExecuteBatchShardsRequest.
*
*
* Protobuf type {@code vtgate.BoundShardQuery}
*/
public static final class BoundShardQuery extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.BoundShardQuery)
BoundShardQueryOrBuilder {
// Use BoundShardQuery.newBuilder() to construct.
private BoundShardQuery(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BoundShardQuery() {
keyspace_ = "";
shards_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private BoundShardQuery(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Query.BoundQuery.Builder subBuilder = null;
if (query_ != null) {
subBuilder = query_.toBuilder();
}
query_ = input.readMessage(com.youtube.vitess.proto.Query.BoundQuery.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(query_);
query_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
keyspace_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
shards_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
shards_.add(s);
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_ & 0x00000004) == 0x00000004)) {
shards_ = shards_.getUnmodifiableView();
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_BoundShardQuery_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_BoundShardQuery_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.BoundShardQuery.class, com.youtube.vitess.proto.Vtgate.BoundShardQuery.Builder.class);
}
private int bitField0_;
public static final int QUERY_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Query.BoundQuery query_;
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
public boolean hasQuery() {
return query_ != null;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQuery() {
return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() {
return getQuery();
}
public static final int KEYSPACE_FIELD_NUMBER = 2;
private volatile java.lang.Object keyspace_;
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 2;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 2;
*/
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 SHARDS_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList shards_;
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 3;
*/
public com.google.protobuf.ProtocolStringList
getShardsList() {
return shards_;
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 3;
*/
public int getShardsCount() {
return shards_.size();
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 3;
*/
public java.lang.String getShards(int index) {
return shards_.get(index);
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 3;
*/
public com.google.protobuf.ByteString
getShardsBytes(int index) {
return shards_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (query_ != null) {
output.writeMessage(1, getQuery());
}
if (!getKeyspaceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, keyspace_);
}
for (int i = 0; i < shards_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, shards_.getRaw(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (query_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getQuery());
}
if (!getKeyspaceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, keyspace_);
}
{
int dataSize = 0;
for (int i = 0; i < shards_.size(); i++) {
dataSize += computeStringSizeNoTag(shards_.getRaw(i));
}
size += dataSize;
size += 1 * getShardsList().size();
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.BoundShardQuery)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.BoundShardQuery other = (com.youtube.vitess.proto.Vtgate.BoundShardQuery) obj;
boolean result = true;
result = result && (hasQuery() == other.hasQuery());
if (hasQuery()) {
result = result && getQuery()
.equals(other.getQuery());
}
result = result && getKeyspace()
.equals(other.getKeyspace());
result = result && getShardsList()
.equals(other.getShardsList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasQuery()) {
hash = (37 * hash) + QUERY_FIELD_NUMBER;
hash = (53 * hash) + getQuery().hashCode();
}
hash = (37 * hash) + KEYSPACE_FIELD_NUMBER;
hash = (53 * hash) + getKeyspace().hashCode();
if (getShardsCount() > 0) {
hash = (37 * hash) + SHARDS_FIELD_NUMBER;
hash = (53 * hash) + getShardsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.BoundShardQuery parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.BoundShardQuery parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.BoundShardQuery parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.BoundShardQuery parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.BoundShardQuery parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.BoundShardQuery parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.BoundShardQuery parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.BoundShardQuery parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.BoundShardQuery parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.BoundShardQuery parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.BoundShardQuery prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* BoundShardQuery represents a single query request for the
* specified list of shards. This is used in a list for
* ExecuteBatchShardsRequest.
*
*
* Protobuf type {@code vtgate.BoundShardQuery}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.BoundShardQuery)
com.youtube.vitess.proto.Vtgate.BoundShardQueryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_BoundShardQuery_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_BoundShardQuery_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.BoundShardQuery.class, com.youtube.vitess.proto.Vtgate.BoundShardQuery.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.BoundShardQuery.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (queryBuilder_ == null) {
query_ = null;
} else {
query_ = null;
queryBuilder_ = null;
}
keyspace_ = "";
shards_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_BoundShardQuery_descriptor;
}
public com.youtube.vitess.proto.Vtgate.BoundShardQuery getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.BoundShardQuery.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.BoundShardQuery build() {
com.youtube.vitess.proto.Vtgate.BoundShardQuery result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.BoundShardQuery buildPartial() {
com.youtube.vitess.proto.Vtgate.BoundShardQuery result = new com.youtube.vitess.proto.Vtgate.BoundShardQuery(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (queryBuilder_ == null) {
result.query_ = query_;
} else {
result.query_ = queryBuilder_.build();
}
result.keyspace_ = keyspace_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
shards_ = shards_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.shards_ = shards_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.BoundShardQuery) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.BoundShardQuery)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.BoundShardQuery other) {
if (other == com.youtube.vitess.proto.Vtgate.BoundShardQuery.getDefaultInstance()) return this;
if (other.hasQuery()) {
mergeQuery(other.getQuery());
}
if (!other.getKeyspace().isEmpty()) {
keyspace_ = other.keyspace_;
onChanged();
}
if (!other.shards_.isEmpty()) {
if (shards_.isEmpty()) {
shards_ = other.shards_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureShardsIsMutable();
shards_.addAll(other.shards_);
}
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.BoundShardQuery parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.BoundShardQuery) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.youtube.vitess.proto.Query.BoundQuery query_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder> queryBuilder_;
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
public boolean hasQuery() {
return queryBuilder_ != null || query_ != null;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQuery() {
if (queryBuilder_ == null) {
return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
} else {
return queryBuilder_.getMessage();
}
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
public Builder setQuery(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
query_ = value;
onChanged();
} else {
queryBuilder_.setMessage(value);
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
public Builder setQuery(
com.youtube.vitess.proto.Query.BoundQuery.Builder builderForValue) {
if (queryBuilder_ == null) {
query_ = builderForValue.build();
onChanged();
} else {
queryBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
public Builder mergeQuery(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queryBuilder_ == null) {
if (query_ != null) {
query_ =
com.youtube.vitess.proto.Query.BoundQuery.newBuilder(query_).mergeFrom(value).buildPartial();
} else {
query_ = value;
}
onChanged();
} else {
queryBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
public Builder clearQuery() {
if (queryBuilder_ == null) {
query_ = null;
onChanged();
} else {
query_ = null;
queryBuilder_ = null;
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
public com.youtube.vitess.proto.Query.BoundQuery.Builder getQueryBuilder() {
onChanged();
return getQueryFieldBuilder().getBuilder();
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() {
if (queryBuilder_ != null) {
return queryBuilder_.getMessageOrBuilder();
} else {
return query_ == null ?
com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
}
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>
getQueryFieldBuilder() {
if (queryBuilder_ == null) {
queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>(
getQuery(),
getParentForChildren(),
isClean());
query_ = null;
}
return queryBuilder_;
}
private java.lang.Object keyspace_ = "";
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 2;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 2;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 2;
*/
public Builder setKeyspace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
keyspace_ = value;
onChanged();
return this;
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 2;
*/
public Builder clearKeyspace() {
keyspace_ = getDefaultInstance().getKeyspace();
onChanged();
return this;
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 2;
*/
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.LazyStringList shards_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureShardsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
shards_ = new com.google.protobuf.LazyStringArrayList(shards_);
bitField0_ |= 0x00000004;
}
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 3;
*/
public com.google.protobuf.ProtocolStringList
getShardsList() {
return shards_.getUnmodifiableView();
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 3;
*/
public int getShardsCount() {
return shards_.size();
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 3;
*/
public java.lang.String getShards(int index) {
return shards_.get(index);
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 3;
*/
public com.google.protobuf.ByteString
getShardsBytes(int index) {
return shards_.getByteString(index);
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 3;
*/
public Builder setShards(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureShardsIsMutable();
shards_.set(index, value);
onChanged();
return this;
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 3;
*/
public Builder addShards(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureShardsIsMutable();
shards_.add(value);
onChanged();
return this;
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 3;
*/
public Builder addAllShards(
java.lang.Iterable values) {
ensureShardsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, shards_);
onChanged();
return this;
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 3;
*/
public Builder clearShards() {
shards_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* shards to target the query to. A DML can only target one shard.
*
*
* repeated string shards = 3;
*/
public Builder addShardsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureShardsIsMutable();
shards_.add(value);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.BoundShardQuery)
}
// @@protoc_insertion_point(class_scope:vtgate.BoundShardQuery)
private static final com.youtube.vitess.proto.Vtgate.BoundShardQuery DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.BoundShardQuery();
}
public static com.youtube.vitess.proto.Vtgate.BoundShardQuery getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public BoundShardQuery parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BoundShardQuery(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.BoundShardQuery getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteBatchShardsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.ExecuteBatchShardsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
boolean hasCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerID getCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
boolean hasSession();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.Session getSession();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder();
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
java.util.List
getQueriesList();
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
com.youtube.vitess.proto.Vtgate.BoundShardQuery getQueries(int index);
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
int getQueriesCount();
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
java.util.List extends com.youtube.vitess.proto.Vtgate.BoundShardQueryOrBuilder>
getQueriesOrBuilderList();
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
com.youtube.vitess.proto.Vtgate.BoundShardQueryOrBuilder getQueriesOrBuilder(
int index);
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
int getTabletTypeValue();
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
com.youtube.vitess.proto.Topodata.TabletType getTabletType();
/**
*
* as_transaction will execute the queries in this batch in a single transaction per shard, created for this purpose.
* (this can be seen as adding a 'begin' before and 'commit' after the queries).
* Only makes sense if tablet_type is master. If set, the Session is ignored.
*
*
* optional bool as_transaction = 5;
*/
boolean getAsTransaction();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
boolean hasOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
com.youtube.vitess.proto.Query.ExecuteOptions getOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder();
}
/**
*
* ExecuteBatchShardsRequest is the payload to ExecuteBatchShards
*
*
* Protobuf type {@code vtgate.ExecuteBatchShardsRequest}
*/
public static final class ExecuteBatchShardsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.ExecuteBatchShardsRequest)
ExecuteBatchShardsRequestOrBuilder {
// Use ExecuteBatchShardsRequest.newBuilder() to construct.
private ExecuteBatchShardsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteBatchShardsRequest() {
queries_ = java.util.Collections.emptyList();
tabletType_ = 0;
asTransaction_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ExecuteBatchShardsRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Vtrpc.CallerID.Builder subBuilder = null;
if (callerId_ != null) {
subBuilder = callerId_.toBuilder();
}
callerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(callerId_);
callerId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.youtube.vitess.proto.Vtgate.Session.Builder subBuilder = null;
if (session_ != null) {
subBuilder = session_.toBuilder();
}
session_ = input.readMessage(com.youtube.vitess.proto.Vtgate.Session.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(session_);
session_ = subBuilder.buildPartial();
}
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
queries_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
queries_.add(
input.readMessage(com.youtube.vitess.proto.Vtgate.BoundShardQuery.parser(), extensionRegistry));
break;
}
case 32: {
int rawValue = input.readEnum();
tabletType_ = rawValue;
break;
}
case 40: {
asTransaction_ = input.readBool();
break;
}
case 50: {
com.youtube.vitess.proto.Query.ExecuteOptions.Builder subBuilder = null;
if (options_ != null) {
subBuilder = options_.toBuilder();
}
options_ = input.readMessage(com.youtube.vitess.proto.Query.ExecuteOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(options_);
options_ = subBuilder.buildPartial();
}
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_ & 0x00000004) == 0x00000004)) {
queries_ = java.util.Collections.unmodifiableList(queries_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchShardsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchShardsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest.class, com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest.Builder.class);
}
private int bitField0_;
public static final int CALLER_ID_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
return getCallerId();
}
public static final int SESSION_FIELD_NUMBER = 2;
private com.youtube.vitess.proto.Vtgate.Session session_;
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return session_ != null;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
return getSession();
}
public static final int QUERIES_FIELD_NUMBER = 3;
private java.util.List queries_;
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public java.util.List getQueriesList() {
return queries_;
}
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public java.util.List extends com.youtube.vitess.proto.Vtgate.BoundShardQueryOrBuilder>
getQueriesOrBuilderList() {
return queries_;
}
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public int getQueriesCount() {
return queries_.size();
}
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public com.youtube.vitess.proto.Vtgate.BoundShardQuery getQueries(int index) {
return queries_.get(index);
}
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public com.youtube.vitess.proto.Vtgate.BoundShardQueryOrBuilder getQueriesOrBuilder(
int index) {
return queries_.get(index);
}
public static final int TABLET_TYPE_FIELD_NUMBER = 4;
private int tabletType_;
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
public static final int AS_TRANSACTION_FIELD_NUMBER = 5;
private boolean asTransaction_;
/**
*
* as_transaction will execute the queries in this batch in a single transaction per shard, created for this purpose.
* (this can be seen as adding a 'begin' before and 'commit' after the queries).
* Only makes sense if tablet_type is master. If set, the Session is ignored.
*
*
* optional bool as_transaction = 5;
*/
public boolean getAsTransaction() {
return asTransaction_;
}
public static final int OPTIONS_FIELD_NUMBER = 6;
private com.youtube.vitess.proto.Query.ExecuteOptions options_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public boolean hasOptions() {
return options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
return getOptions();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (callerId_ != null) {
output.writeMessage(1, getCallerId());
}
if (session_ != null) {
output.writeMessage(2, getSession());
}
for (int i = 0; i < queries_.size(); i++) {
output.writeMessage(3, queries_.get(i));
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
output.writeEnum(4, tabletType_);
}
if (asTransaction_ != false) {
output.writeBool(5, asTransaction_);
}
if (options_ != null) {
output.writeMessage(6, getOptions());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (callerId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCallerId());
}
if (session_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSession());
}
for (int i = 0; i < queries_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, queries_.get(i));
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, tabletType_);
}
if (asTransaction_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, asTransaction_);
}
if (options_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getOptions());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest other = (com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest) obj;
boolean result = true;
result = result && (hasCallerId() == other.hasCallerId());
if (hasCallerId()) {
result = result && getCallerId()
.equals(other.getCallerId());
}
result = result && (hasSession() == other.hasSession());
if (hasSession()) {
result = result && getSession()
.equals(other.getSession());
}
result = result && getQueriesList()
.equals(other.getQueriesList());
result = result && tabletType_ == other.tabletType_;
result = result && (getAsTransaction()
== other.getAsTransaction());
result = result && (hasOptions() == other.hasOptions());
if (hasOptions()) {
result = result && getOptions()
.equals(other.getOptions());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasCallerId()) {
hash = (37 * hash) + CALLER_ID_FIELD_NUMBER;
hash = (53 * hash) + getCallerId().hashCode();
}
if (hasSession()) {
hash = (37 * hash) + SESSION_FIELD_NUMBER;
hash = (53 * hash) + getSession().hashCode();
}
if (getQueriesCount() > 0) {
hash = (37 * hash) + QUERIES_FIELD_NUMBER;
hash = (53 * hash) + getQueriesList().hashCode();
}
hash = (37 * hash) + TABLET_TYPE_FIELD_NUMBER;
hash = (53 * hash) + tabletType_;
hash = (37 * hash) + AS_TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAsTransaction());
if (hasOptions()) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptions().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* ExecuteBatchShardsRequest is the payload to ExecuteBatchShards
*
*
* Protobuf type {@code vtgate.ExecuteBatchShardsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.ExecuteBatchShardsRequest)
com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchShardsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchShardsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest.class, com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getQueriesFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (callerIdBuilder_ == null) {
callerId_ = null;
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
if (sessionBuilder_ == null) {
session_ = null;
} else {
session_ = null;
sessionBuilder_ = null;
}
if (queriesBuilder_ == null) {
queries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
queriesBuilder_.clear();
}
tabletType_ = 0;
asTransaction_ = false;
if (optionsBuilder_ == null) {
options_ = null;
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchShardsRequest_descriptor;
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest build() {
com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest buildPartial() {
com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest result = new com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (callerIdBuilder_ == null) {
result.callerId_ = callerId_;
} else {
result.callerId_ = callerIdBuilder_.build();
}
if (sessionBuilder_ == null) {
result.session_ = session_;
} else {
result.session_ = sessionBuilder_.build();
}
if (queriesBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
queries_ = java.util.Collections.unmodifiableList(queries_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.queries_ = queries_;
} else {
result.queries_ = queriesBuilder_.build();
}
result.tabletType_ = tabletType_;
result.asTransaction_ = asTransaction_;
if (optionsBuilder_ == null) {
result.options_ = options_;
} else {
result.options_ = optionsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest other) {
if (other == com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest.getDefaultInstance()) return this;
if (other.hasCallerId()) {
mergeCallerId(other.getCallerId());
}
if (other.hasSession()) {
mergeSession(other.getSession());
}
if (queriesBuilder_ == null) {
if (!other.queries_.isEmpty()) {
if (queries_.isEmpty()) {
queries_ = other.queries_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureQueriesIsMutable();
queries_.addAll(other.queries_);
}
onChanged();
}
} else {
if (!other.queries_.isEmpty()) {
if (queriesBuilder_.isEmpty()) {
queriesBuilder_.dispose();
queriesBuilder_ = null;
queries_ = other.queries_;
bitField0_ = (bitField0_ & ~0x00000004);
queriesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getQueriesFieldBuilder() : null;
} else {
queriesBuilder_.addAllMessages(other.queries_);
}
}
}
if (other.tabletType_ != 0) {
setTabletTypeValue(other.getTabletTypeValue());
}
if (other.getAsTransaction() != false) {
setAsTransaction(other.getAsTransaction());
}
if (other.hasOptions()) {
mergeOptions(other.getOptions());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder> callerIdBuilder_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerIdBuilder_ != null || callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
if (callerIdBuilder_ == null) {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
} else {
return callerIdBuilder_.getMessage();
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
callerId_ = value;
onChanged();
} else {
callerIdBuilder_.setMessage(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(
com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) {
if (callerIdBuilder_ == null) {
callerId_ = builderForValue.build();
onChanged();
} else {
callerIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder mergeCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (callerId_ != null) {
callerId_ =
com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(callerId_).mergeFrom(value).buildPartial();
} else {
callerId_ = value;
}
onChanged();
} else {
callerIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder clearCallerId() {
if (callerIdBuilder_ == null) {
callerId_ = null;
onChanged();
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getCallerIdBuilder() {
onChanged();
return getCallerIdFieldBuilder().getBuilder();
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
if (callerIdBuilder_ != null) {
return callerIdBuilder_.getMessageOrBuilder();
} else {
return callerId_ == null ?
com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>
getCallerIdFieldBuilder() {
if (callerIdBuilder_ == null) {
callerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>(
getCallerId(),
getParentForChildren(),
isClean());
callerId_ = null;
}
return callerIdBuilder_;
}
private com.youtube.vitess.proto.Vtgate.Session session_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder> sessionBuilder_;
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return sessionBuilder_ != null || session_ != null;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
if (sessionBuilder_ == null) {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
} else {
return sessionBuilder_.getMessage();
}
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
session_ = value;
onChanged();
} else {
sessionBuilder_.setMessage(value);
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(
com.youtube.vitess.proto.Vtgate.Session.Builder builderForValue) {
if (sessionBuilder_ == null) {
session_ = builderForValue.build();
onChanged();
} else {
sessionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder mergeSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (session_ != null) {
session_ =
com.youtube.vitess.proto.Vtgate.Session.newBuilder(session_).mergeFrom(value).buildPartial();
} else {
session_ = value;
}
onChanged();
} else {
sessionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder clearSession() {
if (sessionBuilder_ == null) {
session_ = null;
onChanged();
} else {
session_ = null;
sessionBuilder_ = null;
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.Builder getSessionBuilder() {
onChanged();
return getSessionFieldBuilder().getBuilder();
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
if (sessionBuilder_ != null) {
return sessionBuilder_.getMessageOrBuilder();
} else {
return session_ == null ?
com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>
getSessionFieldBuilder() {
if (sessionBuilder_ == null) {
sessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>(
getSession(),
getParentForChildren(),
isClean());
session_ = null;
}
return sessionBuilder_;
}
private java.util.List queries_ =
java.util.Collections.emptyList();
private void ensureQueriesIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
queries_ = new java.util.ArrayList(queries_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.BoundShardQuery, com.youtube.vitess.proto.Vtgate.BoundShardQuery.Builder, com.youtube.vitess.proto.Vtgate.BoundShardQueryOrBuilder> queriesBuilder_;
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public java.util.List getQueriesList() {
if (queriesBuilder_ == null) {
return java.util.Collections.unmodifiableList(queries_);
} else {
return queriesBuilder_.getMessageList();
}
}
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public int getQueriesCount() {
if (queriesBuilder_ == null) {
return queries_.size();
} else {
return queriesBuilder_.getCount();
}
}
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public com.youtube.vitess.proto.Vtgate.BoundShardQuery getQueries(int index) {
if (queriesBuilder_ == null) {
return queries_.get(index);
} else {
return queriesBuilder_.getMessage(index);
}
}
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public Builder setQueries(
int index, com.youtube.vitess.proto.Vtgate.BoundShardQuery value) {
if (queriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueriesIsMutable();
queries_.set(index, value);
onChanged();
} else {
queriesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public Builder setQueries(
int index, com.youtube.vitess.proto.Vtgate.BoundShardQuery.Builder builderForValue) {
if (queriesBuilder_ == null) {
ensureQueriesIsMutable();
queries_.set(index, builderForValue.build());
onChanged();
} else {
queriesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public Builder addQueries(com.youtube.vitess.proto.Vtgate.BoundShardQuery value) {
if (queriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueriesIsMutable();
queries_.add(value);
onChanged();
} else {
queriesBuilder_.addMessage(value);
}
return this;
}
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public Builder addQueries(
int index, com.youtube.vitess.proto.Vtgate.BoundShardQuery value) {
if (queriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueriesIsMutable();
queries_.add(index, value);
onChanged();
} else {
queriesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public Builder addQueries(
com.youtube.vitess.proto.Vtgate.BoundShardQuery.Builder builderForValue) {
if (queriesBuilder_ == null) {
ensureQueriesIsMutable();
queries_.add(builderForValue.build());
onChanged();
} else {
queriesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public Builder addQueries(
int index, com.youtube.vitess.proto.Vtgate.BoundShardQuery.Builder builderForValue) {
if (queriesBuilder_ == null) {
ensureQueriesIsMutable();
queries_.add(index, builderForValue.build());
onChanged();
} else {
queriesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public Builder addAllQueries(
java.lang.Iterable extends com.youtube.vitess.proto.Vtgate.BoundShardQuery> values) {
if (queriesBuilder_ == null) {
ensureQueriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, queries_);
onChanged();
} else {
queriesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public Builder clearQueries() {
if (queriesBuilder_ == null) {
queries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
queriesBuilder_.clear();
}
return this;
}
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public Builder removeQueries(int index) {
if (queriesBuilder_ == null) {
ensureQueriesIsMutable();
queries_.remove(index);
onChanged();
} else {
queriesBuilder_.remove(index);
}
return this;
}
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public com.youtube.vitess.proto.Vtgate.BoundShardQuery.Builder getQueriesBuilder(
int index) {
return getQueriesFieldBuilder().getBuilder(index);
}
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public com.youtube.vitess.proto.Vtgate.BoundShardQueryOrBuilder getQueriesOrBuilder(
int index) {
if (queriesBuilder_ == null) {
return queries_.get(index); } else {
return queriesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public java.util.List extends com.youtube.vitess.proto.Vtgate.BoundShardQueryOrBuilder>
getQueriesOrBuilderList() {
if (queriesBuilder_ != null) {
return queriesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(queries_);
}
}
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public com.youtube.vitess.proto.Vtgate.BoundShardQuery.Builder addQueriesBuilder() {
return getQueriesFieldBuilder().addBuilder(
com.youtube.vitess.proto.Vtgate.BoundShardQuery.getDefaultInstance());
}
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public com.youtube.vitess.proto.Vtgate.BoundShardQuery.Builder addQueriesBuilder(
int index) {
return getQueriesFieldBuilder().addBuilder(
index, com.youtube.vitess.proto.Vtgate.BoundShardQuery.getDefaultInstance());
}
/**
*
* queries carries all the queries to execute.
*
*
* repeated .vtgate.BoundShardQuery queries = 3;
*/
public java.util.List
getQueriesBuilderList() {
return getQueriesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.BoundShardQuery, com.youtube.vitess.proto.Vtgate.BoundShardQuery.Builder, com.youtube.vitess.proto.Vtgate.BoundShardQueryOrBuilder>
getQueriesFieldBuilder() {
if (queriesBuilder_ == null) {
queriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.BoundShardQuery, com.youtube.vitess.proto.Vtgate.BoundShardQuery.Builder, com.youtube.vitess.proto.Vtgate.BoundShardQueryOrBuilder>(
queries_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
queries_ = null;
}
return queriesBuilder_;
}
private int tabletType_ = 0;
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public Builder setTabletTypeValue(int value) {
tabletType_ = value;
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public Builder setTabletType(com.youtube.vitess.proto.Topodata.TabletType value) {
if (value == null) {
throw new NullPointerException();
}
tabletType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public Builder clearTabletType() {
tabletType_ = 0;
onChanged();
return this;
}
private boolean asTransaction_ ;
/**
*
* as_transaction will execute the queries in this batch in a single transaction per shard, created for this purpose.
* (this can be seen as adding a 'begin' before and 'commit' after the queries).
* Only makes sense if tablet_type is master. If set, the Session is ignored.
*
*
* optional bool as_transaction = 5;
*/
public boolean getAsTransaction() {
return asTransaction_;
}
/**
*
* as_transaction will execute the queries in this batch in a single transaction per shard, created for this purpose.
* (this can be seen as adding a 'begin' before and 'commit' after the queries).
* Only makes sense if tablet_type is master. If set, the Session is ignored.
*
*
* optional bool as_transaction = 5;
*/
public Builder setAsTransaction(boolean value) {
asTransaction_ = value;
onChanged();
return this;
}
/**
*
* as_transaction will execute the queries in this batch in a single transaction per shard, created for this purpose.
* (this can be seen as adding a 'begin' before and 'commit' after the queries).
* Only makes sense if tablet_type is master. If set, the Session is ignored.
*
*
* optional bool as_transaction = 5;
*/
public Builder clearAsTransaction() {
asTransaction_ = false;
onChanged();
return this;
}
private com.youtube.vitess.proto.Query.ExecuteOptions options_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder> optionsBuilder_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public boolean hasOptions() {
return optionsBuilder_ != null || options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
if (optionsBuilder_ == null) {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
} else {
return optionsBuilder_.getMessage();
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public Builder setOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
options_ = value;
onChanged();
} else {
optionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public Builder setOptions(
com.youtube.vitess.proto.Query.ExecuteOptions.Builder builderForValue) {
if (optionsBuilder_ == null) {
options_ = builderForValue.build();
onChanged();
} else {
optionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public Builder mergeOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (options_ != null) {
options_ =
com.youtube.vitess.proto.Query.ExecuteOptions.newBuilder(options_).mergeFrom(value).buildPartial();
} else {
options_ = value;
}
onChanged();
} else {
optionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public Builder clearOptions() {
if (optionsBuilder_ == null) {
options_ = null;
onChanged();
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions.Builder getOptionsBuilder() {
onChanged();
return getOptionsFieldBuilder().getBuilder();
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilder();
} else {
return options_ == null ?
com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>(
getOptions(),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.ExecuteBatchShardsRequest)
}
// @@protoc_insertion_point(class_scope:vtgate.ExecuteBatchShardsRequest)
private static final com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest();
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExecuteBatchShardsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteBatchShardsRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteBatchShardsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.ExecuteBatchShardsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
boolean hasError();
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
com.youtube.vitess.proto.Vtrpc.RPCError getError();
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
boolean hasSession();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.Session getSession();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder();
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
java.util.List
getResultsList();
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
com.youtube.vitess.proto.Query.QueryResult getResults(int index);
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
int getResultsCount();
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
java.util.List extends com.youtube.vitess.proto.Query.QueryResultOrBuilder>
getResultsOrBuilderList();
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultsOrBuilder(
int index);
}
/**
*
* ExecuteBatchShardsResponse is the returned value from ExecuteBatchShards.
*
*
* Protobuf type {@code vtgate.ExecuteBatchShardsResponse}
*/
public static final class ExecuteBatchShardsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.ExecuteBatchShardsResponse)
ExecuteBatchShardsResponseOrBuilder {
// Use ExecuteBatchShardsResponse.newBuilder() to construct.
private ExecuteBatchShardsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteBatchShardsResponse() {
results_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ExecuteBatchShardsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Vtrpc.RPCError.Builder subBuilder = null;
if (error_ != null) {
subBuilder = error_.toBuilder();
}
error_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.RPCError.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(error_);
error_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.youtube.vitess.proto.Vtgate.Session.Builder subBuilder = null;
if (session_ != null) {
subBuilder = session_.toBuilder();
}
session_ = input.readMessage(com.youtube.vitess.proto.Vtgate.Session.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(session_);
session_ = subBuilder.buildPartial();
}
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
results_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
results_.add(
input.readMessage(com.youtube.vitess.proto.Query.QueryResult.parser(), extensionRegistry));
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_ & 0x00000004) == 0x00000004)) {
results_ = java.util.Collections.unmodifiableList(results_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchShardsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchShardsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse.class, com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse.Builder.class);
}
private int bitField0_;
public static final int ERROR_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Vtrpc.RPCError error_;
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public boolean hasError() {
return error_ != null;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError getError() {
return error_ == null ? com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder() {
return getError();
}
public static final int SESSION_FIELD_NUMBER = 2;
private com.youtube.vitess.proto.Vtgate.Session session_;
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return session_ != null;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
return getSession();
}
public static final int RESULTS_FIELD_NUMBER = 3;
private java.util.List results_;
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public java.util.List getResultsList() {
return results_;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public java.util.List extends com.youtube.vitess.proto.Query.QueryResultOrBuilder>
getResultsOrBuilderList() {
return results_;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public int getResultsCount() {
return results_.size();
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult getResults(int index) {
return results_.get(index);
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultsOrBuilder(
int index) {
return results_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (error_ != null) {
output.writeMessage(1, getError());
}
if (session_ != null) {
output.writeMessage(2, getSession());
}
for (int i = 0; i < results_.size(); i++) {
output.writeMessage(3, results_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (error_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getError());
}
if (session_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSession());
}
for (int i = 0; i < results_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, results_.get(i));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse other = (com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse) obj;
boolean result = true;
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError()
.equals(other.getError());
}
result = result && (hasSession() == other.hasSession());
if (hasSession()) {
result = result && getSession()
.equals(other.getSession());
}
result = result && getResultsList()
.equals(other.getResultsList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasError()) {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
}
if (hasSession()) {
hash = (37 * hash) + SESSION_FIELD_NUMBER;
hash = (53 * hash) + getSession().hashCode();
}
if (getResultsCount() > 0) {
hash = (37 * hash) + RESULTS_FIELD_NUMBER;
hash = (53 * hash) + getResultsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* ExecuteBatchShardsResponse is the returned value from ExecuteBatchShards.
*
*
* Protobuf type {@code vtgate.ExecuteBatchShardsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.ExecuteBatchShardsResponse)
com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchShardsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchShardsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse.class, com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResultsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (errorBuilder_ == null) {
error_ = null;
} else {
error_ = null;
errorBuilder_ = null;
}
if (sessionBuilder_ == null) {
session_ = null;
} else {
session_ = null;
sessionBuilder_ = null;
}
if (resultsBuilder_ == null) {
results_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
resultsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchShardsResponse_descriptor;
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse build() {
com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse buildPartial() {
com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse result = new com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (errorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = errorBuilder_.build();
}
if (sessionBuilder_ == null) {
result.session_ = session_;
} else {
result.session_ = sessionBuilder_.build();
}
if (resultsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
results_ = java.util.Collections.unmodifiableList(results_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.results_ = results_;
} else {
result.results_ = resultsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse other) {
if (other == com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse.getDefaultInstance()) return this;
if (other.hasError()) {
mergeError(other.getError());
}
if (other.hasSession()) {
mergeSession(other.getSession());
}
if (resultsBuilder_ == null) {
if (!other.results_.isEmpty()) {
if (results_.isEmpty()) {
results_ = other.results_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureResultsIsMutable();
results_.addAll(other.results_);
}
onChanged();
}
} else {
if (!other.results_.isEmpty()) {
if (resultsBuilder_.isEmpty()) {
resultsBuilder_.dispose();
resultsBuilder_ = null;
results_ = other.results_;
bitField0_ = (bitField0_ & ~0x00000004);
resultsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResultsFieldBuilder() : null;
} else {
resultsBuilder_.addAllMessages(other.results_);
}
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.youtube.vitess.proto.Vtrpc.RPCError error_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder> errorBuilder_;
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public boolean hasError() {
return errorBuilder_ != null || error_ != null;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError getError() {
if (errorBuilder_ == null) {
return error_ == null ? com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder setError(com.youtube.vitess.proto.Vtrpc.RPCError value) {
if (errorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
} else {
errorBuilder_.setMessage(value);
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder setError(
com.youtube.vitess.proto.Vtrpc.RPCError.Builder builderForValue) {
if (errorBuilder_ == null) {
error_ = builderForValue.build();
onChanged();
} else {
errorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder mergeError(com.youtube.vitess.proto.Vtrpc.RPCError value) {
if (errorBuilder_ == null) {
if (error_ != null) {
error_ =
com.youtube.vitess.proto.Vtrpc.RPCError.newBuilder(error_).mergeFrom(value).buildPartial();
} else {
error_ = value;
}
onChanged();
} else {
errorBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
error_ = null;
onChanged();
} else {
error_ = null;
errorBuilder_ = null;
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError.Builder getErrorBuilder() {
onChanged();
return getErrorFieldBuilder().getBuilder();
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder() {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
return error_ == null ?
com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
}
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder>(
getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
private com.youtube.vitess.proto.Vtgate.Session session_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder> sessionBuilder_;
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return sessionBuilder_ != null || session_ != null;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
if (sessionBuilder_ == null) {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
} else {
return sessionBuilder_.getMessage();
}
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
session_ = value;
onChanged();
} else {
sessionBuilder_.setMessage(value);
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(
com.youtube.vitess.proto.Vtgate.Session.Builder builderForValue) {
if (sessionBuilder_ == null) {
session_ = builderForValue.build();
onChanged();
} else {
sessionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder mergeSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (session_ != null) {
session_ =
com.youtube.vitess.proto.Vtgate.Session.newBuilder(session_).mergeFrom(value).buildPartial();
} else {
session_ = value;
}
onChanged();
} else {
sessionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder clearSession() {
if (sessionBuilder_ == null) {
session_ = null;
onChanged();
} else {
session_ = null;
sessionBuilder_ = null;
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.Builder getSessionBuilder() {
onChanged();
return getSessionFieldBuilder().getBuilder();
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
if (sessionBuilder_ != null) {
return sessionBuilder_.getMessageOrBuilder();
} else {
return session_ == null ?
com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>
getSessionFieldBuilder() {
if (sessionBuilder_ == null) {
sessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>(
getSession(),
getParentForChildren(),
isClean());
session_ = null;
}
return sessionBuilder_;
}
private java.util.List results_ =
java.util.Collections.emptyList();
private void ensureResultsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
results_ = new java.util.ArrayList(results_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder> resultsBuilder_;
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public java.util.List getResultsList() {
if (resultsBuilder_ == null) {
return java.util.Collections.unmodifiableList(results_);
} else {
return resultsBuilder_.getMessageList();
}
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public int getResultsCount() {
if (resultsBuilder_ == null) {
return results_.size();
} else {
return resultsBuilder_.getCount();
}
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult getResults(int index) {
if (resultsBuilder_ == null) {
return results_.get(index);
} else {
return resultsBuilder_.getMessage(index);
}
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public Builder setResults(
int index, com.youtube.vitess.proto.Query.QueryResult value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.set(index, value);
onChanged();
} else {
resultsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public Builder setResults(
int index, com.youtube.vitess.proto.Query.QueryResult.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.set(index, builderForValue.build());
onChanged();
} else {
resultsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public Builder addResults(com.youtube.vitess.proto.Query.QueryResult value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.add(value);
onChanged();
} else {
resultsBuilder_.addMessage(value);
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public Builder addResults(
int index, com.youtube.vitess.proto.Query.QueryResult value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.add(index, value);
onChanged();
} else {
resultsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public Builder addResults(
com.youtube.vitess.proto.Query.QueryResult.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.add(builderForValue.build());
onChanged();
} else {
resultsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public Builder addResults(
int index, com.youtube.vitess.proto.Query.QueryResult.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.add(index, builderForValue.build());
onChanged();
} else {
resultsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public Builder addAllResults(
java.lang.Iterable extends com.youtube.vitess.proto.Query.QueryResult> values) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, results_);
onChanged();
} else {
resultsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public Builder clearResults() {
if (resultsBuilder_ == null) {
results_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
resultsBuilder_.clear();
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public Builder removeResults(int index) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.remove(index);
onChanged();
} else {
resultsBuilder_.remove(index);
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult.Builder getResultsBuilder(
int index) {
return getResultsFieldBuilder().getBuilder(index);
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultsOrBuilder(
int index) {
if (resultsBuilder_ == null) {
return results_.get(index); } else {
return resultsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public java.util.List extends com.youtube.vitess.proto.Query.QueryResultOrBuilder>
getResultsOrBuilderList() {
if (resultsBuilder_ != null) {
return resultsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(results_);
}
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult.Builder addResultsBuilder() {
return getResultsFieldBuilder().addBuilder(
com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance());
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult.Builder addResultsBuilder(
int index) {
return getResultsFieldBuilder().addBuilder(
index, com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance());
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public java.util.List
getResultsBuilderList() {
return getResultsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder>
getResultsFieldBuilder() {
if (resultsBuilder_ == null) {
resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder>(
results_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
results_ = null;
}
return resultsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.ExecuteBatchShardsResponse)
}
// @@protoc_insertion_point(class_scope:vtgate.ExecuteBatchShardsResponse)
private static final com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse();
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExecuteBatchShardsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteBatchShardsResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchShardsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BoundKeyspaceIdQueryOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.BoundKeyspaceIdQuery)
com.google.protobuf.MessageOrBuilder {
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
boolean hasQuery();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
com.youtube.vitess.proto.Query.BoundQuery getQuery();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder();
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 2;
*/
java.lang.String getKeyspace();
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 2;
*/
com.google.protobuf.ByteString
getKeyspaceBytes();
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 3;
*/
java.util.List getKeyspaceIdsList();
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 3;
*/
int getKeyspaceIdsCount();
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 3;
*/
com.google.protobuf.ByteString getKeyspaceIds(int index);
}
/**
*
* BoundKeyspaceIdQuery represents a single query request for the
* specified list of keyspace ids. This is used in a list for
* ExecuteBatchKeyspaceIdsRequest.
*
*
* Protobuf type {@code vtgate.BoundKeyspaceIdQuery}
*/
public static final class BoundKeyspaceIdQuery extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.BoundKeyspaceIdQuery)
BoundKeyspaceIdQueryOrBuilder {
// Use BoundKeyspaceIdQuery.newBuilder() to construct.
private BoundKeyspaceIdQuery(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BoundKeyspaceIdQuery() {
keyspace_ = "";
keyspaceIds_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private BoundKeyspaceIdQuery(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Query.BoundQuery.Builder subBuilder = null;
if (query_ != null) {
subBuilder = query_.toBuilder();
}
query_ = input.readMessage(com.youtube.vitess.proto.Query.BoundQuery.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(query_);
query_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
keyspace_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
keyspaceIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
keyspaceIds_.add(input.readBytes());
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_ & 0x00000004) == 0x00000004)) {
keyspaceIds_ = java.util.Collections.unmodifiableList(keyspaceIds_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_BoundKeyspaceIdQuery_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_BoundKeyspaceIdQuery_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery.class, com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery.Builder.class);
}
private int bitField0_;
public static final int QUERY_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Query.BoundQuery query_;
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
public boolean hasQuery() {
return query_ != null;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQuery() {
return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() {
return getQuery();
}
public static final int KEYSPACE_FIELD_NUMBER = 2;
private volatile java.lang.Object keyspace_;
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 2;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 2;
*/
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 KEYSPACE_IDS_FIELD_NUMBER = 3;
private java.util.List keyspaceIds_;
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 3;
*/
public java.util.List
getKeyspaceIdsList() {
return keyspaceIds_;
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 3;
*/
public int getKeyspaceIdsCount() {
return keyspaceIds_.size();
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 3;
*/
public com.google.protobuf.ByteString getKeyspaceIds(int index) {
return keyspaceIds_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (query_ != null) {
output.writeMessage(1, getQuery());
}
if (!getKeyspaceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, keyspace_);
}
for (int i = 0; i < keyspaceIds_.size(); i++) {
output.writeBytes(3, keyspaceIds_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (query_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getQuery());
}
if (!getKeyspaceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, keyspace_);
}
{
int dataSize = 0;
for (int i = 0; i < keyspaceIds_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(keyspaceIds_.get(i));
}
size += dataSize;
size += 1 * getKeyspaceIdsList().size();
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery other = (com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery) obj;
boolean result = true;
result = result && (hasQuery() == other.hasQuery());
if (hasQuery()) {
result = result && getQuery()
.equals(other.getQuery());
}
result = result && getKeyspace()
.equals(other.getKeyspace());
result = result && getKeyspaceIdsList()
.equals(other.getKeyspaceIdsList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasQuery()) {
hash = (37 * hash) + QUERY_FIELD_NUMBER;
hash = (53 * hash) + getQuery().hashCode();
}
hash = (37 * hash) + KEYSPACE_FIELD_NUMBER;
hash = (53 * hash) + getKeyspace().hashCode();
if (getKeyspaceIdsCount() > 0) {
hash = (37 * hash) + KEYSPACE_IDS_FIELD_NUMBER;
hash = (53 * hash) + getKeyspaceIdsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* BoundKeyspaceIdQuery represents a single query request for the
* specified list of keyspace ids. This is used in a list for
* ExecuteBatchKeyspaceIdsRequest.
*
*
* Protobuf type {@code vtgate.BoundKeyspaceIdQuery}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.BoundKeyspaceIdQuery)
com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQueryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_BoundKeyspaceIdQuery_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_BoundKeyspaceIdQuery_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery.class, com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (queryBuilder_ == null) {
query_ = null;
} else {
query_ = null;
queryBuilder_ = null;
}
keyspace_ = "";
keyspaceIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_BoundKeyspaceIdQuery_descriptor;
}
public com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery build() {
com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery buildPartial() {
com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery result = new com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (queryBuilder_ == null) {
result.query_ = query_;
} else {
result.query_ = queryBuilder_.build();
}
result.keyspace_ = keyspace_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
keyspaceIds_ = java.util.Collections.unmodifiableList(keyspaceIds_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.keyspaceIds_ = keyspaceIds_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery other) {
if (other == com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery.getDefaultInstance()) return this;
if (other.hasQuery()) {
mergeQuery(other.getQuery());
}
if (!other.getKeyspace().isEmpty()) {
keyspace_ = other.keyspace_;
onChanged();
}
if (!other.keyspaceIds_.isEmpty()) {
if (keyspaceIds_.isEmpty()) {
keyspaceIds_ = other.keyspaceIds_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureKeyspaceIdsIsMutable();
keyspaceIds_.addAll(other.keyspaceIds_);
}
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.youtube.vitess.proto.Query.BoundQuery query_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder> queryBuilder_;
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
public boolean hasQuery() {
return queryBuilder_ != null || query_ != null;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQuery() {
if (queryBuilder_ == null) {
return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
} else {
return queryBuilder_.getMessage();
}
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
public Builder setQuery(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
query_ = value;
onChanged();
} else {
queryBuilder_.setMessage(value);
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
public Builder setQuery(
com.youtube.vitess.proto.Query.BoundQuery.Builder builderForValue) {
if (queryBuilder_ == null) {
query_ = builderForValue.build();
onChanged();
} else {
queryBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
public Builder mergeQuery(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queryBuilder_ == null) {
if (query_ != null) {
query_ =
com.youtube.vitess.proto.Query.BoundQuery.newBuilder(query_).mergeFrom(value).buildPartial();
} else {
query_ = value;
}
onChanged();
} else {
queryBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
public Builder clearQuery() {
if (queryBuilder_ == null) {
query_ = null;
onChanged();
} else {
query_ = null;
queryBuilder_ = null;
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
public com.youtube.vitess.proto.Query.BoundQuery.Builder getQueryBuilder() {
onChanged();
return getQueryFieldBuilder().getBuilder();
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() {
if (queryBuilder_ != null) {
return queryBuilder_.getMessageOrBuilder();
} else {
return query_ == null ?
com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
}
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>
getQueryFieldBuilder() {
if (queryBuilder_ == null) {
queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>(
getQuery(),
getParentForChildren(),
isClean());
query_ = null;
}
return queryBuilder_;
}
private java.lang.Object keyspace_ = "";
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 2;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 2;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 2;
*/
public Builder setKeyspace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
keyspace_ = value;
onChanged();
return this;
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 2;
*/
public Builder clearKeyspace() {
keyspace_ = getDefaultInstance().getKeyspace();
onChanged();
return this;
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 2;
*/
public Builder setKeyspaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
keyspace_ = value;
onChanged();
return this;
}
private java.util.List keyspaceIds_ = java.util.Collections.emptyList();
private void ensureKeyspaceIdsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
keyspaceIds_ = new java.util.ArrayList(keyspaceIds_);
bitField0_ |= 0x00000004;
}
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 3;
*/
public java.util.List
getKeyspaceIdsList() {
return java.util.Collections.unmodifiableList(keyspaceIds_);
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 3;
*/
public int getKeyspaceIdsCount() {
return keyspaceIds_.size();
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 3;
*/
public com.google.protobuf.ByteString getKeyspaceIds(int index) {
return keyspaceIds_.get(index);
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 3;
*/
public Builder setKeyspaceIds(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyspaceIdsIsMutable();
keyspaceIds_.set(index, value);
onChanged();
return this;
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 3;
*/
public Builder addKeyspaceIds(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyspaceIdsIsMutable();
keyspaceIds_.add(value);
onChanged();
return this;
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 3;
*/
public Builder addAllKeyspaceIds(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureKeyspaceIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, keyspaceIds_);
onChanged();
return this;
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 3;
*/
public Builder clearKeyspaceIds() {
keyspaceIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.BoundKeyspaceIdQuery)
}
// @@protoc_insertion_point(class_scope:vtgate.BoundKeyspaceIdQuery)
private static final com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery();
}
public static com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public BoundKeyspaceIdQuery parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BoundKeyspaceIdQuery(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteBatchKeyspaceIdsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.ExecuteBatchKeyspaceIdsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
boolean hasCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerID getCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
boolean hasSession();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.Session getSession();
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder();
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
java.util.List
getQueriesList();
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery getQueries(int index);
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
int getQueriesCount();
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
java.util.List extends com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQueryOrBuilder>
getQueriesOrBuilderList();
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQueryOrBuilder getQueriesOrBuilder(
int index);
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
int getTabletTypeValue();
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
com.youtube.vitess.proto.Topodata.TabletType getTabletType();
/**
*
* as_transaction will execute the queries in this batch in a single transaction per shard, created for this purpose.
* (this can be seen as adding a 'begin' before and 'commit' after the queries).
* Only makes sense if tablet_type is master. If set, the Session is ignored.
*
*
* optional bool as_transaction = 5;
*/
boolean getAsTransaction();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
boolean hasOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
com.youtube.vitess.proto.Query.ExecuteOptions getOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder();
}
/**
*
* ExecuteBatchKeyspaceIdsRequest is the payload to ExecuteBatchKeyspaceId.
*
*
* Protobuf type {@code vtgate.ExecuteBatchKeyspaceIdsRequest}
*/
public static final class ExecuteBatchKeyspaceIdsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.ExecuteBatchKeyspaceIdsRequest)
ExecuteBatchKeyspaceIdsRequestOrBuilder {
// Use ExecuteBatchKeyspaceIdsRequest.newBuilder() to construct.
private ExecuteBatchKeyspaceIdsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteBatchKeyspaceIdsRequest() {
queries_ = java.util.Collections.emptyList();
tabletType_ = 0;
asTransaction_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ExecuteBatchKeyspaceIdsRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Vtrpc.CallerID.Builder subBuilder = null;
if (callerId_ != null) {
subBuilder = callerId_.toBuilder();
}
callerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(callerId_);
callerId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.youtube.vitess.proto.Vtgate.Session.Builder subBuilder = null;
if (session_ != null) {
subBuilder = session_.toBuilder();
}
session_ = input.readMessage(com.youtube.vitess.proto.Vtgate.Session.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(session_);
session_ = subBuilder.buildPartial();
}
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
queries_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
queries_.add(
input.readMessage(com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery.parser(), extensionRegistry));
break;
}
case 32: {
int rawValue = input.readEnum();
tabletType_ = rawValue;
break;
}
case 40: {
asTransaction_ = input.readBool();
break;
}
case 50: {
com.youtube.vitess.proto.Query.ExecuteOptions.Builder subBuilder = null;
if (options_ != null) {
subBuilder = options_.toBuilder();
}
options_ = input.readMessage(com.youtube.vitess.proto.Query.ExecuteOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(options_);
options_ = subBuilder.buildPartial();
}
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_ & 0x00000004) == 0x00000004)) {
queries_ = java.util.Collections.unmodifiableList(queries_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchKeyspaceIdsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchKeyspaceIdsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest.class, com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest.Builder.class);
}
private int bitField0_;
public static final int CALLER_ID_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
return getCallerId();
}
public static final int SESSION_FIELD_NUMBER = 2;
private com.youtube.vitess.proto.Vtgate.Session session_;
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return session_ != null;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
return getSession();
}
public static final int QUERIES_FIELD_NUMBER = 3;
private java.util.List queries_;
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public java.util.List getQueriesList() {
return queries_;
}
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public java.util.List extends com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQueryOrBuilder>
getQueriesOrBuilderList() {
return queries_;
}
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public int getQueriesCount() {
return queries_.size();
}
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery getQueries(int index) {
return queries_.get(index);
}
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQueryOrBuilder getQueriesOrBuilder(
int index) {
return queries_.get(index);
}
public static final int TABLET_TYPE_FIELD_NUMBER = 4;
private int tabletType_;
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
public static final int AS_TRANSACTION_FIELD_NUMBER = 5;
private boolean asTransaction_;
/**
*
* as_transaction will execute the queries in this batch in a single transaction per shard, created for this purpose.
* (this can be seen as adding a 'begin' before and 'commit' after the queries).
* Only makes sense if tablet_type is master. If set, the Session is ignored.
*
*
* optional bool as_transaction = 5;
*/
public boolean getAsTransaction() {
return asTransaction_;
}
public static final int OPTIONS_FIELD_NUMBER = 6;
private com.youtube.vitess.proto.Query.ExecuteOptions options_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public boolean hasOptions() {
return options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
return getOptions();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (callerId_ != null) {
output.writeMessage(1, getCallerId());
}
if (session_ != null) {
output.writeMessage(2, getSession());
}
for (int i = 0; i < queries_.size(); i++) {
output.writeMessage(3, queries_.get(i));
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
output.writeEnum(4, tabletType_);
}
if (asTransaction_ != false) {
output.writeBool(5, asTransaction_);
}
if (options_ != null) {
output.writeMessage(6, getOptions());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (callerId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCallerId());
}
if (session_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSession());
}
for (int i = 0; i < queries_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, queries_.get(i));
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, tabletType_);
}
if (asTransaction_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, asTransaction_);
}
if (options_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getOptions());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest other = (com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest) obj;
boolean result = true;
result = result && (hasCallerId() == other.hasCallerId());
if (hasCallerId()) {
result = result && getCallerId()
.equals(other.getCallerId());
}
result = result && (hasSession() == other.hasSession());
if (hasSession()) {
result = result && getSession()
.equals(other.getSession());
}
result = result && getQueriesList()
.equals(other.getQueriesList());
result = result && tabletType_ == other.tabletType_;
result = result && (getAsTransaction()
== other.getAsTransaction());
result = result && (hasOptions() == other.hasOptions());
if (hasOptions()) {
result = result && getOptions()
.equals(other.getOptions());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasCallerId()) {
hash = (37 * hash) + CALLER_ID_FIELD_NUMBER;
hash = (53 * hash) + getCallerId().hashCode();
}
if (hasSession()) {
hash = (37 * hash) + SESSION_FIELD_NUMBER;
hash = (53 * hash) + getSession().hashCode();
}
if (getQueriesCount() > 0) {
hash = (37 * hash) + QUERIES_FIELD_NUMBER;
hash = (53 * hash) + getQueriesList().hashCode();
}
hash = (37 * hash) + TABLET_TYPE_FIELD_NUMBER;
hash = (53 * hash) + tabletType_;
hash = (37 * hash) + AS_TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAsTransaction());
if (hasOptions()) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptions().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* ExecuteBatchKeyspaceIdsRequest is the payload to ExecuteBatchKeyspaceId.
*
*
* Protobuf type {@code vtgate.ExecuteBatchKeyspaceIdsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.ExecuteBatchKeyspaceIdsRequest)
com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchKeyspaceIdsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchKeyspaceIdsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest.class, com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getQueriesFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (callerIdBuilder_ == null) {
callerId_ = null;
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
if (sessionBuilder_ == null) {
session_ = null;
} else {
session_ = null;
sessionBuilder_ = null;
}
if (queriesBuilder_ == null) {
queries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
queriesBuilder_.clear();
}
tabletType_ = 0;
asTransaction_ = false;
if (optionsBuilder_ == null) {
options_ = null;
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchKeyspaceIdsRequest_descriptor;
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest build() {
com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest buildPartial() {
com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest result = new com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (callerIdBuilder_ == null) {
result.callerId_ = callerId_;
} else {
result.callerId_ = callerIdBuilder_.build();
}
if (sessionBuilder_ == null) {
result.session_ = session_;
} else {
result.session_ = sessionBuilder_.build();
}
if (queriesBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
queries_ = java.util.Collections.unmodifiableList(queries_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.queries_ = queries_;
} else {
result.queries_ = queriesBuilder_.build();
}
result.tabletType_ = tabletType_;
result.asTransaction_ = asTransaction_;
if (optionsBuilder_ == null) {
result.options_ = options_;
} else {
result.options_ = optionsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest other) {
if (other == com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest.getDefaultInstance()) return this;
if (other.hasCallerId()) {
mergeCallerId(other.getCallerId());
}
if (other.hasSession()) {
mergeSession(other.getSession());
}
if (queriesBuilder_ == null) {
if (!other.queries_.isEmpty()) {
if (queries_.isEmpty()) {
queries_ = other.queries_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureQueriesIsMutable();
queries_.addAll(other.queries_);
}
onChanged();
}
} else {
if (!other.queries_.isEmpty()) {
if (queriesBuilder_.isEmpty()) {
queriesBuilder_.dispose();
queriesBuilder_ = null;
queries_ = other.queries_;
bitField0_ = (bitField0_ & ~0x00000004);
queriesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getQueriesFieldBuilder() : null;
} else {
queriesBuilder_.addAllMessages(other.queries_);
}
}
}
if (other.tabletType_ != 0) {
setTabletTypeValue(other.getTabletTypeValue());
}
if (other.getAsTransaction() != false) {
setAsTransaction(other.getAsTransaction());
}
if (other.hasOptions()) {
mergeOptions(other.getOptions());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder> callerIdBuilder_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerIdBuilder_ != null || callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
if (callerIdBuilder_ == null) {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
} else {
return callerIdBuilder_.getMessage();
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
callerId_ = value;
onChanged();
} else {
callerIdBuilder_.setMessage(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(
com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) {
if (callerIdBuilder_ == null) {
callerId_ = builderForValue.build();
onChanged();
} else {
callerIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder mergeCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (callerId_ != null) {
callerId_ =
com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(callerId_).mergeFrom(value).buildPartial();
} else {
callerId_ = value;
}
onChanged();
} else {
callerIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder clearCallerId() {
if (callerIdBuilder_ == null) {
callerId_ = null;
onChanged();
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getCallerIdBuilder() {
onChanged();
return getCallerIdFieldBuilder().getBuilder();
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
if (callerIdBuilder_ != null) {
return callerIdBuilder_.getMessageOrBuilder();
} else {
return callerId_ == null ?
com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>
getCallerIdFieldBuilder() {
if (callerIdBuilder_ == null) {
callerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>(
getCallerId(),
getParentForChildren(),
isClean());
callerId_ = null;
}
return callerIdBuilder_;
}
private com.youtube.vitess.proto.Vtgate.Session session_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder> sessionBuilder_;
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return sessionBuilder_ != null || session_ != null;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
if (sessionBuilder_ == null) {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
} else {
return sessionBuilder_.getMessage();
}
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
session_ = value;
onChanged();
} else {
sessionBuilder_.setMessage(value);
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(
com.youtube.vitess.proto.Vtgate.Session.Builder builderForValue) {
if (sessionBuilder_ == null) {
session_ = builderForValue.build();
onChanged();
} else {
sessionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder mergeSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (session_ != null) {
session_ =
com.youtube.vitess.proto.Vtgate.Session.newBuilder(session_).mergeFrom(value).buildPartial();
} else {
session_ = value;
}
onChanged();
} else {
sessionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public Builder clearSession() {
if (sessionBuilder_ == null) {
session_ = null;
onChanged();
} else {
session_ = null;
sessionBuilder_ = null;
}
return this;
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.Builder getSessionBuilder() {
onChanged();
return getSessionFieldBuilder().getBuilder();
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
if (sessionBuilder_ != null) {
return sessionBuilder_.getMessageOrBuilder();
} else {
return session_ == null ?
com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
}
/**
*
* session carries the current transaction data. It is returned by Begin.
* Do not fill it in if outside of a transaction.
*
*
* optional .vtgate.Session session = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>
getSessionFieldBuilder() {
if (sessionBuilder_ == null) {
sessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>(
getSession(),
getParentForChildren(),
isClean());
session_ = null;
}
return sessionBuilder_;
}
private java.util.List queries_ =
java.util.Collections.emptyList();
private void ensureQueriesIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
queries_ = new java.util.ArrayList(queries_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery, com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery.Builder, com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQueryOrBuilder> queriesBuilder_;
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public java.util.List getQueriesList() {
if (queriesBuilder_ == null) {
return java.util.Collections.unmodifiableList(queries_);
} else {
return queriesBuilder_.getMessageList();
}
}
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public int getQueriesCount() {
if (queriesBuilder_ == null) {
return queries_.size();
} else {
return queriesBuilder_.getCount();
}
}
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery getQueries(int index) {
if (queriesBuilder_ == null) {
return queries_.get(index);
} else {
return queriesBuilder_.getMessage(index);
}
}
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public Builder setQueries(
int index, com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery value) {
if (queriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueriesIsMutable();
queries_.set(index, value);
onChanged();
} else {
queriesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public Builder setQueries(
int index, com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery.Builder builderForValue) {
if (queriesBuilder_ == null) {
ensureQueriesIsMutable();
queries_.set(index, builderForValue.build());
onChanged();
} else {
queriesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public Builder addQueries(com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery value) {
if (queriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueriesIsMutable();
queries_.add(value);
onChanged();
} else {
queriesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public Builder addQueries(
int index, com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery value) {
if (queriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueriesIsMutable();
queries_.add(index, value);
onChanged();
} else {
queriesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public Builder addQueries(
com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery.Builder builderForValue) {
if (queriesBuilder_ == null) {
ensureQueriesIsMutable();
queries_.add(builderForValue.build());
onChanged();
} else {
queriesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public Builder addQueries(
int index, com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery.Builder builderForValue) {
if (queriesBuilder_ == null) {
ensureQueriesIsMutable();
queries_.add(index, builderForValue.build());
onChanged();
} else {
queriesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public Builder addAllQueries(
java.lang.Iterable extends com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery> values) {
if (queriesBuilder_ == null) {
ensureQueriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, queries_);
onChanged();
} else {
queriesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public Builder clearQueries() {
if (queriesBuilder_ == null) {
queries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
queriesBuilder_.clear();
}
return this;
}
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public Builder removeQueries(int index) {
if (queriesBuilder_ == null) {
ensureQueriesIsMutable();
queries_.remove(index);
onChanged();
} else {
queriesBuilder_.remove(index);
}
return this;
}
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery.Builder getQueriesBuilder(
int index) {
return getQueriesFieldBuilder().getBuilder(index);
}
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQueryOrBuilder getQueriesOrBuilder(
int index) {
if (queriesBuilder_ == null) {
return queries_.get(index); } else {
return queriesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public java.util.List extends com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQueryOrBuilder>
getQueriesOrBuilderList() {
if (queriesBuilder_ != null) {
return queriesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(queries_);
}
}
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery.Builder addQueriesBuilder() {
return getQueriesFieldBuilder().addBuilder(
com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery.getDefaultInstance());
}
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery.Builder addQueriesBuilder(
int index) {
return getQueriesFieldBuilder().addBuilder(
index, com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery.getDefaultInstance());
}
/**
* repeated .vtgate.BoundKeyspaceIdQuery queries = 3;
*/
public java.util.List
getQueriesBuilderList() {
return getQueriesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery, com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery.Builder, com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQueryOrBuilder>
getQueriesFieldBuilder() {
if (queriesBuilder_ == null) {
queriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery, com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQuery.Builder, com.youtube.vitess.proto.Vtgate.BoundKeyspaceIdQueryOrBuilder>(
queries_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
queries_ = null;
}
return queriesBuilder_;
}
private int tabletType_ = 0;
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public Builder setTabletTypeValue(int value) {
tabletType_ = value;
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public Builder setTabletType(com.youtube.vitess.proto.Topodata.TabletType value) {
if (value == null) {
throw new NullPointerException();
}
tabletType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 4;
*/
public Builder clearTabletType() {
tabletType_ = 0;
onChanged();
return this;
}
private boolean asTransaction_ ;
/**
*
* as_transaction will execute the queries in this batch in a single transaction per shard, created for this purpose.
* (this can be seen as adding a 'begin' before and 'commit' after the queries).
* Only makes sense if tablet_type is master. If set, the Session is ignored.
*
*
* optional bool as_transaction = 5;
*/
public boolean getAsTransaction() {
return asTransaction_;
}
/**
*
* as_transaction will execute the queries in this batch in a single transaction per shard, created for this purpose.
* (this can be seen as adding a 'begin' before and 'commit' after the queries).
* Only makes sense if tablet_type is master. If set, the Session is ignored.
*
*
* optional bool as_transaction = 5;
*/
public Builder setAsTransaction(boolean value) {
asTransaction_ = value;
onChanged();
return this;
}
/**
*
* as_transaction will execute the queries in this batch in a single transaction per shard, created for this purpose.
* (this can be seen as adding a 'begin' before and 'commit' after the queries).
* Only makes sense if tablet_type is master. If set, the Session is ignored.
*
*
* optional bool as_transaction = 5;
*/
public Builder clearAsTransaction() {
asTransaction_ = false;
onChanged();
return this;
}
private com.youtube.vitess.proto.Query.ExecuteOptions options_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder> optionsBuilder_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public boolean hasOptions() {
return optionsBuilder_ != null || options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
if (optionsBuilder_ == null) {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
} else {
return optionsBuilder_.getMessage();
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public Builder setOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
options_ = value;
onChanged();
} else {
optionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public Builder setOptions(
com.youtube.vitess.proto.Query.ExecuteOptions.Builder builderForValue) {
if (optionsBuilder_ == null) {
options_ = builderForValue.build();
onChanged();
} else {
optionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public Builder mergeOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (options_ != null) {
options_ =
com.youtube.vitess.proto.Query.ExecuteOptions.newBuilder(options_).mergeFrom(value).buildPartial();
} else {
options_ = value;
}
onChanged();
} else {
optionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public Builder clearOptions() {
if (optionsBuilder_ == null) {
options_ = null;
onChanged();
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions.Builder getOptionsBuilder() {
onChanged();
return getOptionsFieldBuilder().getBuilder();
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilder();
} else {
return options_ == null ?
com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>(
getOptions(),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.ExecuteBatchKeyspaceIdsRequest)
}
// @@protoc_insertion_point(class_scope:vtgate.ExecuteBatchKeyspaceIdsRequest)
private static final com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest();
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExecuteBatchKeyspaceIdsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteBatchKeyspaceIdsRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteBatchKeyspaceIdsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.ExecuteBatchKeyspaceIdsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
boolean hasError();
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
com.youtube.vitess.proto.Vtrpc.RPCError getError();
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
boolean hasSession();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.Session getSession();
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder();
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
java.util.List
getResultsList();
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
com.youtube.vitess.proto.Query.QueryResult getResults(int index);
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
int getResultsCount();
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
java.util.List extends com.youtube.vitess.proto.Query.QueryResultOrBuilder>
getResultsOrBuilderList();
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultsOrBuilder(
int index);
}
/**
*
* ExecuteBatchKeyspaceIdsResponse is the returned value from ExecuteBatchKeyspaceId.
*
*
* Protobuf type {@code vtgate.ExecuteBatchKeyspaceIdsResponse}
*/
public static final class ExecuteBatchKeyspaceIdsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.ExecuteBatchKeyspaceIdsResponse)
ExecuteBatchKeyspaceIdsResponseOrBuilder {
// Use ExecuteBatchKeyspaceIdsResponse.newBuilder() to construct.
private ExecuteBatchKeyspaceIdsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteBatchKeyspaceIdsResponse() {
results_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ExecuteBatchKeyspaceIdsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Vtrpc.RPCError.Builder subBuilder = null;
if (error_ != null) {
subBuilder = error_.toBuilder();
}
error_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.RPCError.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(error_);
error_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.youtube.vitess.proto.Vtgate.Session.Builder subBuilder = null;
if (session_ != null) {
subBuilder = session_.toBuilder();
}
session_ = input.readMessage(com.youtube.vitess.proto.Vtgate.Session.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(session_);
session_ = subBuilder.buildPartial();
}
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
results_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
results_.add(
input.readMessage(com.youtube.vitess.proto.Query.QueryResult.parser(), extensionRegistry));
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_ & 0x00000004) == 0x00000004)) {
results_ = java.util.Collections.unmodifiableList(results_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchKeyspaceIdsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchKeyspaceIdsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse.class, com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse.Builder.class);
}
private int bitField0_;
public static final int ERROR_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Vtrpc.RPCError error_;
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public boolean hasError() {
return error_ != null;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError getError() {
return error_ == null ? com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder() {
return getError();
}
public static final int SESSION_FIELD_NUMBER = 2;
private com.youtube.vitess.proto.Vtgate.Session session_;
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return session_ != null;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
return getSession();
}
public static final int RESULTS_FIELD_NUMBER = 3;
private java.util.List results_;
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public java.util.List getResultsList() {
return results_;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public java.util.List extends com.youtube.vitess.proto.Query.QueryResultOrBuilder>
getResultsOrBuilderList() {
return results_;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public int getResultsCount() {
return results_.size();
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult getResults(int index) {
return results_.get(index);
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultsOrBuilder(
int index) {
return results_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (error_ != null) {
output.writeMessage(1, getError());
}
if (session_ != null) {
output.writeMessage(2, getSession());
}
for (int i = 0; i < results_.size(); i++) {
output.writeMessage(3, results_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (error_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getError());
}
if (session_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSession());
}
for (int i = 0; i < results_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, results_.get(i));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse other = (com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse) obj;
boolean result = true;
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError()
.equals(other.getError());
}
result = result && (hasSession() == other.hasSession());
if (hasSession()) {
result = result && getSession()
.equals(other.getSession());
}
result = result && getResultsList()
.equals(other.getResultsList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasError()) {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
}
if (hasSession()) {
hash = (37 * hash) + SESSION_FIELD_NUMBER;
hash = (53 * hash) + getSession().hashCode();
}
if (getResultsCount() > 0) {
hash = (37 * hash) + RESULTS_FIELD_NUMBER;
hash = (53 * hash) + getResultsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* ExecuteBatchKeyspaceIdsResponse is the returned value from ExecuteBatchKeyspaceId.
*
*
* Protobuf type {@code vtgate.ExecuteBatchKeyspaceIdsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.ExecuteBatchKeyspaceIdsResponse)
com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchKeyspaceIdsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchKeyspaceIdsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse.class, com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResultsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (errorBuilder_ == null) {
error_ = null;
} else {
error_ = null;
errorBuilder_ = null;
}
if (sessionBuilder_ == null) {
session_ = null;
} else {
session_ = null;
sessionBuilder_ = null;
}
if (resultsBuilder_ == null) {
results_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
resultsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_ExecuteBatchKeyspaceIdsResponse_descriptor;
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse build() {
com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse buildPartial() {
com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse result = new com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (errorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = errorBuilder_.build();
}
if (sessionBuilder_ == null) {
result.session_ = session_;
} else {
result.session_ = sessionBuilder_.build();
}
if (resultsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
results_ = java.util.Collections.unmodifiableList(results_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.results_ = results_;
} else {
result.results_ = resultsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse other) {
if (other == com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse.getDefaultInstance()) return this;
if (other.hasError()) {
mergeError(other.getError());
}
if (other.hasSession()) {
mergeSession(other.getSession());
}
if (resultsBuilder_ == null) {
if (!other.results_.isEmpty()) {
if (results_.isEmpty()) {
results_ = other.results_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureResultsIsMutable();
results_.addAll(other.results_);
}
onChanged();
}
} else {
if (!other.results_.isEmpty()) {
if (resultsBuilder_.isEmpty()) {
resultsBuilder_.dispose();
resultsBuilder_ = null;
results_ = other.results_;
bitField0_ = (bitField0_ & ~0x00000004);
resultsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResultsFieldBuilder() : null;
} else {
resultsBuilder_.addAllMessages(other.results_);
}
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.youtube.vitess.proto.Vtrpc.RPCError error_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder> errorBuilder_;
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public boolean hasError() {
return errorBuilder_ != null || error_ != null;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError getError() {
if (errorBuilder_ == null) {
return error_ == null ? com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder setError(com.youtube.vitess.proto.Vtrpc.RPCError value) {
if (errorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
} else {
errorBuilder_.setMessage(value);
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder setError(
com.youtube.vitess.proto.Vtrpc.RPCError.Builder builderForValue) {
if (errorBuilder_ == null) {
error_ = builderForValue.build();
onChanged();
} else {
errorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder mergeError(com.youtube.vitess.proto.Vtrpc.RPCError value) {
if (errorBuilder_ == null) {
if (error_ != null) {
error_ =
com.youtube.vitess.proto.Vtrpc.RPCError.newBuilder(error_).mergeFrom(value).buildPartial();
} else {
error_ = value;
}
onChanged();
} else {
errorBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
error_ = null;
onChanged();
} else {
error_ = null;
errorBuilder_ = null;
}
return this;
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCError.Builder getErrorBuilder() {
onChanged();
return getErrorFieldBuilder().getBuilder();
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
public com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder getErrorOrBuilder() {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
return error_ == null ?
com.youtube.vitess.proto.Vtrpc.RPCError.getDefaultInstance() : error_;
}
}
/**
*
* error contains an application level error if necessary. Note the
* session may have changed, even when an error is returned (for
* instance if a database integrity error happened).
*
*
* optional .vtrpc.RPCError error = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.RPCError, com.youtube.vitess.proto.Vtrpc.RPCError.Builder, com.youtube.vitess.proto.Vtrpc.RPCErrorOrBuilder>(
getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
private com.youtube.vitess.proto.Vtgate.Session session_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder> sessionBuilder_;
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public boolean hasSession() {
return sessionBuilder_ != null || session_ != null;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session getSession() {
if (sessionBuilder_ == null) {
return session_ == null ? com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
} else {
return sessionBuilder_.getMessage();
}
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
session_ = value;
onChanged();
} else {
sessionBuilder_.setMessage(value);
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder setSession(
com.youtube.vitess.proto.Vtgate.Session.Builder builderForValue) {
if (sessionBuilder_ == null) {
session_ = builderForValue.build();
onChanged();
} else {
sessionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder mergeSession(com.youtube.vitess.proto.Vtgate.Session value) {
if (sessionBuilder_ == null) {
if (session_ != null) {
session_ =
com.youtube.vitess.proto.Vtgate.Session.newBuilder(session_).mergeFrom(value).buildPartial();
} else {
session_ = value;
}
onChanged();
} else {
sessionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public Builder clearSession() {
if (sessionBuilder_ == null) {
session_ = null;
onChanged();
} else {
session_ = null;
sessionBuilder_ = null;
}
return this;
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.Session.Builder getSessionBuilder() {
onChanged();
return getSessionFieldBuilder().getBuilder();
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
public com.youtube.vitess.proto.Vtgate.SessionOrBuilder getSessionOrBuilder() {
if (sessionBuilder_ != null) {
return sessionBuilder_.getMessageOrBuilder();
} else {
return session_ == null ?
com.youtube.vitess.proto.Vtgate.Session.getDefaultInstance() : session_;
}
}
/**
*
* session is the updated session information (only returned inside a transaction).
*
*
* optional .vtgate.Session session = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>
getSessionFieldBuilder() {
if (sessionBuilder_ == null) {
sessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtgate.Session, com.youtube.vitess.proto.Vtgate.Session.Builder, com.youtube.vitess.proto.Vtgate.SessionOrBuilder>(
getSession(),
getParentForChildren(),
isClean());
session_ = null;
}
return sessionBuilder_;
}
private java.util.List results_ =
java.util.Collections.emptyList();
private void ensureResultsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
results_ = new java.util.ArrayList(results_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder> resultsBuilder_;
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public java.util.List getResultsList() {
if (resultsBuilder_ == null) {
return java.util.Collections.unmodifiableList(results_);
} else {
return resultsBuilder_.getMessageList();
}
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public int getResultsCount() {
if (resultsBuilder_ == null) {
return results_.size();
} else {
return resultsBuilder_.getCount();
}
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult getResults(int index) {
if (resultsBuilder_ == null) {
return results_.get(index);
} else {
return resultsBuilder_.getMessage(index);
}
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public Builder setResults(
int index, com.youtube.vitess.proto.Query.QueryResult value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.set(index, value);
onChanged();
} else {
resultsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public Builder setResults(
int index, com.youtube.vitess.proto.Query.QueryResult.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.set(index, builderForValue.build());
onChanged();
} else {
resultsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public Builder addResults(com.youtube.vitess.proto.Query.QueryResult value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.add(value);
onChanged();
} else {
resultsBuilder_.addMessage(value);
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public Builder addResults(
int index, com.youtube.vitess.proto.Query.QueryResult value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.add(index, value);
onChanged();
} else {
resultsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public Builder addResults(
com.youtube.vitess.proto.Query.QueryResult.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.add(builderForValue.build());
onChanged();
} else {
resultsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public Builder addResults(
int index, com.youtube.vitess.proto.Query.QueryResult.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.add(index, builderForValue.build());
onChanged();
} else {
resultsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public Builder addAllResults(
java.lang.Iterable extends com.youtube.vitess.proto.Query.QueryResult> values) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, results_);
onChanged();
} else {
resultsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public Builder clearResults() {
if (resultsBuilder_ == null) {
results_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
resultsBuilder_.clear();
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public Builder removeResults(int index) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.remove(index);
onChanged();
} else {
resultsBuilder_.remove(index);
}
return this;
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult.Builder getResultsBuilder(
int index) {
return getResultsFieldBuilder().getBuilder(index);
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultsOrBuilder(
int index) {
if (resultsBuilder_ == null) {
return results_.get(index); } else {
return resultsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public java.util.List extends com.youtube.vitess.proto.Query.QueryResultOrBuilder>
getResultsOrBuilderList() {
if (resultsBuilder_ != null) {
return resultsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(results_);
}
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult.Builder addResultsBuilder() {
return getResultsFieldBuilder().addBuilder(
com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance());
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public com.youtube.vitess.proto.Query.QueryResult.Builder addResultsBuilder(
int index) {
return getResultsFieldBuilder().addBuilder(
index, com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance());
}
/**
*
* result contains the query result, only set if error is unset.
*
*
* repeated .query.QueryResult results = 3;
*/
public java.util.List
getResultsBuilderList() {
return getResultsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder>
getResultsFieldBuilder() {
if (resultsBuilder_ == null) {
resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder>(
results_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
results_ = null;
}
return resultsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.ExecuteBatchKeyspaceIdsResponse)
}
// @@protoc_insertion_point(class_scope:vtgate.ExecuteBatchKeyspaceIdsResponse)
private static final com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse();
}
public static com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExecuteBatchKeyspaceIdsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteBatchKeyspaceIdsResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.ExecuteBatchKeyspaceIdsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StreamExecuteRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.StreamExecuteRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
boolean hasCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerID getCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
boolean hasQuery();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
com.youtube.vitess.proto.Query.BoundQuery getQuery();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder();
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 3;
*/
int getTabletTypeValue();
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 3;
*/
com.youtube.vitess.proto.Topodata.TabletType getTabletType();
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 4;
*/
java.lang.String getKeyspaceShard();
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 4;
*/
com.google.protobuf.ByteString
getKeyspaceShardBytes();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 5;
*/
boolean hasOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 5;
*/
com.youtube.vitess.proto.Query.ExecuteOptions getOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 5;
*/
com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder();
}
/**
*
* StreamExecuteRequest is the payload to StreamExecute.
*
*
* Protobuf type {@code vtgate.StreamExecuteRequest}
*/
public static final class StreamExecuteRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.StreamExecuteRequest)
StreamExecuteRequestOrBuilder {
// Use StreamExecuteRequest.newBuilder() to construct.
private StreamExecuteRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamExecuteRequest() {
tabletType_ = 0;
keyspaceShard_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private StreamExecuteRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Vtrpc.CallerID.Builder subBuilder = null;
if (callerId_ != null) {
subBuilder = callerId_.toBuilder();
}
callerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(callerId_);
callerId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.youtube.vitess.proto.Query.BoundQuery.Builder subBuilder = null;
if (query_ != null) {
subBuilder = query_.toBuilder();
}
query_ = input.readMessage(com.youtube.vitess.proto.Query.BoundQuery.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(query_);
query_ = subBuilder.buildPartial();
}
break;
}
case 24: {
int rawValue = input.readEnum();
tabletType_ = rawValue;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
keyspaceShard_ = s;
break;
}
case 42: {
com.youtube.vitess.proto.Query.ExecuteOptions.Builder subBuilder = null;
if (options_ != null) {
subBuilder = options_.toBuilder();
}
options_ = input.readMessage(com.youtube.vitess.proto.Query.ExecuteOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(options_);
options_ = subBuilder.buildPartial();
}
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.StreamExecuteRequest.class, com.youtube.vitess.proto.Vtgate.StreamExecuteRequest.Builder.class);
}
public static final int CALLER_ID_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
return getCallerId();
}
public static final int QUERY_FIELD_NUMBER = 2;
private com.youtube.vitess.proto.Query.BoundQuery query_;
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public boolean hasQuery() {
return query_ != null;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQuery() {
return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() {
return getQuery();
}
public static final int TABLET_TYPE_FIELD_NUMBER = 3;
private int tabletType_;
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 3;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 3;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
public static final int KEYSPACE_SHARD_FIELD_NUMBER = 4;
private volatile java.lang.Object keyspaceShard_;
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 4;
*/
public java.lang.String getKeyspaceShard() {
java.lang.Object ref = keyspaceShard_;
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();
keyspaceShard_ = s;
return s;
}
}
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 4;
*/
public com.google.protobuf.ByteString
getKeyspaceShardBytes() {
java.lang.Object ref = keyspaceShard_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyspaceShard_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPTIONS_FIELD_NUMBER = 5;
private com.youtube.vitess.proto.Query.ExecuteOptions options_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 5;
*/
public boolean hasOptions() {
return options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 5;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 5;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
return getOptions();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (callerId_ != null) {
output.writeMessage(1, getCallerId());
}
if (query_ != null) {
output.writeMessage(2, getQuery());
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
output.writeEnum(3, tabletType_);
}
if (!getKeyspaceShardBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, keyspaceShard_);
}
if (options_ != null) {
output.writeMessage(5, getOptions());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (callerId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCallerId());
}
if (query_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getQuery());
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, tabletType_);
}
if (!getKeyspaceShardBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, keyspaceShard_);
}
if (options_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getOptions());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.StreamExecuteRequest)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.StreamExecuteRequest other = (com.youtube.vitess.proto.Vtgate.StreamExecuteRequest) obj;
boolean result = true;
result = result && (hasCallerId() == other.hasCallerId());
if (hasCallerId()) {
result = result && getCallerId()
.equals(other.getCallerId());
}
result = result && (hasQuery() == other.hasQuery());
if (hasQuery()) {
result = result && getQuery()
.equals(other.getQuery());
}
result = result && tabletType_ == other.tabletType_;
result = result && getKeyspaceShard()
.equals(other.getKeyspaceShard());
result = result && (hasOptions() == other.hasOptions());
if (hasOptions()) {
result = result && getOptions()
.equals(other.getOptions());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasCallerId()) {
hash = (37 * hash) + CALLER_ID_FIELD_NUMBER;
hash = (53 * hash) + getCallerId().hashCode();
}
if (hasQuery()) {
hash = (37 * hash) + QUERY_FIELD_NUMBER;
hash = (53 * hash) + getQuery().hashCode();
}
hash = (37 * hash) + TABLET_TYPE_FIELD_NUMBER;
hash = (53 * hash) + tabletType_;
hash = (37 * hash) + KEYSPACE_SHARD_FIELD_NUMBER;
hash = (53 * hash) + getKeyspaceShard().hashCode();
if (hasOptions()) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptions().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.StreamExecuteRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* StreamExecuteRequest is the payload to StreamExecute.
*
*
* Protobuf type {@code vtgate.StreamExecuteRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.StreamExecuteRequest)
com.youtube.vitess.proto.Vtgate.StreamExecuteRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.StreamExecuteRequest.class, com.youtube.vitess.proto.Vtgate.StreamExecuteRequest.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.StreamExecuteRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (callerIdBuilder_ == null) {
callerId_ = null;
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
if (queryBuilder_ == null) {
query_ = null;
} else {
query_ = null;
queryBuilder_ = null;
}
tabletType_ = 0;
keyspaceShard_ = "";
if (optionsBuilder_ == null) {
options_ = null;
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteRequest_descriptor;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteRequest getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.StreamExecuteRequest.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteRequest build() {
com.youtube.vitess.proto.Vtgate.StreamExecuteRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteRequest buildPartial() {
com.youtube.vitess.proto.Vtgate.StreamExecuteRequest result = new com.youtube.vitess.proto.Vtgate.StreamExecuteRequest(this);
if (callerIdBuilder_ == null) {
result.callerId_ = callerId_;
} else {
result.callerId_ = callerIdBuilder_.build();
}
if (queryBuilder_ == null) {
result.query_ = query_;
} else {
result.query_ = queryBuilder_.build();
}
result.tabletType_ = tabletType_;
result.keyspaceShard_ = keyspaceShard_;
if (optionsBuilder_ == null) {
result.options_ = options_;
} else {
result.options_ = optionsBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.StreamExecuteRequest) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.StreamExecuteRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.StreamExecuteRequest other) {
if (other == com.youtube.vitess.proto.Vtgate.StreamExecuteRequest.getDefaultInstance()) return this;
if (other.hasCallerId()) {
mergeCallerId(other.getCallerId());
}
if (other.hasQuery()) {
mergeQuery(other.getQuery());
}
if (other.tabletType_ != 0) {
setTabletTypeValue(other.getTabletTypeValue());
}
if (!other.getKeyspaceShard().isEmpty()) {
keyspaceShard_ = other.keyspaceShard_;
onChanged();
}
if (other.hasOptions()) {
mergeOptions(other.getOptions());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.StreamExecuteRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.StreamExecuteRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder> callerIdBuilder_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerIdBuilder_ != null || callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
if (callerIdBuilder_ == null) {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
} else {
return callerIdBuilder_.getMessage();
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
callerId_ = value;
onChanged();
} else {
callerIdBuilder_.setMessage(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(
com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) {
if (callerIdBuilder_ == null) {
callerId_ = builderForValue.build();
onChanged();
} else {
callerIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder mergeCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (callerId_ != null) {
callerId_ =
com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(callerId_).mergeFrom(value).buildPartial();
} else {
callerId_ = value;
}
onChanged();
} else {
callerIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder clearCallerId() {
if (callerIdBuilder_ == null) {
callerId_ = null;
onChanged();
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getCallerIdBuilder() {
onChanged();
return getCallerIdFieldBuilder().getBuilder();
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
if (callerIdBuilder_ != null) {
return callerIdBuilder_.getMessageOrBuilder();
} else {
return callerId_ == null ?
com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>
getCallerIdFieldBuilder() {
if (callerIdBuilder_ == null) {
callerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>(
getCallerId(),
getParentForChildren(),
isClean());
callerId_ = null;
}
return callerIdBuilder_;
}
private com.youtube.vitess.proto.Query.BoundQuery query_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder> queryBuilder_;
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public boolean hasQuery() {
return queryBuilder_ != null || query_ != null;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQuery() {
if (queryBuilder_ == null) {
return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
} else {
return queryBuilder_.getMessage();
}
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public Builder setQuery(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
query_ = value;
onChanged();
} else {
queryBuilder_.setMessage(value);
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public Builder setQuery(
com.youtube.vitess.proto.Query.BoundQuery.Builder builderForValue) {
if (queryBuilder_ == null) {
query_ = builderForValue.build();
onChanged();
} else {
queryBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public Builder mergeQuery(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queryBuilder_ == null) {
if (query_ != null) {
query_ =
com.youtube.vitess.proto.Query.BoundQuery.newBuilder(query_).mergeFrom(value).buildPartial();
} else {
query_ = value;
}
onChanged();
} else {
queryBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public Builder clearQuery() {
if (queryBuilder_ == null) {
query_ = null;
onChanged();
} else {
query_ = null;
queryBuilder_ = null;
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public com.youtube.vitess.proto.Query.BoundQuery.Builder getQueryBuilder() {
onChanged();
return getQueryFieldBuilder().getBuilder();
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() {
if (queryBuilder_ != null) {
return queryBuilder_.getMessageOrBuilder();
} else {
return query_ == null ?
com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
}
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>
getQueryFieldBuilder() {
if (queryBuilder_ == null) {
queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>(
getQuery(),
getParentForChildren(),
isClean());
query_ = null;
}
return queryBuilder_;
}
private int tabletType_ = 0;
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 3;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 3;
*/
public Builder setTabletTypeValue(int value) {
tabletType_ = value;
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 3;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 3;
*/
public Builder setTabletType(com.youtube.vitess.proto.Topodata.TabletType value) {
if (value == null) {
throw new NullPointerException();
}
tabletType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 3;
*/
public Builder clearTabletType() {
tabletType_ = 0;
onChanged();
return this;
}
private java.lang.Object keyspaceShard_ = "";
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 4;
*/
public java.lang.String getKeyspaceShard() {
java.lang.Object ref = keyspaceShard_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
keyspaceShard_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 4;
*/
public com.google.protobuf.ByteString
getKeyspaceShardBytes() {
java.lang.Object ref = keyspaceShard_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyspaceShard_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 4;
*/
public Builder setKeyspaceShard(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
keyspaceShard_ = value;
onChanged();
return this;
}
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 4;
*/
public Builder clearKeyspaceShard() {
keyspaceShard_ = getDefaultInstance().getKeyspaceShard();
onChanged();
return this;
}
/**
*
* keyspace_shard can be 'keyspace' or 'keyspace/shard'.
*
*
* optional string keyspace_shard = 4;
*/
public Builder setKeyspaceShardBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
keyspaceShard_ = value;
onChanged();
return this;
}
private com.youtube.vitess.proto.Query.ExecuteOptions options_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder> optionsBuilder_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 5;
*/
public boolean hasOptions() {
return optionsBuilder_ != null || options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 5;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
if (optionsBuilder_ == null) {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
} else {
return optionsBuilder_.getMessage();
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 5;
*/
public Builder setOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
options_ = value;
onChanged();
} else {
optionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 5;
*/
public Builder setOptions(
com.youtube.vitess.proto.Query.ExecuteOptions.Builder builderForValue) {
if (optionsBuilder_ == null) {
options_ = builderForValue.build();
onChanged();
} else {
optionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 5;
*/
public Builder mergeOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (options_ != null) {
options_ =
com.youtube.vitess.proto.Query.ExecuteOptions.newBuilder(options_).mergeFrom(value).buildPartial();
} else {
options_ = value;
}
onChanged();
} else {
optionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 5;
*/
public Builder clearOptions() {
if (optionsBuilder_ == null) {
options_ = null;
onChanged();
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 5;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions.Builder getOptionsBuilder() {
onChanged();
return getOptionsFieldBuilder().getBuilder();
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 5;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilder();
} else {
return options_ == null ?
com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>(
getOptions(),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.StreamExecuteRequest)
}
// @@protoc_insertion_point(class_scope:vtgate.StreamExecuteRequest)
private static final com.youtube.vitess.proto.Vtgate.StreamExecuteRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.StreamExecuteRequest();
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public StreamExecuteRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StreamExecuteRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StreamExecuteResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.StreamExecuteResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
boolean hasResult();
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
com.youtube.vitess.proto.Query.QueryResult getResult();
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder();
}
/**
*
* StreamExecuteResponse is the returned value from StreamExecute.
*
*
* Protobuf type {@code vtgate.StreamExecuteResponse}
*/
public static final class StreamExecuteResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.StreamExecuteResponse)
StreamExecuteResponseOrBuilder {
// Use StreamExecuteResponse.newBuilder() to construct.
private StreamExecuteResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamExecuteResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private StreamExecuteResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Query.QueryResult.Builder subBuilder = null;
if (result_ != null) {
subBuilder = result_.toBuilder();
}
result_ = input.readMessage(com.youtube.vitess.proto.Query.QueryResult.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(result_);
result_ = subBuilder.buildPartial();
}
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.StreamExecuteResponse.class, com.youtube.vitess.proto.Vtgate.StreamExecuteResponse.Builder.class);
}
public static final int RESULT_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Query.QueryResult result_;
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public boolean hasResult() {
return result_ != null;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public com.youtube.vitess.proto.Query.QueryResult getResult() {
return result_ == null ? com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder() {
return getResult();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (result_ != null) {
output.writeMessage(1, getResult());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (result_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getResult());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.StreamExecuteResponse)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.StreamExecuteResponse other = (com.youtube.vitess.proto.Vtgate.StreamExecuteResponse) obj;
boolean result = true;
result = result && (hasResult() == other.hasResult());
if (hasResult()) {
result = result && getResult()
.equals(other.getResult());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.StreamExecuteResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* StreamExecuteResponse is the returned value from StreamExecute.
*
*
* Protobuf type {@code vtgate.StreamExecuteResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.StreamExecuteResponse)
com.youtube.vitess.proto.Vtgate.StreamExecuteResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.StreamExecuteResponse.class, com.youtube.vitess.proto.Vtgate.StreamExecuteResponse.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.StreamExecuteResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (resultBuilder_ == null) {
result_ = null;
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteResponse_descriptor;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteResponse getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.StreamExecuteResponse.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteResponse build() {
com.youtube.vitess.proto.Vtgate.StreamExecuteResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteResponse buildPartial() {
com.youtube.vitess.proto.Vtgate.StreamExecuteResponse result = new com.youtube.vitess.proto.Vtgate.StreamExecuteResponse(this);
if (resultBuilder_ == null) {
result.result_ = result_;
} else {
result.result_ = resultBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.StreamExecuteResponse) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.StreamExecuteResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.StreamExecuteResponse other) {
if (other == com.youtube.vitess.proto.Vtgate.StreamExecuteResponse.getDefaultInstance()) return this;
if (other.hasResult()) {
mergeResult(other.getResult());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.StreamExecuteResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.StreamExecuteResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.youtube.vitess.proto.Query.QueryResult result_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder> resultBuilder_;
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public boolean hasResult() {
return resultBuilder_ != null || result_ != null;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public com.youtube.vitess.proto.Query.QueryResult getResult() {
if (resultBuilder_ == null) {
return result_ == null ? com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
} else {
return resultBuilder_.getMessage();
}
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public Builder setResult(com.youtube.vitess.proto.Query.QueryResult value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
resultBuilder_.setMessage(value);
}
return this;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public Builder setResult(
com.youtube.vitess.proto.Query.QueryResult.Builder builderForValue) {
if (resultBuilder_ == null) {
result_ = builderForValue.build();
onChanged();
} else {
resultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public Builder mergeResult(com.youtube.vitess.proto.Query.QueryResult value) {
if (resultBuilder_ == null) {
if (result_ != null) {
result_ =
com.youtube.vitess.proto.Query.QueryResult.newBuilder(result_).mergeFrom(value).buildPartial();
} else {
result_ = value;
}
onChanged();
} else {
resultBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public Builder clearResult() {
if (resultBuilder_ == null) {
result_ = null;
onChanged();
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public com.youtube.vitess.proto.Query.QueryResult.Builder getResultBuilder() {
onChanged();
return getResultFieldBuilder().getBuilder();
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder() {
if (resultBuilder_ != null) {
return resultBuilder_.getMessageOrBuilder();
} else {
return result_ == null ?
com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
}
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder>(
getResult(),
getParentForChildren(),
isClean());
result_ = null;
}
return resultBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.StreamExecuteResponse)
}
// @@protoc_insertion_point(class_scope:vtgate.StreamExecuteResponse)
private static final com.youtube.vitess.proto.Vtgate.StreamExecuteResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.StreamExecuteResponse();
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public StreamExecuteResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StreamExecuteResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StreamExecuteShardsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.StreamExecuteShardsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
boolean hasCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerID getCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
boolean hasQuery();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
com.youtube.vitess.proto.Query.BoundQuery getQuery();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder();
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
java.lang.String getKeyspace();
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
com.google.protobuf.ByteString
getKeyspaceBytes();
/**
*
* shards to target the query to.
*
*
* repeated string shards = 4;
*/
java.util.List
getShardsList();
/**
*
* shards to target the query to.
*
*
* repeated string shards = 4;
*/
int getShardsCount();
/**
*
* shards to target the query to.
*
*
* repeated string shards = 4;
*/
java.lang.String getShards(int index);
/**
*
* shards to target the query to.
*
*
* repeated string shards = 4;
*/
com.google.protobuf.ByteString
getShardsBytes(int index);
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
int getTabletTypeValue();
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
com.youtube.vitess.proto.Topodata.TabletType getTabletType();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
boolean hasOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
com.youtube.vitess.proto.Query.ExecuteOptions getOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder();
}
/**
*
* StreamExecuteShardsRequest is the payload to StreamExecuteShards.
*
*
* Protobuf type {@code vtgate.StreamExecuteShardsRequest}
*/
public static final class StreamExecuteShardsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.StreamExecuteShardsRequest)
StreamExecuteShardsRequestOrBuilder {
// Use StreamExecuteShardsRequest.newBuilder() to construct.
private StreamExecuteShardsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamExecuteShardsRequest() {
keyspace_ = "";
shards_ = com.google.protobuf.LazyStringArrayList.EMPTY;
tabletType_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private StreamExecuteShardsRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Vtrpc.CallerID.Builder subBuilder = null;
if (callerId_ != null) {
subBuilder = callerId_.toBuilder();
}
callerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(callerId_);
callerId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.youtube.vitess.proto.Query.BoundQuery.Builder subBuilder = null;
if (query_ != null) {
subBuilder = query_.toBuilder();
}
query_ = input.readMessage(com.youtube.vitess.proto.Query.BoundQuery.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(query_);
query_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
keyspace_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
shards_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
shards_.add(s);
break;
}
case 40: {
int rawValue = input.readEnum();
tabletType_ = rawValue;
break;
}
case 50: {
com.youtube.vitess.proto.Query.ExecuteOptions.Builder subBuilder = null;
if (options_ != null) {
subBuilder = options_.toBuilder();
}
options_ = input.readMessage(com.youtube.vitess.proto.Query.ExecuteOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(options_);
options_ = subBuilder.buildPartial();
}
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_ & 0x00000008) == 0x00000008)) {
shards_ = shards_.getUnmodifiableView();
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteShardsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteShardsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest.class, com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest.Builder.class);
}
private int bitField0_;
public static final int CALLER_ID_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
return getCallerId();
}
public static final int QUERY_FIELD_NUMBER = 2;
private com.youtube.vitess.proto.Query.BoundQuery query_;
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public boolean hasQuery() {
return query_ != null;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQuery() {
return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() {
return getQuery();
}
public static final int KEYSPACE_FIELD_NUMBER = 3;
private volatile java.lang.Object keyspace_;
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
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 SHARDS_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList shards_;
/**
*
* shards to target the query to.
*
*
* repeated string shards = 4;
*/
public com.google.protobuf.ProtocolStringList
getShardsList() {
return shards_;
}
/**
*
* shards to target the query to.
*
*
* repeated string shards = 4;
*/
public int getShardsCount() {
return shards_.size();
}
/**
*
* shards to target the query to.
*
*
* repeated string shards = 4;
*/
public java.lang.String getShards(int index) {
return shards_.get(index);
}
/**
*
* shards to target the query to.
*
*
* repeated string shards = 4;
*/
public com.google.protobuf.ByteString
getShardsBytes(int index) {
return shards_.getByteString(index);
}
public static final int TABLET_TYPE_FIELD_NUMBER = 5;
private int tabletType_;
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
public static final int OPTIONS_FIELD_NUMBER = 6;
private com.youtube.vitess.proto.Query.ExecuteOptions options_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public boolean hasOptions() {
return options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
return getOptions();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (callerId_ != null) {
output.writeMessage(1, getCallerId());
}
if (query_ != null) {
output.writeMessage(2, getQuery());
}
if (!getKeyspaceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, keyspace_);
}
for (int i = 0; i < shards_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, shards_.getRaw(i));
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
output.writeEnum(5, tabletType_);
}
if (options_ != null) {
output.writeMessage(6, getOptions());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (callerId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCallerId());
}
if (query_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getQuery());
}
if (!getKeyspaceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, keyspace_);
}
{
int dataSize = 0;
for (int i = 0; i < shards_.size(); i++) {
dataSize += computeStringSizeNoTag(shards_.getRaw(i));
}
size += dataSize;
size += 1 * getShardsList().size();
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, tabletType_);
}
if (options_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getOptions());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest other = (com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest) obj;
boolean result = true;
result = result && (hasCallerId() == other.hasCallerId());
if (hasCallerId()) {
result = result && getCallerId()
.equals(other.getCallerId());
}
result = result && (hasQuery() == other.hasQuery());
if (hasQuery()) {
result = result && getQuery()
.equals(other.getQuery());
}
result = result && getKeyspace()
.equals(other.getKeyspace());
result = result && getShardsList()
.equals(other.getShardsList());
result = result && tabletType_ == other.tabletType_;
result = result && (hasOptions() == other.hasOptions());
if (hasOptions()) {
result = result && getOptions()
.equals(other.getOptions());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasCallerId()) {
hash = (37 * hash) + CALLER_ID_FIELD_NUMBER;
hash = (53 * hash) + getCallerId().hashCode();
}
if (hasQuery()) {
hash = (37 * hash) + QUERY_FIELD_NUMBER;
hash = (53 * hash) + getQuery().hashCode();
}
hash = (37 * hash) + KEYSPACE_FIELD_NUMBER;
hash = (53 * hash) + getKeyspace().hashCode();
if (getShardsCount() > 0) {
hash = (37 * hash) + SHARDS_FIELD_NUMBER;
hash = (53 * hash) + getShardsList().hashCode();
}
hash = (37 * hash) + TABLET_TYPE_FIELD_NUMBER;
hash = (53 * hash) + tabletType_;
if (hasOptions()) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptions().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* StreamExecuteShardsRequest is the payload to StreamExecuteShards.
*
*
* Protobuf type {@code vtgate.StreamExecuteShardsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.StreamExecuteShardsRequest)
com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteShardsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteShardsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest.class, com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (callerIdBuilder_ == null) {
callerId_ = null;
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
if (queryBuilder_ == null) {
query_ = null;
} else {
query_ = null;
queryBuilder_ = null;
}
keyspace_ = "";
shards_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
tabletType_ = 0;
if (optionsBuilder_ == null) {
options_ = null;
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteShardsRequest_descriptor;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest build() {
com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest buildPartial() {
com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest result = new com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (callerIdBuilder_ == null) {
result.callerId_ = callerId_;
} else {
result.callerId_ = callerIdBuilder_.build();
}
if (queryBuilder_ == null) {
result.query_ = query_;
} else {
result.query_ = queryBuilder_.build();
}
result.keyspace_ = keyspace_;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
shards_ = shards_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.shards_ = shards_;
result.tabletType_ = tabletType_;
if (optionsBuilder_ == null) {
result.options_ = options_;
} else {
result.options_ = optionsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest other) {
if (other == com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest.getDefaultInstance()) return this;
if (other.hasCallerId()) {
mergeCallerId(other.getCallerId());
}
if (other.hasQuery()) {
mergeQuery(other.getQuery());
}
if (!other.getKeyspace().isEmpty()) {
keyspace_ = other.keyspace_;
onChanged();
}
if (!other.shards_.isEmpty()) {
if (shards_.isEmpty()) {
shards_ = other.shards_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureShardsIsMutable();
shards_.addAll(other.shards_);
}
onChanged();
}
if (other.tabletType_ != 0) {
setTabletTypeValue(other.getTabletTypeValue());
}
if (other.hasOptions()) {
mergeOptions(other.getOptions());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder> callerIdBuilder_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerIdBuilder_ != null || callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
if (callerIdBuilder_ == null) {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
} else {
return callerIdBuilder_.getMessage();
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
callerId_ = value;
onChanged();
} else {
callerIdBuilder_.setMessage(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(
com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) {
if (callerIdBuilder_ == null) {
callerId_ = builderForValue.build();
onChanged();
} else {
callerIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder mergeCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (callerId_ != null) {
callerId_ =
com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(callerId_).mergeFrom(value).buildPartial();
} else {
callerId_ = value;
}
onChanged();
} else {
callerIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder clearCallerId() {
if (callerIdBuilder_ == null) {
callerId_ = null;
onChanged();
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getCallerIdBuilder() {
onChanged();
return getCallerIdFieldBuilder().getBuilder();
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
if (callerIdBuilder_ != null) {
return callerIdBuilder_.getMessageOrBuilder();
} else {
return callerId_ == null ?
com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>
getCallerIdFieldBuilder() {
if (callerIdBuilder_ == null) {
callerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>(
getCallerId(),
getParentForChildren(),
isClean());
callerId_ = null;
}
return callerIdBuilder_;
}
private com.youtube.vitess.proto.Query.BoundQuery query_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder> queryBuilder_;
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public boolean hasQuery() {
return queryBuilder_ != null || query_ != null;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQuery() {
if (queryBuilder_ == null) {
return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
} else {
return queryBuilder_.getMessage();
}
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public Builder setQuery(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
query_ = value;
onChanged();
} else {
queryBuilder_.setMessage(value);
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public Builder setQuery(
com.youtube.vitess.proto.Query.BoundQuery.Builder builderForValue) {
if (queryBuilder_ == null) {
query_ = builderForValue.build();
onChanged();
} else {
queryBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public Builder mergeQuery(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queryBuilder_ == null) {
if (query_ != null) {
query_ =
com.youtube.vitess.proto.Query.BoundQuery.newBuilder(query_).mergeFrom(value).buildPartial();
} else {
query_ = value;
}
onChanged();
} else {
queryBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public Builder clearQuery() {
if (queryBuilder_ == null) {
query_ = null;
onChanged();
} else {
query_ = null;
queryBuilder_ = null;
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public com.youtube.vitess.proto.Query.BoundQuery.Builder getQueryBuilder() {
onChanged();
return getQueryFieldBuilder().getBuilder();
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() {
if (queryBuilder_ != null) {
return queryBuilder_.getMessageOrBuilder();
} else {
return query_ == null ?
com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
}
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>
getQueryFieldBuilder() {
if (queryBuilder_ == null) {
queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>(
getQuery(),
getParentForChildren(),
isClean());
query_ = null;
}
return queryBuilder_;
}
private java.lang.Object keyspace_ = "";
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
public Builder setKeyspace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
keyspace_ = value;
onChanged();
return this;
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
public Builder clearKeyspace() {
keyspace_ = getDefaultInstance().getKeyspace();
onChanged();
return this;
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
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.LazyStringList shards_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureShardsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
shards_ = new com.google.protobuf.LazyStringArrayList(shards_);
bitField0_ |= 0x00000008;
}
}
/**
*
* shards to target the query to.
*
*
* repeated string shards = 4;
*/
public com.google.protobuf.ProtocolStringList
getShardsList() {
return shards_.getUnmodifiableView();
}
/**
*
* shards to target the query to.
*
*
* repeated string shards = 4;
*/
public int getShardsCount() {
return shards_.size();
}
/**
*
* shards to target the query to.
*
*
* repeated string shards = 4;
*/
public java.lang.String getShards(int index) {
return shards_.get(index);
}
/**
*
* shards to target the query to.
*
*
* repeated string shards = 4;
*/
public com.google.protobuf.ByteString
getShardsBytes(int index) {
return shards_.getByteString(index);
}
/**
*
* shards to target the query to.
*
*
* repeated string shards = 4;
*/
public Builder setShards(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureShardsIsMutable();
shards_.set(index, value);
onChanged();
return this;
}
/**
*
* shards to target the query to.
*
*
* repeated string shards = 4;
*/
public Builder addShards(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureShardsIsMutable();
shards_.add(value);
onChanged();
return this;
}
/**
*
* shards to target the query to.
*
*
* repeated string shards = 4;
*/
public Builder addAllShards(
java.lang.Iterable values) {
ensureShardsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, shards_);
onChanged();
return this;
}
/**
*
* shards to target the query to.
*
*
* repeated string shards = 4;
*/
public Builder clearShards() {
shards_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* shards to target the query to.
*
*
* repeated string shards = 4;
*/
public Builder addShardsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureShardsIsMutable();
shards_.add(value);
onChanged();
return this;
}
private int tabletType_ = 0;
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
public Builder setTabletTypeValue(int value) {
tabletType_ = value;
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
public Builder setTabletType(com.youtube.vitess.proto.Topodata.TabletType value) {
if (value == null) {
throw new NullPointerException();
}
tabletType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
public Builder clearTabletType() {
tabletType_ = 0;
onChanged();
return this;
}
private com.youtube.vitess.proto.Query.ExecuteOptions options_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder> optionsBuilder_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public boolean hasOptions() {
return optionsBuilder_ != null || options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
if (optionsBuilder_ == null) {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
} else {
return optionsBuilder_.getMessage();
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public Builder setOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
options_ = value;
onChanged();
} else {
optionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public Builder setOptions(
com.youtube.vitess.proto.Query.ExecuteOptions.Builder builderForValue) {
if (optionsBuilder_ == null) {
options_ = builderForValue.build();
onChanged();
} else {
optionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public Builder mergeOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (options_ != null) {
options_ =
com.youtube.vitess.proto.Query.ExecuteOptions.newBuilder(options_).mergeFrom(value).buildPartial();
} else {
options_ = value;
}
onChanged();
} else {
optionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public Builder clearOptions() {
if (optionsBuilder_ == null) {
options_ = null;
onChanged();
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions.Builder getOptionsBuilder() {
onChanged();
return getOptionsFieldBuilder().getBuilder();
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilder();
} else {
return options_ == null ?
com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>(
getOptions(),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.StreamExecuteShardsRequest)
}
// @@protoc_insertion_point(class_scope:vtgate.StreamExecuteShardsRequest)
private static final com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest();
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public StreamExecuteShardsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StreamExecuteShardsRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteShardsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StreamExecuteShardsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.StreamExecuteShardsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
boolean hasResult();
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
com.youtube.vitess.proto.Query.QueryResult getResult();
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder();
}
/**
*
* StreamExecuteShardsResponse is the returned value from StreamExecuteShards.
*
*
* Protobuf type {@code vtgate.StreamExecuteShardsResponse}
*/
public static final class StreamExecuteShardsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.StreamExecuteShardsResponse)
StreamExecuteShardsResponseOrBuilder {
// Use StreamExecuteShardsResponse.newBuilder() to construct.
private StreamExecuteShardsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamExecuteShardsResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private StreamExecuteShardsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Query.QueryResult.Builder subBuilder = null;
if (result_ != null) {
subBuilder = result_.toBuilder();
}
result_ = input.readMessage(com.youtube.vitess.proto.Query.QueryResult.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(result_);
result_ = subBuilder.buildPartial();
}
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteShardsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteShardsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse.class, com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse.Builder.class);
}
public static final int RESULT_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Query.QueryResult result_;
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public boolean hasResult() {
return result_ != null;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public com.youtube.vitess.proto.Query.QueryResult getResult() {
return result_ == null ? com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder() {
return getResult();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (result_ != null) {
output.writeMessage(1, getResult());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (result_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getResult());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse other = (com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse) obj;
boolean result = true;
result = result && (hasResult() == other.hasResult());
if (hasResult()) {
result = result && getResult()
.equals(other.getResult());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* StreamExecuteShardsResponse is the returned value from StreamExecuteShards.
*
*
* Protobuf type {@code vtgate.StreamExecuteShardsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.StreamExecuteShardsResponse)
com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteShardsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteShardsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse.class, com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (resultBuilder_ == null) {
result_ = null;
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteShardsResponse_descriptor;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse build() {
com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse buildPartial() {
com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse result = new com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse(this);
if (resultBuilder_ == null) {
result.result_ = result_;
} else {
result.result_ = resultBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse other) {
if (other == com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse.getDefaultInstance()) return this;
if (other.hasResult()) {
mergeResult(other.getResult());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.youtube.vitess.proto.Query.QueryResult result_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder> resultBuilder_;
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public boolean hasResult() {
return resultBuilder_ != null || result_ != null;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public com.youtube.vitess.proto.Query.QueryResult getResult() {
if (resultBuilder_ == null) {
return result_ == null ? com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
} else {
return resultBuilder_.getMessage();
}
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public Builder setResult(com.youtube.vitess.proto.Query.QueryResult value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
resultBuilder_.setMessage(value);
}
return this;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public Builder setResult(
com.youtube.vitess.proto.Query.QueryResult.Builder builderForValue) {
if (resultBuilder_ == null) {
result_ = builderForValue.build();
onChanged();
} else {
resultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public Builder mergeResult(com.youtube.vitess.proto.Query.QueryResult value) {
if (resultBuilder_ == null) {
if (result_ != null) {
result_ =
com.youtube.vitess.proto.Query.QueryResult.newBuilder(result_).mergeFrom(value).buildPartial();
} else {
result_ = value;
}
onChanged();
} else {
resultBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public Builder clearResult() {
if (resultBuilder_ == null) {
result_ = null;
onChanged();
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public com.youtube.vitess.proto.Query.QueryResult.Builder getResultBuilder() {
onChanged();
return getResultFieldBuilder().getBuilder();
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder() {
if (resultBuilder_ != null) {
return resultBuilder_.getMessageOrBuilder();
} else {
return result_ == null ?
com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
}
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder>(
getResult(),
getParentForChildren(),
isClean());
result_ = null;
}
return resultBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.StreamExecuteShardsResponse)
}
// @@protoc_insertion_point(class_scope:vtgate.StreamExecuteShardsResponse)
private static final com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse();
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public StreamExecuteShardsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StreamExecuteShardsResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteShardsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StreamExecuteKeyspaceIdsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.StreamExecuteKeyspaceIdsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
boolean hasCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerID getCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
boolean hasQuery();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
com.youtube.vitess.proto.Query.BoundQuery getQuery();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder();
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
java.lang.String getKeyspace();
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
com.google.protobuf.ByteString
getKeyspaceBytes();
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 4;
*/
java.util.List getKeyspaceIdsList();
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 4;
*/
int getKeyspaceIdsCount();
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 4;
*/
com.google.protobuf.ByteString getKeyspaceIds(int index);
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
int getTabletTypeValue();
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
com.youtube.vitess.proto.Topodata.TabletType getTabletType();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
boolean hasOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
com.youtube.vitess.proto.Query.ExecuteOptions getOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder();
}
/**
*
* StreamExecuteKeyspaceIdsRequest is the payload to StreamExecuteKeyspaceIds.
*
*
* Protobuf type {@code vtgate.StreamExecuteKeyspaceIdsRequest}
*/
public static final class StreamExecuteKeyspaceIdsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.StreamExecuteKeyspaceIdsRequest)
StreamExecuteKeyspaceIdsRequestOrBuilder {
// Use StreamExecuteKeyspaceIdsRequest.newBuilder() to construct.
private StreamExecuteKeyspaceIdsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamExecuteKeyspaceIdsRequest() {
keyspace_ = "";
keyspaceIds_ = java.util.Collections.emptyList();
tabletType_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private StreamExecuteKeyspaceIdsRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Vtrpc.CallerID.Builder subBuilder = null;
if (callerId_ != null) {
subBuilder = callerId_.toBuilder();
}
callerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(callerId_);
callerId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.youtube.vitess.proto.Query.BoundQuery.Builder subBuilder = null;
if (query_ != null) {
subBuilder = query_.toBuilder();
}
query_ = input.readMessage(com.youtube.vitess.proto.Query.BoundQuery.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(query_);
query_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
keyspace_ = s;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
keyspaceIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
keyspaceIds_.add(input.readBytes());
break;
}
case 40: {
int rawValue = input.readEnum();
tabletType_ = rawValue;
break;
}
case 50: {
com.youtube.vitess.proto.Query.ExecuteOptions.Builder subBuilder = null;
if (options_ != null) {
subBuilder = options_.toBuilder();
}
options_ = input.readMessage(com.youtube.vitess.proto.Query.ExecuteOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(options_);
options_ = subBuilder.buildPartial();
}
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_ & 0x00000008) == 0x00000008)) {
keyspaceIds_ = java.util.Collections.unmodifiableList(keyspaceIds_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteKeyspaceIdsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteKeyspaceIdsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest.class, com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest.Builder.class);
}
private int bitField0_;
public static final int CALLER_ID_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
return getCallerId();
}
public static final int QUERY_FIELD_NUMBER = 2;
private com.youtube.vitess.proto.Query.BoundQuery query_;
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public boolean hasQuery() {
return query_ != null;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQuery() {
return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() {
return getQuery();
}
public static final int KEYSPACE_FIELD_NUMBER = 3;
private volatile java.lang.Object keyspace_;
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
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 KEYSPACE_IDS_FIELD_NUMBER = 4;
private java.util.List keyspaceIds_;
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 4;
*/
public java.util.List
getKeyspaceIdsList() {
return keyspaceIds_;
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 4;
*/
public int getKeyspaceIdsCount() {
return keyspaceIds_.size();
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 4;
*/
public com.google.protobuf.ByteString getKeyspaceIds(int index) {
return keyspaceIds_.get(index);
}
public static final int TABLET_TYPE_FIELD_NUMBER = 5;
private int tabletType_;
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
public static final int OPTIONS_FIELD_NUMBER = 6;
private com.youtube.vitess.proto.Query.ExecuteOptions options_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public boolean hasOptions() {
return options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
return getOptions();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (callerId_ != null) {
output.writeMessage(1, getCallerId());
}
if (query_ != null) {
output.writeMessage(2, getQuery());
}
if (!getKeyspaceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, keyspace_);
}
for (int i = 0; i < keyspaceIds_.size(); i++) {
output.writeBytes(4, keyspaceIds_.get(i));
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
output.writeEnum(5, tabletType_);
}
if (options_ != null) {
output.writeMessage(6, getOptions());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (callerId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCallerId());
}
if (query_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getQuery());
}
if (!getKeyspaceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, keyspace_);
}
{
int dataSize = 0;
for (int i = 0; i < keyspaceIds_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(keyspaceIds_.get(i));
}
size += dataSize;
size += 1 * getKeyspaceIdsList().size();
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, tabletType_);
}
if (options_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getOptions());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest other = (com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest) obj;
boolean result = true;
result = result && (hasCallerId() == other.hasCallerId());
if (hasCallerId()) {
result = result && getCallerId()
.equals(other.getCallerId());
}
result = result && (hasQuery() == other.hasQuery());
if (hasQuery()) {
result = result && getQuery()
.equals(other.getQuery());
}
result = result && getKeyspace()
.equals(other.getKeyspace());
result = result && getKeyspaceIdsList()
.equals(other.getKeyspaceIdsList());
result = result && tabletType_ == other.tabletType_;
result = result && (hasOptions() == other.hasOptions());
if (hasOptions()) {
result = result && getOptions()
.equals(other.getOptions());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasCallerId()) {
hash = (37 * hash) + CALLER_ID_FIELD_NUMBER;
hash = (53 * hash) + getCallerId().hashCode();
}
if (hasQuery()) {
hash = (37 * hash) + QUERY_FIELD_NUMBER;
hash = (53 * hash) + getQuery().hashCode();
}
hash = (37 * hash) + KEYSPACE_FIELD_NUMBER;
hash = (53 * hash) + getKeyspace().hashCode();
if (getKeyspaceIdsCount() > 0) {
hash = (37 * hash) + KEYSPACE_IDS_FIELD_NUMBER;
hash = (53 * hash) + getKeyspaceIdsList().hashCode();
}
hash = (37 * hash) + TABLET_TYPE_FIELD_NUMBER;
hash = (53 * hash) + tabletType_;
if (hasOptions()) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptions().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* StreamExecuteKeyspaceIdsRequest is the payload to StreamExecuteKeyspaceIds.
*
*
* Protobuf type {@code vtgate.StreamExecuteKeyspaceIdsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.StreamExecuteKeyspaceIdsRequest)
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteKeyspaceIdsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteKeyspaceIdsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest.class, com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (callerIdBuilder_ == null) {
callerId_ = null;
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
if (queryBuilder_ == null) {
query_ = null;
} else {
query_ = null;
queryBuilder_ = null;
}
keyspace_ = "";
keyspaceIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
tabletType_ = 0;
if (optionsBuilder_ == null) {
options_ = null;
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteKeyspaceIdsRequest_descriptor;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest build() {
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest buildPartial() {
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest result = new com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (callerIdBuilder_ == null) {
result.callerId_ = callerId_;
} else {
result.callerId_ = callerIdBuilder_.build();
}
if (queryBuilder_ == null) {
result.query_ = query_;
} else {
result.query_ = queryBuilder_.build();
}
result.keyspace_ = keyspace_;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
keyspaceIds_ = java.util.Collections.unmodifiableList(keyspaceIds_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.keyspaceIds_ = keyspaceIds_;
result.tabletType_ = tabletType_;
if (optionsBuilder_ == null) {
result.options_ = options_;
} else {
result.options_ = optionsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest other) {
if (other == com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest.getDefaultInstance()) return this;
if (other.hasCallerId()) {
mergeCallerId(other.getCallerId());
}
if (other.hasQuery()) {
mergeQuery(other.getQuery());
}
if (!other.getKeyspace().isEmpty()) {
keyspace_ = other.keyspace_;
onChanged();
}
if (!other.keyspaceIds_.isEmpty()) {
if (keyspaceIds_.isEmpty()) {
keyspaceIds_ = other.keyspaceIds_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureKeyspaceIdsIsMutable();
keyspaceIds_.addAll(other.keyspaceIds_);
}
onChanged();
}
if (other.tabletType_ != 0) {
setTabletTypeValue(other.getTabletTypeValue());
}
if (other.hasOptions()) {
mergeOptions(other.getOptions());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder> callerIdBuilder_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerIdBuilder_ != null || callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
if (callerIdBuilder_ == null) {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
} else {
return callerIdBuilder_.getMessage();
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
callerId_ = value;
onChanged();
} else {
callerIdBuilder_.setMessage(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(
com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) {
if (callerIdBuilder_ == null) {
callerId_ = builderForValue.build();
onChanged();
} else {
callerIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder mergeCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (callerId_ != null) {
callerId_ =
com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(callerId_).mergeFrom(value).buildPartial();
} else {
callerId_ = value;
}
onChanged();
} else {
callerIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder clearCallerId() {
if (callerIdBuilder_ == null) {
callerId_ = null;
onChanged();
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getCallerIdBuilder() {
onChanged();
return getCallerIdFieldBuilder().getBuilder();
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
if (callerIdBuilder_ != null) {
return callerIdBuilder_.getMessageOrBuilder();
} else {
return callerId_ == null ?
com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>
getCallerIdFieldBuilder() {
if (callerIdBuilder_ == null) {
callerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>(
getCallerId(),
getParentForChildren(),
isClean());
callerId_ = null;
}
return callerIdBuilder_;
}
private com.youtube.vitess.proto.Query.BoundQuery query_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder> queryBuilder_;
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public boolean hasQuery() {
return queryBuilder_ != null || query_ != null;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQuery() {
if (queryBuilder_ == null) {
return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
} else {
return queryBuilder_.getMessage();
}
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public Builder setQuery(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
query_ = value;
onChanged();
} else {
queryBuilder_.setMessage(value);
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public Builder setQuery(
com.youtube.vitess.proto.Query.BoundQuery.Builder builderForValue) {
if (queryBuilder_ == null) {
query_ = builderForValue.build();
onChanged();
} else {
queryBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public Builder mergeQuery(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queryBuilder_ == null) {
if (query_ != null) {
query_ =
com.youtube.vitess.proto.Query.BoundQuery.newBuilder(query_).mergeFrom(value).buildPartial();
} else {
query_ = value;
}
onChanged();
} else {
queryBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public Builder clearQuery() {
if (queryBuilder_ == null) {
query_ = null;
onChanged();
} else {
query_ = null;
queryBuilder_ = null;
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public com.youtube.vitess.proto.Query.BoundQuery.Builder getQueryBuilder() {
onChanged();
return getQueryFieldBuilder().getBuilder();
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() {
if (queryBuilder_ != null) {
return queryBuilder_.getMessageOrBuilder();
} else {
return query_ == null ?
com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
}
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>
getQueryFieldBuilder() {
if (queryBuilder_ == null) {
queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>(
getQuery(),
getParentForChildren(),
isClean());
query_ = null;
}
return queryBuilder_;
}
private java.lang.Object keyspace_ = "";
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
public Builder setKeyspace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
keyspace_ = value;
onChanged();
return this;
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
public Builder clearKeyspace() {
keyspace_ = getDefaultInstance().getKeyspace();
onChanged();
return this;
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
public Builder setKeyspaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
keyspace_ = value;
onChanged();
return this;
}
private java.util.List keyspaceIds_ = java.util.Collections.emptyList();
private void ensureKeyspaceIdsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
keyspaceIds_ = new java.util.ArrayList(keyspaceIds_);
bitField0_ |= 0x00000008;
}
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 4;
*/
public java.util.List
getKeyspaceIdsList() {
return java.util.Collections.unmodifiableList(keyspaceIds_);
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 4;
*/
public int getKeyspaceIdsCount() {
return keyspaceIds_.size();
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 4;
*/
public com.google.protobuf.ByteString getKeyspaceIds(int index) {
return keyspaceIds_.get(index);
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 4;
*/
public Builder setKeyspaceIds(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyspaceIdsIsMutable();
keyspaceIds_.set(index, value);
onChanged();
return this;
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 4;
*/
public Builder addKeyspaceIds(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyspaceIdsIsMutable();
keyspaceIds_.add(value);
onChanged();
return this;
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 4;
*/
public Builder addAllKeyspaceIds(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureKeyspaceIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, keyspaceIds_);
onChanged();
return this;
}
/**
*
* keyspace_ids contains the list of keyspace_ids affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated bytes keyspace_ids = 4;
*/
public Builder clearKeyspaceIds() {
keyspaceIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
private int tabletType_ = 0;
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
public Builder setTabletTypeValue(int value) {
tabletType_ = value;
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
public Builder setTabletType(com.youtube.vitess.proto.Topodata.TabletType value) {
if (value == null) {
throw new NullPointerException();
}
tabletType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
public Builder clearTabletType() {
tabletType_ = 0;
onChanged();
return this;
}
private com.youtube.vitess.proto.Query.ExecuteOptions options_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder> optionsBuilder_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public boolean hasOptions() {
return optionsBuilder_ != null || options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
if (optionsBuilder_ == null) {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
} else {
return optionsBuilder_.getMessage();
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public Builder setOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
options_ = value;
onChanged();
} else {
optionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public Builder setOptions(
com.youtube.vitess.proto.Query.ExecuteOptions.Builder builderForValue) {
if (optionsBuilder_ == null) {
options_ = builderForValue.build();
onChanged();
} else {
optionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public Builder mergeOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (options_ != null) {
options_ =
com.youtube.vitess.proto.Query.ExecuteOptions.newBuilder(options_).mergeFrom(value).buildPartial();
} else {
options_ = value;
}
onChanged();
} else {
optionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public Builder clearOptions() {
if (optionsBuilder_ == null) {
options_ = null;
onChanged();
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions.Builder getOptionsBuilder() {
onChanged();
return getOptionsFieldBuilder().getBuilder();
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilder();
} else {
return options_ == null ?
com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>(
getOptions(),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.StreamExecuteKeyspaceIdsRequest)
}
// @@protoc_insertion_point(class_scope:vtgate.StreamExecuteKeyspaceIdsRequest)
private static final com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest();
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public StreamExecuteKeyspaceIdsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StreamExecuteKeyspaceIdsRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StreamExecuteKeyspaceIdsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.StreamExecuteKeyspaceIdsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
boolean hasResult();
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
com.youtube.vitess.proto.Query.QueryResult getResult();
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder();
}
/**
*
* StreamExecuteKeyspaceIdsResponse is the returned value from StreamExecuteKeyspaceIds.
*
*
* Protobuf type {@code vtgate.StreamExecuteKeyspaceIdsResponse}
*/
public static final class StreamExecuteKeyspaceIdsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.StreamExecuteKeyspaceIdsResponse)
StreamExecuteKeyspaceIdsResponseOrBuilder {
// Use StreamExecuteKeyspaceIdsResponse.newBuilder() to construct.
private StreamExecuteKeyspaceIdsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamExecuteKeyspaceIdsResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private StreamExecuteKeyspaceIdsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Query.QueryResult.Builder subBuilder = null;
if (result_ != null) {
subBuilder = result_.toBuilder();
}
result_ = input.readMessage(com.youtube.vitess.proto.Query.QueryResult.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(result_);
result_ = subBuilder.buildPartial();
}
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteKeyspaceIdsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteKeyspaceIdsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse.class, com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse.Builder.class);
}
public static final int RESULT_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Query.QueryResult result_;
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public boolean hasResult() {
return result_ != null;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public com.youtube.vitess.proto.Query.QueryResult getResult() {
return result_ == null ? com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder() {
return getResult();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (result_ != null) {
output.writeMessage(1, getResult());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (result_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getResult());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse other = (com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse) obj;
boolean result = true;
result = result && (hasResult() == other.hasResult());
if (hasResult()) {
result = result && getResult()
.equals(other.getResult());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* StreamExecuteKeyspaceIdsResponse is the returned value from StreamExecuteKeyspaceIds.
*
*
* Protobuf type {@code vtgate.StreamExecuteKeyspaceIdsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.StreamExecuteKeyspaceIdsResponse)
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteKeyspaceIdsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteKeyspaceIdsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse.class, com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (resultBuilder_ == null) {
result_ = null;
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteKeyspaceIdsResponse_descriptor;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse build() {
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse buildPartial() {
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse result = new com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse(this);
if (resultBuilder_ == null) {
result.result_ = result_;
} else {
result.result_ = resultBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse other) {
if (other == com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse.getDefaultInstance()) return this;
if (other.hasResult()) {
mergeResult(other.getResult());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.youtube.vitess.proto.Query.QueryResult result_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder> resultBuilder_;
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public boolean hasResult() {
return resultBuilder_ != null || result_ != null;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public com.youtube.vitess.proto.Query.QueryResult getResult() {
if (resultBuilder_ == null) {
return result_ == null ? com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
} else {
return resultBuilder_.getMessage();
}
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public Builder setResult(com.youtube.vitess.proto.Query.QueryResult value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
resultBuilder_.setMessage(value);
}
return this;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public Builder setResult(
com.youtube.vitess.proto.Query.QueryResult.Builder builderForValue) {
if (resultBuilder_ == null) {
result_ = builderForValue.build();
onChanged();
} else {
resultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public Builder mergeResult(com.youtube.vitess.proto.Query.QueryResult value) {
if (resultBuilder_ == null) {
if (result_ != null) {
result_ =
com.youtube.vitess.proto.Query.QueryResult.newBuilder(result_).mergeFrom(value).buildPartial();
} else {
result_ = value;
}
onChanged();
} else {
resultBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public Builder clearResult() {
if (resultBuilder_ == null) {
result_ = null;
onChanged();
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public com.youtube.vitess.proto.Query.QueryResult.Builder getResultBuilder() {
onChanged();
return getResultFieldBuilder().getBuilder();
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder() {
if (resultBuilder_ != null) {
return resultBuilder_.getMessageOrBuilder();
} else {
return result_ == null ?
com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
}
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder>(
getResult(),
getParentForChildren(),
isClean());
result_ = null;
}
return resultBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.StreamExecuteKeyspaceIdsResponse)
}
// @@protoc_insertion_point(class_scope:vtgate.StreamExecuteKeyspaceIdsResponse)
private static final com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse();
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public StreamExecuteKeyspaceIdsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StreamExecuteKeyspaceIdsResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteKeyspaceIdsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StreamExecuteKeyRangesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.StreamExecuteKeyRangesRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
boolean hasCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerID getCallerId();
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
boolean hasQuery();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
com.youtube.vitess.proto.Query.BoundQuery getQuery();
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder();
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
java.lang.String getKeyspace();
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
com.google.protobuf.ByteString
getKeyspaceBytes();
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
java.util.List
getKeyRangesList();
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
com.youtube.vitess.proto.Topodata.KeyRange getKeyRanges(int index);
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
int getKeyRangesCount();
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
java.util.List extends com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder>
getKeyRangesOrBuilderList();
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder getKeyRangesOrBuilder(
int index);
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
int getTabletTypeValue();
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
com.youtube.vitess.proto.Topodata.TabletType getTabletType();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
boolean hasOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
com.youtube.vitess.proto.Query.ExecuteOptions getOptions();
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder();
}
/**
*
* StreamExecuteKeyRangesRequest is the payload to StreamExecuteKeyRanges.
*
*
* Protobuf type {@code vtgate.StreamExecuteKeyRangesRequest}
*/
public static final class StreamExecuteKeyRangesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.StreamExecuteKeyRangesRequest)
StreamExecuteKeyRangesRequestOrBuilder {
// Use StreamExecuteKeyRangesRequest.newBuilder() to construct.
private StreamExecuteKeyRangesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamExecuteKeyRangesRequest() {
keyspace_ = "";
keyRanges_ = java.util.Collections.emptyList();
tabletType_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private StreamExecuteKeyRangesRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Vtrpc.CallerID.Builder subBuilder = null;
if (callerId_ != null) {
subBuilder = callerId_.toBuilder();
}
callerId_ = input.readMessage(com.youtube.vitess.proto.Vtrpc.CallerID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(callerId_);
callerId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.youtube.vitess.proto.Query.BoundQuery.Builder subBuilder = null;
if (query_ != null) {
subBuilder = query_.toBuilder();
}
query_ = input.readMessage(com.youtube.vitess.proto.Query.BoundQuery.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(query_);
query_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
keyspace_ = s;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
keyRanges_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
keyRanges_.add(
input.readMessage(com.youtube.vitess.proto.Topodata.KeyRange.parser(), extensionRegistry));
break;
}
case 40: {
int rawValue = input.readEnum();
tabletType_ = rawValue;
break;
}
case 50: {
com.youtube.vitess.proto.Query.ExecuteOptions.Builder subBuilder = null;
if (options_ != null) {
subBuilder = options_.toBuilder();
}
options_ = input.readMessage(com.youtube.vitess.proto.Query.ExecuteOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(options_);
options_ = subBuilder.buildPartial();
}
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_ & 0x00000008) == 0x00000008)) {
keyRanges_ = java.util.Collections.unmodifiableList(keyRanges_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteKeyRangesRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteKeyRangesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest.class, com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest.Builder.class);
}
private int bitField0_;
public static final int CALLER_ID_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
return getCallerId();
}
public static final int QUERY_FIELD_NUMBER = 2;
private com.youtube.vitess.proto.Query.BoundQuery query_;
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public boolean hasQuery() {
return query_ != null;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQuery() {
return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() {
return getQuery();
}
public static final int KEYSPACE_FIELD_NUMBER = 3;
private volatile java.lang.Object keyspace_;
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
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 KEY_RANGES_FIELD_NUMBER = 4;
private java.util.List keyRanges_;
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public java.util.List getKeyRangesList() {
return keyRanges_;
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public java.util.List extends com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder>
getKeyRangesOrBuilderList() {
return keyRanges_;
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public int getKeyRangesCount() {
return keyRanges_.size();
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public com.youtube.vitess.proto.Topodata.KeyRange getKeyRanges(int index) {
return keyRanges_.get(index);
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder getKeyRangesOrBuilder(
int index) {
return keyRanges_.get(index);
}
public static final int TABLET_TYPE_FIELD_NUMBER = 5;
private int tabletType_;
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
public static final int OPTIONS_FIELD_NUMBER = 6;
private com.youtube.vitess.proto.Query.ExecuteOptions options_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public boolean hasOptions() {
return options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
return getOptions();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (callerId_ != null) {
output.writeMessage(1, getCallerId());
}
if (query_ != null) {
output.writeMessage(2, getQuery());
}
if (!getKeyspaceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, keyspace_);
}
for (int i = 0; i < keyRanges_.size(); i++) {
output.writeMessage(4, keyRanges_.get(i));
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
output.writeEnum(5, tabletType_);
}
if (options_ != null) {
output.writeMessage(6, getOptions());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (callerId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCallerId());
}
if (query_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getQuery());
}
if (!getKeyspaceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, keyspace_);
}
for (int i = 0; i < keyRanges_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, keyRanges_.get(i));
}
if (tabletType_ != com.youtube.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, tabletType_);
}
if (options_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getOptions());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest other = (com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest) obj;
boolean result = true;
result = result && (hasCallerId() == other.hasCallerId());
if (hasCallerId()) {
result = result && getCallerId()
.equals(other.getCallerId());
}
result = result && (hasQuery() == other.hasQuery());
if (hasQuery()) {
result = result && getQuery()
.equals(other.getQuery());
}
result = result && getKeyspace()
.equals(other.getKeyspace());
result = result && getKeyRangesList()
.equals(other.getKeyRangesList());
result = result && tabletType_ == other.tabletType_;
result = result && (hasOptions() == other.hasOptions());
if (hasOptions()) {
result = result && getOptions()
.equals(other.getOptions());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasCallerId()) {
hash = (37 * hash) + CALLER_ID_FIELD_NUMBER;
hash = (53 * hash) + getCallerId().hashCode();
}
if (hasQuery()) {
hash = (37 * hash) + QUERY_FIELD_NUMBER;
hash = (53 * hash) + getQuery().hashCode();
}
hash = (37 * hash) + KEYSPACE_FIELD_NUMBER;
hash = (53 * hash) + getKeyspace().hashCode();
if (getKeyRangesCount() > 0) {
hash = (37 * hash) + KEY_RANGES_FIELD_NUMBER;
hash = (53 * hash) + getKeyRangesList().hashCode();
}
hash = (37 * hash) + TABLET_TYPE_FIELD_NUMBER;
hash = (53 * hash) + tabletType_;
if (hasOptions()) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptions().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* StreamExecuteKeyRangesRequest is the payload to StreamExecuteKeyRanges.
*
*
* Protobuf type {@code vtgate.StreamExecuteKeyRangesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.StreamExecuteKeyRangesRequest)
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteKeyRangesRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteKeyRangesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest.class, com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getKeyRangesFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (callerIdBuilder_ == null) {
callerId_ = null;
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
if (queryBuilder_ == null) {
query_ = null;
} else {
query_ = null;
queryBuilder_ = null;
}
keyspace_ = "";
if (keyRangesBuilder_ == null) {
keyRanges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
keyRangesBuilder_.clear();
}
tabletType_ = 0;
if (optionsBuilder_ == null) {
options_ = null;
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteKeyRangesRequest_descriptor;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest build() {
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest buildPartial() {
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest result = new com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (callerIdBuilder_ == null) {
result.callerId_ = callerId_;
} else {
result.callerId_ = callerIdBuilder_.build();
}
if (queryBuilder_ == null) {
result.query_ = query_;
} else {
result.query_ = queryBuilder_.build();
}
result.keyspace_ = keyspace_;
if (keyRangesBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
keyRanges_ = java.util.Collections.unmodifiableList(keyRanges_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.keyRanges_ = keyRanges_;
} else {
result.keyRanges_ = keyRangesBuilder_.build();
}
result.tabletType_ = tabletType_;
if (optionsBuilder_ == null) {
result.options_ = options_;
} else {
result.options_ = optionsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest other) {
if (other == com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest.getDefaultInstance()) return this;
if (other.hasCallerId()) {
mergeCallerId(other.getCallerId());
}
if (other.hasQuery()) {
mergeQuery(other.getQuery());
}
if (!other.getKeyspace().isEmpty()) {
keyspace_ = other.keyspace_;
onChanged();
}
if (keyRangesBuilder_ == null) {
if (!other.keyRanges_.isEmpty()) {
if (keyRanges_.isEmpty()) {
keyRanges_ = other.keyRanges_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureKeyRangesIsMutable();
keyRanges_.addAll(other.keyRanges_);
}
onChanged();
}
} else {
if (!other.keyRanges_.isEmpty()) {
if (keyRangesBuilder_.isEmpty()) {
keyRangesBuilder_.dispose();
keyRangesBuilder_ = null;
keyRanges_ = other.keyRanges_;
bitField0_ = (bitField0_ & ~0x00000008);
keyRangesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getKeyRangesFieldBuilder() : null;
} else {
keyRangesBuilder_.addAllMessages(other.keyRanges_);
}
}
}
if (other.tabletType_ != 0) {
setTabletTypeValue(other.getTabletTypeValue());
}
if (other.hasOptions()) {
mergeOptions(other.getOptions());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.youtube.vitess.proto.Vtrpc.CallerID callerId_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder> callerIdBuilder_;
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public boolean hasCallerId() {
return callerIdBuilder_ != null || callerId_ != null;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID getCallerId() {
if (callerIdBuilder_ == null) {
return callerId_ == null ? com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
} else {
return callerIdBuilder_.getMessage();
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
callerId_ = value;
onChanged();
} else {
callerIdBuilder_.setMessage(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder setCallerId(
com.youtube.vitess.proto.Vtrpc.CallerID.Builder builderForValue) {
if (callerIdBuilder_ == null) {
callerId_ = builderForValue.build();
onChanged();
} else {
callerIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder mergeCallerId(com.youtube.vitess.proto.Vtrpc.CallerID value) {
if (callerIdBuilder_ == null) {
if (callerId_ != null) {
callerId_ =
com.youtube.vitess.proto.Vtrpc.CallerID.newBuilder(callerId_).mergeFrom(value).buildPartial();
} else {
callerId_ = value;
}
onChanged();
} else {
callerIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public Builder clearCallerId() {
if (callerIdBuilder_ == null) {
callerId_ = null;
onChanged();
} else {
callerId_ = null;
callerIdBuilder_ = null;
}
return this;
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerID.Builder getCallerIdBuilder() {
onChanged();
return getCallerIdFieldBuilder().getBuilder();
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
public com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder getCallerIdOrBuilder() {
if (callerIdBuilder_ != null) {
return callerIdBuilder_.getMessageOrBuilder();
} else {
return callerId_ == null ?
com.youtube.vitess.proto.Vtrpc.CallerID.getDefaultInstance() : callerId_;
}
}
/**
*
* caller_id identifies the caller. This is the effective caller ID,
* set by the application to further identify the caller.
*
*
* optional .vtrpc.CallerID caller_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>
getCallerIdFieldBuilder() {
if (callerIdBuilder_ == null) {
callerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Vtrpc.CallerID, com.youtube.vitess.proto.Vtrpc.CallerID.Builder, com.youtube.vitess.proto.Vtrpc.CallerIDOrBuilder>(
getCallerId(),
getParentForChildren(),
isClean());
callerId_ = null;
}
return callerIdBuilder_;
}
private com.youtube.vitess.proto.Query.BoundQuery query_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder> queryBuilder_;
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public boolean hasQuery() {
return queryBuilder_ != null || query_ != null;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public com.youtube.vitess.proto.Query.BoundQuery getQuery() {
if (queryBuilder_ == null) {
return query_ == null ? com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
} else {
return queryBuilder_.getMessage();
}
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public Builder setQuery(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
query_ = value;
onChanged();
} else {
queryBuilder_.setMessage(value);
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public Builder setQuery(
com.youtube.vitess.proto.Query.BoundQuery.Builder builderForValue) {
if (queryBuilder_ == null) {
query_ = builderForValue.build();
onChanged();
} else {
queryBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public Builder mergeQuery(com.youtube.vitess.proto.Query.BoundQuery value) {
if (queryBuilder_ == null) {
if (query_ != null) {
query_ =
com.youtube.vitess.proto.Query.BoundQuery.newBuilder(query_).mergeFrom(value).buildPartial();
} else {
query_ = value;
}
onChanged();
} else {
queryBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public Builder clearQuery() {
if (queryBuilder_ == null) {
query_ = null;
onChanged();
} else {
query_ = null;
queryBuilder_ = null;
}
return this;
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public com.youtube.vitess.proto.Query.BoundQuery.Builder getQueryBuilder() {
onChanged();
return getQueryFieldBuilder().getBuilder();
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
public com.youtube.vitess.proto.Query.BoundQueryOrBuilder getQueryOrBuilder() {
if (queryBuilder_ != null) {
return queryBuilder_.getMessageOrBuilder();
} else {
return query_ == null ?
com.youtube.vitess.proto.Query.BoundQuery.getDefaultInstance() : query_;
}
}
/**
*
* query is the query and bind variables to execute.
*
*
* optional .query.BoundQuery query = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>
getQueryFieldBuilder() {
if (queryBuilder_ == null) {
queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.BoundQuery, com.youtube.vitess.proto.Query.BoundQuery.Builder, com.youtube.vitess.proto.Query.BoundQueryOrBuilder>(
getQuery(),
getParentForChildren(),
isClean());
query_ = null;
}
return queryBuilder_;
}
private java.lang.Object keyspace_ = "";
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
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;
}
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
public Builder setKeyspace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
keyspace_ = value;
onChanged();
return this;
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
public Builder clearKeyspace() {
keyspace_ = getDefaultInstance().getKeyspace();
onChanged();
return this;
}
/**
*
* keyspace to target the query to.
*
*
* optional string keyspace = 3;
*/
public Builder setKeyspaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
keyspace_ = value;
onChanged();
return this;
}
private java.util.List keyRanges_ =
java.util.Collections.emptyList();
private void ensureKeyRangesIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
keyRanges_ = new java.util.ArrayList(keyRanges_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Topodata.KeyRange, com.youtube.vitess.proto.Topodata.KeyRange.Builder, com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder> keyRangesBuilder_;
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public java.util.List getKeyRangesList() {
if (keyRangesBuilder_ == null) {
return java.util.Collections.unmodifiableList(keyRanges_);
} else {
return keyRangesBuilder_.getMessageList();
}
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public int getKeyRangesCount() {
if (keyRangesBuilder_ == null) {
return keyRanges_.size();
} else {
return keyRangesBuilder_.getCount();
}
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public com.youtube.vitess.proto.Topodata.KeyRange getKeyRanges(int index) {
if (keyRangesBuilder_ == null) {
return keyRanges_.get(index);
} else {
return keyRangesBuilder_.getMessage(index);
}
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public Builder setKeyRanges(
int index, com.youtube.vitess.proto.Topodata.KeyRange value) {
if (keyRangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyRangesIsMutable();
keyRanges_.set(index, value);
onChanged();
} else {
keyRangesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public Builder setKeyRanges(
int index, com.youtube.vitess.proto.Topodata.KeyRange.Builder builderForValue) {
if (keyRangesBuilder_ == null) {
ensureKeyRangesIsMutable();
keyRanges_.set(index, builderForValue.build());
onChanged();
} else {
keyRangesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public Builder addKeyRanges(com.youtube.vitess.proto.Topodata.KeyRange value) {
if (keyRangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyRangesIsMutable();
keyRanges_.add(value);
onChanged();
} else {
keyRangesBuilder_.addMessage(value);
}
return this;
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public Builder addKeyRanges(
int index, com.youtube.vitess.proto.Topodata.KeyRange value) {
if (keyRangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyRangesIsMutable();
keyRanges_.add(index, value);
onChanged();
} else {
keyRangesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public Builder addKeyRanges(
com.youtube.vitess.proto.Topodata.KeyRange.Builder builderForValue) {
if (keyRangesBuilder_ == null) {
ensureKeyRangesIsMutable();
keyRanges_.add(builderForValue.build());
onChanged();
} else {
keyRangesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public Builder addKeyRanges(
int index, com.youtube.vitess.proto.Topodata.KeyRange.Builder builderForValue) {
if (keyRangesBuilder_ == null) {
ensureKeyRangesIsMutable();
keyRanges_.add(index, builderForValue.build());
onChanged();
} else {
keyRangesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public Builder addAllKeyRanges(
java.lang.Iterable extends com.youtube.vitess.proto.Topodata.KeyRange> values) {
if (keyRangesBuilder_ == null) {
ensureKeyRangesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, keyRanges_);
onChanged();
} else {
keyRangesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public Builder clearKeyRanges() {
if (keyRangesBuilder_ == null) {
keyRanges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
keyRangesBuilder_.clear();
}
return this;
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public Builder removeKeyRanges(int index) {
if (keyRangesBuilder_ == null) {
ensureKeyRangesIsMutable();
keyRanges_.remove(index);
onChanged();
} else {
keyRangesBuilder_.remove(index);
}
return this;
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public com.youtube.vitess.proto.Topodata.KeyRange.Builder getKeyRangesBuilder(
int index) {
return getKeyRangesFieldBuilder().getBuilder(index);
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder getKeyRangesOrBuilder(
int index) {
if (keyRangesBuilder_ == null) {
return keyRanges_.get(index); } else {
return keyRangesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public java.util.List extends com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder>
getKeyRangesOrBuilderList() {
if (keyRangesBuilder_ != null) {
return keyRangesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(keyRanges_);
}
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public com.youtube.vitess.proto.Topodata.KeyRange.Builder addKeyRangesBuilder() {
return getKeyRangesFieldBuilder().addBuilder(
com.youtube.vitess.proto.Topodata.KeyRange.getDefaultInstance());
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public com.youtube.vitess.proto.Topodata.KeyRange.Builder addKeyRangesBuilder(
int index) {
return getKeyRangesFieldBuilder().addBuilder(
index, com.youtube.vitess.proto.Topodata.KeyRange.getDefaultInstance());
}
/**
*
* key_ranges contains the list of key ranges affected by this query.
* Will be used to find the shards to send the query to.
*
*
* repeated .topodata.KeyRange key_ranges = 4;
*/
public java.util.List
getKeyRangesBuilderList() {
return getKeyRangesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Topodata.KeyRange, com.youtube.vitess.proto.Topodata.KeyRange.Builder, com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder>
getKeyRangesFieldBuilder() {
if (keyRangesBuilder_ == null) {
keyRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.youtube.vitess.proto.Topodata.KeyRange, com.youtube.vitess.proto.Topodata.KeyRange.Builder, com.youtube.vitess.proto.Topodata.KeyRangeOrBuilder>(
keyRanges_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
keyRanges_ = null;
}
return keyRangesBuilder_;
}
private int tabletType_ = 0;
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
public int getTabletTypeValue() {
return tabletType_;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
public Builder setTabletTypeValue(int value) {
tabletType_ = value;
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
public com.youtube.vitess.proto.Topodata.TabletType getTabletType() {
com.youtube.vitess.proto.Topodata.TabletType result = com.youtube.vitess.proto.Topodata.TabletType.valueOf(tabletType_);
return result == null ? com.youtube.vitess.proto.Topodata.TabletType.UNRECOGNIZED : result;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
public Builder setTabletType(com.youtube.vitess.proto.Topodata.TabletType value) {
if (value == null) {
throw new NullPointerException();
}
tabletType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* tablet_type is the type of tablets that this query is targeted to.
*
*
* optional .topodata.TabletType tablet_type = 5;
*/
public Builder clearTabletType() {
tabletType_ = 0;
onChanged();
return this;
}
private com.youtube.vitess.proto.Query.ExecuteOptions options_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder> optionsBuilder_;
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public boolean hasOptions() {
return optionsBuilder_ != null || options_ != null;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions getOptions() {
if (optionsBuilder_ == null) {
return options_ == null ? com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
} else {
return optionsBuilder_.getMessage();
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public Builder setOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
options_ = value;
onChanged();
} else {
optionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public Builder setOptions(
com.youtube.vitess.proto.Query.ExecuteOptions.Builder builderForValue) {
if (optionsBuilder_ == null) {
options_ = builderForValue.build();
onChanged();
} else {
optionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public Builder mergeOptions(com.youtube.vitess.proto.Query.ExecuteOptions value) {
if (optionsBuilder_ == null) {
if (options_ != null) {
options_ =
com.youtube.vitess.proto.Query.ExecuteOptions.newBuilder(options_).mergeFrom(value).buildPartial();
} else {
options_ = value;
}
onChanged();
} else {
optionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public Builder clearOptions() {
if (optionsBuilder_ == null) {
options_ = null;
onChanged();
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptions.Builder getOptionsBuilder() {
onChanged();
return getOptionsFieldBuilder().getBuilder();
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
public com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder getOptionsOrBuilder() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilder();
} else {
return options_ == null ?
com.youtube.vitess.proto.Query.ExecuteOptions.getDefaultInstance() : options_;
}
}
/**
*
* options
*
*
* optional .query.ExecuteOptions options = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.ExecuteOptions, com.youtube.vitess.proto.Query.ExecuteOptions.Builder, com.youtube.vitess.proto.Query.ExecuteOptionsOrBuilder>(
getOptions(),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.StreamExecuteKeyRangesRequest)
}
// @@protoc_insertion_point(class_scope:vtgate.StreamExecuteKeyRangesRequest)
private static final com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest();
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public StreamExecuteKeyRangesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StreamExecuteKeyRangesRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StreamExecuteKeyRangesResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:vtgate.StreamExecuteKeyRangesResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
boolean hasResult();
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
com.youtube.vitess.proto.Query.QueryResult getResult();
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder();
}
/**
*
* StreamExecuteKeyRangesResponse is the returned value from StreamExecuteKeyRanges.
*
*
* Protobuf type {@code vtgate.StreamExecuteKeyRangesResponse}
*/
public static final class StreamExecuteKeyRangesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vtgate.StreamExecuteKeyRangesResponse)
StreamExecuteKeyRangesResponseOrBuilder {
// Use StreamExecuteKeyRangesResponse.newBuilder() to construct.
private StreamExecuteKeyRangesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamExecuteKeyRangesResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private StreamExecuteKeyRangesResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.youtube.vitess.proto.Query.QueryResult.Builder subBuilder = null;
if (result_ != null) {
subBuilder = result_.toBuilder();
}
result_ = input.readMessage(com.youtube.vitess.proto.Query.QueryResult.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(result_);
result_ = subBuilder.buildPartial();
}
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteKeyRangesResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteKeyRangesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse.class, com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse.Builder.class);
}
public static final int RESULT_FIELD_NUMBER = 1;
private com.youtube.vitess.proto.Query.QueryResult result_;
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public boolean hasResult() {
return result_ != null;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public com.youtube.vitess.proto.Query.QueryResult getResult() {
return result_ == null ? com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder() {
return getResult();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (result_ != null) {
output.writeMessage(1, getResult());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (result_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getResult());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse)) {
return super.equals(obj);
}
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse other = (com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse) obj;
boolean result = true;
result = result && (hasResult() == other.hasResult());
if (hasResult()) {
result = result && getResult()
.equals(other.getResult());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* StreamExecuteKeyRangesResponse is the returned value from StreamExecuteKeyRanges.
*
*
* Protobuf type {@code vtgate.StreamExecuteKeyRangesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vtgate.StreamExecuteKeyRangesResponse)
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteKeyRangesResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteKeyRangesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse.class, com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse.Builder.class);
}
// Construct using com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (resultBuilder_ == null) {
result_ = null;
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.youtube.vitess.proto.Vtgate.internal_static_vtgate_StreamExecuteKeyRangesResponse_descriptor;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse getDefaultInstanceForType() {
return com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse.getDefaultInstance();
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse build() {
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse buildPartial() {
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse result = new com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse(this);
if (resultBuilder_ == null) {
result.result_ = result_;
} else {
result.result_ = resultBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse) {
return mergeFrom((com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse other) {
if (other == com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse.getDefaultInstance()) return this;
if (other.hasResult()) {
mergeResult(other.getResult());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.youtube.vitess.proto.Query.QueryResult result_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder> resultBuilder_;
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public boolean hasResult() {
return resultBuilder_ != null || result_ != null;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public com.youtube.vitess.proto.Query.QueryResult getResult() {
if (resultBuilder_ == null) {
return result_ == null ? com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
} else {
return resultBuilder_.getMessage();
}
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public Builder setResult(com.youtube.vitess.proto.Query.QueryResult value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
resultBuilder_.setMessage(value);
}
return this;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public Builder setResult(
com.youtube.vitess.proto.Query.QueryResult.Builder builderForValue) {
if (resultBuilder_ == null) {
result_ = builderForValue.build();
onChanged();
} else {
resultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public Builder mergeResult(com.youtube.vitess.proto.Query.QueryResult value) {
if (resultBuilder_ == null) {
if (result_ != null) {
result_ =
com.youtube.vitess.proto.Query.QueryResult.newBuilder(result_).mergeFrom(value).buildPartial();
} else {
result_ = value;
}
onChanged();
} else {
resultBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public Builder clearResult() {
if (resultBuilder_ == null) {
result_ = null;
onChanged();
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public com.youtube.vitess.proto.Query.QueryResult.Builder getResultBuilder() {
onChanged();
return getResultFieldBuilder().getBuilder();
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
public com.youtube.vitess.proto.Query.QueryResultOrBuilder getResultOrBuilder() {
if (resultBuilder_ != null) {
return resultBuilder_.getMessageOrBuilder();
} else {
return result_ == null ?
com.youtube.vitess.proto.Query.QueryResult.getDefaultInstance() : result_;
}
}
/**
*
* result contains the result data.
* The first value contains only Fields information.
* The next values contain the actual rows, a few values per result.
*
*
* optional .query.QueryResult result = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.youtube.vitess.proto.Query.QueryResult, com.youtube.vitess.proto.Query.QueryResult.Builder, com.youtube.vitess.proto.Query.QueryResultOrBuilder>(
getResult(),
getParentForChildren(),
isClean());
result_ = null;
}
return resultBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:vtgate.StreamExecuteKeyRangesResponse)
}
// @@protoc_insertion_point(class_scope:vtgate.StreamExecuteKeyRangesResponse)
private static final com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse();
}
public static com.youtube.vitess.proto.Vtgate.StreamExecuteKeyRangesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public StreamExecuteKeyRangesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StreamExecuteKeyRangesResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser